Method, system and electronic device for rapid construction of information system
By registering and evaluating components on a low-code development platform, the rapid construction of an information system is solved, and the repetitive development and security problems in traditional systems are improved, and the development efficiency and system security are improved.
Patent Information
- Application Number
- CN202410966144.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-07-18
AI Technical Summary
Traditional single-systems are difficult to achieve data information interoperability between different services, resulting in a lot of repetitive development work, low development efficiency, and lack of unified data quality management and system security guarantees.
Register components on low-code development platforms, realize general development and security judgment of components through component development, authentication, and security evaluation, use the token mechanism for authentication, and generate an information system through canvas construction and data configuration.
It has realized the rapid construction of an information system, improved development efficiency and security, improved system flexibility and maintainability, and reduced user technical thresholds and engineering construction costs.
Smart Images

Figure CN118502746B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of information system construction, and in particular to a method and system and electronic equipment for rapid construction of an information system. Background Art
[0002] In the process of digital construction, the requirements for cross-departmental collaboration and multi-scenario comprehensiveness are getting higher and higher. The traditional single system is difficult to achieve data information exchange between different businesses and is relatively isolated. And with the increase in repetitive development work, the basic support service capabilities have invested more, consuming the business team's focus on the business itself and development energy. At the same time, personalized problems are difficult to avoid in the system development process, lack of componentized and modular free assembly and construction capabilities, and inconsistent data, untimely phenomena, and security issues often occur. There is a lack of unified data quality management and standard specifications and system security guarantees. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a method, system, and electronic device for quickly building an information system, so as to solve the technical problems existing in the related technologies, such as the integration and deployment of applications with different development languages and different frameworks, a lot of repetitive development work, low development efficiency, difficulty in unified management, and lack of security.
[0004] According to a first aspect of an embodiment of the present application, a method for quickly constructing an information system is provided, wherein the information system includes components and assemblies, including:
[0005] Register on the low-code development platform and obtain component serial numbers and keys. The components are divided into interface components and interface components;
[0006] Evaluate the functionality, performance and security of the components to verify whether they meet the registration and launch requirements;
[0007] A token mechanism is used in the low-code development platform to authenticate the component based on the serial number and key to verify whether the user has the right to access the system;
[0008] Obtain the right to use the component through the product registration module provided by the low-code development platform to determine whether the component's operating environment is safe;
[0009] In the low-code development platform, select Run Terminal and create a canvas, and set the canvas size and viewport margins;
[0010] Drag the required components and interface components to the canvas on the low-code development platform;
[0011] Set the attribute information of components and assemblies, configure and access data, and update the data to be displayed in real time;
[0012] After the layout is completed, save it and generate the information system.
[0013] Optionally, register on the low-code development platform and obtain the component serial number and key. The components are divided into interface components and interface components, including:
[0014] Register on the low-code development platform and obtain the component serial number and key;
[0015] Use vue2 and vue3 frameworks to develop the interface components;
[0016] According to the development template provided by the low-code development platform, fill in the serial number and URL in the configuration file and the front-end project entry file of the development template, and write user code in App.vue to develop interface components, including interface and style design implementation of interface components;
[0017] The interface class component is developed using Java language, the serial number is bound in the entry function, and the https protocol is used to interact with the running carrier. The external interface adopts the POST method, the data format is json format, and the mobile phone number, ID number, bank card number, and email address need to be encrypted for transmission.
[0018] Optionally, evaluate the functionality, performance, and security of the component to verify whether it meets the registration and launch conditions, including:
[0019] Interface components need to undergo performance verification. If the call response time of the interface component is less than the first threshold, the request success rate is greater than the second threshold, and the concurrent support is greater than the third threshold, it indicates that the performance verification has passed and subsequent operations are performed. Otherwise, it indicates that the interface component does not meet the registration and online conditions.
[0020] Based on the security test report and functional test report provided by the developer, the interface components and interface components are evaluated for security and functionality. If both the security and functionality evaluations are met, it indicates that the registration and online conditions are met; otherwise, it indicates that the interface components and interface components do not meet the registration and online conditions.
[0021] Optionally, obtain the right to use the component through the product registration module provided by the low-code development platform to determine whether the component's operating environment is safe, including:
[0022] Obtain the right to use components through the product registration module provided by the low-code development platform;
[0023] After successful acquisition, the component environment is determined through the front-end JS method. If it is determined to be a safe environment, the component is run, otherwise the running of the component is prohibited.
[0024] Optionally, drag the components and interface components you want to use onto the canvas on the system development platform, including:
[0025] According to the following formula, calculate the scaling ratio of the display page where the components and interface components are located;
[0026] zoom = system resolution / (clientWidth - viewport margin)
[0027] In the formula, zoom is the zoom ratio, clientWidth is the width of the component, viewport margin refers to the distance between the bounding component and the interface component and the edge of the screen, and system resolution is the automatically acquired resolution of the user device;
[0028] If the absolute value of the difference between the center distance of the dragged component or assembly and the center distance of the surrounding components or assembly is not greater than the product of the fourth threshold and the zoom, the dragged component is automatically adsorbed to the edges of the surrounding components or assembly at the canvas location for alignment; otherwise, the user can continue to drag the component to a suitable position, and automatically adsorb it based on the adsorption threshold to align the component or assembly with the scale line or other parts to ensure a neat page layout.
[0029] Optionally, set the property information of components and interface components, and configure and access data, including:
[0030] Set the attribute information of components and interface components, including size information, style information and text information;
[0031] Set the data interface of the components and interface components. The data interface is the API provided by the interface components. Get data from the data interface and display it in the specified position of the components and interface components.
[0032] According to a second aspect of an embodiment of the present application, a system for rapidly constructing an information system is provided, wherein the information system includes components and assemblies, and is characterized in that it includes:
[0033] A registration module, used to register on the low-code development platform and obtain component serial numbers and keys. The components are divided into interface components and interface components;
[0034] The evaluation and verification module is used to evaluate the function, performance and security of the component to verify whether it meets the registration and launch conditions;
[0035] The authentication module is used to authenticate components using the token mechanism in the low-code development platform to verify whether the user has the right to access the system;
[0036] The security judgment module is used to obtain the right to use the component through the product registration module provided by the low-code development platform to determine whether the operating environment of the component is safe;
[0037] The canvas creation module is used to select the running terminal and create a canvas on the low-code development platform, and set the canvas size and viewport margins;
[0038] The drag module is used to drag the required parts and components to the canvas on the low-code development platform;
[0039] The update module is used to set the attribute information of components and assemblies, configure and access data, and update the data to be displayed in real time;
[0040] The generation module is used to save the layout after it is completed and generate the information system.
[0041] According to a second aspect of an embodiment of the present application, there is provided an electronic device, including:
[0042] one or more processors;
[0043] A memory for storing one or more programs;
[0044] When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in the first aspect.
[0045] According to a second aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which computer instructions are stored. When the instructions are executed by a processor, the steps of the method described in the first aspect are implemented.
[0046] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0047] It can be seen from the above embodiments that the present application develops and builds the system on a low-code development platform, introduces a universal component development mechanism, and finally adopts an authentication method and a component operating environment judgment security protection method, thereby overcoming the technical problems of low development efficiency and inconsistent system security caused by a lot of repetitive development work and inconsistent technical routes, and then breaks the technical barriers, realizes unified compilation and rendering of terminals, achieves the purpose of rapid development, achieves high security and improves development convenience, and truly realizes worry-free development. This method not only effectively improves the system flexibility, maintainability, and reusability of water conservancy professional models, but also achieves the technical effect of greatly reducing the user's technical threshold and engineering construction costs.
[0048] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0050] Figure 1 The present invention is a flowchart of a method for quickly constructing an information system according to an exemplary embodiment.
[0051] Figure 2 It is a block diagram of a system for rapidly constructing an information system according to an exemplary embodiment.
[0052] Figure 3 The diagram is a schematic structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0053] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0054] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0055] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0056] In order to adapt to the needs of different user groups, we build a unified open platform, integrate resources, unify product management, complete the output of basic public capabilities, and realize an information system with unified standards, unified data, and unified operation and maintenance.
[0057] The embodiments of the present application provide a method and system for quickly building an information system, which unifies technical standards while improving R&D efficiency and security, shortens product launch time, and accelerates the process of digitalization and intelligence.
[0058] The information system includes components and assemblies. The components are general information system elements with the smallest granularity, such as buttons, input boxes, icons, charts, tabs, etc.; the assemblies are reusable units that are combined or customized by multiple components and have certain scene effects, such as water conservancy professional models, water and rainfall display, surface rainfall analysis, county-level five-color maps, etc.
[0059] As water conservancy informatization is at an early stage, there are more and more repetitive tasks in the system development process, and the existing development methods cannot meet the needs of different user groups. The following takes the construction of a water conservancy informatization system as an example to explain the technical solution of this application in detail, but it is certainly not limited to this.
[0060] Figure 1 is a flow chart of a method for quickly building an information system according to an exemplary embodiment. Figure 1 As shown, the method is applied in a terminal and may include the following steps:
[0061] S1: Register on the low-code development platform and obtain the component serial number and key. The components are divided into interface components and interface components. This step may include the following sub-steps:
[0062] S11: Register on the low-code development platform and obtain the component serial number and key;
[0063] Specifically, component function information (component name, component type, development contact, component introduction, etc.) is registered on the low-code development platform, and the low-code development platform automatically assigns the serial number and key of the registered component. The low-code development platform can use EasyV, DataV, etc.
[0064] The main purpose of this step is to generate an identity for the component to be developed, which will be used for component authentication and security protection in subsequent operations.
[0065] S12: Use vue2 and vue3 frameworks to develop the interface components;
[0066] Specifically, for interface components, use vue2 and vue3 frameworks for component development, and expose rendering functions, update functions, and destruction functions in the entry file according to the specification requirements. The rendering function describes how to render and display on the running carrier; the update function describes how the running carrier instructions respond and take corresponding actions; the destruction function describes how the component itself releases memory and recycles resources when the running carrier is destroyed;
[0067] The main purpose of this step is to unify the development framework and development standards to facilitate subsequent updates and maintenance.
[0068] S13: According to the development template provided by the low-code development platform, fill in the serial number and URL in the configuration file and the front-end project entry file of the development template, and write user code in App.vue to develop components, including the interface of the component and the style design implementation of the component;
[0069] Specifically, development is carried out based on the development template provided by the low-code development platform. The serial number and URL are configured in the configuration file of the development template and the front-end project entry file. User code is written in App.vue to develop components, including rendering functions, update functions, destruction functions, and implementation codes required for component functions. Interface design and style design, as well as data interface docking are required.
[0070] The main purpose of this step is to integrate some common functions into independent common components, such as the water and rainfall display commonly used in water conservancy systems, surface rainfall analysis, and county-level five-color maps (county-level five-color maps refer to five-color maps that are statistically analyzed at the county level, mainly to distinguish between provinces, cities, and counties), etc. The display forms of such components are varied, and different systems require repetitive development. Through unified functions and display styles, they are refined into universal components for developers to use. By providing component development methods, standardizing development processes and data access processes, a basis is provided for subsequent authentication and security protection operations.
[0071] S14: Use Java language to develop the interface class component, bind the serial number in the entry function, interact with the running carrier using the https protocol, use the POST method for the external interface, the data format is json format, and the mobile phone number, ID number, bank card number, and email address must be encrypted for transmission.
[0072] Specifically, the interface components are developed in Java and interact using the https protocol. The https protocol supports POST / GET requests. There is a relationship between request and response in POST, and it is more secure than the GET method, so the external interface uses the POST method. The interactive data format is json, and in order to ensure the privacy of the data, the mobile phone number, ID number, bank card number, and email address must be encrypted for transmission.
[0073] The main purpose of this step is to integrate common functions into interface components, such as hydraulic models commonly used in water conservancy systems, video AI models, etc., which are developed by developers in related professional fields, so that business developers do not need to pay attention to details and improve development efficiency.
[0074] S2: Evaluate the function, performance and security of the component to verify whether it meets the registration and launch conditions; this step may include the following sub-steps:
[0075] S21: The interface component needs to undergo performance verification. If the call response time of the interface component is less than the first threshold, the request success rate is greater than the second threshold, and the concurrent support is greater than the third threshold, it indicates that the performance verification has passed, and S22 is executed. Otherwise, it indicates that the interface component does not meet the registration and online conditions.
[0076] Specifically, a dedicated testing tool such as Postman is used to test the call response time, request success rate, and concurrent support of the interface class component. If the call response time is less than the first threshold, the request success rate is greater than the second threshold, and the concurrent support is greater than the third threshold, it indicates that the performance verification has passed and the interface class component meets the registration and online conditions. Otherwise, it indicates that the interface class component does not meet the registration and online conditions. The interface request response time generally refers to the time it takes from a request initiated by the client to the time the client receives a response from the server. This time is related to network latency and the response of the application. The interaction process may be affected by network latency, jitter, data processing, etc. The interface response time is generally between several hundred milliseconds and several tens of seconds. To ensure the customer's user experience, the interface request response time, i.e., the first threshold, shall not exceed 2 seconds. The request success rate generally refers to the ratio of successful interface requests that can be returned normally. When the network and server are normal, the interface request success rate indicates the stability of the system. Generally speaking, an interface request success rate of more than 95% can ensure that users can normally access and use the various functions of the system. In order to provide customers with a better experience, the interface request success rate, i.e., the second threshold, is 99%. Concurrency support generally refers to the number of requests processed per second. Generally speaking, concurrency is affected by multiple factors, including system architecture, network, etc. To ensure user experience, 50 is used.
[0077] The main purpose of this step is to verify the performance of interface components, so as to determine whether the interface components meet the registration and online conditions. Since the subsequent information system will be provided to multiple users for use after its release, if the performance does not meet the standards, it will greatly affect the user experience, resulting in reduced user trust and usage of the information system.
[0078] S22: Based on the security test report and functional test report provided by the developer, the interface class components and the interface class components are evaluated for security and functionality. If both the security and functionality evaluations are met, it indicates that the registration and online conditions are met. Otherwise, it indicates that the interface class components and the interface class components do not meet the registration and online conditions.
[0079] Specifically, the security test report and functional test report provided by the developer are evaluated to determine whether the security and functionality of the interface class components and interface class components meet the requirements. If they meet the online requirements, it means that the interface class components and interface class components meet the registration and online conditions; otherwise, it means that the interface class components and interface class components do not meet the registration and online conditions.
[0080] The main purpose of this step is to further evaluate the interface components and interface components based on the security test report and functional test report provided by the developer, because once the components are online, they will be provided to users for use, and the security and performance of the components used by users must be guaranteed. The components that are online will be accessible to developers, who can use any online components, and the low-code platform will also classify components according to different businesses.
[0081] S3: Use the token mechanism to authenticate components in the low-code development platform to verify whether the user has the right to access the system;
[0082] Specifically, the component registers the business data interface, forwards business data through the interface of the low-code platform, and integrates the forwarding interface into the front-end JS method. The low-code development platform uses a token mechanism to authenticate the interface class components based on the serial number and key. A token is issued when the serial number and key are exactly the same as those issued when registering on the low-code platform to ensure data security.
[0083] The main purpose of this step is to ensure data security through authentication methods.
[0084] S4: Obtain the right to use the component through the product registration module provided by the low-code development platform to determine whether the operating environment of the component is safe; this step may include the following sub-steps:
[0085] S41: Obtain the right to use the component through the product registration module provided by the low-code development platform;
[0086] Specifically, the right to use the interface component is obtained through the product registration module provided by the low-code development platform, and the component use application approval process is completed.
[0087] The main purpose of this step is to provide a basis for subsequent steps to determine whether the component operating environment is safe.
[0088] S42: After the acquisition is successful, the component environment is determined by the front-end JS method. If it is determined to be a safe environment, the component is run, otherwise the running of the component is prohibited.
[0089] Specifically, after successfully obtaining the right to use the interface class component, the interface class component environment is determined through the front-end JS method. If it is determined to be a safe environment, the interface class component is run, otherwise the operation of the interface class component is prohibited.
[0090] The main purpose of this step is to prevent components from being rendered in any product other than the low-code development platform and authorized products, thereby ensuring the security of components.
[0091] S5: Select the running terminal and create a canvas on the low-code development platform, and set the canvas size and viewport margins; this step may include the following sub-steps:
[0092] Specifically, when developing an information system on a low-code development platform, a system development project is established before development, and the terminal carrier that will ultimately run the system is selected. Taking into account the differences in screen size, resolution and operating system of different terminals, the type of terminal carrier must be determined, which can be a PC or a mobile terminal (mobile phone). A canvas is established, and the width and height of the canvas are set according to the screen size and resolution of the target terminal. Currently, the PC and collection terminals can basically reach a resolution of 1080P (1920×1080) or a multiple of the resolution. Therefore, in order to coordinate subsequent adaptive resolution scaling operations, a resolution of 1080P is used. The viewport margin is set. The viewport margin refers to the distance between the boundary components and interface components and the edge of the screen. A suitable viewport margin is set to ensure that the interface is not distorted. Generally speaking, users of different devices and screen sizes may require different viewport margins. Smaller devices and screens may require smaller margins to make better use of limited space.
[0093] The main purpose of this step is to establish a system development project and select the carrier that the system will eventually run on. Subsequent layout and design of the system are based on this. After setting the canvas parameters, you can develop the system based on the project.
[0094] S6: Drag the required components and interface components to the canvas on the low-code development platform; this step may include the following sub-steps:
[0095] S61: Calculate the scaling ratio of the display page where the component or interface component is located according to the following formula;
[0096] zoom = system resolution / (clientWidth - viewport margin)
[0097] In the formula, zoom is the zoom ratio, clientWidth is the width of the component and interface component, viewport margin refers to the distance between the component and the edge of the screen, and system resolution is the automatically acquired resolution of the user device;
[0098] Specifically, in the sidebar of the canvas, available components and interface components can be found, including buttons, input boxes, icons, charts, tabs, etc. The components are interface components that have been developed and launched, including water and rainfall icons, surface rainfall analysis, county-level five-color maps and other water conservancy components. Developers can select relevant components according to their needs and push and drag them to the appropriate position of the canvas, and then adjust the size of the components according to their needs. The system calculates the scaling ratio of the components and interface components based on the formula.
[0099] The main purpose of this step is to ensure that the components and interface components can be automatically scaled according to the scaling ratio on running carriers with different resolutions, so that the interface is more robust and adaptable, and at the same time provide a calculation basis for subsequent automatic adsorption operations.
[0100] S62: If the absolute value of the difference between the center distance of the dragged component or interface component and the center distance of the surrounding components or components is not greater than the product of the fourth threshold and the zoom, the dragged component is automatically adsorbed to the edges of the surrounding components or components at the canvas location for alignment; otherwise, the operating user can continue to drag the component to a suitable position, and automatically adsorb it based on the adsorption threshold to align the component or interface component with the scale line or other parts to ensure a neat page layout.
[0101] Specifically, since the sizes of the components and interface components used are inconsistent, it is difficult to align and arrange them with other components and interface components. The canvas automatically detects the action of dragging components and interface components, and obtains the position coordinates of the current components and interface components during the process of dragging components and interface components. The absolute value of the difference between the center distance of the component and interface component itself and the center distance of the surrounding components and components is calculated. If the absolute value of the difference is greater than the product of the fourth threshold and the scaling ratio, it indicates that adsorption is not required. Otherwise, if the absolute value of the difference is less than or equal to the product of the fourth threshold and the scaling ratio, it indicates that adsorption is required. In this case, automatic adsorption, alignment and arrangement will be performed during the dragging process. Generally speaking, the fourth threshold is the degree of proximity required for parts and interface components to be adsorbed to other objects or interface edges. The value range needs to take into account the interface size and accuracy, the user's freedom of operation and user experience. A smaller adsorption threshold can achieve a more precise alignment effect, but may cause elements to be frequently adsorbed during movement, which may interfere with the designer's workflow. A larger adsorption threshold can increase the fault tolerance between elements, but may result in inaccurate alignment. It is generally set to 1 / 100 of the system resolution, that is, 10-20 pixels. In order to be compatible with application scenarios of various resolutions, the default setting is 10.
[0102] The main purpose of this step is to align components and interface components with tick marks or other parts to ensure a neat page layout and make the design and development of the layout more efficient.
[0103] S7: Setting the attribute information of the components and interface components, configuring and accessing the data, and updating the data to be displayed in real time; this step may include the following sub-steps:
[0104] S71: Setting attribute information of components and interface components, wherein the attribute information includes size information, style information and text information;
[0105] Specifically, each widget or interface component has its own properties, and their appearance and behavior can be configured by setting these properties, such as setting the number of columns, rows, column width, row height of a table, the color of widgets and interface components, and theme content.
[0106] The main purpose of this step is to set the properties of parts and interface components so that they can be displayed according to user needs, and to design the size and style for better user display effects.
[0107] S72: Setting data interfaces of components and interface components. The data interfaces are APIs provided by interface components. Data is obtained from the data interfaces and displayed at designated locations of components and interface components.
[0108] Specifically, since the content of components and interface components may change dynamically, the displayed content needs to be obtained from the data interface. By defining the specifications and methods of the data interface through components and interface components, and binding the interface methods to components and interface components, data can be obtained from the data interface, data interaction can be performed, and the data can be displayed at the location specified by the components and interface components, thereby achieving the effect of real-time updating of data content.
[0109] The main purpose of this step is to update the data content to be displayed in real time.
[0110] S8: After the layout is completed, save it and generate an information system.
[0111] Specifically, after the layout is completed, you can preview it to check the completeness and accuracy of the layout file. At the same time, the layout needs to be tested and debugged, such as whether the data is displayed normally, whether it can be run when deployed on other computers, whether there will be interface misalignment, etc., to ensure the stability and reliability of the system. If it meets user needs, you can save it to generate the information system that is finally provided to users.
[0112] The main purpose of this step is to generate an information system for users and to test the stability and reliability of the information system.
[0113] It can be seen from the above embodiments that the present application develops and builds the system on a low-code development platform, introduces a universal component development mechanism, and finally adopts an authentication method and a component operating environment judgment security protection method, thereby overcoming the technical problems of low development efficiency and inconsistent system security caused by a lot of repetitive development work and inconsistent technical routes, and then breaks the technical barriers, realizes unified compilation and rendering of terminals, achieves the purpose of rapid development, achieves high security and improves development convenience, and truly realizes worry-free development. This method not only effectively improves the system flexibility, maintainability, and reusability of water conservancy professional models, but also achieves the technical effect of greatly reducing the user's technical threshold and engineering construction costs.
[0114] Corresponding to the aforementioned embodiment of the method for rapidly constructing an information system, the present application also provides an embodiment of an apparatus for rapidly constructing an information system.
[0115] Figure 2 is a block diagram of a device for quickly building an information system according to an exemplary embodiment. Figure 2 , the device comprises:
[0116] Registration module 1, used to register on the low-code development platform and obtain component serial numbers and keys, the components are divided into interface components and interface components;
[0117] Evaluation and verification module 2 is used to evaluate the function, performance and security of the component to verify whether it meets the registration and launch conditions;
[0118] Authentication module 3 is used to authenticate components using a token mechanism in the low-code development platform to verify whether the user has the right to access the system;
[0119] The security judgment module 4 is used to obtain the right to use the component through the product registration module provided by the low-code development platform, and is used to determine whether the operating environment of the component is safe;
[0120] A canvas creation module 5 is used to select a running terminal and create a canvas in the low-code development platform, and to set the size of the canvas and the viewport margin;
[0121] Drag module 6, used to drag the required components and interface components to the canvas on the low-code development platform;
[0122] Update module 7, used to set the attribute information of components and interface components, configure and access data, and update the data to be displayed in real time;
[0123] The generation module 8 is used to save the layout after it is completed and generate an information system.
[0124] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0125] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying any creative work.
[0126] Accordingly, the present application also provides an electronic device, comprising: one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the method for rapidly building an information system as described above. Figure 3 As shown, it is a hardware structure diagram of any device with data processing capability in a system for rapid construction of an information system provided by an embodiment of the present invention, except Figure 3In addition to the processor, memory, DMA controller, disk, and non-volatile memory shown, any device with data processing capabilities in which the apparatus in the embodiment is located may also include other hardware, which will not be described in detail, generally based on the actual functions of the device with data processing capabilities.
[0127] Accordingly, the present application also provides a computer-readable storage medium on which computer instructions are stored, and when the instructions are executed by a processor, the method for rapid construction of an information system as described above is implemented. The computer-readable storage medium can be an internal storage unit of any device with data processing capabilities described in any of the aforementioned embodiments, such as a hard disk or a memory. The computer-readable storage medium can also be an external storage device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), an SD card, a flash card (Flash Card), etc. equipped on the device. Furthermore, the computer-readable storage medium can also include both an internal storage unit and an external storage device of any device with data processing capabilities. The computer-readable storage medium is used to store the computer program and other programs and data required by any device with data processing capabilities, and can also be used to temporarily store data that has been output or is to be output.
[0128] Those skilled in the art will readily appreciate other embodiments of the present application after considering the description and practicing the contents disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The description and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the claims.
[0129] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for rapidly constructing an information system, the information system comprising components and assemblies, characterized in that: include: Register on the low-code development platform and obtain component serial numbers and keys. The components are divided into interface components and interface components; Evaluate the functionality, performance and security of the components to verify whether they meet the registration and launch requirements; A token mechanism is used in the low-code development platform to authenticate the component based on the serial number and key to verify whether the user has the right to access the system; Obtain the right to use the component through the product registration module provided by the low-code development platform to determine whether the component's operating environment is safe; In the low-code development platform, select Run Terminal and create a canvas, and set the canvas size and viewport margins; Drag the required components and interface components to the canvas on the low-code development platform; Set the attribute information of components and assemblies, configure and access data, and update the data to be displayed in real time; After the layout is completed, save it and generate the information system; Among them, register on the low-code development platform and obtain the component serial number and key. The components are divided into interface components and interface components, including: Register on the low-code development platform and obtain the component serial number and key; Use vue2 and vue3 frameworks to develop the interface components; According to the development template provided by the low-code development platform, fill in the serial number and URL in the configuration file and the front-end project entry file of the development template, and write user code in App.vue to develop interface components, including interface and style design implementation of interface components; The interface class component is developed using Java language, the serial number is bound in the entry function, and the https protocol is used to interact with the running carrier. The external interface adopts the POST method, the data format is json format, and the mobile phone number, ID number, bank card number, and email address need to be encrypted for transmission; Among them, the product registration module provided by the low-code development platform is used to obtain the right to use the component to determine whether the operating environment of the component is safe, including: Obtain the right to use components through the product registration module provided by the low-code development platform; After successful acquisition, the component environment is determined through the front-end JS method. If it is determined to be a safe environment, the component is run, otherwise the running of the component is prohibited.
2. The method according to claim 1, characterized in that Evaluate the functionality, performance, and safety of the components to verify whether they meet the registration and launch requirements, including: Interface components need to undergo performance verification. If the call response time of the interface component is less than the first threshold, the request success rate is greater than the second threshold, and the concurrent support is greater than the third threshold, it indicates that the performance verification has passed and subsequent operations are performed. Otherwise, it indicates that the interface component does not meet the registration and online conditions. Based on the security test report and functional test report provided by the developer, the interface components and interface components are evaluated for security and functionality. If both the security and functionality evaluations are met, it indicates that the registration and online conditions are met; otherwise, it indicates that the interface components and interface components do not meet the registration and online conditions.
3. The method according to claim 1, characterized in that Drag the required components and interface components to the canvas on the system development platform, including: According to the following formula, calculate the scaling ratio of the display page where the components and interface components are located; zoom = system resolution / (clientWidth - viewport margin) In the formula, zoom is the zoom ratio, clientWidth is the width of the component, viewport margin refers to the distance between the bounding component and the interface component and the edge of the screen, and system resolution is the automatically acquired resolution of the user device; If the absolute value of the difference between the center distance of the dragged component or assembly and the center distance of the surrounding components or assembly is not greater than the product of the fourth threshold and the zoom, the dragged component is automatically adsorbed to the edges of the surrounding components or assembly at the canvas location for alignment; otherwise, the user can continue to drag the component to a suitable position, and automatically adsorb it based on the adsorption threshold to align the component or assembly with the scale line or other parts to ensure a neat page layout.
4. The method according to claim 1, characterized in that: Set the property information of components and interface components, and configure and access data, including: Set the attribute information of components and interface components, including size information, style information and text information; Set the data interface of the components and interface components. The data interface is the API provided by the interface components. Get data from the data interface and display it in the specified position of the components and interface components.
5. A system for rapidly constructing an information system, the information system comprising components and assemblies, characterized in that: include: A registration module, used to register on the low-code development platform and obtain component serial numbers and keys. The components are divided into interface components and interface components; The evaluation and verification module is used to evaluate the function, performance and security of the component to verify whether it meets the registration and launch conditions; The authentication module is used to authenticate components using the token mechanism in the low-code development platform to verify whether the user has the right to access the system; The security judgment module is used to obtain the right to use the component through the product registration module provided by the low-code development platform to determine whether the operating environment of the component is safe; The canvas creation module is used to select the running terminal and create a canvas on the low-code development platform, and set the canvas size and viewport margins; The drag module is used to drag the required parts and components to the canvas on the low-code development platform; The update module is used to set the attribute information of components and assemblies, configure and access data, and update the data to be displayed in real time; The generation module is used to save the layout after completion and generate the information system; Among them, register on the low-code development platform and obtain the component serial number and key. The components are divided into interface components and interface components, including: Register on the low-code development platform and obtain the component serial number and key; Use vue2 and vue3 frameworks to develop the interface components; According to the development template provided by the low-code development platform, fill in the serial number and URL in the configuration file and the front-end project entry file of the development template, and write user code in App.vue to develop interface components, including interface and style design implementation of interface components; The interface class component is developed using Java language, the serial number is bound in the entry function, and the https protocol is used to interact with the running carrier. The external interface adopts the POST method, the data format is json format, and the mobile phone number, ID number, bank card number, and email address need to be encrypted for transmission; Among them, the product registration module provided by the low-code development platform is used to obtain the right to use the component to determine whether the operating environment of the component is safe, including: Obtain the right to use components through the product registration module provided by the low-code development platform; After successful acquisition, the component environment is determined through the front-end JS method. If it is determined to be a safe environment, the component is run, otherwise the running of the component is prohibited.
6. An electronic device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 4.
7. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the instruction is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
