Page optimization method, information collection method, information query method and related devices
By setting the mapping relationship between the preset function page and the back-end interface, the back-end interface of the page function is quickly positioned and optimized, which solves the problem of low efficiency in page function optimization development, and significantly improves development efficiency and accuracy.
Patent Information
- Application Number
- CN202410933953.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-12-17
AI Technical Summary
During the development of page function optimization, the efficiency of positioning the backend service request interface is low, which leads to complex and time-consuming development process, especially in the case of multi-function pages, affecting development efficiency.
By setting the mapping relationship between the preset function page information and the back-end interface information, the back-end interface information of the target function can be quickly determined, and the functions can be optimized through the optimization entrance to improve the efficiency of function optimization.
It realizes rapid positioning and optimization of the entrance, improves the efficiency of page function optimization, simplifies the development process, reduces the error rate, and significantly improves the development efficiency especially in the case of complex functional pages.
Smart Images

Figure CN119149013A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a page optimization method, an information collection method, an information query method and related devices, wherein the related devices include a page optimization device, an information collection device, an information query device, a computer device, a computer-readable storage medium and a computer program product. Background Art
[0002] With the development of computer technology, more and more software systems are being developed, the functions of the systems are increasing, and the pages are becoming more and more complex. With more and more function points in a single page, there will be more and more interrelated functions. Therefore, when optimizing the original functions, there will be a need to locate the request interface of the function point in the page to call the background service. This is because, as long as the request interface of the background service is known, the entry of the function is also known, and it is also possible to quickly locate which backend service code needs to be modified for the optimized function, thereby quickly completing the optimization development of the function.
[0003] Therefore, how to quickly and effectively locate the optimization entry corresponding to a certain function has become one of the hot issues in the field of computer technology. Summary of the invention
[0004] Based on this, it is necessary to provide a page optimization method, information collection method, information query method and related devices that help improve page optimization efficiency in response to the above-mentioned technical problems, wherein the related devices include page optimization devices, information collection devices, information query devices, computer equipment, computer-readable storage media and computer program products.
[0005] In a first aspect, the present application provides a page optimization method, which includes:
[0006] In response to an optimization instruction for a target function in a target page, determining target backend interface information of the target function based on function page information of the target function in the target page and a preset mapping relationship between the function page information and the backend interface information;
[0007] Determine the optimization entry of the target function based on the target backend interface information;
[0008] The target function is optimized according to the optimization instruction through the optimization entry.
[0009] Based on the page optimization method of the embodiment of the present application as described above, a preset mapping relationship between function page information and backend interface information is pre-set. When receiving an optimization instruction for a target function in a target page, the target backend interface information of the target function can be determined through the preset mapping relationship, and then the optimization entry of the target function is determined based on the target backend interface information, and the target function is optimized according to the optimization instruction through the optimization entry. It can be seen that the optimization entry of the target function can be quickly located based on the pre-set preset mapping relationship, and the target function is optimized on this basis, which further helps to improve the efficiency of function optimization.
[0010] In a second aspect, the present application also provides an information collection method, the method further comprising:
[0011] In response to an information collection instruction for a target function in a target page, an information collection interface is displayed; the information collection interface includes a function page information item and a backend interface information item;
[0012] The function page information input at the function page information item and the backend interface information input at the backend interface information item are acquired, and the acquired information is associated and stored in a preset mapping relationship between the function page information and the backend interface information.
[0013] Based on the information collection method of the embodiment of the present application as described above, it responds to the information collection instruction for the target function in the target page, displays the information collection interface, and obtains the function page information entered at the function page information item of the display collection interface, and the back-end interface information entered at the back-end interface information item of the display collection interface, and associates and stores the obtained information in a preset mapping relationship between the function page information and the back-end interface information. Therefore, when there is a need to optimize the target page, the back-end interface information of the target function can be quickly determined based on the preset mapping relationship to optimize the target function in the target page, which helps to locate the optimization entry of the target function on this basis and helps to improve the optimization efficiency of the target function of the target page.
[0014] In a third aspect, the present application also provides an information query method, the method comprising:
[0015] Obtaining an information query request, wherein the information query request includes a function keyword;
[0016] Based on the function keyword, the function unit information is queried in the function information database, the function unit information includes function page information and backend interface information, wherein the function unit information stored in the function information database is collected based on the information collection method of the embodiment described above.
[0017] Based on the information query method of the embodiment of the present application as described above, it can query the function unit information in the function information database by responding to the information query request, and the function unit information includes the function page information and back-end interface information of the target function in the target page, so that the function page information and back-end interface information related to the target function of the target page can be queried and obtained, and on this basis, the back-end interface information corresponding to the target function can be determined, and based on the back-end interface information, it can be determined which functions are affected, and on this basis, when there is a need to optimize the target page, the back-end interface information of the target function and other functions that will be affected by the back-end interface information can be quickly determined, and on this basis, the target function in the target page is optimized, which helps to locate the optimization entry of the target function and helps to improve the development efficiency of function optimization.
[0018] In a fourth aspect, the present application further provides a page optimization device, wherein the device comprises:
[0019] an information acquisition module, configured to respond to an optimization instruction for a target function in a target page, determine target backend interface information of the target function based on function page information of the target function in the target page, and a preset mapping relationship between the function page information and the backend interface information;
[0020] An entry determination module, used to determine the optimized entry of the target function based on the target backend interface information;
[0021] An optimization processing module is used to optimize the target function according to the optimization instruction through the optimization entry.
[0022] In a fifth aspect, the present application further provides an information collection device, wherein the device comprises:
[0023] An instruction processing module, for responding to an information collection instruction for a target function in a target page, and displaying an information collection interface; the information collection interface includes a function page information item and a backend interface information item;
[0024] The acquisition module is used to obtain the function page information input at the function page information item and the backend interface information input at the backend interface information item, and associate the obtained information with a preset mapping relationship between the function page information and the backend interface information.
[0025] In a sixth aspect, the present application further provides an information query device, wherein the device comprises:
[0026] A query request acquisition module, used to acquire an information query request, wherein the information query request includes a function keyword;
[0027] A query module is used to query the function unit information in the function information database based on the function keyword, wherein the function unit information includes function page information and backend interface information, wherein the function unit information stored in the function information database is collected based on the information collection method of the embodiment described above.
[0028] In a seventh aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method in any of the above embodiments are implemented.
[0029] In an eighth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method in any of the above embodiments are implemented.
[0030] In a ninth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the method in any of the above embodiments are implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 This is an example diagram of the process when optimizing the functions in the existing method;
[0032] Figure 2 A schematic diagram of an application scenario of a page optimization method, an information collection method, and an information query method in an embodiment;
[0033] Figure 3 A schematic diagram of a flow chart of a page optimization method in one embodiment;
[0034] Figure 4 A schematic diagram of a process for optimizing a target function in one embodiment;
[0035] Figure 5 is a flow chart of an information collection method in one embodiment;
[0036] Figure 6 A schematic diagram of a process of obtaining the function page information at the function page information item and the backend interface information at the backend interface information item in one embodiment;
[0037] Figure 7 is a flow chart of an information query method in one embodiment;
[0038] Figure 8 is a flowchart of the information collection process in a specific example;
[0039] Fig. 9 is a flowchart of the information collection process in another specific example;
[0040] Fig.10 It is a structural block diagram of a page optimization device in one embodiment;
[0041] Fig.11 is a structural block diagram of an information collection device in an embodiment;
[0042] Fig.12 is a structural block diagram of an information query device in an embodiment;
[0043] Fig.13 is an internal structure diagram of a computer device in one embodiment;
[0044] Fig.14 FIG. 4 is a diagram showing the internal structure of a computer device in another embodiment. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0046] The following embodiments of the technical solution of the present application are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.
[0047] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.
[0048] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.
[0049] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0050] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).
[0051] At present, in the development process of page function optimization, there is a need to locate the request interface of the backend service called by the function point in the page. Based on this demand, the existing methods of locating the backend service interface for development are as follows: Figure 1 shown.
[0052] like Figure 1 As shown, referring to the traditional method, when the developer has the function to optimize the page function, he opens the corresponding front-end page (that is, the front-end page that needs to be optimized this time), and clicks a function button in the opened front-end page, and then the corresponding function interface pops up. After the developer modifies the relevant data in the function interface, he clicks the submit button and checks the back-end service interface returned by clicking the submit button in the browser, so as to find the correct back-end service interface, and find the real back-end function implementation method according to the back-end service interface, and analyze where the function optimization needs to be modified in the back-end function implementation method. In addition, it is also analyzed whether the back-end function implementation method of the back-end is called by other service interfaces. If so, it is necessary to analyze other additional functions that will be affected by this function optimization requirement. Generally speaking, it generally affects other pages or other business functions, and informs the testers or product personnel what other functions are affected by this requirement, and the testers need to fully cover it during the test, and finally put the modified functions online.
[0053] It should be understood that the development process of demand analysis-development-testing-online as described above is just a simple example that is easy to understand. From the above description, it can be found that the work efficiency of this development process involving page optimization is very low, and in the actual development process, many function buttons are not clickable on the page, and it is difficult to find the triggering function points, which makes it very unfriendly to newcomers who are engaged in page optimization development, and it is also time-consuming to analyze other function points affected by function points, and it is easy to make mistakes. Then, in the face of a more complex development process or a situation where the function points affected by the function points are more complex, it will more seriously affect the development efficiency of page optimization.
[0054] Based on this, after research, it is found that a function information database can be provided. In the process of development and / or testing, function unit information including function page information and back-end interface information can be collected, and the collected function unit information can be stored in the function information database, so that the preset mapping relationship between the function page information and the back-end interface information is stored in the function information database. Therefore, when page optimization is required, or when the back-end port information of the developed function is viewed, or when other information related to the developed function needs to be viewed, the target back-end information can be obtained by accessing the function information database or querying based on the preset mapping relationship between the function page information and the back-end interface information, and subsequent page optimization function development can be carried out on this basis, which can improve the efficiency of subsequent page optimization.
[0055] The page optimization method, information collection method and information query method provided in the embodiments of the present application can be applied to Figure 2 In the application environment shown. Among them, the terminal 10 communicates with the server 20 through the network, and the server 20 can be a server deployed by the application developed by the developer, wherein the deployed server can be a server applied in the process of developing / testing the system, or a server deployed after the system development / testing is completed and released. After the application developed by the terminal 10 is released, in the actual application process, a user terminal that can access the server, such as a terminal used by a developer / tester, is used to implement the development and / or testing process of the application, or to implement the process of developing and / or testing new functions of the application after the application is released. In the embodiment of the present application, the terminal is used as an example to illustrate. The function information database is used to store the function unit information collected by the terminal 10, and the function unit information can include a preset mapping relationship between the function page information and the back-end interface information. Among them, the terminal 10 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 20 may be implemented as an independent server or a server cluster consisting of multiple servers.
[0056] refer to Figure 3 As shown, the embodiment of the present application provides a page optimization method, which is described by taking application in terminal 10 as an example, wherein the method includes:
[0057] Step S301: In response to an optimization instruction for a target function in a target page, target backend interface information of the target function is determined based on function page information of the target function in the target page and a preset mapping relationship between the function page information and the backend interface information.
[0058] Among them, the target page is the page that needs to be optimized when performing page optimization. The optimization for the target page can be any possible optimization, such as adjusting the type of existing functions, adjusting the implementation method of the function, deleting the existing function, etc., but not limited to this. The target function is the function that needs to be optimized for the target page, such as the function that needs to be adjusted, the function that needs to be deleted, etc. Function is a measurement unit for measuring the scale of software. It is a unit for quantifying and measuring software from the user's perspective. It is mainly determined based on the logical design of the system. For example, the software system can be decomposed into components to determine the functional points of the system. Some common functions may include menus, buttons, query lists, detail functions, etc., but are not limited to this.
[0059] The optimization instruction is an instruction for indicating that the target function of the target page is to be optimized. The target instruction can be received in various possible ways, such as the user clicking a button related to the target function in the target page, or entering keywords related to the target function of the target page in the optimization page, but is not limited thereto.
[0060] Function page information refers to information related to the front end of the function, such as the function name and the front end interface, but not limited thereto. The front end interface may include a front end code page and a front end function interface. The front end function interface may be a function-related page displayed on the display interface of the user terminal when the target page is displayed on the user terminal, and may be an interface obtained by taking a screenshot of the displayed page. The front end code page may include the file path of the front end page.
[0061] The function page information may not be limited to the function name and interface, but may also include other information, such as the system name and version number.
[0062] Backend interface information refers to information related to the backend of a function, that is, information related to the backend that supports the operation of the function of the application, such as information running on the server backend. Some possible backend interface information may include the backend interface address, backend function implementation method, etc.
[0063] The above-mentioned backend interface information may not be limited to the above-mentioned backend service interface address and backend function implementation method, but may also include other information, such as a third-party interface or development toolkit called by the backend function implementation method, a requirement name corresponding to the function name, related attachments corresponding to the function name or address information of related attachments, the primary key value of the key-value pair corresponding to the business function corresponding to the function name during the development process, the subject of the distributed message corresponding to the business function corresponding to the function name, the table structure corresponding to the function name, the SQL statement to complete the function corresponding to the function name, and at least one of the information on whether the function corresponding to the function name has been successfully launched. Among them, the related attachments may include at least one of the requirements document attachment, the design document attachment, the test case document attachment, the upload review plan attachment, and the online failure cause analysis report.
[0064] The preset mapping relationship includes the mapping relationship between the function page information and the backend interface information. Based on this mapping relationship, it is reflected which backend interface information's operation support is used to implement the function page information. Therefore, after obtaining the function page information of the target function in the target page, the target backend interface information of the target function can be determined through the preset relationship.
[0065] Step S302: Determine the optimization entry of the target function based on the target backend interface information.
[0066] The optimization entry is used to provide a channel for accessing the backend content corresponding to the target function. The target backend interface information can be accessed through the optimization entry.
[0067] Step S303: Optimize the target function according to the optimization instruction through the optimization entry.
[0068] Since the target backend interface information can be accessed based on the optimization entry, the target function can be optimized according to the received optimization instruction through the optimization entry.
[0069] Based on the page optimization method of the embodiment of the present application as described above, a preset mapping relationship between the function page information and the backend interface information is pre-set, so that, when an optimization instruction for a target function in a target page is received, the target backend interface information of the target function can be determined through the preset mapping relationship, and then the optimization entry of the target function is determined based on the target backend interface information, and the target function is optimized according to the optimization instruction through the optimization entry. It can be seen that the optimization entry of the target function can be quickly located based on the pre-set preset mapping relationship, and the target function is optimized on this basis, which further helps to improve the efficiency of function optimization.
[0070] In some embodiments, the optimization entry includes the first code content, and the target backend interface information includes the target backend interface address; the step S302 of determining the optimization entry of the target function based on the target backend interface information includes:
[0071] Based on the target backend interface address, first code content corresponding to the target backend interface address in the backend service code is located.
[0072] The backend business code refers to the program code that implements the frontend page and each function in the page, and the first code content refers to the code content in the backend business code that is related to the implementation of the target backend interface address. Based on the target backend interface address, the address of the backend interface information can be known, so that based on the target backend interface address, the first code content corresponding to the target backend interface address in the backend business code can be located.
[0073] Based on this embodiment, after knowing the target backend interface address, the first code content corresponding to the target backend interface address can be located in the backend business code, so that the first code content can be used as an entry for optimizing the target function, and the optimization of the target function can be achieved on this basis, which is convenient and easy.
[0074] In some embodiments, the target backend interface information includes a target backend function implementation method; in this case, Figure 4 As shown, the above step S303 optimizes the target function according to the optimization instruction through the optimization entry, including:
[0075] Step S3031: Determine a target backend function implementation method based on the first code content corresponding to the target backend interface address.
[0076] The backend business function implementation method refers to the method in the backend business code that is related to the implementation of the business function. When implementing the frontend function, it is usually necessary to implement it based on the backend business function implementation method. When the business function needs to be used in the application process, it is usually implemented by accessing the backend business function implementation method through the backend interface address of the business function. Therefore, the target backend function implementation method that implements the target function can be determined through the first code content corresponding to the target backend interface address.
[0077] Step S3032: Based on the target backend function implementation method, locate the second code content corresponding to the target backend function implementation method in the backend business code.
[0078] The back-end function implementation method needs to be implemented through program code. The target back-end function implementation method determined based on the first code content corresponding to the target back-end interface address can be the method name of the back-end function implementation method. The second code content corresponding to the target back-end function implementation method refers to the coded content used to implement the method execution process corresponding to the target back-end function implementation method. According to the program design method, the code content that implements the back-end function implementation method usually appears after the method name of the back-end function implementation method or is implemented by calling. Therefore, based on the target back-end function implementation method, the second code content corresponding to the target back-end function implementation method can be located.
[0079] Step S3033: Adjust the second code content based on the optimization entry and the optimization instruction.
[0080] After locating the second code content corresponding to the target backend function implementation method, the second code content can be optimized based on the optimization instructions. The optimization of the second code content usually involves adjusting the second code content. Some possible adjustment methods may include: adding code content, deleting code content, adjusting the size of parameter values when there are parameter values, adding new parameters, deleting existing parameters, etc., but not limited to these.
[0081] Based on this embodiment, after knowing the first code content corresponding to the target backend interface address, the target backend function implementation method can be determined, and then the second code content corresponding to the target backend function implementation method in the backend business code can be located, so that the second code content can be adjusted in combination with the optimization instructions to achieve page optimization, which is convenient and quick.
[0082] refer to Figure 5 As shown, the embodiment of the present application provides an information collection method, which is described by taking application in terminal 10 as an example, wherein the method includes:
[0083] Step S501: in response to an information collection instruction for a target function in a target page, an information collection interface is displayed; the information collection interface includes function page information items and backend interface information items.
[0084] Information collection instructions refer to instructions for collecting information related to the functions in the page. Information collection instructions are obtained by the user terminal based on the user's operation.
[0085] In some embodiments, a collection button or related menu component may be provided on the page, and the user may issue an information collection instruction by operating the collection button or related menu component. In some embodiments, relevant shortcut keys may be configured for the information collection instruction, and the user may issue the information collection instruction by operating these shortcut keys. In some embodiments, a voice input component may also be provided, and the user may issue the information collection instruction by voice input. It is understandable that one or more of these methods that can trigger the information collection instruction may be configured on the page, and other methods that can obtain the information collection instruction may also be provided.
[0086] Taking obtaining the information collection instruction by setting a collection button as an example, the method of obtaining the information collection instruction may include: obtaining the information collection instruction in response to the operation of the collection button of the currently displayed page.
[0087] Among them, the collection button can be set at different positions for different pages. In the embodiment of the present application, the collection button can be set at the same position on all pages, that is, the collection button can be set as a common button on all pages, so that for any page, the user can issue an information collection instruction by operating the collection button at this position, which is convenient and easy, and it is also easy for new developers to find the entrance to information collection, and it helps to improve the efficiency of information collection, and on this basis helps to further improve the efficiency of page optimization.
[0088] In this case, in some embodiments, the information collection instruction is generated after triggering the collection control in the target page, and the location of the collection control in the target page is the same as that in the non-target page. In some embodiments, the information collection instruction is generated after triggering the collection control in the non-target page; the target page and the non-target page share a collection control.
[0089] The information collection interface is an interface that can be used to collect and display the collected information. By displaying the collected information on the information collection interface, it can help users intuitively understand the collected information.
[0090] Function page information items refer to information collection items related to function page information, and backend interface information items refer to information collection items related to backend interface information. Taking function page information items as an example, function page information items may include information items related to function page information and corresponding information input boxes, and some possible information items may include function name, version number, front-end page, front-end function interface, etc., but not limited to this. Taking backend interface information items as an example, backend interface information items may include information items related to backend interface information and corresponding information input boxes, and some possible information items may include backend service interface address, backend service interface method, backend business method, third-party interface or SDK (development kit), requirement name, requirement document attachment, design document attachment, test case document attachment, online review plan attachment, redis key used in business functions, kafka topic used in business functions, table structure used, sql statement used, etc., but not limited to this.
[0091] Step S502: Acquire the function page information input at the function page information item and the backend interface information input at the backend interface information item, and associate and store the acquired information in a preset mapping relationship between the function page information and the backend interface information.
[0092] Based on the function page information items and the backend interface information items in the displayed information collection interface, the collected information is input into the corresponding information items, for example, the function page information is input into the function page information items, and the backend interface information is input into the backend interface information items. It should be understood that, in the case where the function page information items include information items related to the function page information and corresponding information input boxes, inputting the function page information into the function page information items may refer to inputting the function page information into the information input box of the function page information items, and in the case where the backend interface information items include information items related to the backend interface information and corresponding information input boxes, inputting the backend interface information into the backend interface information items may refer to inputting the backend interface information into the information input box of the backend interface information items.
[0093] The function page information inputted at the function page information item and the backend interface information inputted at the backend interface information item are obtained, so that the acquired information can be stored in association, that is, the function page information and the backend interface information are stored in association, such as being stored in association with a preset mapping relationship between the function page information and the backend interface information. Thus, through the associated storage of the function page information and the backend interface information, a mapping relationship between the function page information and the backend interface information can be established in the preset mapping relationship, so as to help realize the query of the function information and the optimization of the page according to the preset mapping relationship.
[0094] Based on the information collection method of the embodiment of the present application as described above, it responds to the information collection instruction for the target function in the target page, displays the information collection interface, and obtains the function page information entered at the function page information item of the display collection interface, and the back-end interface information entered at the back-end interface information item of the display collection interface, and associates and stores the obtained information in a preset mapping relationship between the function page information and the back-end interface information. Therefore, when there is a need to optimize the target page, the back-end interface information of the target function can be quickly determined based on the preset mapping relationship to optimize the target function in the target page, which helps to locate the optimization entry of the target function on this basis and helps to improve the optimization efficiency of the target function of the target page.
[0095] The information collection interface can be obtained in various possible ways. For example, in some embodiments, after obtaining the information collection instruction, the information collection interface can be searched and obtained from the terminal locally, that is, in response to the information collection instruction, the information collection interface can be searched and obtained from the terminal locally, and the obtained information collection interface can be displayed.
[0096] In some embodiments, the information collection interface may also be obtained from the server. In this case, in response to the information collection instruction, an interface acquisition request may be sent to the server; the information collection interface returned by the server based on the interface acquisition request may be acquired, and the acquired information collection interface may be displayed.
[0097] There is no limitation on the method of obtaining the function page information input in the function page information item and the backend interface information input in the backend interface information item. The information can be obtained by manual input by the user or by automatic collection.
[0098] Taking the acquisition through manual input by the user as an example, the user can input the information to be collected by manual input in the information collection interface, such as inputting the function page information in the information input box at the function page information item, and inputting the back-end interface information in the information input box of the back-end interface information item, so as to obtain the function page information and the back-end interface information through the information collection interface, that is, to obtain the function page information and the back-end interface information input by the user in the information collection interface. Among them, the function page information and the back-end interface information input by the user can be text and character information manually input by the user, or can be files uploaded through relevant buttons, which are not limited in the embodiments of the present application.
[0099] Taking acquisition by automatic acquisition as an example, in some embodiments, at this time, reference Figure 6 As shown, the step S502 of acquiring the function page information input at the function page information item and the backend interface information input at the backend interface information item may include:
[0100] Step S5021: If there is an automatic collection event on the target page, parse the function page information and the backend interface address of the target function on the target page, wherein the backend interface information includes the backend interface address.
[0101] The target page refers to the page where information collection is required, for example, it may be the currently displayed page. When the information collection instruction is obtained through a collection button, it refers to the page where the collection button is located, that is, the above-mentioned information collection instruction is obtained through the collection button on the target page.
[0102] The automatic collection event is an event that triggers automatic collection, and whether the automatic collection event is obtained can be monitored in various possible ways.
[0103] In some embodiments, when an automatic collection instruction is received, it is determined that there is an automatic collection event. The automatic collection instruction refers to an instruction that triggers automatic collection, such as an automatic collection instruction issued by a collection button, etc. In some cases, the automatic collection instruction and the above-mentioned information collection instruction can be the same instruction, that is, after receiving the information collection instruction and displaying the information collection interface, the information collection process is automatically triggered. In some cases, the automatic collection instruction and the above-mentioned information collection instruction can also be different instructions, that is, after the information collection interface is displayed based on the information collection instruction, the automatic collection instruction is received.
[0104] In some embodiments, when a collection instruction is received through a voice input component, it is determined that there is an automatic collection event. In some cases, the collection instruction and the above-mentioned information collection instruction can be the same instruction, that is, after receiving the information collection instruction and displaying the information collection interface, the information collection process is automatically triggered. In some cases, the collection instruction and the above-mentioned information collection instruction can also be different instructions, that is, after displaying the information collection interface based on the information collection instruction, the automatic collection instruction is received.
[0105] In some embodiments, when the display duration of the information collection interface is greater than or equal to a preset duration, it is determined that an automatic collection event exists. The specific duration of the display duration can be set in combination with actual technical needs, and the embodiments of the present application do not make specific limitations.
[0106] Step S5022: performing backend information collection based on the backend interface address to obtain a backend function implementation method, wherein the backend interface information also includes a backend function implementation method.
[0107] Through the backend interface address, the backend service interface corresponding to the backend interface address can be accessed, so that the backend function implementation method can be learned by accessing the backend service interface.
[0108] In some embodiments, the backend information is collected based on the backend interface address to obtain the backend function implementation method, which may include:
[0109] Call the backend automatic collection interface, collect backend information according to the backend interface address, and obtain the backend function implementation method.
[0110] Therefore, the backend automatic collection interface can be configured to automatically collect the backend function implementation method according to the obtained backend interface address through the backend automatic collection interface, which is simple and convenient.
[0111] In some embodiments, the method may further include:
[0112] When there is a function that has not been subjected to information collection in the target page, information collection is performed on the function that has not been subjected to information collection.
[0113] It can be understood that the function page information and back-end interface information obtained by collecting information for functions that have not been collected are also stored in the information function page information items and back-end interface information items of the corresponding functions, and then associated and stored in the preset mapping relationship between the function page information and the back-end interface information.
[0114] Among them, different pages may have different numbers of functions. The number of function page information items and back-end interface information items in the information collection interface can be set in advance. When there are many functions in the target page and information items (function page information items or back-end interface information items) need to be added, they can be added manually by the user. In some embodiments, information items can also be added automatically.
[0115] Taking the example of users manually adding information items, when the user needs to enter the function page information and back-end interface information of a new function, the user can issue an input information item addition instruction through controls such as area addition buttons, thereby adding a new function page information item and back-end interface information item.
[0116] Taking the automatic addition of information items as an example, in some embodiments, when there are functions that have not been collected information in the target page, collecting information for the functions that have not been collected information may include:
[0117] Generate function page information items and backend interface information items corresponding to the functions not collected on the information collection interface;
[0118] The function page information of the acquired uncollected function is input into the generated function page information item, the backend interface information of the acquired uncollected function is input into the generated backend interface information item, and the acquired information is associated and stored in the preset mapping relationship between the function page information and the backend interface information.
[0119] Based on this embodiment, each function page information item and back-end interface information item of the information collection corresponds to a function. When there are functions that have not been collected, function page information items and back-end interface information items corresponding to the functions that have not been collected can be automatically generated on the information collection interface, and the information of the functions that have not been collected is collected on this basis. By automatically generating function page information items and back-end interface information items, each function point has a corresponding function page information item and back-end interface information item, which can effectively distinguish the function page information items and back-end interface information items of different functions.
[0120] Accordingly, in the case of adding information items in an automatic adding manner, it can be that in the process of automatically collecting information, each time a function that has not been collected on the target page is found, an area of function page information items and backend interface information items is automatically generated. Taking the example of a function page information item and backend interface information item with only one function on the information collection interface obtained in response to the information collection instruction, it can be that starting from the second function, each time a function that has not been collected is found, the corresponding function page information item and backend interface information item are added. Taking the example of a target page with 5 functions, and a function page information item and backend interface information item with only one function on the information collection interface obtained in response to the information collection instruction, it is sufficient to generate function page information items and backend interface information items for 4 functions.
[0121] Among them, in some cases, the above-mentioned functions may also be referred to as function points, and the function points may be divided into main function points and sub-function points. The main function point may be, for example, a menu, and the sub-function point may be, for example, a button, a query list, a detail function, etc. Accordingly, in some embodiments, the function name may include a main function point name and a sub-function point name. The main function point name may include a menu name, and the sub-function point name may include a button name, a query list name, and a detail function name.
[0122] Based on the information collection method described above, reference Figure 7 As shown, the embodiment of the present application provides an information query method, which is described by taking application in a terminal 10 or a server 20 as an example, wherein the method includes:
[0123] Step S701: Obtain an information query request, where the information query request includes function keywords.
[0124] Step S702: Query the function unit information in the function information database based on the function keyword, the function unit information includes function page information and backend interface information, wherein the function unit information stored in the function information database is collected based on the information collection method in any of the embodiments described above.
[0125] Combined with the information collection method described above, it can be seen that precise query can be achieved by using system name, sub-function point name, version number, backend service interface address, backend business method, third-party interface or SDK method, requirement name, Redis key, Kakfa topic, table structure, etc. as keywords. Among them, fuzzy query can also be performed using main function point name, front-end code page, etc. as keywords. Among them, when performing a query, you can select one of the keywords for a single query, or you can combine multiple keywords for a combined query, for example:
[0126] If you need to check how many requirements a certain version number has, you can directly enter the version number for precise query. The query results will tell you how many functions have been developed for this version.
[0127] If you need to know which backend interface has a problem, you can directly enter the backend service interface address for query. Based on the query results, you can directly know the backend business method used by the interface, and quickly find the specific backend implementation code, so as to quickly analyze the code logic and solve the problem quickly.
[0128] When you need to change a business method in the backend, you can query it through the business method. From the query results, you can see how many other functions the business method is used by, how many front-end functions are used, and how many back-end functions are used. This allows you to quickly evaluate the impact of the function and facilitate the work of product, development, and testing personnel. For example, you can intuitively locate how many functions are affected by the function, which interfaces need to be modified, and which interfaces are covered by the test.
[0129] It should be understood that the above processes or information to be collected or functions that need to be combined for query can be changed according to specific business requirements, and the types of relevant functional information that you want to collect can be added arbitrarily.
[0130] Based on the above-mentioned embodiments, detailed description is given below in combination with specific application examples.
[0131] The method of the embodiment of the present application can store the collected functional unit information after information collection, so that information query and page optimization can be performed based on the stored functional unit information. When collecting information, the functional unit information can be collected and stored by manual input by the user after the information collection interface is displayed, or the functional unit information can be collected automatically.
[0132] In response to the information collection instruction for the target function in the target page, after the information collection interface is displayed, the function unit information is collected by manual input as an example, and the collection process can be as follows: Figure 8As shown, information collection can be achieved in this way during the development or testing process.
[0133] refer to Figure 8 As shown, after the information collection interface is displayed, the following input processes can be performed in sequence or in other orders:
[0134] Enter the system name on the page, such as "Function Collection System";
[0135] Enter the name of the main function point; the name of the main function point is generally the menu name. If the menu has multiple levels, you can use symbols to separate and distinguish them. For example, you can use the English symbol "-" to separate them, such as "System Management-User Management";
[0136] Enter the sub-function point name; the sub-function point name is generally a button name, query list name, and detail function name, such as "User List Query", "Add User", "Modify User", "User Details" and other specific function points. The sub-function point is the smallest function point and cannot be further distinguished;
[0137] Enter the version number; the version number is used to indicate the version in which the sub-function point is newly developed, such as "V1.0.1";
[0138] Enter the front-end code page; the front-end code page is the page designed for developing this function. It can generally be the file path of the page. Enter as many page file names as there are pages involved. Taking the "User List Query" function as an example, the code page you enter can be "pages / user / list.vue, pages / user / js / list.js, pages / user / css / list.css". Taking the "Add User" function as an example, it can be "pages / user / add.vue, pages / user / js / add.js, pages / user / css / add.css". If this function is a purely back-end business, you do not need to enter the front-end code page, which means that this function does not require a front-end page.
[0139] Upload the front-end function interface; that is, which pages are involved in this function, multiple attachments can be uploaded, and the uploaded attachments can be previewed and deleted at the same time; taking the "user list query" function as an example, the uploaded attachments can be the query interface of the user list query;
[0140] Enter the backend service interface address. The backend service interface address is recorded as the backend service address requested by the frontend. For example, the backend interface address called by the "User List Query" function is " / user / list";
[0141] Enter the backend service interface method. The backend service interface method is generally the method corresponding to the backend service interface address. For example, the backend address of "User List Query" is " / user / list", and the specific method is "UserController.list()";
[0142] Enter the backend business method; the backend business method is generally the real backend function implementation method called by the backend service interface method, such as the business method called by "User List Query" is "UserService.list()";
[0143] Enter the third-party interface or SDK (development kit) method; the third-party interface or SDK method is other interfaces and methods called by the backend business method, which can be other business methods defined by this system, or interfaces or methods provided by other systems, or SDK methods directly provided by other systems. For example, the "UserService.list()" business method of "User List Query" can call encryption functions provided by other systems, and the method you can enter is "EncryptService.encrypt()". If it is an http interface, the method you can enter is: http: / / xxx.com / encrypt;
[0144] Enter the requirement name. The requirement name is the requirement involved in completing the function. For example, the requirement name of the "User List Query" function can be written as "User Management Requirement-User Query";
[0145] Upload the requirement document attachment; the requirement document attachment is recorded as the requirement document written by the product personnel for this function;
[0146] Upload the design document attachment; the design document attachment is the detailed design document written by the developer for the function during the design phase;
[0147] Upload the test case document attachment; the test case document attachment is the test user document written by the tester for the function;
[0148] Upload the online review plan attachment; the online review plan attachment contains the description of the operation of the function during the online verification stage;
[0149] Enter the redis key used in the business function; if the function uses redis during the development process, enter the key used to facilitate troubleshooting. The key format can be a string and can be defined according to the specific business. For example, the key defined in the "User List Query" function is "REDIS_USER_LIST"; Redis is an open source log-type, Key-Value database written in ANSI C language, supporting the network, memory-based and persistent, and provides APIs in multiple languages. The corresponding Value can be queried through the key value (primary key value);
[0150] Enter the topic of Kafka used in the business function. If the business function uses Kafka during the development process, enter the corresponding tipic. For example, the Kafka topic defined in the "User List Query" function is "KAFKA_USER_LIST_OPERATE_LOG". Kafka is a high-throughput, persistent, distributed publish-subscribe message queue system. The tipic (topic) of Kafka is a named record stream.
[0151] Enter the table structure used; the table structure can be the table structure required to complete the function, such as the table used by the "User List Query" function is the "sys_user" table;
[0152] Enter the SQL statement used; the SQL statement can be the SQL statement executed to complete the function, such as the query SQL statement used by the "User List Query" function is "select user_id, user_name, user_pass, insert_time, update_time from sys_user";
[0153] Whether the launch is successful, that is, whether the function is successfully launched;
[0154] Upload the analysis report on the reasons for the online failure. If the function fails to be launched, upload the reasons for the online failure as an attachment.
[0155] It should be understood that the various functional information input or uploaded by the above-mentioned users can be uploaded by one user, such as uploaded by a developer after the function is developed and launched, or uploaded by different users, such as a developer uploading functional information related to the development process after development is completed, and a tester uploading functional information related to the test after testing is completed, such as test case document attachments, etc., but not limited to this.
[0156] In response to the information collection instruction for the target function in the target page, after the information collection interface is displayed, the function unit information is collected by self-input as an example, and the collection process can be as follows: Fig. 9 As shown, the functional unit information can be collected in this way during the development or testing process.
[0157] refer to Fig. 9 As shown, after the information collection interface is displayed, the automatic collection process can be performed in the following ways:
[0158] For example, each page has a common collection button. When each page is opened, the collection button will be reproduced to facilitate the collection of page information. The collection button can be a common component. The user clicks the collection button to issue an information collection instruction, and then the information collection interface will pop up;
[0159] Based on clicking the collection button, the system name, menu name, sub-function name, front-end code page, back-end service interface address and other information are automatically obtained, and the obtained information is displayed on the information collection interface; among them, according to the number of sub-function points, multiple function page information items and back-end interface information items will appear, and the function page information items and back-end interface information items of each sub-function point are displayed separately, thereby realizing batch automatic collection.
[0160] Subsequently, the backend automatic collection interface is automatically called, and through the backend automatic collection interface, basic information such as the backend interface method, backend business method, third-party interface method, requirement name, redis key, kafka topic information, table structure information, etc. are obtained according to the backend service interface address. If there are addresses of the documents as mentioned above, the addresses of these documents are also obtained and filled in the information collection interface. Among them, the information obtained by calling the backend automatic collection interface can be based on the backend automatic collection interface configuration and saved in the backend.
[0161] After obtaining the above information, the obtained information is saved to the function information database, such as being associated with the preset mapping relationship between the function page information and the backend interface information in the function information database. In some embodiments, when storing in the function information database, it can be stored in a data table.
[0162] After obtaining the above information, the obtained function information is stored in a function information database in association, so that a preset mapping relationship between the function page information and the backend interface information can be established through the associated storage of the function page information and the backend interface information, so as to facilitate the query of the function information and the optimization of the page according to the preset mapping relationship. When storing in the function information database, it can be stored in the form of a data table, but is not limited thereto.
[0163] When information query is required, a query request can be sent to the function information database by inputting keywords to query the function unit information. When page optimization is required, the target backend interface information of the target function can be determined based on the function page information of the target function in the target page and the preset mapping relationship between the function page information and the backend interface information in response to the optimization instruction for the target function in the target page; the optimization entry of the target function can be determined based on the target backend interface information; and the target function can be optimized according to the optimization instruction through the optimization entry.
[0164] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0165] Based on the same inventive concept, the embodiment of the present application also provides a page optimization device for implementing the page optimization method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more embodiments of the page optimization device provided below can refer to the limitations of the page optimization method above, and will not be repeated here.
[0166] In one embodiment, Fig.10 As shown, an information collection device is provided, including: an interface acquisition module 1001, an information acquisition module 1002 and a storage module 1003, wherein:
[0167] The information acquisition module 1001 is used to determine the target backend interface information of the target function in the target page in response to the optimization instruction of the target function in the target page based on the function page information of the target function in the target page and the preset mapping relationship between the function page information and the backend interface information;
[0168] An entry determination module 1002, used to determine an optimized entry for a target function based on target backend interface information;
[0169] The optimization processing module 1003 is used to optimize the target function according to the optimization instruction through the optimization entry.
[0170] In some embodiments, the optimization entry includes a first code content, and the target backend interface information includes a target backend interface address; the entry determination module 1002 is used to locate the first code content corresponding to the target backend interface address in the backend business code based on the target backend interface address.
[0171] In some embodiments, the target backend interface information includes a target backend function implementation method; the optimization processing module 1003 is used to determine the target backend function implementation method based on the first code content corresponding to the target backend interface address; based on the target backend function implementation method, locate the second code content in the backend business code corresponding to the target backend function implementation method.
[0172] Each module in the above page optimization device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.
[0173] Based on the same inventive concept, the embodiment of the present application also provides an information collection device for implementing the above-mentioned information collection method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in one or more information collection device embodiments provided below can refer to the limitations on the information collection method above, and will not be repeated here.
[0174] In one embodiment, Fig.11 As shown, an information collection device is provided, including: an instruction processing module 1101 and a collection module 1102, wherein:
[0175] The instruction processing module 1101 is used to respond to the information collection instruction for the target function in the target page and display the information collection interface; the information collection interface includes the function page information item and the backend interface information item;
[0176] The acquisition module 1102 is used to obtain the function page information input at the function page information item and the backend interface information input at the backend interface information item, and associate the obtained information with the preset mapping relationship between the function page information and the backend interface information.
[0177] In some embodiments, the back-end interface information includes the back-end interface address and the back-end function implementation method; the collection module 1102 is used to parse the function page information and the back-end interface address of the target function on the target page if there is an automatic collection event on the target page; perform back-end information collection based on the back-end interface address to obtain the back-end function implementation method.
[0178] In some embodiments, the device further comprises any one or more of the following:
[0179] The instruction processing module 1101 is used to determine whether there is an automatic collection event when receiving an automatic collection instruction;
[0180] The instruction processing module 1101 is used to determine whether there is an automatic collection event when a collection instruction is received through the voice input component;
[0181] The instruction processing module 1101 is used to determine whether there is an automatic collection event when the display time of the information collection interface is greater than or equal to a preset time.
[0182] In some embodiments, the information collection instruction is generated after triggering a collection control in the target page, and the location of the collection control in the target page is the same as that in the non-target page.
[0183] In some embodiments, the information collection instruction is generated after triggering a collection control in a non-target page; the target page and the non-target page share a collection control.
[0184] In some embodiments, the collection module 1102 is used to collect information for functions that have not been collected in the target page if there are functions that have not been collected in the target page.
[0185] In some embodiments, the function page information includes at least the function name and the front-end interface.
[0186] In some embodiments, the function page information also includes the system name and version number.
[0187] In some embodiments, the function name includes a main function point name and a sub-function point name, the main function point name includes a menu name, and the sub-function point name includes a button name, a query list name, and a detail function name.
[0188] In some embodiments, the front-end interface includes a front-end code page and a front-end functional interface, and the front-end code page includes a file path of the front-end page.
[0189] In some embodiments, the back-end interface information also includes: a third-party interface or development toolkit called by the back-end function implementation method, a requirement name corresponding to the function name, related attachments corresponding to the function name or address information of related attachments, the primary key value of the key-value pair corresponding to the business function corresponding to the function name during the development process, the subject of the distributed message corresponding to the business function corresponding to the function name, the table structure corresponding to the function name, the SQL statement for completing the function corresponding to the function name, and at least one of the information on whether the function corresponding to the function name is successfully launched, wherein the related attachments include at least one of a requirement document attachment, a design document attachment, a test case document attachment, an uploaded review plan attachment, and an analysis report on the cause of online failure.
[0190] Each module in the above information collection device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.
[0191] Based on the same inventive concept, the embodiment of the present application also provides an information query device for implementing the above-mentioned information query method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in one or more information query device embodiments provided below can refer to the limitations on the information query method above, and will not be repeated here.
[0192] In one embodiment, Fig.12 As shown, an information query device is provided, including: a query request acquisition module 1201 and an information query module 1202, wherein:
[0193] The query request acquisition module 1201 is used to acquire an information query request, where the information query request includes a function keyword;
[0194] The information query module 1202 is used to query the function unit information in the function information database based on the function keywords. The function unit information includes function page information and backend interface information. The function unit information stored in the function information database is collected based on the information collection method in any of the above embodiments.
[0195] Each module in the above information query device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0196] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.13 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data, such as function page information and back-end interface information. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, one or more of a page optimization method, an information collection method, and an information query method are implemented.
[0197] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.14 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, one or more of a page optimization method, an information collection method, and an information query method are implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, a trackball or a touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0198] Those skilled in the art will understand that Fig.13 , Fig.14 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0199] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, one or more steps of the page optimization method, information collection method, and information query method in any of the embodiments described above are implemented.
[0200] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, one or more steps of the page optimization method, information collection method, and information query method in any of the embodiments described above are implemented.
[0201] In one embodiment, a computer program product is provided, including a computer program, which, when executed by a processor, implements one or more steps of the page optimization method, information collection method, and information query method in any of the embodiments described above.
[0202] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0203] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0204] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0205] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A page optimization method, It is characterized in that include: In response to an optimization instruction for a target function in a target page, determining target backend interface information of the target function based on function page information of the target function in the target page and a preset mapping relationship between the function page information and the backend interface information; Determine the optimization entry of the target function based on the target backend interface information; The target function is optimized according to the optimization instruction through the optimization entry.
2. The method according to claim 1, It is characterized in that The optimization entry includes a first code content, and the target backend interface information includes a target backend interface address; and determining the optimization entry of the target function based on the target backend interface information includes: Based on the target backend interface address, first code content corresponding to the target backend interface address in the backend service code is located.
3. The method according to claim 1 or 2, It is characterized in that The target backend interface information includes a target backend function implementation method; the optimizing the target function according to the optimization instruction through the optimization entry includes: Determine a target backend function implementation method based on the first code content corresponding to the target backend interface address; Based on the target backend function implementation method, locate the second code content corresponding to the target backend function implementation method in the backend business code; Based on the optimization entry and the optimization instruction, the second code content is adjusted.
4. An information collection method, It is characterized in that The method comprises: In response to an information collection instruction for a target function in a target page, an information collection interface is displayed; the information collection interface includes a function page information item and a backend interface information item; The function page information input at the function page information item and the backend interface information input at the backend interface information item are acquired, and the acquired information is associated and stored in a preset mapping relationship between the function page information and the backend interface information.
5. The method according to claim 4, It is characterized in that The backend interface information includes a backend interface address and a backend function implementation method; the function page information input at the function page information item and the backend interface information input at the backend interface information item are obtained, including: If there is an automatic collection event on the target page, parse the function page information and backend interface address of the target function on the target page; Backend information is collected based on the backend interface address to obtain the backend function implementation method.
6. The method according to claim 5, It is characterized in that The method further comprises any one or more of the following: In case of receiving the automatic collection instruction, determining that there is an automatic collection event; In the case where a collection instruction is received through the voice input component, determining that there is an automatic collection event; When the display time of the information collection interface is greater than or equal to the preset time, it is determined that an automatic collection event exists.
7. The method according to claim 4, It is characterized in that The information collection instruction is generated after the collection control in the target page is triggered, and the location of the collection control in the target page is the same as that in the non-target page; Alternatively, the information collection instruction is generated after a collection control in a non-target page is triggered; the target page and the non-target page share a collection control.
8. The method according to any one of claims 4 to 7, It is characterized in that The method further comprises: In the case that there is a function in the target page that has not been subjected to information collection, information collection is performed on the function that has not been subjected to information collection.
9. An information query method, It is characterized in that The method comprises: Obtaining an information query request, wherein the information query request includes a function keyword; Based on the function keyword, the function unit information is queried in the function information database, the function unit information includes function page information and backend interface information, wherein the function unit information stored in the function information database is collected based on the information collection method described in any one of claims 4 to 8.
10. A page optimization device, It is characterized in that The device comprises: an information acquisition module, configured to respond to an optimization instruction for a target function in a target page, determine target backend interface information of the target function based on function page information of the target function in the target page, and a preset mapping relationship between the function page information and the backend interface information; An entry determination module, used to determine the optimized entry of the target function based on the target backend interface information; An optimization processing module is used to optimize the target function according to the optimization instruction through the optimization entry.
11. An information collection device, It is characterized in that The device comprises: An instruction processing module, for responding to an information collection instruction for a target function in a target page, and displaying an information collection interface; the information collection interface includes a function page information item and a backend interface information item; The acquisition module is used to obtain the function page information input at the function page information item and the backend interface information input at the backend interface information item, and associate the obtained information with a preset mapping relationship between the function page information and the backend interface information.
12. An information query device, It is characterized in that The device comprises: A query request acquisition module, used to acquire an information query request, wherein the information query request includes a function keyword; A query module is used to query function unit information in a function information database based on the function keyword, wherein the function unit information includes function page information and back-end interface information, wherein the function unit information stored in the function information database is collected based on the information collection method described in any one of claims 4 to 8.
13. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.
14. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
15. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
