Nothing Special   »   [go: up one dir, main page]

CN116431200A - Configuration method, device, equipment and storage medium for application data configuration information - Google Patents

Configuration method, device, equipment and storage medium for application data configuration information Download PDF

Info

Publication number
CN116431200A
CN116431200A CN202310419716.4A CN202310419716A CN116431200A CN 116431200 A CN116431200 A CN 116431200A CN 202310419716 A CN202310419716 A CN 202310419716A CN 116431200 A CN116431200 A CN 116431200A
Authority
CN
China
Prior art keywords
configuration
service
data
page
configuration information
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.)
Pending
Application number
CN202310419716.4A
Other languages
Chinese (zh)
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.)
Shenzhen Yishi Huolala Technology Co Ltd
Original Assignee
Shenzhen Yishi Huolala 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 Shenzhen Yishi Huolala Technology Co Ltd filed Critical Shenzhen Yishi Huolala Technology Co Ltd
Priority to CN202310419716.4A priority Critical patent/CN116431200A/en
Publication of CN116431200A publication Critical patent/CN116431200A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • 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)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a configuration method, a device, equipment and a storage medium for application data configuration information, wherein the method comprises the steps of customizing and generating a service-related configuration template, wherein the configuration template comprises configuration rules; creating a service configuration page according to configuration rules; the configuration information is visually edited on the service configuration page. The configuration template is a mode or rule related to service configuration and is used for describing a configuration data structure and realizing data structuring of configuration information. The configuration data structure is used for mapping the page structure, constructing and generating a corresponding service configuration page, carrying out visual editing on the service, creating or modifying the configuration information of the service, realizing the data interaction between the configuration rule and the service configuration page in the dynamic visual modification of the configuration information, and solving the problem that the service configuration is abnormal due to easy writing of wrong symbols or correction of wrong fields. The invention visually edits the configuration rule data and standardizes the configuration rule flow, thereby facilitating the use and modification of different personnel.

Description

Configuration method, device, equipment and storage medium for application data configuration information
Technical Field
The present application relates to the field of data visualization technologies, and in particular, to a method, an apparatus, a device, and a storage medium for configuring application data configuration information.
Background
With increasing complexity of program functions, the configuration of programs is increasing: the expected values for the program configuration are also higher and higher for the switch of various functions, the configuration of parameters, the address of a server, and the like: the configuration is effective in real time after modification, gray level release, diversity group management configuration, perfect authority, audit mechanism and other configuration services. Under such a large environment, the conventional method of configuration files, databases and the like cannot meet the requirements of developers on configuration management, and an Apollo (Apollo) configuration center generates-!
Apollo is an open source configuration management center developed by a carrying frame department, so that configuration can be managed in a centralized manner, updated in real time and separated from an application, configuration of different environments and different clusters of the application can be managed in a centralized manner, the configuration can be pushed to an application end in real time after being modified, and the Apollo has the characteristics of normative authority, flow management and the like and is suitable for a micro-service configuration management scene. Apollo is developed based on an open source mode, and supports configuration of 4-dimension management Key-Value format: application, environment, cluster, namespace. However, the following problems exist in the service data configuration based on the Apollo directly:
1. as shown in fig. 1, json data in Apollo is defined by Json Schema to realize data structuring, the Apollo data is shown in a Key-Value mode, and the Value of service configuration is generally Json format data, if the Json data is directly modified, symbols are easily written or fields are easily corrected, so that the service configuration is abnormal.
2. As shown in fig. 2, the existing model of Apollo is as follows:
(1) User modifies configuration in configuration center and issues configuration
(2) The configuration center informs the Apollo client that there is a configuration update
(3) The Apollo client pulls the latest configuration from the configuration center, updates the local configuration and notifies the application.
The existing mode is inconvenient for different operators to use.
3. If the data of Apollo is to be displayed in a customized and page structured form, a set of interfaces and front-end pages need to be redeveloped by research personnel, the back-end interfaces are unified, repeated development of business is avoided, and more manpower and material resources are needed to be consumed.
Disclosure of Invention
An embodiment of the present application is directed to a configuration method, device, equipment and storage medium for configuring information of application data, which aims at solving the technical problem that in the prior art, configuration data is directly modified to easily write error symbols or error correction fields, so that abnormal service configuration is generated.
In order to solve the above technical problems, an embodiment of the present application provides a configuration method for application data configuration information, including the following steps:
customizing and generating a service-related configuration template, wherein the configuration template comprises configuration rules;
creating a service configuration page according to the configuration rule;
and visually editing configuration information on the service configuration page.
Further, the customizing and generating a service-related configuration template, the configuration template comprising the steps of configuring rules, includes:
constructing a form structure and defining a data specification;
generating a corresponding form according to the form structure and the data specification, wherein the form describes a configuration data structure;
and mapping a corresponding page structure according to the configuration data structure described by the form to generate a service configuration interface.
Further, the configuration data structure is logically verified.
Furthermore, the service configuration page is provided with an identifier, and the service configuration page is embedded into a service system in an associated manner according to the identifier.
Further, the configuration rule is encapsulated in an API interface, and configuration information of the configuration rule is modified according to the API interface.
Further, the configuration rules may be associated with remote interfaces, dynamically setting configuration data.
Further, the step of visually editing configuration information on the service configuration page includes:
and carrying out data interaction on the configuration rules and the service configuration page.
In order to solve the above technical problem, an embodiment of the present application further provides a configuration device for configuring information of application data, including:
the configuration rule management module is used for customizing and generating a configuration template related to the service, and the configuration template comprises configuration rules; creating a service configuration page according to the configuration rule; visually editing configuration information on the service configuration page;
and the configuration data management module is used for managing the data interaction of the configuration rules.
In order to solve the above technical problems, the embodiments of the present application further provide a computer device, which adopts the following technical schemes:
a computer device comprising a memory, a processor and a network interface, said memory storing a computer program, said processor implementing the steps of the above-mentioned method for configuring application data configuration information when executing said computer program.
In order to solve the above technical problems, embodiments of the present application further provide a computer readable storage medium, which adopts the following technical solutions:
a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the above-described configuration method of application data configuration information.
Compared with the prior art, the embodiment of the application has the following main beneficial effects:
the embodiment of the application provides a configuration method for application data configuration information, which comprises the steps of customizing and generating a service-related configuration template, wherein the configuration template comprises configuration rules; creating a service configuration page according to the configuration rule; and visually editing configuration information on the service configuration page. In the embodiment of the invention, the configuration template is a mode or rule related to service configuration and is used for describing a configuration data structure and realizing data structuring of configuration information. The configuration data structure is used for mapping a page structure, constructing and generating a corresponding service configuration page, carrying out visual editing configuration information on the service based on the service configuration page, creating or modifying the configuration information of the service, realizing dynamic visual modification of the configuration information, completing data interaction on the configuration rule and the service configuration page, and solving the problem that the service configuration is abnormal due to easy writing of wrong symbols or field correction. The embodiment of the invention visualizes the configuration rule data, intuitively modifies the configuration information, solves the problem that the data is easy to make mistakes, standardizes the configuration rule flow, and is convenient for different personnel to use and modify.
Drawings
For a clearer description of the solution in the present application, a brief description will be given below of the drawings that are needed in the description of the embodiments of the present application, it being obvious that the drawings in the following description are some embodiments of the present application, and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art.
FIG. 1 is a prior art configuration data modification schematic;
FIG. 2 is a schematic diagram of a prior art Apollo model;
FIG. 3 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;
FIG. 4 is a flow chart of a configuration method of application data configuration information of the present application;
FIGS. 5-8 are process-flow diagrams of a method for configuring application data configuration information of an application;
FIG. 9 is a schematic structural diagram of one embodiment of a configuration device for application data configuration information of the present application;
FIG. 10 is a schematic structural diagram of one embodiment of a computer device according to the present application.
Reference numerals:
Figure BDA0004186320850000041
Figure BDA0004186320850000051
Detailed Description
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used in the description of the applications herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "comprising" and "having" and any variations thereof in the description and claims of the present application and in the description of the figures above are intended to cover non-exclusive inclusions. The terms first, second and the like in the description and in the claims or in the above-described figures, are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
In order to better understand the technical solutions of the present application, the following description will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings.
As shown in fig. 3, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user can interact with the server 105 through the network 104 by using the terminal devices 101, 102, 103 to complete configuration information interaction and the like, and operate the service and application of the configuration method of the application data configuration information. For example, when the terminal devices 101, 102, 103 need to configure application configuration information for the target application program, a configuration request is sent to the server 105 through the network 104, where the configuration request may carry an application identifier of the target application program, the server 105 responds to the configuration request, obtains the configuration information according to the application identifier carried in the configuration request, for example, may obtain corresponding configuration data from a database according to the application identifier, and then sends the configuration data to the terminal devices 101, 102, 103, and the terminal devices 101, 102, 103 render a visual configuration interface according to the configuration data, so that a user may modify or edit the configuration data in the visual configuration interface and save the configuration data.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to user devices, network devices, or devices formed by integrating user devices with network devices through a network. The user equipment comprises, but is not limited to, any mobile electronic product which can perform man-machine interaction with a user through a touch pad, such as a smart phone, a tablet computer and the like, and any operating system can be adopted by the mobile electronic product, such as an android operating system, an iOS operating system and the like. The network device comprises an electronic device capable of automatically performing numerical calculation and information processing according to a preset or stored instruction, and the hardware of the electronic device comprises, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a programmable gate array (FPGA), a digital processor (DSP), an embedded device and the like. The network device includes, but is not limited to, a computer, a network host, a single network server, a plurality of network server sets, or a cloud of servers; here, the Cloud is composed of a large number of computers or network servers based on Cloud Computing (Cloud Computing), which is a kind of distributed Computing, a virtual supercomputer composed of a group of loosely coupled computer sets. Including but not limited to the internet, wide area networks, metropolitan area networks, local area networks, VPN networks, wireless Ad Hoc networks (Ad Hoc networks), and the like. Of course, those skilled in the art will appreciate that the above-described terminal devices are merely examples, and that other terminal devices now known or that may be hereafter developed are intended to be within the scope of the present application, and are incorporated herein by reference.
The server 105 may be a server, a server cluster comprising a plurality of servers, or a cloud computing service center. It may also be a server providing various services, such as a background server providing support for pages displayed on the terminal devices 101, 102, 103.
It should be noted that, the configuration method of the application data configuration information provided in the embodiments of the present application is generally executed by the terminal device, and accordingly, the configuration device of the application data configuration information is generally set in the terminal device.
It should be understood that the number of terminal devices, networks and servers in fig. 3 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With the popularity of micro services, more and more companies uniformly manage configuration by introducing configuration center services, so that the more popular configuration center services in the market at present, such as Apollo (also called Apollo, a distributed configuration center developed by the framework departments of the carrier company) provide a uniform interface to centrally manage configuration of different environments (environments), different clusters (clusters) and different namespaces (namespaces), after the Apollo modifies the configuration and issues the configuration, a client can receive the latest configuration in real time (1 second) and notify the application program, and the Apollo itself provides a perfect uniform configuration management interface to support the characteristics of multiple environments, multiple data center configuration management, authority, process management and the like. .
In view of the problems existing in the background art, the following technical solutions are proposed in the present application. Referring to fig. 4, a flow chart of one embodiment of a configuration method for applying data configuration information according to the present application is shown. The configuration method of the application data configuration information comprises the following steps:
401: a business-related configuration template is customized and generated, the configuration template comprising configuration rules.
402: and creating a service configuration page according to the configuration rule.
403: and visually editing configuration information on the service configuration page.
In the embodiment of the invention, the configuration template is a mode or rule related to service configuration and is used for describing a configuration data structure and realizing data structuring of configuration information. The configuration data structure is used for mapping a page structure, constructing and generating a corresponding service configuration page, carrying out visual editing configuration information on the service based on the service configuration page, creating or modifying the configuration information of the service, realizing dynamic visual modification of the configuration information, completing data interaction on the configuration rule and the service configuration page, and solving the problem that the service configuration is abnormal due to easy writing of wrong symbols or field correction. The embodiment of the invention visualizes the configuration rule data, intuitively modifies the configuration information, solves the problem that the data is easy to make mistakes, standardizes the configuration rule flow, and is convenient for different personnel to use and modify.
It should be noted that, the data of the service configuration page is generated in a customized manner according to the configuration rule, and the configuration page may be an object or a list structure. In one implementation manner, the configuration template generates a corresponding form according to a form structure and a data specification of the configuration rule by constructing the form structure of service configuration data and defining the data specification of the configuration rule, wherein the form describes the configuration data structure; and according to the configuration data structure of the service configuration requirement described by the form, mapping a page structure corresponding to the service configuration requirement according to the configuration data structure, and automatically rendering to generate a corresponding service configuration interface.
In an embodiment of the present invention, the service configuration page map is configured visually, as shown in fig. 5, and a form designer may drag a required component to generate a form structure of the service configuration data, and set a data specification of the service data for the form structure to customize a configuration rule. According to the embodiment, zero code generation of the front-end page can be realized through the form generator, front-end codes and back-end codes do not need to be developed, the research and development cost is greatly reduced, and the research and development efficiency is improved.
In other embodiments, the configuration rule of the customized target service may be implemented in other manners, which is not limited in this embodiment, for example, a form structure of service configuration data is constructed through programming, a data specification of the configuration rule is defined, and a corresponding form is generated according to the form structure and the data specification.
In one implementation manner, the service configuration page is also the configuration information of the visual editing target service, so that the dynamic visualization of the service configuration page is realized. Specifically, the service configuration page realizes interaction of configuration data and provides functions of data synchronization, editing, checking, storage, publishing and the like.
It should be noted that, the configuration rule is stored in a first storage element having a storage function, such as a database, a storage, or a server, and when the configuration page needs to be operated, a corresponding service configuration page can be produced and rendered according to the configuration template. Specifically, in this embodiment, the configuration rules are managed in a unified manner, including configuration rule services such as adding, deleting, editing, querying, and the like, and the configuration rules are used for creating, querying, modifying, or deleting configuration rules of the target service in the visual interface.
It should be noted that, the service configuration page and the configuration information thereof are stored in the second storage element, and the service configuration page can be used for different operators to operate, so as to dynamically configure service data, complete interaction of the service data, and realize bidirectional intercommunication of the data in the second storage element and the service page data. Specifically, the data interaction operation includes, but is not limited to, acquiring, synchronizing, editing, checking, saving, publishing, etc. the configuration information of the target service is input or deleted at the visual interface by monitoring the data processing service that changes or otherwise changes the service configuration information.
It should be noted that, in the embodiment of the present invention, the configuration data structure is logically checked, so as to improve accuracy of the configuration rule and the configuration information. Specifically, in this embodiment, a check rule or check logic may be set according to a field of a configuration rule or constraint information of metadata, to determine whether the configuration information is legal, and if the configuration information does not pass the check, the prompt information is returned by throwing out an exception.
It should be noted that, the configuration rule includes at least one service scenario of the target service, and the embodiment may also call the remote interface to check the application scenario.
It should be noted that, the service configuration page is provided with an identifier, and the service configuration page is embedded into the service system in an associated manner according to the identifier, so that the service configuration page is used by personnel with different roles in different application scenarios. Specifically, the present invention relates to a method for manufacturing a semiconductor device. The embodiment of the invention sets the unique link to the service configuration page, and embeds the link into different systems of the target service, thereby being convenient for corresponding service personnel to use. Of course, the present embodiment is not limited to identifying the service configuration page by other means to integrate or embed into other applications.
It should be noted that, the configuration rule is encapsulated in an API, and the service configuration page is obtained and accessed according to the API, so as to modify the configuration data or the configuration information, thereby implementing synchronization and update of the configuration data.
Further, the configuration rule may be associated with a remote interface, dynamically set configuration data, and obtain remote data.
The embodiment of the invention describes the configuration data structure by customizing and generating the configuration template related to the target service, and realizes the data structuring of the configuration information. The configuration data structure is used for mapping a page structure, constructing and generating a corresponding service configuration page, carrying out visual editing configuration information on the service based on the service configuration page, creating or modifying the configuration information of the service, realizing dynamic visual modification of the configuration information, completing data interaction on the configuration rule and the service configuration page, and solving the problem that the service configuration is abnormal due to easy writing of wrong symbols or field correction. The embodiment of the invention visualizes the configuration rule data, intuitively modifies the configuration information, solves the problem that the data is easy to make mistakes, standardizes the configuration rule flow, and is convenient for different personnel to use and modify.
In one embodiment of the present invention, the method for configuring application data configuration information is applied in the configuration platform shown in fig. 6, and the method can provide different roles of personnel to configure application configuration information for each application program, such as operators and developers. Illustratively, a development end user edits a business data structure, customizes configuration rules on the edited pages, and renders the generated business configuration pages according to the configuration rules. When application configuration information is required to be configured for a target application program, a developer or an operator can directly acquire a visual configuration interface of a service configuration page, modify or edit configuration service data on the visual interface, and synchronously update and store the modified configuration data.
In the embodiment of the invention, the configuration requirement is managed through an Apollo configuration center, and the Apollo configuration center customizes the configuration rule through JSON Schema (rule or mode, hereinafter abbreviated as Schema), wherein Schema is used for describing the configuration data structure and defining the data specification in the Apollo.
By way of example, in this embodiment, a Schema related to a service is customized and generated by a form generator, and in one implementation, a component related to a drag target service configuration requirement generates a corresponding configuration rule, and a service data structure is edited on the Schema editing page to define a data specification. As shown in fig. 7, a component related to a target service configuration requirement is dragged in a Schema editing page to generate a corresponding configuration rule Schema, specifically, the Schema editing page is a form structure, the Schema can be driven by an XRender form tool, various configuration data described in the Schema can be rendered into a complete form, and the form structure for the configuration rule pair is mapped.
It should be noted that, as shown in fig. 8, when customizing configuration rules, remote interfaces may be bound to some fields of configuration data, and remote services may be accessed to obtain remote data. Exemplary, the dynamic set remote data method is as follows:
Figure BDA0004186320850000101
Figure BDA0004186320850000111
Figure BDA0004186320850000121
Figure BDA0004186320850000131
it should be noted that, the form generator supports a custom component, abstracts the functional modules in the page into the custom component, so as to be reused in different pages; the complex page can be split into a plurality of low-coupling modules, which is helpful for code maintenance and avoids repeated development.
According to the embodiment, the zero code generation of the front-end page is realized through the form generator, the front-end code and the back-end code do not need to be developed, the research and development cost is greatly reduced, and the research and development efficiency is improved.
It should be noted that, in this embodiment, the configuration data structure is logically checked through a Groovy script, so as to improve accuracy of the configuration rule and the configuration information. Specifically, in this embodiment, a check rule or check logic may be set according to a field of a configuration rule or constraint information of metadata, to determine whether the configuration information is legal, and if the configuration information does not pass the check, the prompt information is returned by throwing out an exception. It should be noted that, the configuration rule includes at least one service scenario of the target service, and the embodiment may also call the remote interface to check the application scenario.
In order to solve the above technical problem, as shown in fig. 9, the embodiment of the present application further provides a configuration device 8 for applying data configuration information.
The configuration means 8 for applying data configuration information comprises:
a configuration rule management module 801, configured to customize and generate a configuration template related to a service, where the configuration template includes a configuration rule;
creating a service configuration page according to the configuration rule;
a configuration data management module 802, configured to manage data interaction of the configuration rule.
The embodiment of the application customizes and generates a service related configuration template through the configuration rule management module 801, wherein the configuration template is a service configuration related mode or rule and is used for describing a configuration data structure to realize data structuring of configuration information. The configuration data structure is used for mapping a page structure, constructing and generating a corresponding service configuration page, carrying out visual editing configuration information on the service based on the service configuration page, creating or modifying the configuration information of the service, realizing dynamic visual modification of the configuration information, completing data interaction on the configuration rule and the service configuration page, and solving the problem that the service configuration is abnormal due to easy writing of wrong symbols or field correction. The embodiment of the invention visualizes the configuration rule data, intuitively modifies the configuration information, solves the problem that the data is easy to make mistakes, standardizes the configuration rule flow, and is convenient for different personnel to use and modify.
It should be noted that, the configuration rule is stored in a first storage element having a storage function, such as a database, a storage, or a server, and when the configuration page needs to be operated, a corresponding service configuration page can be produced and rendered according to the configuration template. Specifically, in this embodiment, the configuration rules are managed in a unified manner, including configuration rule services such as adding, deleting, editing, querying, and the like, and configuration rules of the target service are created, queried, modified, or deleted in the visual interface.
Further, the configuration rule management module 801 implements mapping from the Apollo data to the service configuration page, including adding a configuration template, editing the configuration template, deleting the configuration template, querying a template list, and querying a detail template, where the adding the configuration template is used for customizing and generating a configuration template related to the service, the editing the configuration template is used for editing and modifying the configuration rule, the deleting the configuration template is used for deleting the configuration rule, the querying a template list is used for querying the published configuration rule, and the querying detail template is used for querying configuration information of the configuration rule.
Further, the adding configuration template integrates a form generator of a JSON Schema and an XRender, the JSON Schema is used for making configuration rules and standardization configuration data through the form generator, the data in the Apollo are used for generating the JSON Schema describing various configuration information through the form generator, the XRender comprises a formRender component, the formRender is used for driving the JSON Schema, the JSON Schema is transmitted or imported into the formRender, the formRender renders corresponding service configuration pages according to the configuration data in the JSON Schema, the zero code front end page generation and display are realized through an open source formRender tool, and the visual definition of the service data template is realized through the form generator.
Further, the service configuration page returns through an Apollo API to realize synchronization and updating of remote data.
Furthermore, the added configuration template is integrated with a Groovy script for realizing the pluggable rule checking capability of the page level. Specifically, the Groovy script performs logic verification on the configuration data structure, so that accuracy of the configuration rules and the configuration information is improved. For example, in this embodiment, a check rule or check logic may be set according to a field of a configuration rule or constraint information of metadata, to determine whether the configuration information is legal, and if the configuration information is not legal, the prompt information is returned by throwing out an exception. It should be noted that, the configuration rule includes at least one service scenario of the target service, and the embodiment may also call the remote interface to check the application scenario.
The service configuration page is oriented to staff with different roles, such as developers and operators. A user can generate a service configuration page by only associating the configuration namespaces of the Apollo and using the data structure corresponding to the Schema mapping, and the page provides functions of data synchronization, editing, checking, storage, publishing and the like.
The configuration data management module 802 is configured to manage data interactions of the configuration rules. Specifically, the data exchange includes an editing operation of configuration data in a service configuration page, where the data interaction operation includes, but is not limited to, acquiring, synchronizing, editing, checking, saving, publishing, etc. the configuration data includes a data processing service that alters service configuration information by listening to alteration or other means, and the configuration data of the target service is input or deleted in the visualized service configuration page.
It should be noted that, the fields in the service configuration page are all generated according to Schema customization, and may be objects or list structures. The configuration data management module 802 has the following modes:
comparison mode: comparing the current data with published data;
synchronizing data: synchronizing existing Apollo remote data to a current page;
and (3) preserving: temporarily storing current data, wherein the data cannot be uploaded to Apollo;
and (3) issuing: issuing data (uploading data to Apollo), the data being validated in real time (issued by Apollo)
It should be noted that, each service configuration page has a unique link, and this link can be embedded into other service systems, so that the corresponding service personnel can use the service system conveniently.
Further, for the associated system and application program related to the target service, login access is performed through single sign-on (SingleSignOn, SSO), SSO login is a unified standard of a company, and one Token can be used among different systems. The problem to be solved by page embedding is how to pass Token of the current system to the embedded system. The present embodiment uses window. The implementation code is as follows:
Figure BDA0004186320850000161
Figure BDA0004186320850000171
the embodiment of the invention has the following beneficial effects:
1. visual definition of the business data template is realized through a form designer;
2. generating and displaying a zero code front end page through an open source FormRender tool;
3. through an Apollo API, synchronization and updating of remote data are realized;
4. through integrating the Groovy script, the pluggable rule verification capability of the page level is realized;
5. multi-platform embedding of configuration pages through SSO and dynamic menus
The configuration device 8 of the application data configuration information further comprises a display module, wherein the display module is connected with the adjustment module and is used for displaying data information and an operation page of the configuration device of the application data configuration information.
The configuration device 8 of the application data configuration information may further include an input module, where the input module is connected to the display module, the input module may include a key, and may be used to input information such as an account number, a password, a name, etc. of the user id, and the operation page of the configuration process of the application data configuration information may be displayed in the display module of the configuration device of the application data configuration information, and the display module may also display other information of the user, and store the information, so that the user may conveniently view the information at any time.
It should be noted that, the apparatus in this embodiment belongs to the same concept as the method embodiment, the specific implementation process of the apparatus in this embodiment is detailed in the method embodiment, and the technical features in the method embodiment are correspondingly applicable in this embodiment, which is not described herein again.
In order to solve the above technical problems, the embodiment of the present application further provides a computer device 9. Referring specifically to FIG. 10, (Application Specific Integrated Circuit, ASIC), programmable gate array (Field-Programmable Gate Array, FPGA), digital processor (Digital Signal Processor, DSP), embedded device, etc.
The computer equipment can be a desktop computer, a notebook computer, a palm computer, a cloud server and other computing equipment. The computer equipment can perform man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch pad or voice control equipment and the like.
The memory 91 includes at least one type of readable storage medium including flash memory, hard disk, multimedia card, card memory (e.g., SD or DX memory, etc.), random Access Memory (RAM), static Random Access Memory (SRAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), programmable Read Only Memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the storage 91 may be an internal storage unit of the computer device 9, such as a hard disk or a memory of the computer device 9. In other embodiments, the memory 91 may also be an external storage device of the computer device 9, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card) or the like, which are provided on the computer device 9. Of course, the memory 91 may also comprise both an internal memory unit of the computer device 9 and an external memory device. In this embodiment, the memory 91 is generally used to store an operation fund system installed in the computer device 9 and various application software, such as program codes of a configuration method for applying data configuration information. Further, the memory 91 may be used to temporarily store various types of data that have been output or are to be output.
The processor 92 may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 92 is typically used to control the overall operation of the computer device 9. In this embodiment, the processor 92 is configured to execute a program code stored in the memory 91 or process data, such as a program code for executing a configuration method of the application data configuration information.
The network interface 93 may comprise a wireless network interface or a wired network interface, which network interface 93 is typically used to establish a communication connection between the computer device 9 and other electronic devices.
The present application also provides another embodiment, namely, a computer readable storage medium storing a configuration program of application data configuration information, where the configuration program of application data configuration information is executable by at least one processor, so that the at least one processor performs the steps of the configuration method of application data configuration information as described above.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the embodiments of the present application.
It is apparent that the embodiments described above are only some embodiments of the present application, but not all embodiments, the preferred embodiments of the present application are given in the drawings, but not limiting the patent scope of the present application. This application may be embodied in many different forms, but rather, embodiments are provided in order to provide a more thorough understanding of the present disclosure. Although the present application has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that modifications may be made to the embodiments described in the foregoing, or equivalents may be substituted for elements thereof. All equivalent structures made by the specification and the drawings of the application are directly or indirectly applied to other related technical fields, and are also within the protection scope of the application.

Claims (10)

1. A configuration method for application data configuration information, comprising the steps of:
customizing and generating a service-related configuration template, wherein the configuration template comprises configuration rules;
creating a service configuration page according to the configuration rule;
and visually editing configuration information on the service configuration page.
2. The method for configuring application data configuration information according to claim 1, wherein said customizing and generating a service-related configuration template includes the steps of configuring rules, comprising:
constructing a form structure and defining a data specification;
generating a corresponding form according to the form structure and the data specification, wherein the form describes a configuration data structure;
and mapping a corresponding page structure according to the configuration data structure described by the form to generate a service configuration interface.
3. The method for configuring application data configuration information according to claim 1, wherein the configuration data structure is logically checked.
4. The method for configuring application data configuration information according to claim 1, wherein the service configuration page is provided with an identifier, and the service configuration page is embedded in the service system in an associated manner according to the identifier.
5. The method for configuring configuration information of application data according to claim 2, wherein the configuration rule is encapsulated in an API, and the configuration information of the configuration rule is modified according to the API.
6. The method for configuring application data configuration information according to claim 5, wherein the configuration rule can be associated with a remote interface to dynamically set configuration data.
7. The method for configuring application data configuration information according to claim 1, wherein the step of visually editing configuration information on the service configuration page includes:
and carrying out data interaction on the configuration rules and the service configuration page.
8. A configuration apparatus for configuring information of application data, comprising:
the configuration rule management module is used for customizing and generating a configuration template related to the service, and the configuration template comprises configuration rules; creating a service configuration page according to the configuration rule; visually editing configuration information on the service configuration page;
and the configuration data management module is used for managing the data interaction of the configuration rules.
9. A computer device comprising a memory, a processor and a network interface, the memory having stored therein a computer program, the processor implementing the steps of the method for configuring application data configuration information according to any one of claims 1 to 7 when the computer program is executed.
10. A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the steps of the configuration method of application data configuration information according to any one of claims 1 to 7.
CN202310419716.4A 2023-04-14 2023-04-14 Configuration method, device, equipment and storage medium for application data configuration information Pending CN116431200A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310419716.4A CN116431200A (en) 2023-04-14 2023-04-14 Configuration method, device, equipment and storage medium for application data configuration information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310419716.4A CN116431200A (en) 2023-04-14 2023-04-14 Configuration method, device, equipment and storage medium for application data configuration information

Publications (1)

Publication Number Publication Date
CN116431200A true CN116431200A (en) 2023-07-14

Family

ID=87082980

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310419716.4A Pending CN116431200A (en) 2023-04-14 2023-04-14 Configuration method, device, equipment and storage medium for application data configuration information

Country Status (1)

Country Link
CN (1) CN116431200A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117348870A (en) * 2023-09-20 2024-01-05 北京安锐卓越信息技术股份有限公司 Page customization method and device, medium and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117348870A (en) * 2023-09-20 2024-01-05 北京安锐卓越信息技术股份有限公司 Page customization method and device, medium and electronic equipment

Similar Documents

Publication Publication Date Title
US10705942B1 (en) Simulated testing of API
US11797273B2 (en) System and method for enhancing component based development models with auto-wiring
US11593074B2 (en) System, method, and apparatus for data-centric networked application development services
CN112764751B (en) Interface generation method and device, interface request method and device and storage medium
WO2020015191A1 (en) Business rule releasing and managing method, electronic device and readable storage medium
CN109189379A (en) code generating method and device
US20170131688A1 (en) Adaptive control and management for electronic device
TW201439792A (en) System and method for accessing database
WO2021137767A1 (en) Method and apparatus for constructing device model of iot device, and storage medium
US20150220330A1 (en) Template derivation for configuration object management
CN106919406A (en) A kind of desktop application component issue, update method and device
CN112199373A (en) Form development method and system
CN103530338A (en) Frame for carrying out page rendering on calculation equipment and page generation method
CN115795211A (en) Page display method, device, system, equipment and storage medium
CN114117190A (en) Data processing method, data processing device, storage medium and electronic equipment
US20110224954A1 (en) Modelling of systems
CN109683957A (en) The method and apparatus of Function Extension
CN116431200A (en) Configuration method, device, equipment and storage medium for application data configuration information
CN112631563A (en) System development method and device based on framework, computer equipment and storage medium
WO2016201813A1 (en) Dynamic layout method and system based on android
TW201725542A (en) Form management system and method
CN114626352B (en) Report automatic generation method, device, computer equipment and storage medium
CN114489674A (en) Data verification method and device of dynamic data model
CN116610354A (en) Parameter verification method, device, computer equipment and storage medium
CN115037587A (en) Method, device, equipment and storage medium for automatically issuing network equipment configuration

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