CN113031928B - Web system generation method and device, electronic equipment and computer readable storage medium - Google Patents

Web system generation method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN113031928B
CN113031928B CN202110342763.4A CN202110342763A CN113031928B CN 113031928 B CN113031928 B CN 113031928B CN 202110342763 A CN202110342763 A CN 202110342763A CN 113031928 B CN113031928 B CN 113031928B
Authority
CN
China
Prior art keywords
application
menu
configuring
data source
authority
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110342763.4A
Other languages
Chinese (zh)
Other versions
CN113031928A (en
Inventor
陈科
黄智�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Huya Technology Co Ltd
Original Assignee
Guangzhou Huya Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huya Technology Co Ltd filed Critical Guangzhou Huya Technology Co Ltd
Priority to CN202110342763.4A priority Critical patent/CN113031928B/en
Publication of CN113031928A publication Critical patent/CN113031928A/en
Application granted granted Critical
Publication of CN113031928B publication Critical patent/CN113031928B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/45Structures or tools for the administration of authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Human Computer Interaction (AREA)
  • Storage Device Security (AREA)

Abstract

The application discloses a method and a device for generating a web system, electronic equipment and a computer-readable storage medium, wherein the method for generating the web system comprises the following steps: generating a front-end page of the application, and configuring a login identification corresponding to the application so that a user can log in the front-end page according to the login identification; acquiring various data sources, respectively configuring the data sources and binding the data sources with a front-end page so that the data sources can be operated in a preset mode; configuring a permission model corresponding to the application so that a user can access a menu of the application according to the permission corresponding to the permission model on a front-end page; the menu of the application is bound with at least one data source, the menu authority corresponding to the menu of the application is configured, and then a web system corresponding to the application is generated, so that a user can operate the data source bound with the menu in the web system according to a preset mode corresponding to the menu authority. By the scheme, the generation mode of the web system can be standardized, and the generation efficiency of the web system can be improved.

Description

Web system generation method and device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for generating a web system, an electronic device, and a computer-readable storage medium.
Background
With the continuous development of computers and intelligent terminals, the demand for developing web systems is continuously increased, in the prior art, web systems corresponding to the generated applications are mostly made based on front-end static pages, the interaction at the back end is less, the back-end supporting protocol is single, and meanwhile, a method for generating the web systems in a standardized manner is not provided, so that the generation efficiency of the web systems is greatly reduced. In view of this, how to standardize the generation manner of the web system and improve the generation efficiency of the web system becomes an urgent problem to be solved.
Disclosure of Invention
The technical problem mainly solved by the application is to provide a method and a device for generating a web system, an electronic device and a computer-readable storage medium, which can standardize the generation mode of the web system and improve the generation efficiency of the web system.
In order to solve the above technical problem, a first aspect of the present application provides a web system generation method, where the web system generation method includes: generating a front-end page of an application, and configuring a login identifier corresponding to the application so as to enable a user to log in the front-end page according to the login identifier; acquiring various data sources, respectively configuring the data sources and binding the data sources with the front-end page so that the data sources can operate in a preset mode; configuring a permission model corresponding to the application so that the user can access the menu of the application on the front-end page according to the permission corresponding to the permission model; and binding the menu of the application with at least one data source, configuring the menu authority corresponding to the menu of the application, and further generating a web system corresponding to the application so that the user operates the data source bound with the menu in the web system according to the preset mode corresponding to the menu authority.
To solve the above technical problem, a second aspect of the present application provides a web system generation apparatus, including: the application management module is used for generating a front-end page of an application and configuring a login identifier corresponding to the application so as to enable a user to login the front-end page according to the login identifier; the data source management module is used for acquiring various data sources, respectively configuring the data sources and binding the data sources with the front-end page so as to enable the data sources to operate in a preset mode; the authority management module is used for configuring an authority model corresponding to the application so that the user can access the menu of the application on the front-end page according to the authority corresponding to the authority model; and the menu management module is used for binding the menu of the application with at least one data source, configuring the menu authority corresponding to the menu of the application and further generating a web system corresponding to the application so that the user operates the data source bound by the menu in the web system according to the preset mode corresponding to the menu authority.
In order to solve the above technical problem, a third aspect of the present application provides an electronic device, which includes a memory and a processor, which are coupled to each other, wherein the memory stores program instructions, and the processor is configured to execute the program instructions stored in the memory, so as to implement the web system generation method of the first aspect.
To solve the above technical problem, a fourth aspect of the present application provides a computer-readable storage medium having stored thereon program instructions, which when executed by a processor, implement the web system generation method of the first aspect.
The beneficial effect of this application is: according to the method, a front-end page of the application is generated, landing identifiers of the application are configured, multiple data sources are bound with the front-end page, the data sources are configured so that the data sources can be operated according to a preset mode, an authority model of the application and menu authorities corresponding to menus of the application are configured, the menus are bound with at least part of the data sources to generate a web system, the web system corresponding to the application can be automatically generated in the generating process of the whole web system according to a standard flow, the generating mode of the web system is normalized, the generating efficiency of the web system is improved, then a user can log in the front-end page through the landing identifiers, the menu of the application is accessed based on the authority corresponding to the authority model, the data sources bound by the menus are operated according to the menu authorities in the preset mode, and the use convenience of the user is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts. Wherein:
FIG. 1 is a schematic flow chart diagram illustrating an embodiment of a method for generating a web system of the present application;
FIG. 2 is a schematic flow chart diagram illustrating another embodiment of a method for generating a web system of the present application;
FIG. 3 is a block diagram of an embodiment of a web system generation apparatus according to the present application;
FIG. 4 is a block diagram of an embodiment of an electronic device of the present application;
FIG. 5 is a block diagram of an embodiment of a computer-readable storage medium of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "system" and "network" are often used interchangeably herein. The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter associated objects are in an "or" relationship. Further, the term "plurality" herein means two or more than two.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating an embodiment of a web system generation method according to the present application. Specifically, the method may include the steps of:
step S101: and generating a front-end page of the application, and configuring a login identifier corresponding to the application so that the user can login the front-end page according to the login identifier.
Specifically, the front-end page can be customized by a developer to construct a required front-end page, and a login identifier of the application is configured, such as a login user name and a password, so that a user can log in the front-end page through the login identifier.
In an application mode, a developer generates a self-defined front-end page by using codes, the front-end page comprises various menus which can be clicked and used by a user, and the developer configures login identification of an application in an application management module, so that the user can obtain personal login identification and passwords after registering to the application, and then logs in the front-end page through the personal login identification and the passwords.
Step S102: the method comprises the steps of obtaining various data sources, respectively configuring the data sources and binding the data sources with front-end pages, so that the data sources can be operated according to a preset mode.
Specifically, multiple types of data sources are acquired, the multiple types of data sources are bound with a front-end page, and different data sources are configured respectively, so that data in the data sources can be operated according to a preset mode, wherein the preset mode at least comprises reading of the data in the data sources.
In an application mode, a developer configures various types of data sources to meet different requirements for data volume, confidentiality and processing efficiency of the data sources, completes configuration of the various data sources in a data source management module, and performs binding of relevant configuration on a front-end page after configuration is completed so that the front-end page can access data of the data sources.
Step S103: and configuring a permission model corresponding to the application so that the user can access the menu of the application according to the permission corresponding to the permission model on the front-end page.
Specifically, a corresponding authority model is configured for the application, so that a user can obtain the authority corresponding to the authority model when operating on a front-end page, and then the menu of the application can be accessed through the authority corresponding to the authority model, wherein the application comprises multiple types of menus for classifying different types of data, so that the user can operate on the different types of data conveniently.
In an application mode, a developer selects a first authority model directly giving authority to a user in an authority management module, so that the user can directly obtain the authority given by the first authority model after logging in a front-end page, and further accesses a menu.
In another application mode, a developer selects a second authority model which gives roles to the user and acquires the authority based on the roles in the authority management module, so that the user selects or is given corresponding roles after logging in a front-end page, thereby acquiring the authority corresponding to the roles and further accessing the menu.
Step S104: the method comprises the steps of binding an applied menu with at least one data source, configuring menu authority corresponding to the applied menu, and further generating a web system corresponding to the application, so that a user can operate the data source bound with the menu in the web system according to a preset mode corresponding to the menu authority.
Specifically, the menu of the application is bound with at least one data source, all or part of data in the data source can be bound when the menu of the application is bound, the menu of the application can also be bound with various data sources, the types of the data can be screened when the menu of the application is bound with various data sources, so that the menu is bound with the data of the same type in the various data sources, the menu is endowed with the operation authority for the bound data sources, the corresponding configuration is stored, and then the web system corresponding to the application is generated, so that the generation normalization of the web system is realized, and the generation efficiency of the web system is improved. When the user uses the web system, the data source bound by the menu can be operated according to the preset mode through the authority of the menu.
In an application mode, a developer binds a menu with a data source according to the type of the menu in a menu management module, and configures menu authority for the applied menu, so that a user can operate the data source bound with the menu by using the menu authority when accessing the menu.
In a specific application scenario, a developer generates a front-end page of a shopping application, wherein the front-end page includes a login window and a plurality of types of menu windows, and the menu includes: special price today, fresh vegetables and fruits, clothing accessories, digital electric appliances and household articles. The method comprises the steps of configuring a login identification of an application, binding a local data source and a network data source with a front-end page, configuring the local data source and the network data source, configuring a permission model of the application to enable a user to obtain roles of a shopper or a merchant, further endowing the user with permissions of corresponding roles to enable the user to access various menus, binding the applied menus with the data sources according to menu types, and configuring menu permissions of the menus to generate a web system corresponding to the shopping application for the user to use. When a user uses a web system corresponding to a shopping application, if the role after the user logs in is a shopper, the menu authority of the user is to access data, and if the role after the user logs in is a merchant, the menu authority of the user is to access and modify at least part of data.
According to the scheme, the front-end page of the application is generated, the login identification of the application is configured, multiple data sources are bound with the front-end page, the data sources are configured so that the data sources can be operated according to a preset mode, the authority model of the application and the menu authority corresponding to the menu of the application are configured, the menu is bound with at least part of the data sources to generate the web system, the web system corresponding to the application can be automatically generated in the generation process of the whole web system according to a standard flow, the generation mode of the web system is normalized, the generation efficiency of the web system is improved, a user can log in the front-end page through the login identification, the menu of the application is accessed based on the authority corresponding to the authority model, the data sources bound by the menu are operated according to the menu authority in a preset mode, and the use convenience of the user is improved.
Referring to fig. 2, fig. 2 is a schematic flowchart of another embodiment of a web system generation method according to the present application, and specifically, the method may include the following steps:
step S201: a first request to generate a front-end page of an application is sent to a staging server. Wherein the first request includes authentication information.
Specifically, the middle server serves as a unified processing center, and is used for verifying requests submitted by developers and/or users from a foreground, and forwarding configuration information of the developers and/or usage records of the users to the background server so as to connect a foreground application end and a background server end. When a developer submits a first request for generating a front-end page of an application to a middle station server, the first request comprises authentication information so that the middle station server can carry out authentication.
Step S202: and responding to the verification information of the middle station server, and generating a front-end page corresponding to the application.
Specifically, after the verification information of the middle server passes, the developer can generate a self-defined front-end page to meet the idea of the developer on the front-end page, and the development safety is improved in a request and verification mode.
Step S203: and acquiring an instruction for configuring the application login mode, and generating a login identification corresponding to the login mode based on the instruction so that the user can login the front-end page corresponding to each application through the login identification.
Specifically, a developer can issue an instruction for configuring an application login mode at an application management module, after the instruction for configuring the application login mode is obtained, login identifications corresponding to the login mode are generated according to the instruction, and then when a user uses web systems corresponding to different applications, the user logs in front-end pages corresponding to the applications through the login identifications to distinguish the different applications, so that the applications can run independently, configuration data of the applications are stored to a background server side by a middle server, so that the applications are isolated from the background server side, and the maintenance and management of the applications are facilitated.
In an application mode, a developer configures at least two login modes for an application, wherein the login modes support a cookie and token check mode, and after an instruction for configuring the login modes is obtained, corresponding login identifications are generated according to the cookie and the token check mode for a user to use.
Step S204: the method comprises the steps of obtaining a plurality of data sources, respectively configuring the databases corresponding to the data sources to obtain configuration information of the databases, and binding the configuration information with a front-end page to generate a binding relation between the databases corresponding to the data sources and the front-end page.
Specifically, multiple data sources are obtained, each data source corresponds to one database, the databases corresponding to the data sources are configured, the configuration information and the front-end page are bound to generate a binding relationship between the front-end page and the databases corresponding to the data sources, so that data in the databases can be operated according to a preset mode, the data sources and the current application form the binding relationship, and then the front-end page is configured with the multiple data sources, so that the data sources are diversified, the compatibility under multiple application scenes is improved, and the adaptability to multiple requirements of developers is improved.
In an application mode, the data source comprises a data source of a local database, a data source of a third-party database and a data source of a special database, the data source of the local database is obtained, a mapping relation among a database address, a table and a field of the local database is established, so that the data source of the local database is called according to the mapping relation, a data source identifier corresponding to the table is generated, and the type of an applied menu is bound with the data source identifier. The data source of the third-party database is acquired, the first data source interface of the third-party database and the corresponding encryption protocol are received, so that the data source of the third-party database is encrypted and transmitted at the first data source interface, and the cache space of the first data source interface is configured. And acquiring a data source of the special database, and configuring a frame protocol and a second data source interface of the special database so as to call the data source of the special database at the second data source interface according to the frame protocol.
In an application scenario, a local database is a DB (Date Base) database, and after a data source of the local database is acquired, an address of the database is configured for the local database, and then a mapping relationship between the database address, a table, and a field is established, so that the table can be accessed through the address of the database when data access is performed, a corresponding field is searched from the table, and then the field is operated.
Furthermore, a unique data source identifier is generated after each table is established, after the local database is configured in the background, related configuration binding is performed on the front-end page, the page is manufactured into componentization, such as a table component and an input frame component, and the data source identifier is bound in the table component, so that data corresponding to the data source identifier can be dynamically operated in the table component. In addition, based on the data processing logic and the control authority of the local database, the fields are configured to support field query, automatic field acquisition and insertion and field sequencing setting, so that the advantages of clear data structure, high control authority and low control cost of the local database are exerted.
In another application scenario, a third-party database is provided with an http data source, the http data source supports post and get modes, a related header and a request body of the third-party database are configured, a service third party provides a first data source interface, for the first data source interface corresponding to at least part of data with safety requirements, an encryption protocol of the corresponding first data source interface is received, all requests of the corresponding first data source interface are encrypted and transmitted, a data source identifier of the third-party database is generated, and a front-end page is bound with the data source identifier of the third-party database, so that the front-end page and the data source of the third-party database perform dynamic data interaction. In addition, for the first data source interface with large page access amount, cache configuration is supported, cache setting is carried out on the first data source interface, a cache space of the first data source interface is configured, the unique key identification is obtained according to the parameters, and operations of deleting, updating and increasing cache are supported, so that the bearing capacity of the first data source interface is improved, and the data safety degree of a third-party database is improved.
In another application scenario, the private database is provided with a taf data source, and the private database corresponds to a private framework protocol, so that the taf data source network has short time consumption and high processing efficiency, and the performance is more superior, the private database is provided with a second data source interface RCP (Remote Call Procedure) interface for remotely calling the data source of the private database, the framework protocol and the second data source interface of the private database are configured in the background, and the second data source interface is bound with the front-end page, so that the data source of the private database is called according to the framework protocol at the second data source interface, and the requirement of a developer on the data processing performance is met in a usage scenario.
Step S205: and sending the binding relationship and the configuration information to the middle server so that the middle server stores the binding relationship and the configuration information into the first storage area.
Specifically, the binding relationship between the data source and the front-end page and the configuration information configured in the data source are sent to the middle station server, and the middle station server forwards the binding relationship and the configuration information to the first storage area corresponding to the configuration information, so as to search and maintain the configuration information and the binding relationship.
In an application mode, a developer sends the binding relationship between the data source of the local database, the data source of the third-party database, the data source of the special database and the front-end page and the configuration information of the database corresponding to each data source to the middle server, and then the middle server stores the binding relationship and the configuration information into the Mysql relational database management system, wherein the binding relationship and the configuration information in the test stage can also be stored into the Mysql relational database management system.
In an application scenario, after a database is configured in a test stage, configuration information and a binding relationship configured in the test stage are directly transplanted to an online environment of a web system corresponding to a formal generation application, data of the test environment is exported and then imported to the online environment, so that the configuration in the whole application test stage is completely copied to the online environment, reconfiguration is not needed, a front-end page does not need to bind a data source identifier again, and the generation efficiency of the web system is improved.
Step S206: and configuring a permission model corresponding to the application so that the user can access the menu of the application according to the permission corresponding to the permission model on the front-end page.
Specifically, a corresponding authority model is configured for the application, a developer can select one authority model to endow the current application, and can select the same type of authority model and different types of authority models for other applications, so that the authority models of different applications are independent.
In an application mode, a second request for generating the authority model is sent to an authority middle station, wherein the authority middle station corresponds to a middle station server, and the second request comprises request information; and responding to the permission center station verification passing request information, configuring a permission model for the application and generating permission identifications corresponding to the permission model so that each application executes the corresponding permission model according to the corresponding permission identification, and the web systems corresponding to each application are isolated from each other.
Specifically, the permission middle station corresponds to the permission middle station server and is used for verifying the permission of the application, the permission of each application supports different models, each application is configured with a permission identifier corresponding to the permission model, and then the application executes different permission models based on different permission identifiers, so that different applications respectively have different login modes and different permission verification modes, and are isolated from each other, the operation aiming at any application cannot influence other applications, and the independence of the application and the use experience of a user are improved.
Step S207: the method comprises the steps of binding an applied menu with at least one data source, configuring menu authority corresponding to the applied menu, and further generating a web system corresponding to the application, so that a user can operate the data source bound with the menu in the web system according to a preset mode corresponding to the menu authority.
Specifically, the menu of the application is bound with one or more of the data sources, and one or more of four kinds of permissions are added, deleted, changed and checked for the menu configuration of the application based on the type of the menu of the application. The menu of the application comprises a plurality of types, data in at least one data source are bound according to the type of the menu, the data bound by the menu correspond to the type of the menu, and one or more of four authorities of addition, deletion, modification and check are given to the menu according to the type of the current menu, so that the menus of different types can obtain corresponding data and authorities, and the operation of a user is facilitated.
In an application scenario, a developer generates a front-end page of a educational application, wherein the front-end page includes a plurality of types of menus, including: score public notice, course public notice, message suggestion and tree hole telling slot. Binding the score public menu with the scores of students in the local database, giving the score public menu a right to search, binding the course public menu with the courses in the local database, giving the score public menu a right to search, binding the message-leaving menu with the text data in the third-party database, giving the message-leaving menu with four rights of addition, deletion, modification and search, binding the tree hole groove-opening menu with the encrypted data in the third-party database, and giving the tree hole groove-opening menu with four rights of addition, deletion, modification and search. Different data sources and menus are bound based on different menu types and are endowed with menu authorities, so that different requirements of various types of menus in the application are met, and the reasonability of a web system corresponding to the application when the web system is operated by a user is improved.
Further, responding to the fact that the user operates the data source bound to the menu in the web system according to the preset mode corresponding to the menu authority, and sending the operation record of the user to the middle server, so that the middle server stores the operation record to the second storage area.
Specifically, when a user operates the corresponding web system, the user selects one or more menus on a front-end page and operates the data source bound to the menus, temporary cache is generated for the menus selected by the user and the operations performed by the user to obtain the current operation record of the user, and the operation record is sent to the middle server, so that the middle server stores the operation record into the second storage area.
In an application scene, after a user operates a web system corresponding to any application, an operation record of the user for operation is generated, and the operation record is transferred to a Redis log type database management system through a middle station server, so that the user can directly call the saved operation record when the same operation is performed, or the user is prompted about the saved operation record when the user forgets the previous operation record, and the convenience of the user is improved.
In the embodiment, the generation of the web systems is centralized, and each application executes the corresponding authority model according to the corresponding authority identifier, so that the web systems corresponding to each application are mutually isolated and not influenced, multiple types of data sources with different performances are bound, the corresponding menu authority is given to the menu of the application, and the operation record of the user when using the menu authority is cached, thereby standardizing the generation process of the web systems, releasing the manpower of developers and facilitating the use of the user.
Referring to fig. 3, fig. 3 is a schematic diagram of a framework of an embodiment of a web system generation apparatus according to the present application. The web system generation apparatus 30 includes: an application management module 300, a data source management module 302, a rights management module 304, and a menu management module 306. The application management module 300 is configured to generate a front-end page of an application, and configure a login identifier corresponding to the application, so that a user logs in the front-end page according to the login identifier; the data source management module 302 is configured to obtain a plurality of data sources, configure the data sources, and bind the data sources with a front-end page, so that the data sources can operate in a preset manner; the authority management module 304 is configured to configure an authority model corresponding to the application, so that a user can access a menu of the application according to the authority corresponding to the authority model on a front-end page; the menu management module 306 is configured to bind the menu of the application with at least one data source, configure a menu authority corresponding to the menu of the application, and further generate a web system corresponding to the application, so that a user operates the data source bound to the menu in the web system in a preset manner corresponding to the menu authority.
According to the scheme, the application management module 300 generates a front-end page of the application and configures a login identification of the application, the data source management module 302 acquires various data sources bound with the front-end page and configures the data sources so that the data sources can be operated according to a preset mode, the authority management module 304 configures an authority model of the application and a menu authority corresponding to a menu of the application and binds the menu with at least part of the data sources to generate a web system, the generation process of the whole web system can automatically generate the web system corresponding to the application according to a standard flow, so that the generation mode of the web system is standardized and the generation efficiency of the web system is improved, a user can access the menu of the application based on the authority corresponding to the authority model and perform preset mode operation on the data sources bound to the menu according to the menu authority by logging in the front-end page identification, and convenience in use of the user is improved.
In some embodiments, the application management module 300 may be further operable to: sending a first request for generating a front-end page of an application to a middle server; wherein the first request includes authentication information; responding to the verification information that the verification of the middle station server passes, and generating a front-end page corresponding to the application; and acquiring an instruction for configuring the application login mode, and generating a login identifier corresponding to the login mode based on the instruction so that the user can login the front-end page corresponding to each application through the login identifier.
In some embodiments, the data source management module 302 may also be configured to: acquiring various data sources, respectively configuring the databases corresponding to the data sources to acquire configuration information of each database, and binding the configuration information with a front-end page to generate a binding relationship between the databases corresponding to the data sources and the front-end page; and sending the binding relationship and the configuration information to the middle station server so that the middle station server stores the binding relationship and the configuration information to the first storage area.
In some embodiments, the data source management module 302 may also be configured to: acquiring a data source of a local database, establishing a mapping relation among a database address, a table and a field of the local database, so that the data source of the local database is called according to the mapping relation, generating a data source identifier corresponding to the table, and binding the type of an applied menu with the data source identifier; acquiring a data source of a third-party database, receiving a first data source interface of the third-party database and a corresponding encryption protocol thereof, so that the data source of the third-party database is encrypted and transmitted at the first data source interface, and configuring a cache space of the first data source interface; and acquiring the data source of the special database, and configuring the frame protocol and a second data source interface of the special database so as to call the data source of the special database at the second data source interface according to the frame protocol.
In some embodiments, the rights management module 304 may also be configured to: sending a second request for generating the authority model to the authority middle station, wherein the authority middle station corresponds to the middle station server, and the second request comprises request information; and responding to the permission center station verification passing request information, configuring a permission model for the application and generating permission identifications corresponding to the permission model so that each application executes the corresponding permission model according to the corresponding permission identification, and the web systems corresponding to each application are isolated from each other.
In some embodiments, the menu management module 306 may also be configured to: binding the menu of the application with one or more data sources; based on the type of the applied menu, one or more of four authorities are added, deleted, changed and checked for the applied menu configuration.
In some embodiments, the menu management module 306 may also be configured to: and responding to the operation of the user on the data source bound by the menu in the web system according to the preset mode corresponding to the menu authority, and sending the operation record of the user to the middle server so that the middle server stores the operation record to the second storage area.
Referring to fig. 4, fig. 4 is a schematic diagram of a frame of an embodiment of an electronic device according to the present application. The electronic device 40 comprises a memory 401 and a processor 402 coupled to each other, the memory 401 stores program instructions, and the processor 402 is configured to execute the program instructions stored in the memory 401, so as to implement the steps of any of the above-described embodiments of the web system generation method.
In particular, the processor 402 is configured to control itself and the memory 401 to implement the steps of any of the above described web system generation method embodiments. Processor 402 may also be referred to as a CPU (Central Processing Unit). The processor 402 may be an integrated circuit chip having signal processing capabilities. The Processor 402 may also be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. Additionally, processor 402 may be commonly implemented by integrated circuit chips.
According to the scheme, the processor 402 can specify the generation mode of the web system and improve the generation efficiency of the web system by calling the step of generating the web system.
Referring to fig. 5, fig. 5 is a block diagram illustrating an embodiment of a computer-readable storage medium according to the present application. The computer readable storage medium 50 stores program instructions 500 capable of being executed by a processor, the program instructions 500 for implementing the steps of any of the web system generation method embodiments described above.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a module or a unit is merely one type of logical division, and an actual implementation may have another division, for example, a unit or a component may be combined or integrated with another system, or some features may be omitted, or not implemented. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be through some interfaces, indirect coupling or communication connection between devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a network unit. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

Claims (8)

1. A web system generation method, comprising:
generating a front-end page of an application, and configuring a login identification corresponding to the application so as to enable a user to log in the front-end page according to the login identification;
acquiring various data sources, respectively configuring the data sources and binding the data sources with the front-end page so that the data sources can operate in a preset mode;
configuring a permission model corresponding to the application so that the user can access a menu of the application on the front-end page according to the permission corresponding to the permission model;
binding the menu of the application with at least one data source, configuring the menu authority corresponding to the menu of the application, and further generating a web system corresponding to the application, so that the user operates the data source bound to the menu in the web system according to the preset mode corresponding to the menu authority;
the generating a front-end page of the application, and configuring a login identifier corresponding to the application, include: sending a first request for generating a front-end page of an application to a middle server; wherein the first request includes authentication information; responding to the verification information verified by the middle station server, and generating a front-end page corresponding to the application; acquiring an instruction for configuring the application login mode, and generating a login identification corresponding to the login mode based on the instruction so that the user can log in the front-end page corresponding to each application through the login identification; the middle server is connected with a foreground application end and a background server end;
the configuring the authority model corresponding to the application comprises the following steps: sending a second request for generating an authority model to an authority middle station, wherein the authority middle station corresponds to the middle station server, and the second request comprises request information; responding to the permission center station verification that the request information passes, configuring a permission model for the application and generating a permission identifier corresponding to the permission model, so that each application executes the corresponding permission model according to the corresponding permission identifier, and the web systems corresponding to the applications are isolated from each other.
2. The method for generating a web system according to claim 1, wherein the step of acquiring a plurality of data sources, configuring the data sources respectively, and binding the data sources with the front-end page includes:
acquiring multiple data sources, respectively configuring the databases corresponding to the data sources to acquire configuration information of each database, and binding the configuration information with the front-end page to generate a binding relationship between the databases corresponding to the data sources and the front-end page;
and sending the binding relationship and the configuration information to the middle station server so that the middle station server stores the binding relationship and the configuration information in a first storage area.
3. The method for generating a web system according to claim 2, wherein the step of configuring the databases corresponding to the data sources respectively to obtain the configuration information of each database includes:
acquiring a data source of a local database, establishing a mapping relation among a database address, a table and a field of the local database, so that the data source of the local database is called according to the mapping relation, generating a data source identifier corresponding to the table, and binding the type of the applied menu with the data source identifier; and (c) a second step of,
acquiring a data source of a third-party database, receiving a first data source interface of the third-party database and a corresponding encryption protocol thereof, so that the data source of the third-party database is encrypted and transmitted at the first data source interface, and configuring a cache space of the first data source interface; and the number of the first and second groups,
and acquiring a data source of a special database, and configuring a frame protocol and a second data source interface of the special database so as to enable the data source of the special database to be called at the second data source interface according to the frame protocol.
4. The method for generating a web system according to claim 1, wherein the step of binding the menu of the application with at least one of the data sources and configuring the menu right corresponding to the menu of the application comprises:
binding the menu of the application with one or more of the data sources;
and configuring one or more of four authorities of addition, deletion, modification and search for the menu of the application based on the type of the menu of the application.
5. The web system generation method according to claim 1,
and responding to the operation of the user on the data source bound by the menu in the web system according to the preset mode corresponding to the menu authority, and sending the operation record of the user to the middle server so that the middle server stores the operation record to a second storage area.
6. A web system generation apparatus, characterized by comprising:
the application management module is used for generating a front-end page of an application and configuring a login identifier corresponding to the application so as to enable a user to login the front-end page according to the login identifier;
the data source management module is used for acquiring various data sources, respectively configuring the data sources and binding the data sources with the front-end page so as to enable the data sources to operate in a preset mode;
the authority management module is used for configuring an authority model corresponding to the application so that the user can access the menu of the application on the front-end page according to the authority corresponding to the authority model;
the menu management module is used for binding the menu of the application with at least one data source, configuring the menu authority corresponding to the menu of the application and further generating a web system corresponding to the application so that the user can operate the data source bound by the menu in the web system according to the preset mode corresponding to the menu authority;
the generating a front-end page of the application, and configuring a login identifier corresponding to the application, include: sending a first request for generating a front-end page of an application to a middle server; wherein the first request includes authentication information; responding to the verification information that the middle station server verifies, and generating a front-end page corresponding to the application; acquiring an instruction for configuring the application login mode, and generating a login identification corresponding to the login mode based on the instruction so that the user can log in the front-end page corresponding to each application through the login identification; the middle server is connected with a foreground application end and a background server end;
the configuring the authority model corresponding to the application comprises the following steps: sending a second request for generating an authority model to an authority middle station, wherein the authority middle station corresponds to the middle station server, and the second request comprises request information; responding to the permission center station verification that the request information passes, configuring a permission model for the application and generating a permission identifier corresponding to the permission model, so that each application executes the corresponding permission model according to the corresponding permission identifier, and the web systems corresponding to the applications are isolated from each other.
7. An electronic device, comprising: a memory and a processor coupled to each other, wherein the memory stores program instructions that are invoked by the processor to perform the web system generation method of any of claims 1-5.
8. A computer-readable storage medium having stored thereon program instructions, which when executed by a processor, implement the web system generation method of any one of claims 1 to 5.
CN202110342763.4A 2021-03-30 2021-03-30 Web system generation method and device, electronic equipment and computer readable storage medium Active CN113031928B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110342763.4A CN113031928B (en) 2021-03-30 2021-03-30 Web system generation method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110342763.4A CN113031928B (en) 2021-03-30 2021-03-30 Web system generation method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113031928A CN113031928A (en) 2021-06-25
CN113031928B true CN113031928B (en) 2023-04-18

Family

ID=76453029

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110342763.4A Active CN113031928B (en) 2021-03-30 2021-03-30 Web system generation method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113031928B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113821749B (en) * 2021-09-30 2023-09-01 上海柯林布瑞信息技术有限公司 Page generation method and computer based on JS real-time analysis

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103324470B (en) * 2012-03-21 2017-09-22 阿里巴巴集团控股有限公司 A kind of method and apparatus of Web system generation
CN107045701A (en) * 2017-04-28 2017-08-15 李玉保 A kind of organic vegetable electric business platform based on Internet technology
CN109559203A (en) * 2018-12-03 2019-04-02 四川理工学院 A kind of store purchase system
US11010536B2 (en) * 2018-12-20 2021-05-18 AINS, Inc. Systems and methods for dynamic web user interface generation

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于Web报表工具的设计与应用研究;杨敬业;《信息与电脑(理论版)》;20100531(第10期);第57页 *

Also Published As

Publication number Publication date
CN113031928A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
CN107370786B (en) General information management system based on micro-service architecture
CN109710236B (en) Service development and implementation method, device, platform and medium based on shared service
US20180240130A1 (en) System, information management method, and information processing apparatus
CN108427550B (en) Web service generation method, device and equipment
CN107749894A (en) A kind of safety, simple, intelligence Internet of things system
TW201439792A (en) System and method for accessing database
US10089371B2 (en) Extensible extract, transform and load (ETL) framework
CN111580820A (en) Applet generation method and device
CN111651746A (en) Login data processing method, device, equipment and system
CN112511653B (en) Service authority activation method, configuration method and registration method of Internet of things equipment
US11882154B2 (en) Template representation of security resources
CN110704833A (en) Data permission configuration method, device, electronic device and storage medium
CN113031928B (en) Web system generation method and device, electronic equipment and computer readable storage medium
CN110537167A (en) The automatic supply of application program
CN113282591B (en) Authority filtering method, authority filtering device, computer equipment and storage medium
CN111078424A (en) Information interaction method and device, computer equipment and storage medium
CN113971191A (en) Data import method and device and computer readable storage medium
CN111752964A (en) Data processing method and device based on data interface
CN111277595B (en) User and data management method suitable for multiple users and multiple terminals
US20220345517A1 (en) Unified application management for heterogeneous application delivery
CN113495887A (en) Data form processing method, device and system
CN111459907A (en) Method, system and storage medium for configuring master data through model
CN114143187B (en) Intelligent platform interface network address management method, system, terminal and storage medium
JP2001175604A (en) Device and method for information processing, device and method for provision, and program storage medium
CN104980329A (en) Address book management method address book management device and mobile agent server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant