CN110704030A - Interface configuration information generation method and device, electronic equipment and storage medium - Google Patents

Interface configuration information generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110704030A
CN110704030A CN201910918791.9A CN201910918791A CN110704030A CN 110704030 A CN110704030 A CN 110704030A CN 201910918791 A CN201910918791 A CN 201910918791A CN 110704030 A CN110704030 A CN 110704030A
Authority
CN
China
Prior art keywords
interface
configuration information
information
server
client
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
CN201910918791.9A
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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201910918791.9A priority Critical patent/CN110704030A/en
Publication of CN110704030A publication Critical patent/CN110704030A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation

Abstract

The invention discloses a method and a device for generating interface configuration information, electronic equipment, a storage medium and a computer program product containing instructions, and relates to the technical field of computers.

Description

Interface configuration information generation method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for generating interface configuration information, an electronic device, and a storage medium.
Background
The current web service system development process is generally divided into a front end and a back end, wherein the front end is a client, the back end is a server, the front end provides a page for interaction, the back end interacts with a database to process corresponding service logic and provides a service interface for calling to complete the functions of the web service system, an interface document describing interface configuration information is generated in the cooperation process of the front end and the back end, and the interface document is used as a link for communication between the front end and the back end to contribute to the development of the web service system, and in addition, the interface document provides a basis for the subsequent maintenance of a project.
However, the interface document is independent of the project system, the interface document cannot play a due role in the project maintenance stage, or a developer probably forgets the existence of the document, so that the method shifts to low-efficiency oral verification communication, and another document may be written or the document may not be written in any time after the communication is completed, so that the interface information in the interface document determined by the original communication cannot play a due role because the accuracy and the timeliness are lost in time due to the fact that the interface information is not updated in time. In short, the management of the interface document is not standard at present, and the utilization rate of the interface document is low.
Disclosure of Invention
The present disclosure provides a method and apparatus for generating interface configuration information, an electronic device, a storage medium, and a computer program product including instructions to implement a standard management of interface documents and increase the utilization of the interface documents.
The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, the present disclosure provides an interface configuration information generating method, applied to a server, including:
acquiring interface information in the interface documents of the server and the target client;
configuring a server form according to the interface information;
and generating interface configuration information in a preset format according to the server form so that the target client generates a visual Web interface according to the interface configuration information.
Optionally, the interface information includes a request path, a request type, a request parameter, and a response parameter.
Optionally, the interface information further includes one or more of a service type and remark information.
Optionally, the configuring the server form according to the interface information includes:
configuring the request parameters in a first designated item of the server form according to the interface information in a preset field type;
and configuring the response parameter in a preset field type in a second specified item of the server form according to the interface information.
Optionally, the request parameter includes verification information.
Optionally, the interface configuration information in the preset format is configuration information in a JSON format.
Optionally, the method further includes:
and storing the interface configuration information to a preset database.
According to a second aspect of the embodiments of the present disclosure, the present disclosure provides an interface configuration information generating method, applied to a client, including:
acquiring interface configuration information in a preset format from a preset database, wherein the interface configuration information in the preset format is generated according to interface information in interface documents of a server and a client, and comprises configuration information of a request path, configuration information of a request type, configuration information of a request parameter and configuration information of a response parameter;
configuring a client form according to the interface configuration information in the preset format;
and generating a Web page according to the client form.
Optionally, the interface configuration information in the preset format is configuration information in a JSON format.
According to a third aspect of the embodiments of the present disclosure, there is provided an interface configuration information generating apparatus, applied to a server, including:
the acquisition module is configured to acquire interface information in the interface documents of the server and the target client;
the server form module is configured to configure a server form according to the interface information;
and the configuration information generation module is configured to generate interface configuration information in a preset format according to the server form, so that the target client generates a visual Web interface according to the interface configuration information.
Optionally, the interface information includes a request path, a request type, a request parameter, and a response parameter.
Optionally, the interface information further includes one or more of a service type and remark information.
Optionally, the server form module includes:
the request parameter configuration sub-module is configured to configure the request parameters in a preset field type in a first specified item of the server form according to the interface information;
and the response parameter configuration sub-module is configured to configure the response parameter in a preset field type in a second specified item of the server form according to the interface information.
Optionally, the request parameter includes verification information.
Optionally, the interface configuration information in the preset format is configuration information in a JSON format.
Optionally, the apparatus further comprises:
the storage module is configured to store the interface configuration information to a preset database.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an interface configuration information generating apparatus, applied to a client, including:
the acquisition module is configured to acquire interface configuration information in a preset format from a preset database, wherein the interface configuration information in the preset format is generated according to interface information in interface documents of a server and the client, and comprises configuration information of a request path, configuration information of a request type, configuration information of a request parameter and configuration information of a response parameter;
the client form module is configured to configure a client form according to the interface configuration information in the preset format;
and the page generation module is configured to generate a Web page according to the client form.
Optionally, the interface configuration information in the preset format is configuration information in a JSON format.
According to a fifth aspect of embodiments of the present disclosure, there is provided an electronic apparatus including: a processor, a communication interface, a memory, and a communication bus, wherein,
the processor, the communication interface and the memory complete mutual communication through a communication bus;
a memory configured to store a computer program;
a processor configured to implement the interface configuration information generation method according to any one of the first aspect described above when executing a program stored in a memory.
According to a sixth aspect of embodiments of the present disclosure, there is provided an electronic apparatus including: a processor, a communication interface, a memory, and a communication bus, wherein,
the processor, the communication interface and the memory complete mutual communication through a communication bus;
a memory configured to store a computer program;
a processor configured to implement the interface configuration information generation method according to any one of the second aspect described above when executing the program stored in the memory.
According to a seventh aspect of the embodiments of the present disclosure, there is provided a storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the interface configuration information generating method according to any one of the first aspects.
According to an eighth aspect of the embodiments of the present disclosure, there is provided a storage medium having a computer program stored therein, wherein the computer program, when executed by a processor, implements the interface configuration information generating method according to any one of the second aspects.
According to a ninth aspect of the embodiments of the present disclosure, there is provided a computer program product containing instructions, which when run on a computer, causes the computer to execute the interface configuration information generating method according to any one of the first aspect.
According to a tenth aspect of the embodiments of the present disclosure, there is provided a computer program product containing instructions, which when run on a computer, causes the computer to execute the interface configuration information generating method according to any one of the second aspects.
The interface configuration information generation method, device, electronic device, storage medium and computer program product containing instructions provided by the embodiments of the present disclosure at least bring the following beneficial effects:
the method comprises the steps of configuring a service end form according to interface information in interface documents of a service end and a target client, generating interface configuration information in a preset format for the form, and generating interface configuration information through form specification so that the target client generates a visual Web interface according to the interface configuration information to realize the specification management of the interface documents.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a schematic diagram illustrating a first interface configuration information generation method according to an example embodiment;
fig. 2 is a schematic diagram illustrating a second interface configuration information generation method according to an example embodiment;
fig. 3 is a block diagram illustrating a first interface configuration information generation apparatus according to an example embodiment;
fig. 4 is a block diagram illustrating a second interface configuration information generation apparatus according to an example embodiment;
FIG. 5 is a block diagram illustrating a first type of device in accordance with an exemplary embodiment;
fig. 6 is a block diagram illustrating a second type of device according to an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The embodiment of the disclosure discloses an interface configuration information generation method, an interface configuration information generation device, an electronic device, a storage medium and a computer program product containing instructions, which are respectively described below.
Fig. 1 is a schematic diagram illustrating a first interface configuration information generation method according to an exemplary embodiment, where as shown in fig. 1, the interface configuration information generation method is applied to a server and includes the following steps:
in step 110, interface information in the interface document between the server and the target client is obtained.
The interface configuration information generation method of the embodiment of the disclosure is applied to a server, and specifically, the server may be an electronic device such as a server.
At present, in the development process of a web service system, an interface document describing interface information needs to be defined between a server and a target client, and the interface document is used as a basis for communication between the target client and the server to complete the development of the web service system, and the server provides an interface for calling to complete the development of the web service system. And acquiring interface information in the interface documents of the server and the target client at the server. The data type contained in the interface information can be set by self-definition, and in a possible implementation mode, the interface information comprises a request path, a request type, a request parameter and a response parameter. The request path is used for enabling the server and the target client to agree on the same address, so that the server and the target client can access the specified resource, and the request path comprises a resource path and a resource name. And defining response parameters, and acquiring relevant data in the interface information of the server by the client as long as the data format, the request type and the server returned by the client are consistent. The request parameters comprise service related data of a protocol between the server and the target client, and specific service contents can be obtained through the request parameters. According to the request type set by the server, the target client can know the request type of the data submitted by the user.
In a possible implementation, the interface information further includes one or more of a service type and remark information.
In order to describe the server interface information in more detail, the server interface information further includes a service type, remark information, and the like, so that the target client can more clearly know the content of the server interface information. In addition, in order to make the web service system more perfect, information such as service names and remark information can be added into the interface information.
For example, in a conventional service scenario where user information is queried or activity information is configured, it is necessary to invoke recent activity information of the user according to an ID (Identity) of the user, for example, invoking a personal call record. In practical application, a caller helps to complete calling through a visual web page, the web page is developed into target client development work, interface information is required to be in agreement with a server, an interface document is generated, the interface information in the interface document provides relevant information of a target client service, the relevant information comprises request parameters, specifically, the request parameters comprise user ID, user operation starting time and user operation ending time, and the setting of the request parameters enables the target client and the server to have appointed information, so that the target client can know the intention of the server and appoint response parameters, and the client can obtain relevant data in the interface information of the server as long as the data format, the request type and the server returned by the target client are consistent.
In step 120, the server form is configured according to the interface information.
The server form is responsible for data acquisition of server interface information, attribute lines such as line number, column number, table head, cell and the like of the server form are formulated according to the interface information, then the interface information in the interface documents of the server and the target client is configured with the server form according to the form of key value pairs, for example, a specific address is configured in a request path item, a specific request parameter is configured in a request type item, and a specific request parameter is configured in a request parameter item, such as user ID, user operation start time and user operation end time, so that in the subsequent development process, when the interface information in the interface documents of the server and the target client is changed, only the configuration information of response in the server form needs to be changed, or when the interface information is added, only available fields need to be configured in the server form, development is not needed again, working time of developers is saved, and working efficiency is improved.
In step 130, interface configuration information in a preset format is generated according to the server form, so that the target client generates a visual Web interface according to the interface configuration information.
Interface information in the interface documents of the server and the target client is configured in the server form, interface configuration information in a preset format which can be read by the client can be generated according to the server form, and a visual Web interface is generated by the target client according to the interface configuration information, so that the working time of developers is saved, and the working efficiency is improved.
The method comprises the steps of configuring a service end form according to interface information in interface documents of a service end and a target client, generating interface configuration information in a preset format for the form, and generating interface configuration information through form specification so that the target client generates a visual Web interface according to the interface configuration information to realize specification management of the interface documents.
In a possible implementation manner, the configuring the server form according to the interface information includes:
configuring the request parameter with a preset field type in a first specified item of the server form according to the interface information;
and configuring the response parameters in a preset field type in a second specified item of the server form according to the interface information.
In the server form, the field of the configuration response describes the request parameter and the response parameter, the field type includes basic types, such as String (String type) for specifying the String length range, Number (numeric type) for specifying the legal Number range, Boolean (Boolean) for representing the true and false values, and Array for representing how many entries are included. For example, the user ID is configured as String field type, that is, the user ID is required to input a character String type, the user operation start time is configured as Number type, and the user operation start time is required to input a Number type.
In a possible embodiment, the request parameter includes verification information.
Depending on the specific content of the service, the request parameters may also provide some additional check options, such as: the verification information is used for confirming whether the request parameters are correct, for example, after the user ID is input, the mobile phone number of the user needs to be additionally input to assist in verifying whether the condition of inputting the user ID is met.
In a possible embodiment, the interface configuration information in the preset format is configuration information in a JSON (Java script object notification, which represents a JS object numbered Notation) format.
The JSON format is a lightweight data exchange format that stores and represents data in a text format that is completely independent of the programming language, based on a subset of ECMAScript (JS specification set by the european computer association). Configuration information in the JSON format is easy to read and write by people, and is easy to analyze and generate by a machine, so that the network transmission efficiency is effectively improved, and the working efficiency can be improved by using JSON.
In a possible embodiment, the method further includes:
and storing the interface configuration information into a preset database.
And storing the interface configuration information into a preset database, and directly reading the interface configuration information in the preset database when the client uses the interface configuration information. Or, when the subsequent service system is maintained, the interface configuration information can be directly called from the preset database, so that the utilization value of the interface configuration information in the interface document is improved.
Fig. 2 is a schematic diagram illustrating a second interface configuration information generation method according to an exemplary embodiment, where as shown in fig. 2, the interface configuration information generation method is applied to a client, and includes the following steps:
in step 210, interface configuration information in a preset format is obtained from a preset database, where the interface configuration information in the preset format is generated according to interface information in an interface document between a server and the client, and the interface configuration information in the preset format includes configuration information of a request path, configuration information of a request type, configuration information of a request parameter, and configuration information of a response parameter.
The interface configuration information generation method of the embodiment of the disclosure is applied to a client, and specifically, the client may be an electronic device such as a smart phone or a personal computer.
At present, in the development process of a web service system, an interface document describing interface configuration information needs to be defined between a server and a client, and the interface document is used as a basis for communication between the client and the server to complete the development of the web service system, and the server provides an interface for calling to complete the development of the web service system. And acquiring interface information in the interface documents of the server and the target client at the server. The general interface information includes request path, request type, request parameter, response parameter, and in addition, in order to make the web service system more perfect, information such as service name, remark information, etc. is additionally added.
For example, in a conventional service scenario in which user information is queried or activity information is configured, recent activity information of a user needs to be called according to an ID (Identity, Identity number) of the user, in practical applications, a caller helps to complete the calling through a visual web page, the web page is developed to be client development work, interface information with a server protocol is needed to generate an interface document, the interface information in the interface document provides relevant information of a client service, including request parameters, specifically, the request parameters include the ID of the user, user operation start time, and user operation end time, wherein the request parameters are set so that the client and the server have agreed information, the client can know the intention of the server and agree with response parameters, as long as a data format, a request type and the server returned by the client are consistent, the client can obtain the relevant data in the server interface information. For example, interface configuration information in a preset format is obtained from a preset database according to the ID value in the page route.
In step 220, the client form is configured according to the interface configuration information in the preset format.
The client form is responsible for data acquisition of interface configuration information in a preset format, attribute rows such as row Number, column Number, header, cell and the like of the client form are formulated according to the interface configuration information in the preset format, for example, a conventional text input frame component is set for string field type data, a digital input frame component is set for Number field type data, or more types of components are expanded by convention, for example, an uploading component, a time selector component, a single-selection component, a multi-selection component and the like are configured to generate the client form. For example, a corresponding display function is set for a conventional response parameter, such as a prompt message indicating whether the configuration class service setting is successful or not.
In step 230, a Web page is generated from the client form.
According to the client form, a web page can be generated, and according to the generated visual web page, the generated visual web page can show relevant interface information defined by the server, for example, the web page shows a user ID, a user operation starting time, a user operation ending time and the like.
The method comprises the steps of configuring a service end form according to interface information in interface documents of a service end and a target client, generating interface configuration information in a preset format for the form, and generating interface configuration information through form specification so that the target client generates a visual Web interface according to the interface configuration information to realize specification management of the interface documents.
In a possible implementation manner, the interface configuration information in the preset format is configuration information in a JSON format.
The JSON (JSON Notation, which represents JS object bulletin Notation) format is a lightweight data exchange format that stores and represents data in a text format that is completely independent of programming language based on a subset of ECMAScript (JS specification set by the european computer association). Configuration information in the JSON format is easy to read and write by people, and is easy to analyze and generate by a machine, so that the network transmission efficiency is effectively improved, and the working efficiency can be improved by using JSON.
Fig. 3 is a first schematic diagram of an interface configuration information generating apparatus according to an embodiment of the present disclosure, applied to a server, and referring to fig. 3, the apparatus includes: the system comprises an acquisition module 310, a server side form module 320 and a configuration information generation module 330.
The acquisition module 310 is configured to acquire interface information in the interface documents of the server and the target client;
a server form module 320 configured to configure a server form according to the interface information;
the configuration information generating module 330 is configured to generate interface configuration information in a preset format according to the server form, so that the target client generates a visual Web interface according to the interface configuration information.
In a possible implementation, the interface information includes a request path, a request type, a request parameter, and a response parameter.
In a possible implementation, the interface information further includes one or more of a service type and remark information.
In a possible implementation manner, the server form module 320 includes:
a request parameter configuration submodule configured to configure the request parameter in a preset field type in a first specified item of the server form according to the interface information;
and the response parameter configuration submodule is configured to configure the response parameter in a preset field type in a second specified item of the server form according to the interface information.
In a possible embodiment, the request parameter includes verification information.
In a possible implementation manner, the interface configuration information in the preset format is configuration information in a JSON format.
In a possible embodiment, the above apparatus further comprises:
and the storage module is configured to store the interface configuration information to a preset database.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 4 is a second schematic diagram of an interface configuration information generating apparatus according to an embodiment of the disclosure, referring to fig. 4, applied to a client, where the apparatus includes: an acquisition module 410, a client form module 420, and a page generation module 430.
An obtaining module 410, configured to obtain interface configuration information in a preset format from a preset database, where the interface configuration information in the preset format is generated according to interface information in an interface document between a server and the client, and the interface configuration information in the preset format includes configuration information of a request path, configuration information of a request type, configuration information of a request parameter, and configuration information of a response parameter;
a client form module 420 configured to configure a client form according to the interface configuration information in the preset format;
and a page generating module 430 configured to generate a Web page according to the client form.
In a possible implementation manner, the interface configuration information in the preset format is configuration information in a JSON format.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 5 is a schematic diagram of an electronic device according to an embodiment of the disclosure, and referring to fig. 5, the electronic device 800 may be, for example, a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, or the like.
Referring to fig. 5, electronic device 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user as described above. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of the touch or slide action but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 800 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the electronic device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the above-mentioned communication component 816 further comprises a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing any of the above-described interface configuration information generation methods applied to the service end in the above-described embodiments.
FIG. 6 is a schematic diagram illustrating a second type of electronic device, according to an example embodiment. For example, the electronic device 900 may be provided as a server. Referring to fig. 6, electronic device 900 includes a processing component 922, which further includes one or more processors, and memory resources, represented by memory 932, for storing instructions, such as applications, that are executable by processing component 922. The application programs stored in memory 932 may include one or more modules that each correspond to a set of instructions. In addition, the processing component 922 is configured to execute the instructions to execute any of the above-described interface configuration information generation methods applied to the server side in the above-described embodiments.
The electronic device 900 may also include a power component 926 configured to perform power management of the electronic device 900, a wired or wireless network interface 950 configured to connect the electronic device 900 to a network, and an input/output (I/O) interface 958. The electronic device 900 may operate based on an operating system stored in the memory 932, such as a Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or similar operating system.
In the embodiment of the disclosure, an electronic device is also provided, and the electronic device can be provided as a server. The electronic device includes a processing component that further includes one or more processors, and memory resources, represented by memory, for storing instructions, such as application programs, that are executable by the processing component. The application program stored in the memory may include one or more modules that each correspond to a set of instructions. In addition, the processing component is configured to execute the instructions to execute any of the above-mentioned interface configuration information generation methods applied to the client in the above-mentioned embodiments.
In an embodiment of the present disclosure, a storage medium is further provided, where instructions are stored, and when the storage medium runs on a computer, the storage medium causes the computer to execute any one of the above-mentioned interface configuration information generation methods applied to a server in the foregoing embodiments. In an exemplary embodiment, a storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the above-described method is also provided. Alternatively, the storage medium may be, for example, a non-transitory computer-readable storage medium, such as a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In the embodiment of the present disclosure, a storage medium is further provided, where instructions are stored, and when the instructions are executed on a computer, the instructions cause the computer to execute any one of the above-mentioned interface configuration information generation methods applied to a client in the above-mentioned embodiment. In an exemplary embodiment, a storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the above-described method is also provided. Alternatively, the storage medium may be, for example, a non-transitory computer-readable storage medium, such as a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In the embodiment of the present disclosure, a computer program product containing instructions is further provided, which when run on a computer, causes the computer to execute any one of the above-mentioned methods for generating interface configuration information applied to a server in the above-mentioned embodiment.
In the embodiment of the present disclosure, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to execute any one of the above-mentioned methods for generating interface configuration information applied to a client in the embodiment.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for generating interface configuration information is applied to a server and comprises the following steps:
acquiring interface information in the interface documents of the server and the target client;
configuring a server form according to the interface information;
and generating interface configuration information in a preset format according to the server form so that the target client generates a visual Web interface according to the interface configuration information.
2. The method of claim 1, wherein the interface information comprises request path, request type, request parameters, and response parameters.
3. The method of claim 2, wherein the interface information further comprises one or more of a service type, remark information.
4. The method of claim 2, wherein the configuring the server form according to the interface information comprises:
configuring the request parameters in a first designated item of the server form according to the interface information in a preset field type;
and configuring the response parameter in a preset field type in a second specified item of the server form according to the interface information.
5. The method of any of claims 2-4, wherein the request parameter includes verification information.
6. The method according to claim 1, wherein the interface configuration information in the preset format is configuration information in a JSON format.
7. The method of claim 1, further comprising:
and storing the interface configuration information to a preset database.
8. The interface configuration information generation method is applied to a client and comprises the following steps:
acquiring interface configuration information in a preset format from a preset database, wherein the interface configuration information in the preset format is generated according to interface information in interface documents of a server and a client, and comprises configuration information of a request path, configuration information of a request type, configuration information of a request parameter and configuration information of a response parameter;
configuring a client form according to the interface configuration information in the preset format;
and generating a Web page according to the client form.
9. An interface configuration information generation device, applied to a server, includes:
the acquisition module is configured to acquire interface information in the interface documents of the server and the target client;
the server form module is configured to configure a server form according to the interface information;
and the configuration information generation module is configured to generate interface configuration information in a preset format according to the server form, so that the target client generates a visual Web interface according to the interface configuration information.
10. An interface configuration information generation apparatus, applied to a client, includes:
the acquisition module is configured to acquire interface configuration information in a preset format from a preset database, wherein the interface configuration information in the preset format is generated according to interface information in interface documents of a server and the client, and comprises configuration information of a request path, configuration information of a request type, configuration information of a request parameter and configuration information of a response parameter;
the client form module is configured to configure a client form according to the interface configuration information in the preset format;
and the page generation module is configured to generate a Web page according to the client form.
CN201910918791.9A 2019-09-26 2019-09-26 Interface configuration information generation method and device, electronic equipment and storage medium Pending CN110704030A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910918791.9A CN110704030A (en) 2019-09-26 2019-09-26 Interface configuration information generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910918791.9A CN110704030A (en) 2019-09-26 2019-09-26 Interface configuration information generation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110704030A true CN110704030A (en) 2020-01-17

Family

ID=69198156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910918791.9A Pending CN110704030A (en) 2019-09-26 2019-09-26 Interface configuration information generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110704030A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111506298A (en) * 2020-03-10 2020-08-07 南京行者易智能交通科技有限公司 Method for carrying out interface visual configuration based on JSON object
CN113595978A (en) * 2021-06-23 2021-11-02 北京国电通网络技术有限公司 Data communication method based on micro-service architecture and related equipment
CN113590113A (en) * 2021-07-20 2021-11-02 远光软件股份有限公司 Interface generation method, equipment and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050050228A1 (en) * 2003-08-29 2005-03-03 Michael Perham Method and apparatus for the use of dynamic XML message formats with web services
CN107291459A (en) * 2017-06-09 2017-10-24 深圳市金立通信设备有限公司 A kind of method and server for arranging information
CN107301137A (en) * 2017-07-04 2017-10-27 福建中金在线信息科技有限公司 RSET interface realizing methods and device and electronic equipment and computer-readable recording medium
CN107515771A (en) * 2017-09-07 2017-12-26 蓝海天网科技有限公司 API document structure tree method and system based on SpringMVC
CN107967143A (en) * 2017-12-14 2018-04-27 泰康保险集团股份有限公司 Obtain the methods, devices and systems of the update instruction information of client application source code
CN109408375A (en) * 2018-09-27 2019-03-01 深圳壹账通智能科技有限公司 The generation method and device of interface document

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050050228A1 (en) * 2003-08-29 2005-03-03 Michael Perham Method and apparatus for the use of dynamic XML message formats with web services
CN107291459A (en) * 2017-06-09 2017-10-24 深圳市金立通信设备有限公司 A kind of method and server for arranging information
CN107301137A (en) * 2017-07-04 2017-10-27 福建中金在线信息科技有限公司 RSET interface realizing methods and device and electronic equipment and computer-readable recording medium
CN107515771A (en) * 2017-09-07 2017-12-26 蓝海天网科技有限公司 API document structure tree method and system based on SpringMVC
CN107967143A (en) * 2017-12-14 2018-04-27 泰康保险集团股份有限公司 Obtain the methods, devices and systems of the update instruction information of client application source code
CN109408375A (en) * 2018-09-27 2019-03-01 深圳壹账通智能科技有限公司 The generation method and device of interface document

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111506298A (en) * 2020-03-10 2020-08-07 南京行者易智能交通科技有限公司 Method for carrying out interface visual configuration based on JSON object
CN113595978A (en) * 2021-06-23 2021-11-02 北京国电通网络技术有限公司 Data communication method based on micro-service architecture and related equipment
CN113590113A (en) * 2021-07-20 2021-11-02 远光软件股份有限公司 Interface generation method, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN106569800B (en) Front-end interface generation method and device
KR101770931B1 (en) Method, apparatus, program and computer-readable recording medium of generating communication module firmware and plug-in
CN107423106B (en) Method and apparatus for supporting multi-frame syntax
CN110704030A (en) Interface configuration information generation method and device, electronic equipment and storage medium
CN115185717B (en) Interface calling method and device, electronic equipment and storage medium
CN107463372B (en) Data-driven page updating method and device
CN108270661B (en) Information reply method, device and equipment
CN106708967B (en) Page display method and device
CN105468606B (en) Webpage saving method and device
CN106506808B (en) Method and device for prompting communication message
CN112433787A (en) Target object serialization method and device, electronic device and storage medium
CN112328330A (en) iOS component calling method, device, middleware, electronic equipment and medium
EP3173949A1 (en) Method and device for pushing user information
CN107885464B (en) Data storage method, device and computer readable storage medium
CN109032583B (en) Data interaction method and device
CN114428737A (en) Communication method, device, equipment and storage medium based on micro service system
CN108958943B (en) Memory release method and device
CN112860625A (en) Data acquisition method, data storage method, device, equipment and storage medium
US20200413372A1 (en) Method and device for extending pbch
CN114238728B (en) Vehicle data processing method, device and equipment
CN114531493B (en) Request processing method and device, electronic equipment and storage medium
CN112862349B (en) Data processing method, device and equipment based on ABS service data
CN111143184B (en) Data processing method, device and system
CN112182027B (en) Information query method, device, electronic equipment and storage medium
CN112003788B (en) Data request sending method, device, equipment and medium

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