CN112714148A - Interface configuration method, device, equipment and medium - Google Patents

Interface configuration method, device, equipment and medium Download PDF

Info

Publication number
CN112714148A
CN112714148A CN202011246988.1A CN202011246988A CN112714148A CN 112714148 A CN112714148 A CN 112714148A CN 202011246988 A CN202011246988 A CN 202011246988A CN 112714148 A CN112714148 A CN 112714148A
Authority
CN
China
Prior art keywords
configuration file
configuration
client
interface
target
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
CN202011246988.1A
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.)
Haier Digital Technology Qingdao Co Ltd
Haier Digital Technology Chongqing Co Ltd
Haier Caos IoT Ecological Technology Co Ltd
Qingdao Haier Industrial Intelligence Research Institute Co Ltd
Original Assignee
Haier Digital Technology Qingdao Co Ltd
Haier Digital Technology Chongqing Co Ltd
Haier Caos IoT Ecological Technology Co Ltd
Qingdao Haier Industrial Intelligence Research Institute 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 Haier Digital Technology Qingdao Co Ltd, Haier Digital Technology Chongqing Co Ltd, Haier Caos IoT Ecological Technology Co Ltd, Qingdao Haier Industrial Intelligence Research Institute Co Ltd filed Critical Haier Digital Technology Qingdao Co Ltd
Priority to CN202011246988.1A priority Critical patent/CN112714148A/en
Priority to PCT/CN2021/070291 priority patent/WO2022099913A1/en
Publication of CN112714148A publication Critical patent/CN112714148A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Abstract

The embodiment of the invention discloses an interface configuration method, an interface configuration device, interface configuration equipment and an interface configuration medium. The interface configuration method comprises the following steps: responding to the operation of a user for accessing the client, and sending a configuration file request corresponding to the client to a server, wherein the configuration file request comprises an identifier of the client; receiving a target configuration file corresponding to the identification of the client and fed back by the server; and carrying out interface configuration according to the target configuration file through a dynamic configuration component library engine integrated in the client. According to the technical scheme of the embodiment of the invention, the configuration file compiled by a developer is analyzed through the dynamic configuration component library engine integrated by the client, so that the interface configuration is completed, and the efficiency of the interface configuration is improved.

Description

Interface configuration method, device, equipment and medium
Technical Field
The present invention relates to computer technologies, and in particular, to a method, an apparatus, a device, and a medium for interface configuration.
Background
With the development of computer technology, more and more organizations and individuals can use applications installed in mobile terminals to process transactions, and many applications release different versions for mobile terminal systems used by users, for example, the versions include a version for an android System and a version for an IOS (apple mobile device operating System), and as the user needs to change, the application interfaces for the systems also need to be changed according to the user needs.
In the prior art, a Flutter technology is adopted to realize cross-platform application, but the layout and the control sequence in an application interface are relatively fixed and cannot be flexibly configured according to the requirements of users, if the application function needs to be updated, a developer needs to rewrite codes and re-release the codes, the requirement on the technical level of the developer is high, the development cost is high, and the development period is long.
Disclosure of Invention
The embodiment of the invention provides an interface configuration method, device, equipment and medium, which can be used for analyzing a configuration file compiled by a developer through a dynamic configuration component library engine integrated by a client to complete interface configuration and improve the efficiency of interface configuration.
In a first aspect, an embodiment of the present invention provides an interface configuration method, where the method includes:
responding to the operation of a user for accessing the client, and sending a configuration file request corresponding to the client to a server, wherein the configuration file request comprises an identifier of the client;
receiving a target configuration file corresponding to the identification of the client and fed back by the server;
interface configuration is carried out according to the target configuration file through a dynamic configuration component library engine integrated in the client;
the dynamic configuration component library engine comprises a dynamic component library, a configuration file analysis rule and an interface configuration rule, and a dynamic component in the dynamic component library is obtained by packaging a control in a Flutter platform.
In a second aspect, an embodiment of the present invention further provides an interface configuration method, where the method includes:
receiving at least one initial configuration file sent by a configuration platform and an identifier of a client corresponding to each initial configuration file;
generating configuration files matched with the initial configuration files according to a preset component library rule and the at least one initial configuration file, and correspondingly storing the identifications of the client sides corresponding to the initial configuration files and the matched configuration files;
receiving a configuration file request sent by a client, wherein the configuration file request comprises an identifier of the client;
and determining a target configuration file corresponding to the identification of the client, and sending the target configuration file to the client so that the client performs interface configuration according to the target configuration file.
In a third aspect, an embodiment of the present invention further provides an interface configuration apparatus, where the apparatus includes:
a request sending module, configured to send, to a server, a configuration file request corresponding to a client in response to an operation of a user to access the client, where the configuration file request includes an identifier of the client;
the configuration file receiving module is used for receiving a target configuration file which is fed back by the server and corresponds to the identification of the client;
the interface configuration module is used for carrying out interface configuration according to the target configuration file through a dynamic configuration component library engine integrated in the client;
the dynamic configuration component library engine comprises a dynamic component library, a configuration file analysis rule and an interface configuration rule, and a dynamic component in the dynamic component library is obtained by packaging a control in a Flutter platform.
In a fourth aspect, an embodiment of the present invention further provides an interface configuration apparatus, where the apparatus includes:
the initial configuration file receiving module is used for receiving at least one initial configuration file sent by the configuration platform and the identification of the client corresponding to each initial configuration file;
the configuration file generation module is used for generating configuration files matched with the initial configuration files according to the preset component library rules and the at least one initial configuration file, and correspondingly storing the identifications of the clients corresponding to the initial configuration files and the matched configuration files;
a request receiving module, configured to receive a configuration file request sent by a client, where the configuration file request includes an identifier of the client;
and the configuration file sending module is used for determining a target configuration file corresponding to the identification of the client and sending the target configuration file to the client so as to enable the client to carry out interface configuration according to the target configuration file.
In a fifth aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
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 are caused to implement the interface configuration method provided by any embodiment of the invention.
In a sixth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the interface configuration method provided in any embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, the configuration file request corresponding to the client is sent to the server in response to the operation of accessing the client by the user, then the target configuration file corresponding to the identification of the client fed back by the server is received, and finally the interface configuration is carried out according to the target configuration file through the dynamic configuration component library engine integrated in the client.
Drawings
Fig. 1 is a flowchart of an interface configuration method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of an interface configuration method according to a second embodiment of the present invention;
fig. 3 is a flowchart of an interface configuration method according to a third embodiment of the present invention;
FIG. 4a is a flowchart of an interface configuration method according to a fourth embodiment of the present invention;
fig. 4b is a flowchart of a specific implementation manner of an interface configuration method in the fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of an interface configuration apparatus according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of an interface configuration apparatus according to a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of an apparatus according to a seventh embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of an interface configuration method in an embodiment of the present invention, where the technical solution of this embodiment is applied to a case where a dynamic component library is used to perform interface dynamic configuration and configuration, and the method may be executed by an interface configuration device, where the interface configuration device may be implemented by software and/or hardware, and may be integrated in various general-purpose computer devices, and specifically includes the following steps:
step 110, responding to the operation of the user accessing the client, sending a configuration file request corresponding to the client to the server, wherein the configuration file request comprises the identifier of the client.
The configuration file request is a request sent by a client and used for requesting a configuration file corresponding to the current client from a server, wherein the request carries an identifier of the current client. Illustratively, the client is an APP (Application) installed in the mobile terminal, and the configuration file request is a request containing an APP Identity Document (APP Identity Document) sent by the APP in the mobile terminal to the server.
In this embodiment, after the client detects an access operation of a user, to implement flexible interface configuration, a configuration file request is first sent to the server, so that the server feeds back a configuration file corresponding to the client, where the configuration file request includes an identifier of the client, and the server may determine the configuration file corresponding to the current client according to the identifier of the client. Illustratively, the APP detects a client click operation, sends a configuration file request containing the APPID to the server, and pulls a configuration file corresponding to the APPID from the server.
And step 120, receiving a target configuration file corresponding to the client identifier fed back by the server.
Optionally, the target configuration file is an XML file and/or an XSL file.
In this embodiment, after receiving a configuration file request sent by a client, a server feeds back a target configuration file corresponding to an identifier of the client to the client, so that the client completes interface configuration and rendering. The configuration file is an XML format file and/or an XSL format file, and the configuration file is obtained by further performing data supplement on the initial XML file and/or the initial XSL file provided by the developer through the server.
Step 130, interface configuration is carried out according to the target configuration file through a dynamic configuration component library engine integrated in the client;
the dynamic configuration component library engine comprises a dynamic component library, a configuration file analysis rule and an interface configuration rule, and the dynamic components in the dynamic component library are obtained by packaging controls in a Flutter platform.
It should be noted that a dynamic configuration component library engine is integrated in the client in advance, and the dynamic configuration component library engine includes a dynamic component library, a configuration file parsing rule, and an interface configuration rule, where a dynamic component in the dynamic component library is obtained by encapsulating a control in the Flutter platform. Taking a text box as an example, a text box control in the Flutter platform does not support dynamic configuration, in order to realize flexible configuration, the text box control in the Xcore component library is secondarily encapsulated to form an Xcore component, and in the APP running process, the Xcore engine can analyze a configuration file corresponding to the text box, call the Xcore component, and dynamically configure the text box.
In this embodiment, after receiving the target configuration file fed back by the server, the client parses the target configuration file through the integrated dynamic configuration component library engine, and then obtains the dynamic component from the dynamic component library according to the parsing result, thereby completing the interface configuration. Illustratively, the APP analyzes the target configuration file in the XML format through an integrated Xcore engine, calls an Xcore component in an Xcore component library according to an analysis result to construct a page, and performs interface rendering.
According to the technical scheme of the embodiment of the invention, the configuration file request corresponding to the client is sent to the server in response to the operation of accessing the client by the user, then the target configuration file corresponding to the identification of the client fed back by the server is received, and finally the interface configuration is carried out according to the target configuration file through the dynamic configuration component library engine integrated in the client.
Example two
Fig. 2 is a flowchart of an interface configuration method in the second embodiment of the present invention, and this embodiment provides specific steps of performing interface configuration according to a target configuration file by using a dynamic configuration component library engine integrated in a client, based on the above embodiment. An interface configuration method provided by the second embodiment of the present invention is described below with reference to fig. 2, which includes the following steps:
step 210, responding to the operation of the user accessing the client, sending a configuration file request corresponding to the client to the server, wherein the configuration file request includes the identifier of the client.
And step 220, receiving a target configuration file corresponding to the identification of the client and fed back by the server.
Step 230, analyzing the target configuration file according to the configuration file analysis rule through a dynamic configuration component library engine integrated in the client;
the dynamic configuration component library engine comprises a dynamic component library, a configuration file analysis rule and an interface configuration rule, and the dynamic components in the dynamic component library are obtained by packaging controls in a Flutter platform.
In this embodiment, the dynamic configuration component library engine integrated in the client parses the target configuration file sent by the server according to the configuration file parsing rule, and for example, the Xcore engine integrated in the client parses the XML file containing the configuration information of the text box (for example, the format of the text box or the default content of the text box) sent by the server according to the configuration file parsing rule.
And step 240, calling at least one dynamic component in the dynamic component library to carry out interface configuration according to the analysis result of the target configuration file and the interface configuration rule.
In this embodiment, after the target configuration file is analyzed, at least one dynamic component in the dynamic component library may be called to perform interface configuration according to the analysis result and the interface configuration rule stored in the client.
Optionally, analyzing the target configuration file according to the configuration file analysis rule by using a dynamic configuration component library engine integrated in the client, including:
and analyzing the target configuration file according to the configuration file analysis rule to obtain the root element contained in the target configuration file.
Optionally, invoking at least one dynamic component in the dynamic component library to perform interface configuration according to the analysis result of the target configuration file and the interface configuration rule, including:
acquiring at least one component implementation class corresponding to the root element name in a dynamic component library according to the root element name of the root element;
and constructing at least one component according to the at least one component implementation class, and carrying out interface configuration according to the at least one component.
In the two optional embodiments, a specific way of parsing the target configuration file and configuring the interface is provided, where the target configuration file is parsed according to a configuration file parsing rule to obtain a root element included in the target configuration file, and then the dynamic configuration component library engine may obtain the implementation class of the component according to the name of the root element, so as to construct a component corresponding to at least one component library, and configure and render the interface.
According to the technical scheme of the embodiment of the invention, the client responds to the operation of accessing the client by a user, sends a configuration file request corresponding to the client to the server, receives a target configuration file corresponding to the identification of the client fed back by the server, analyzes the target configuration file according to the analysis rule of the configuration file by the aid of a dynamic configuration component library engine integrated in the client, and finally calls at least one dynamic component in the dynamic component library to perform interface configuration according to the analysis result of the target configuration file and the interface configuration rule.
EXAMPLE III
Fig. 3 is a flowchart of an interface configuration method provided in the third embodiment of the present invention, where the technical solution of this embodiment is applied to a case where an interface is dynamically configured by using a dynamic component library, and the method may be executed by an interface configuration device, and the interface configuration device may be implemented by software and/or hardware, and may be integrated in various general-purpose computer devices, and specifically includes the following steps:
step 310, receiving at least one initial configuration file sent by the configuration platform, and an identifier of a client corresponding to each initial configuration file.
In this embodiment, the server receives at least one initial configuration file, such as an XML file and/or an XSL file, sent by the configuration platform, and an identifier of a corresponding client. The initial configuration file may include a style of a component that needs to be generated, for example, if the target client needs to display a picture, the developer needs to write a corresponding XML file in the configuration platform according to the dynamic component description, where the XML file may include whether the picture to be displayed is a rounded corner, whether the picture to be displayed needs to be shadow rendered, and the like.
And step 320, generating configuration files matched with the initial configuration files according to the preset component library rules and at least one initial configuration file, and correspondingly storing the identifications of the clients corresponding to the initial configuration files and the matched configuration files.
In this embodiment, after receiving the initial configuration files sent by the configuration platform and the identifiers of the clients corresponding to the initial configuration files, the server generates the configuration files corresponding to the initial configuration files according to the pre-configured component library rule and at least one initial configuration file, and then stores the identifiers of the clients corresponding to the initial configuration files and the matched configuration files correspondingly.
Optionally, generating a configuration file matched with each initial configuration file according to the preconfigured component library rule and at least one initial configuration file, including:
acquiring target data corresponding to at least one item to be filled contained in the initial configuration file from a background database according to the component library rule and the at least one initial configuration file;
and adding the target data to the corresponding position of the initial configuration file to obtain a configuration file matched with the initial configuration file.
In this optional embodiment, a specific manner of generating a matched configuration file according to an initial configuration file is provided, where first, according to a component library rule and at least one initial configuration file, target data corresponding to at least one item to be filled included in the initial configuration file is obtained from a background database, and then the obtained target data is added to a corresponding position of the initial configuration file to obtain a configuration file matched with the initial configuration file.
Illustratively, the initial configuration file includes a pattern of whether the picture to be displayed is a rounded corner, whether the picture to be displayed needs to be subjected to shadow rendering, and the like, and a background data interface of the picture to be displayed, and the server acquires an address of the picture to be displayed from the background database according to a preset rule of the component library and the background data interface, and adds the address to a corresponding position of the initial configuration file, thereby obtaining the configuration file.
Step 330, receiving a configuration file request sent by the client, where the configuration file request includes an identifier of the client.
In this embodiment, after receiving a configuration file request sent by a client, a server first obtains an identifier of the client included in the configuration file request, so as to determine a configuration file corresponding to the current configuration file request.
And 340, determining a target configuration file corresponding to the identifier of the client, and sending the target configuration file to the client so that the client performs interface configuration according to the target configuration file.
In this embodiment, the server determines, according to the identifier of the client included in the configuration file request and according to the identifier of the client, that the configuration file corresponding to the identifier is a target configuration file, and sends the target configuration file to the client, so that the client can perform dynamic interface configuration and rendering according to the target configuration file.
The technical scheme of the embodiment of the invention is that a server firstly receives at least one initial configuration file sent by a configuration platform and the identification of a client corresponding to each initial configuration file, then generates the configuration file matched with each initial configuration file according to a pre-configured component library rule and at least one initial configuration file, correspondingly stores the identification of the client corresponding to each initial configuration file and the matched configuration file, determines a target configuration file corresponding to the identification of the client from at least one configuration file when receiving a configuration file request sent by the client, and sends the target configuration file to the client so as to enable the client to carry out interface configuration according to the target configuration file, analyzes the configuration file written by a developer through a dynamic configuration component library engine integrated with the client to complete interface configuration without redevelopment of a front-end program, the efficiency of interface configuration is improved.
Example four
Fig. 4a is a flowchart of an interface configuration method in the fourth embodiment of the present invention, and as shown in fig. 4a, a configuration platform establishes a connection with a server for generating a configuration file; a server establishes a connection with a client performing interface configuration, and an execution manner of a specific interface configuration method in this embodiment is shown in fig. 4 b. The method comprises the following steps:
step 410, the configuration platform sends at least one initial configuration file written by the developer according to the dynamic component library and the identification of the client corresponding to the at least one initial configuration file to the server.
Step 420, the server receives at least one initial configuration file sent by the configuration platform and the identifier of the client corresponding to each initial configuration file.
Step 430, the server generates configuration files matched with the initial configuration files according to the preset component library rules and at least one initial configuration file, and correspondingly stores the identifications of the clients corresponding to the initial configuration files and the matched configuration files.
Step 440, the client sends a configuration file request corresponding to the client to the server in response to the operation of the user accessing the client, wherein the configuration file request includes the identifier of the client.
Step 450, the server receives the configuration file request sent by the client, determines the target configuration file corresponding to the identifier of the client contained in the configuration file request, and sends the target configuration file to the client.
Step 460, the client receives the target configuration file corresponding to the identifier of the client, which is fed back by the server.
Step 470, the client configures the interface according to the target configuration file through the dynamic configuration component library engine integrated in the client.
According to the technical scheme of the embodiment of the invention, the configuration file request corresponding to the client is sent to the server in response to the operation of accessing the client by the user, then the target configuration file corresponding to the identification of the client fed back by the server is received, and finally the interface configuration is carried out according to the target configuration file through the dynamic configuration component library engine integrated in the client.
EXAMPLE five
Fig. 5 is a schematic structural diagram of an interface configuration apparatus according to a fifth embodiment of the present invention, where the interface configuration apparatus includes: a request sending module 510, a configuration file receiving module 520, and an interface configuration module 530.
A request sending module 510, configured to send, in response to an operation of a user accessing the client, a configuration file request corresponding to the client to a server, where the configuration file request includes an identifier of the client;
a configuration file receiving module 520, configured to receive a target configuration file corresponding to the identifier of the client, where the target configuration file is fed back by the server;
an interface configuration module 530, configured to perform interface configuration according to the target configuration file through a dynamic configuration component library engine integrated in the client;
the dynamic configuration component library engine comprises a dynamic component library, a configuration file analysis rule and an interface configuration rule, and a dynamic component in the dynamic component library is obtained by packaging a control in a Flutter platform.
According to the technical scheme of the embodiment of the invention, the configuration file request corresponding to the client is sent to the server in response to the operation of accessing the client by the user, then the target configuration file corresponding to the identification of the client fed back by the server is received, and finally the interface configuration is carried out according to the target configuration file through the dynamic configuration component library engine integrated in the client.
Optionally, the interface configuration module 530 includes:
the file analysis unit is used for analyzing the target configuration file according to the configuration file analysis rule through a dynamic configuration component library engine integrated in the client;
and the interface configuration unit is used for calling at least one dynamic component in the dynamic component library to carry out interface configuration according to the analysis result of the target configuration file and the interface configuration rule.
Optionally, the file parsing unit is specifically configured to:
analyzing the target configuration file according to the configuration file analysis rule to obtain a root element contained in the target configuration file;
the interface configuration unit is specifically configured to:
acquiring at least one component implementation class corresponding to the root element name in the dynamic component library according to the root element name of the root element;
and constructing at least one component according to the at least one component implementation class, and carrying out interface configuration according to the at least one component.
Optionally, the target configuration file is an XML file and/or an XSL file.
The interface configuration device provided by the embodiment of the invention can execute the interface configuration method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE six
Fig. 6 is a schematic structural diagram of an interface configuration apparatus according to a sixth embodiment of the present invention, where the interface configuration apparatus includes: an initial configuration file receiving module 610, a configuration file generating module 620, a request receiving module 630 and a configuration file transmitting module 640.
An initial configuration file receiving module 610, configured to receive at least one initial configuration file sent by the configuration platform and an identifier of a client corresponding to each initial configuration file;
a configuration file generating module 620, configured to generate a configuration file matched with each initial configuration file according to a preconfigured component library rule and the at least one initial configuration file, and store an identifier of a client corresponding to each initial configuration file and the matched configuration file correspondingly;
a request receiving module 630, configured to receive a configuration file request sent by a client, where the configuration file request includes an identifier of the client;
the configuration file sending module 640 is configured to determine a target configuration file corresponding to the identifier of the client, and send the target configuration file to the client, so that the client performs interface configuration according to the target configuration file.
According to the technical scheme of the embodiment of the invention, the configuration file request corresponding to the client is sent to the server in response to the operation of accessing the client by the user, then the target configuration file corresponding to the identification of the client fed back by the server is received, and finally the interface configuration is carried out according to the target configuration file through the dynamic configuration component library engine integrated in the client.
Optionally, the configuration file generating module 620 is specifically configured to:
acquiring target data corresponding to at least one item to be filled contained in the initial configuration file from a background database according to the component library rule and the at least one initial configuration file;
and adding the target data to the corresponding position of the initial configuration file to obtain a configuration file matched with the initial configuration file.
The interface configuration device provided by the embodiment of the invention can execute the interface configuration method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE seven
Fig. 7 is a schematic structural diagram of an apparatus according to a seventh embodiment of the present invention, and as shown in fig. 7, the electronic apparatus includes a processor 70 and a memory 71; the number of processors 70 in the device may be one or more, and one processor 70 is taken as an example in fig. 7; the processor 70 and the memory 71 in the device may be connected by a bus or other means, as exemplified by the bus connection in fig. 7.
The memory 71 is used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to an interface configuration method in the embodiment of the present invention (for example, the request sending module 510, the configuration file receiving module 520, and the interface configuration module 530 in the interface configuration apparatus, or the initial configuration file receiving module 610, the configuration file generating module 620, the request receiving module 630, and the configuration file sending module 640). The processor 70 executes various functional applications of the device and data processing by executing software programs, instructions and modules stored in the memory 71, that is, implements the interface configuration method described above.
The method comprises the following steps:
responding to the operation of a user for accessing the client, and sending a configuration file request corresponding to the client to a server, wherein the configuration file request comprises an identifier of the client;
receiving a target configuration file corresponding to the identification of the client and fed back by the server;
interface configuration is carried out according to the target configuration file through a dynamic configuration component library engine integrated in the client;
the dynamic configuration component library engine comprises a dynamic component library, a configuration file analysis rule and an interface configuration rule, and a dynamic component in the dynamic component library is obtained by packaging a control in a Flutter platform.
The method may further comprise:
receiving at least one initial configuration file sent by a configuration platform and an identifier of a client corresponding to each initial configuration file;
generating configuration files matched with the initial configuration files according to a preset component library rule and the at least one initial configuration file, and correspondingly storing the identifications of the client sides corresponding to the initial configuration files and the matched configuration files;
receiving a configuration file request sent by a client, wherein the configuration file request comprises an identifier of the client;
and determining a target configuration file corresponding to the identification of the client, and sending the target configuration file to the client so that the client performs interface configuration according to the target configuration file.
The memory 71 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 71 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 71 may further include memory located remotely from the processor 70, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Example eight
An eighth embodiment of the present invention also provides a computer-readable storage medium having stored thereon a computer program, which when executed by a computer processor is configured to perform a method for interface configuration, the method including:
responding to the operation of a user for accessing the client, and sending a configuration file request corresponding to the client to a server, wherein the configuration file request comprises an identifier of the client;
receiving a target configuration file corresponding to the identification of the client and fed back by the server;
interface configuration is carried out according to the target configuration file through a dynamic configuration component library engine integrated in the client;
the dynamic configuration component library engine comprises a dynamic component library, a configuration file analysis rule and an interface configuration rule, and a dynamic component in the dynamic component library is obtained by packaging a control in a Flutter platform.
The method may further comprise:
receiving at least one initial configuration file sent by a configuration platform and an identifier of a client corresponding to each initial configuration file;
generating configuration files matched with the initial configuration files according to a preset component library rule and the at least one initial configuration file, and correspondingly storing the identifications of the client sides corresponding to the initial configuration files and the matched configuration files;
receiving a configuration file request sent by a client, wherein the configuration file request comprises an identifier of the client;
and determining a target configuration file corresponding to the identification of the client, and sending the target configuration file to the client so that the client performs interface configuration according to the target configuration file.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the interface configuration apparatus, each unit and each module included in the interface configuration apparatus are only divided according to functional logic, but are not limited to the above division as long as the corresponding function can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. An interface configuration method is applied to a client, and is characterized by comprising the following steps:
responding to the operation of a user for accessing the client, and sending a configuration file request corresponding to the client to a server, wherein the configuration file request comprises an identifier of the client;
receiving a target configuration file corresponding to the identification of the client and fed back by the server;
interface configuration is carried out according to the target configuration file through a dynamic configuration component library engine integrated in the client;
the dynamic rendering configuration library engine comprises a dynamic component library, a configuration file analysis rule and an interface configuration rule, and the dynamic components in the dynamic component library are obtained by packaging controls in a Flutter platform.
2. The method of claim 1, wherein performing interface configuration according to the target configuration file by a dynamic configuration component library engine integrated in the client comprises:
analyzing the target configuration file according to the configuration file analysis rule through a dynamic configuration component library engine integrated in the client;
and calling at least one dynamic component in the dynamic component library to carry out interface configuration according to the analysis result of the target configuration file and the interface configuration rule.
3. The method of claim 2, wherein parsing the target profile according to the profile parsing rule by a dynamic configuration component library engine integrated in the client comprises:
analyzing the target configuration file according to the configuration file analysis rule to obtain a root element contained in the target configuration file;
according to the analysis result of the target configuration file and the interface configuration rule, calling at least one dynamic component in the dynamic component library to perform interface configuration, wherein the interface configuration comprises the following steps:
acquiring at least one component implementation class corresponding to the root element name in the dynamic component library according to the root element name of the root element;
and constructing at least one component according to the at least one component implementation class, and carrying out interface configuration according to the at least one component.
4. The method of claim 1, wherein the target configuration file is an XML file and/or an XSL file.
5. An interface configuration method is applied to a server, and is characterized by comprising the following steps:
receiving at least one initial configuration file sent by a configuration platform and an identifier of a client corresponding to each initial configuration file;
generating configuration files matched with the initial configuration files according to a preset component library rule and the at least one initial configuration file, and correspondingly storing the identifications of the client sides corresponding to the initial configuration files and the matched configuration files;
receiving a configuration file request sent by a client, wherein the configuration file request comprises an identifier of the client;
and determining a target configuration file corresponding to the identification of the client, and sending the target configuration file to the client so that the client performs interface configuration according to the target configuration file.
6. The method of claim 5, wherein generating a configuration file matching each initial configuration file according to the pre-configured component library rule and the at least one initial configuration file comprises:
acquiring target data corresponding to at least one item to be filled contained in the initial configuration file from a background database according to the component library rule and the at least one initial configuration file;
and adding the target data to the corresponding position of the initial configuration file to obtain a configuration file matched with the initial configuration file.
7. An interface configuration device, comprising:
a request sending module, configured to send, to a server, a configuration file request corresponding to a client in response to an operation of a user to access the client, where the configuration file request includes an identifier of the client;
the configuration file receiving module is used for receiving a target configuration file which is fed back by the server and corresponds to the identification of the client;
the interface configuration module is used for carrying out interface configuration according to the target configuration file through a dynamic configuration component library engine integrated in the client;
the dynamic configuration component library engine comprises a dynamic component library, a configuration file analysis rule and an interface configuration rule, and a dynamic component in the dynamic component library is obtained by packaging a control in a Flutter platform.
8. An interface configuration device, comprising:
the initial configuration file receiving module is used for receiving at least one initial configuration file sent by the configuration platform and the identification of the client corresponding to each initial configuration file;
the configuration file generation module is used for generating configuration files matched with the initial configuration files according to the preset component library rules and the at least one initial configuration file, and correspondingly storing the identifications of the clients corresponding to the initial configuration files and the matched configuration files;
a request receiving module, configured to receive a configuration file request sent by a client, where the configuration file request includes an identifier of the client;
and the configuration file sending module is used for determining a target configuration file corresponding to the identification of the client and sending the target configuration file to the client so as to enable the client to carry out interface configuration according to the target configuration file.
9. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the interface configuration method of any one of claims 1-4 or claims 5-6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the interface configuration method according to any one of claims 1 to 4 or claims 5 to 6.
CN202011246988.1A 2020-11-10 2020-11-10 Interface configuration method, device, equipment and medium Pending CN112714148A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011246988.1A CN112714148A (en) 2020-11-10 2020-11-10 Interface configuration method, device, equipment and medium
PCT/CN2021/070291 WO2022099913A1 (en) 2020-11-10 2021-01-05 Interface configuration method and apparatus, and device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011246988.1A CN112714148A (en) 2020-11-10 2020-11-10 Interface configuration method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN112714148A true CN112714148A (en) 2021-04-27

Family

ID=75541852

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011246988.1A Pending CN112714148A (en) 2020-11-10 2020-11-10 Interface configuration method, device, equipment and medium

Country Status (2)

Country Link
CN (1) CN112714148A (en)
WO (1) WO2022099913A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114398091A (en) * 2021-12-03 2022-04-26 贝壳找房(北京)科技有限公司 Configuration method and device of Flutter component

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101216838A (en) * 2008-01-15 2008-07-09 中兴通讯股份有限公司 XML interface configuration file distribute system and method based on WEB marker
US20130047136A1 (en) * 2011-08-15 2013-02-21 International Business Machines Corporation Automatic Selection of Lowest Configuration Feature Level by Functionality Exploited
CN104484171A (en) * 2014-12-11 2015-04-01 深圳市路通网络技术有限公司 System, method and associated equipment for designing terminal interface
CN108776610A (en) * 2018-06-27 2018-11-09 中国建设银行股份有限公司 A kind of interface configuration method and device
CN109388399A (en) * 2018-10-25 2019-02-26 北京字节跳动网络技术有限公司 The page and Universal page configuration file generation method, device, equipment and medium
CN109460276A (en) * 2018-10-25 2019-03-12 北京字节跳动网络技术有限公司 The page and page configuration document generating method, device, terminal device and medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657174A (en) * 2015-02-03 2015-05-27 百度在线网络技术(北京)有限公司 Method and device for dynamically realizing application function
CN106034247A (en) * 2015-03-12 2016-10-19 Tcl集团股份有限公司 Configuration method and apparatus for smart television application
CN107391169A (en) * 2017-06-09 2017-11-24 口碑控股有限公司 The dynamic updating method and device of the Android page
CN110162305A (en) * 2019-05-31 2019-08-23 广州华多网络科技有限公司 A kind of method and client at configuration activities interface
CN110597941B (en) * 2019-09-11 2023-12-29 广州力挚网络科技有限公司 Map display method and system
CN111459465A (en) * 2020-03-27 2020-07-28 北京五八信息技术有限公司 Method and device for generating Flutter engineering file
CN111740948B (en) * 2020-05-12 2023-04-07 北京沃东天骏信息技术有限公司 Data packet issuing method, dynamic updating method, device, equipment and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101216838A (en) * 2008-01-15 2008-07-09 中兴通讯股份有限公司 XML interface configuration file distribute system and method based on WEB marker
US20130047136A1 (en) * 2011-08-15 2013-02-21 International Business Machines Corporation Automatic Selection of Lowest Configuration Feature Level by Functionality Exploited
CN104484171A (en) * 2014-12-11 2015-04-01 深圳市路通网络技术有限公司 System, method and associated equipment for designing terminal interface
CN108776610A (en) * 2018-06-27 2018-11-09 中国建设银行股份有限公司 A kind of interface configuration method and device
CN109388399A (en) * 2018-10-25 2019-02-26 北京字节跳动网络技术有限公司 The page and Universal page configuration file generation method, device, equipment and medium
CN109460276A (en) * 2018-10-25 2019-03-12 北京字节跳动网络技术有限公司 The page and page configuration document generating method, device, terminal device and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114398091A (en) * 2021-12-03 2022-04-26 贝壳找房(北京)科技有限公司 Configuration method and device of Flutter component
CN114398091B (en) * 2021-12-03 2024-02-23 贝壳找房(北京)科技有限公司 Configuration method and device of router component

Also Published As

Publication number Publication date
WO2022099913A1 (en) 2022-05-19

Similar Documents

Publication Publication Date Title
KR102105261B1 (en) Method and device for displaying interface data
CN107729014B (en) Page jump method and structure based on Android
CN108647032B (en) Application loading method and device, computer device and computer readable storage medium
CN111026439B (en) Application program compatibility method, device, equipment and computer storage medium
CN112416458A (en) Preloading method and device based on ReactNative, computer equipment and storage medium
CN110895471A (en) Installation package generation method, device, medium and electronic equipment
CN112114890A (en) Method, device and equipment for processing small program and storage medium
CN113010827A (en) Page rendering method and device, electronic equipment and storage medium
CN108733370B (en) Stylized display method, device, terminal and storage medium of native APP
US20240007701A1 (en) Continuing video playback when switching from a dynamic page to a non-dynamic page
CN111008132A (en) Application debugging method and device for Android system, computer equipment and storage medium
CN115794437A (en) Calling method and device of microservice, computer equipment and storage medium
CN111752820A (en) Pressure testing method of gPC interface, computer equipment and storage medium
CN112714148A (en) Interface configuration method, device, equipment and medium
CN111880786A (en) Multi-application sharing method, system, device, electronic equipment and storage medium
CN113050921A (en) Webpage conversion method, device, storage medium and computer equipment
CN113315829B (en) Client offline H5 page loading method and device, computer equipment and medium
CN111581578B (en) Interface request processing method and device
CN113918245A (en) Data calling method, device, equipment and computer readable storage medium
CN113377376A (en) Data packet generation method, data packet generation device, electronic device, and storage medium
CN112486484A (en) Webpage version generation method and device
CN112000313A (en) Request response method, device, equipment and storage medium
CN108076067B (en) Method and system for authorized crawler configuration simulation login
CN113961279A (en) Page rendering method, device, server and storage medium
CN111488286A (en) Method and device for independently developing Android module

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
DD01 Delivery of document by public notice

Addressee: Patent director of Haier digital technology (Qingdao) Co.,Ltd.

Document name: Notification of eligibility

DD01 Delivery of document by public notice
RJ01 Rejection of invention patent application after publication

Application publication date: 20210427

RJ01 Rejection of invention patent application after publication