Interface development method, device, electronic device and storage medium
By obtaining the similarity between the external domain of the new business and the pre-saved external domain resource pool, the target external domain is determined and the mapping relationship is developed. This solves the problems of high professional requirements for interface development and the inability to share accumulated experience, and realizes efficient interface development and knowledge sharing.
Patent Information
- Application Number
- CN202211676928.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-26
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2042-12-26
Smart Images

Figure CN115981635B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to an interface development method, device, electronic device and storage medium. Background Art
[0002] Due to the particularity of industry content access, in the process of expanding value-added service access, it is necessary to realize the mutual conversion of personalized external input information domain to internal standard information domain. This conversion process is also the process of interface development.
[0003] The existing technology generally includes the following methods when developing interfaces: 1. Adaptation of personalized interface specifications is completed through code development. In a hard-coded manner, developers read the interface documents and unpack them according to the technical specifications, and implement the interception, assignment and format conversion of related fields through code. 2. Adaptation is completed through a parameter configuration framework. The system itself has sorted out a set of format adaptation frameworks based on parameter configuration based on summary and abstraction. Developers complete parameter configuration by reading the interface documents and combining the internal implementation of the system. Parameters are used to describe the corresponding relationship and format configuration of field items. 3. Interface conversion and adaptation are completed through a scripting framework, which combines the advantages of code development and parameter configuration. By providing tools such as scripted syntax editors, parsers, and executors, developers learn scripting and use scripts to describe the relevant processing of interface fields.
[0004] The problems with existing technologies are: 1. High professional development requirements and high difficulty. Platform-based development methods require developers to have an in-depth understanding of the architecture, code, and parameter composition of the entire platform. 2. High human involvement and a large amount of repetitive work. All parameter configurations need to be based on previous development experience, through the description of new interface specifications, and through memory or retrieval to solve the development configuration of interface parsing and conversion. 3. It cannot form a good knowledge accumulation and application. Business access developers develop independently, and the knowledge accumulation between members cannot be well shared, and historical accumulation cannot be well applied, and can only be completed through memory and document search. Summary of the Invention
[0005] The embodiments of the present application provide an interface development method, device, electronic device and storage medium to solve the problems of high human participation in the entire process of existing interface development methods, a lot of repetitive mechanical work, and the ineffective application of accumulated historical experience.
[0006] This application provides an interface development method, the method comprising:
[0007] Obtain each first external domain included in the newly added service, and perform the following steps for each first external domain:
[0008] determining first similarities between the first external domain and second external domains in a pre-stored external domain resource pool;
[0009] A target external domain corresponding to the first external domain is determined according to the respective first similarities, and an interface is developed for the first external domain according to a mapping relationship between the target external domain and the corresponding target internal domain.
[0010] Furthermore, determining a first similarity between the first external domain and each second external domain in a pre-stored external domain resource pool includes:
[0011] The first similarity between the first external domain and each second external domain in the pre-saved external domain resource pool is determined based on the element values in the first external domain, the element values in each second external domain in the pre-saved external domain resource pool, and the preset weight values corresponding to each element value.
[0012] Furthermore, determining the target external domain corresponding to the first external domain according to the respective first similarities includes:
[0013] According to the first similarities, a second external domain corresponding to the largest first similarity is selected as the target external domain corresponding to the first external domain.
[0014] Furthermore, determining the target external domain corresponding to the first external domain according to the respective first similarities includes:
[0015] Selecting a preset number of second external domains in descending order of the first similarities;
[0016] Determine the peer rating value of each selected second external domain respectively; and use the second external domain with the highest peer rating value as the target external domain corresponding to the first external domain.
[0017] Furthermore, the step of determining the peer rating value of each of the selected second external domains includes:
[0018] For each of the selected second external domains, obtaining each service that references the second external domain;
[0019] determining, according to respective second similarities between the respective first external domains and the third external domains in the respective services, a sub-evaluation value corresponding to each of the services;
[0020] The peer rating value of the second external domain is determined according to each sub-evaluation value.
[0021] Furthermore, determining the sub-evaluation value corresponding to each of the services according to the respective second similarities between each of the first external domains and the third external domains in each of the services includes:
[0022] For each of the first external domains and each of the services, determine each second similarity between the first external domain and each of the third external domains in the service, and select the largest second similarity as the sub-evaluation value corresponding to the service.
[0023] Furthermore, determining the peer rating value of the second external domain according to each sub-evaluation value includes:
[0024] The peer rating value of the second external domain is determined according to the average value of the sub-evaluation values.
[0025] Furthermore, the method further comprises:
[0026] According to the mapping relationship, a mapping test is performed on the first external domain and the target internal domain. If the test passes, the mapping relationship between the first external domain, the target internal domain and is saved in the external domain resource pool; if the test fails, the mapping relationship is updated, and the updated mapping relationship between the first external domain, the target internal domain and is saved in the external domain resource pool.
[0027] On the other hand, the present application provides an interface development device, the device comprising:
[0028] a determination module, configured to obtain each first external domain included in the newly added service, and determine, for each first external domain, each first similarity between the first external domain and each second external domain in a pre-stored external domain resource pool;
[0029] A development module is configured to determine a target external domain corresponding to the first external domain according to the respective first similarities, and develop an interface for the first external domain according to a mapping relationship between the target external domain and the corresponding target internal domain.
[0030] Furthermore, the determination module is specifically used to determine the first similarity between the first external domain and each second external domain in the pre-saved external domain resource pool based on each element value in the first external domain, each element value in each second external domain in the pre-saved external domain resource pool, and the preset weight values corresponding to each element value.
[0031] Furthermore, the development module is specifically configured to select, based on the first similarities, a second external domain corresponding to the largest first similarity as a target external domain corresponding to the first external domain.
[0032] Furthermore, the development module is specifically used to select a preset number of second external domains in order of the first similarity from high to low; determine the peer rating value of each selected second external domain respectively; and use the second external domain with the highest peer rating value as the target external domain corresponding to the first external domain.
[0033] Furthermore, the development module is specifically used to obtain each business that references the selected second external domain for each second external domain; determine the sub-evaluation value corresponding to each business based on the second similarities between each first external domain and the third external domain in each business; and determine the peer rating value of the second external domain based on each sub-evaluation value.
[0034] Furthermore, the development module is specifically configured to determine, for each first external domain and each business, each second similarity between the first external domain and each third external domain in the business, and select the largest second similarity as the sub-evaluation value corresponding to the business.
[0035] Furthermore, the development module is specifically configured to determine the peer rating value of the second external domain based on an average value of each sub-evaluation value.
[0036] Furthermore, the device further comprises:
[0037] A testing module is used to perform a mapping test on the first external domain and the target internal domain according to the mapping relationship. If the test passes, the mapping relationship between the first external domain, the target internal domain and is saved in the external domain resource pool; if the test fails, the mapping relationship is updated, and the updated mapping relationship between the first external domain, the target internal domain and is saved in the external domain resource pool.
[0038] In another aspect, the present application provides an electronic device, comprising a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
[0039] Memory for storing computer programs;
[0040] The processor is configured to implement any of the above method steps when executing a program stored in the memory.
[0041] On the other hand, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of the above are implemented.
[0042] The present application provides an interface development method, device, electronic device and storage medium, the method comprising: obtaining each first external domain included in a newly added business, and for each first external domain, performing the following steps: determining each first similarity between the first external domain and each second external domain in a pre-saved external domain resource pool; determining a target external domain corresponding to the first external domain based on the each first similarity, and developing an interface for the first external domain based on a mapping relationship between the target external domain and the corresponding target internal domain.
[0043] The above technical solution has the following advantages or beneficial effects:
[0044] The interface development method provided by the present application obtains each first external domain included in the newly added business, and for each first external domain, determines its corresponding target external domain based on each first similarity with each second external domain in the pre-saved external domain resource pool, and performs interface development on the first external domain based on the mapping relationship between the target external domain and the corresponding target internal domain. The present application ultimately realizes automatic interface development by intelligently matching the first external domain with each second external domain in the external domain resource pool, thereby improving the efficiency of interface development and reducing the requirements for developers. Based on the accumulation and application of experience, the external domain resource pool is obtained, and then the interface development is assisted, thereby applying the experience accumulation and application of personnel. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0046] Figure 1 Schematic diagram of the interface development process provided for this application;
[0047] Figure 2 An example diagram of the interface development process provided for this application;
[0048] Figure 3 Schematic diagram of the similarity recommendation unit model provided in this application;
[0049] Figure 4 Schematic diagram of the internal and external domains provided for this application;
[0050] Figure 5 Schematic diagram of the data preprocessing process provided for this application;
[0051] Figure 6 Schematic diagram for inputting interface description provided for this application;
[0052] Figure 7 The interface development flow chart provided for this application;
[0053] Figure 8 A schematic diagram of the external interface development device structure provided for this application;
[0054] Figure 9 This is a schematic diagram of the electronic device structure provided in this application. DETAILED DESCRIPTION
[0055] In order to make the purpose and implementation of this application clearer, the exemplary implementation of this application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of this application. Obviously, the described exemplary embodiments are only part of the embodiments of this application, not all of the embodiments.
[0056] It should be noted that the brief descriptions of terms in this application are only for the purpose of facilitating the understanding of the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their ordinary and usual meanings.
[0057] In the specification and claims of this application and the accompanying drawings, the terms "first," "second," "third," etc. are used to distinguish similar or similar objects or entities, and are not necessarily intended to limit a particular order or sequence, unless otherwise noted. It should be understood that the terms used in this manner are interchangeable under appropriate circumstances.
[0058] The terms "comprise," "include," and "have," and any variations thereof, are intended to cover but not exclude inclusion; for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.
[0059] The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functionality associated with that element.
[0060] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
[0061] For ease of explanation, the above description has been made with reference to specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or to limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations are possible. The above embodiments are selected and described to better explain the principles and practical applications, so that those skilled in the art can better utilize the embodiments and various different variations of the embodiments suitable for specific use considerations.
[0062] Figure 1 The interface development process diagram provided for this application includes the following steps:
[0063] S101: Acquire each first external domain included in a newly added service, and determine, for each first external domain, each first similarity between the first external domain and each second external domain in a pre-stored external domain resource pool.
[0064] S102: Determine a target external domain corresponding to the first external domain according to the respective first similarities, and develop an interface for the first external domain according to a mapping relationship between the target external domain and the corresponding target internal domain.
[0065] The interface development method provided in this application is applied to electronic devices, which may be PCs, tablet computers, servers, and other devices.
[0066] After receiving the new service, the electronic device obtains each first external domain included in the new service. In some cases, the new service includes one first external domain, and in some cases, the new service includes multiple first external domains, such as first external domains x, y, and z. For each first external domain, the following steps are performed:
[0067] First, each second external domain in a pre-stored external domain resource pool is obtained. The external domain resource pool stores each second external domain and its corresponding internal domain. The external domain resource pool is generally established based on existing knowledge, experience, and applications.
[0068] Then, first similarities between the first external domain and each second external domain in the pre-stored external domain resource pool are determined, and based on each first similarity, a target external domain corresponding to the first external domain is determined. Finally, based on the mapping relationship between the target external domain and the corresponding target internal domain, an interface is developed for the first external domain.
[0069] Specifically, determining the first similarity between the first external domain and each second external domain in the pre-stored external domain resource pool includes:
[0070] The first similarity between the first external domain and each second external domain in the pre-saved external domain resource pool is determined based on each element value in the first external domain, each element value in each second external domain in the pre-saved external domain resource pool, and the preset weight values corresponding to each element value.
[0071] Each element value is, for example, an external domain ID, name, length, format, purpose, direction, developer, etc. The cosine similarity of the corresponding elements can be calculated using the sim function, and then weighted according to the weight of each element to obtain the final first similarity.
[0072] Determining, according to the respective first similarities, a target external domain corresponding to the first external domain includes:
[0073] Based on the first similarities, the second external domain corresponding to the greatest first similarity is selected as the target external domain corresponding to the first external domain. It may also be determined whether the greatest first similarity is greater than a set similarity threshold. If so, the second external domain corresponding to the greatest first similarity is selected as the target external domain corresponding to the first external domain. If not, it may be considered that the target external domain has not been determined.
[0074] To determine the target external domain more accurately, determining the target external domain corresponding to the first external domain according to each first similarity includes:
[0075] Selecting a preset number of second external domains in descending order of the first similarities;
[0076] The peer ratings of the selected second external domains are determined respectively, and the second external domain with the highest peer rating is used as the target external domain corresponding to the first external domain. The preset number is, for example, 3, 4, etc.
[0077] The peer rating values of each selected second external domain are determined to include:
[0078] For each selected second external domain, perform the following steps:
[0079] Obtaining each business that references the second external domain;
[0080] Determining a sub-evaluation value corresponding to each business according to each second similarity between each first external domain and the third external domain in each business;
[0081] Based on each sub-evaluation value, a peer rating value of the second external domain is determined.
[0082] Specifically, determining the sub-evaluation value corresponding to each business according to each second similarity between each first external domain and the third external domain in each business includes:
[0083] For each first external domain and each service, determine each second similarity between the first external domain and each third external domain in the service, and select the largest second similarity as the sub-evaluation value corresponding to the service.
[0084] Determining the peer rating value of the second external domain according to each sub-evaluation value includes:
[0085] The peer rating value of the second external domain is determined according to the average value of the sub-evaluation values.
[0086] The method further comprises:
[0087] According to the mapping relationship, a mapping test is performed on the first external domain and the target internal domain. If the test passes, the mapping relationship between the first external domain, the target internal domain and is saved in the external domain resource pool; if the test fails, the mapping relationship is updated, and the updated mapping relationship between the first external domain, the target internal domain and is saved in the external domain resource pool.
[0088] This application proposes a collaborative recommendation algorithm based on peer ratings to assist interface development, and a personalized interface auxiliary development device and its implementation scheme that relies on user characteristics and historical development data and is self-perfecting. This application constructs feature engineering by summarizing and abstracting user characteristics, technical specification characteristics, and business scenario characteristics related to the business to be developed. At the same time, because the traditional scoring model based on user ratings is not suitable for the development platform, a scoring model based on existing interface development experience and data is designed, and an artificial intelligence-related recommendation algorithm is used to simplify the interface development adaptation work to interface description work.
[0089] Figure 2 The following is an example diagram of the interface development process provided for this application: Figure 2 As shown, the first external domain included in the newly added service is external domain A. The external domain resource pool includes external domains B, C, and D. External domain B corresponds to internal domain 1, external domain C corresponds to internal domain 2, and external domain D corresponds to internal domain 3. If the similarity between external domain A and external domain B is determined to be 20%, the similarity between external domain A and external domain C is 50%, and the similarity between external domain A and external domain D is 80%, then the target external domain is determined to be external domain D. External domain D corresponds to internal domain 3, and a mapping relationship is established between external domain A and internal domain 3. The mapping relationship between external domain D and internal domain 3 is then tested. If the test passes, the mapping relationship between external domain D and internal domain 3 becomes the mapping relationship between external domain A and internal domain 3. If the test fails, the mapping relationship is updated to ensure the correct mapping between external domain A and internal domain 3, and the updated mapping relationship is then used as the mapping relationship between external domain A and internal domain 3.
[0090] This application, firstly, reduces the technical requirements for docking personnel. Developers of new business access do not need to have an in-depth technical background in content platform development. They only need to focus on entering the description of the relevant attributes of their own interfaces, and can complete the configuration of field interception, value acquisition, conversion, etc. through intelligent recommendation based on the existing recommendation library. Secondly, it improves the efficiency of access development. Through intelligent matching algorithms, based on historical development experience and interface similarity, the process of interface analysis, interface description, and interface development is shortened. At the same time as the interface description, the configuration generation of interface development is automatically completed to increase the development speed. Thirdly, it realizes a virtuous cycle of experience accumulation and development efficiency promotion. Based on interface similarity, the interface data is abstracted and organized to form an intelligent matching knowledge base. During the development process, intelligent recommendations are made through the knowledge base. At the same time, new development accesses are also included in the knowledge base to achieve the growth and improvement of the knowledge base.
[0091] This application provides a collaborative filtering recommendation solution based on peer ratings for interface fields. It uses cosine similarity combined with domain attribute weights to calculate similarity. It also designs an algorithm that uses the overall similarity between new specifications and existing specifications as the basis for calculating peer ratings, and uses peer ratings to modify recommendation results. The details are as follows:
[0092] Map the input domain elements and sample library elements into spatial word vectors;
[0093] Calculate the cosine similarity of the vectors using the cosine formula and perform weighted calculations;
[0094] Calculate peer ratings to correct similarity calculation results and obtain the best recommendation value;
[0095] Recommend relevant information to users and display it to them through the front-end interface.
[0096] This application is based on existing businesses and extracts existing business interface fields to generate a sample library. When developing new businesses, the sample library recommends the most similar fields as a reference by entering keywords, providing reference values, associated platform functions, and other information. Developers can refer to the recommended information to quickly complete development. The overall plan is as follows.
[0097] Figure 3 The schematic diagram of the similarity recommendation unit model provided in this application establishes a field unit model, and divides the field into an inner field unit and an outer field unit according to its purpose. The inner field is an internal or generated value unit that the system can directly use when interacting with the access party. The outer field is the field attributes and value descriptions described by the user in accordance with the interface specification and the field unit.
[0098] Figure 4 Schematic diagram of the internal and external domains provided for this application. The external domain, also known as the external domain unit, includes a domain identifier, domain attributes, and domain values. Domain attributes are also known as domain elements. The domain identifier is the external domain unit ID. Domain attributes include name, length, format, purpose, direction, developer, association method, and association domain. The internal domain, also known as the internal domain unit, includes ID, name, length, format, purpose, and direction. There is a mapping relationship between the values of the external domain unit and the internal domain unit.
[0099] Figure 5 This application provides a schematic diagram of the data preprocessing process, including preprocessing of existing interface data information, syntax analysis of existing content, and data structure preprocessing. Through a combination of script analysis and manual review, a list of valid external domain units is compiled from the parameter library. Word segmentation preprocessing is performed on each attribute of the domain unit list, and the results are written to the system shared memory to form an external domain unit pool.
[0100] Figure 6 This is a diagram for entering the interface description provided for this application. Enter the fields in the interface descriptively, as described in the interface specification document. Describe the basic information of the interface specification, such as the business category and developer name. Select the interface category, such as XML, JSON, or fixed-length / delimited string. Enter the fields and related properties in the interface, such as name, length, attributes, and instructions.
[0101] The following is an example to illustrate the interface development process.
[0102] New services include external fields (x, y, z), which extract the content of each attribute from the entered external fields to form matching elements. For example, the external field x element:
[0103] elements ID name length Format use direction Developer Value <![CDATA[x1]]> <![CDATA[x2]]> <![CDATA[x3]]> <![CDATA[x4]]> <![CDATA[x5]]> <![CDATA[x6]]> <![CDATA[x7]]>
[0104] The matching weight of each element. The value range of each element weight is [0, 100]. 0 means ignoring the element, and 100 means the element has the highest weight.
[0105] elements ID name length Format use direction Developer Weight <![CDATA[w1]]> <![CDATA[w2]]> <![CDATA[w3]]> <![CDATA[w4]]> <![CDATA[w5]]> <![CDATA[w6]]> <![CDATA[w7]]>
[0106] Calculate the similarity between the current external domain and each external domain in the external domain resource pool, for example:
[0107] elements Weight External domain x external domaina External domain b External domain c ID w1 x1 a1 b1 c1 name w2 x2 a2 b2 c2 length w3 x3 a3 b3 c3 Format w4 x4 a4 b4 c4 use w5 x5 a5 b5 c5 direction w6 x6 a6 b6 c6 Developer w7 x7 a7 b7 c7
[0108] Calculate the weighted cosine similarity S of each element value of the external domain x and the external domain resource pool. The results are as follows:
[0109]
[0110] The calculated similarities are sorted to obtain the n reference items with the highest similarity, taking n=3 as an example.
[0111] External domain a = Sa, x; external domain b = Sb, x; external domain c = Sc, x.
[0112] Obtain the existing business set VA that references external domain a, calculate the similarity of all external domains of the business in VA and other external domains of the newly added business (y, z), and take the maximum value of each. For example, in the business set VA that references external domain a, calculate the similarity of the business in VA with y and the similarity with z.
[0113] Assume that the service set VA includes services: service 1, service 2, and service 3.
[0114] The similarity calculated between each domain unit of business 1 and (x, y, z) takes the maximum value, such as S 1,x Indicates the maximum similarity between business 1 and external domain x. Since the similarity between external domain a and x in business 1 is the largest, S here 1,x =S a,x .
[0115]
[0116] Business 1 scores u for the sub-peers of external domain a 1,a For: u 1,a =S 1,x +S 1,y +S 1,z .
[0117] Calculate the sub-peer rating u of business 2 and business 3 in turn 2,a and u 3,a .
[0118] Calculate peer rating for external domain a:
[0119]
[0120] R a represents the peer rating of external domain a, u v,a N represents the score of business V on external domain a. Va Indicates the number of aggregated services.
[0121] Get the existing business set VB that references the external domain b, calculate the similarity of all external domains of the business in Vb and other external domains (y, z) of the newly added business, and take the maximum similarity.
[0122] Assume that the business set VB includes the following businesses: business 5, business 6, and business 7.
[0123] The similarity calculated between each external domain and the external domain (x, y, z) in business 5 takes the maximum value, such as S 5,x Indicates the maximum similarity between business 5 and external domain x. Since the similarity between external domain b and x in business 5 is the largest, S here 5,x =S b,x .
[0124]
[0125]
[0126] Business 5 scores u for sub-peers of external domain b 5,a for:
[0127] u 5,b =S 5,x +S 5,y +S 5,z .
[0128] Calculate the sub-peer rating u of business 6 and business 7 in turn 6,a and u 7,a .
[0129] Calculate peer rating for external domain b:
[0130]
[0131] R b represents the peer rating of external domain b, u v,b N represents the rating of the sub-industry of business V to the external domain b, Vb Indicates the number of transactions.
[0132] Get the existing business set VC that references the external domain c, calculate the similarity of all external domains of the business in VC and other external domains (y, z) of the newly added business, and take the maximum similarity.
[0133] Assume that the service set VC includes services: service 8, service 9, and service 10.
[0134] The similarity calculated between each external domain of business 8 and the external domain (x, y, z) takes the maximum value. Since the domain unit c and x in business 8 have the largest similarity, the S here is 8,x =S c,x .
[0135]
[0136] Business 8 scores u for sub-peers of external domain c 8,c for:
[0137] u 8,c =S 8,x +S8,y +S 8,z .
[0138] Calculate the sub-peer rating u of business 9 and business 10 in turn 9,c and u 10,c .
[0139] Calculate the peer rating for domain unit c:
[0140]
[0141] R c represents the peer rating of the external domain c, u v,c N represents the score of business V on external domain c, Vc Indicates the number of transactions.
[0142] R a ,R b ,R c The external domain with the highest peer score is used as the recommendation value for external domain x.
[0143] Figure 7 The interface development flow chart provided for this application is as follows: Figure 7 As shown, developers test the parameters generated by the recommendations and manually modify the values if the test results are incorrect. The entered information is included in the recommendation reference library. Based on the modifications after the recommended values are taken, the matching effect is analyzed and the matching weight is optimized and adjusted.
[0144] Figure 8 The schematic diagram of the external interface development device provided for this application includes:
[0145] A determination module 81 is configured to obtain each first external domain included in the newly added service, and determine, for each first external domain, each first similarity between the first external domain and each second external domain in a pre-stored external domain resource pool;
[0146] The development module 82 is configured to determine a target external domain corresponding to the first external domain according to the first similarities, and develop an interface for the first external domain according to a mapping relationship between the target external domain and the corresponding target internal domain.
[0147] The determination module 81 is specifically used to determine the first similarity between the first external domain and each second external domain in the pre-saved external domain resource pool based on each element value in the first external domain, each element value in each second external domain in the pre-saved external domain resource pool, and the preset weight values corresponding to each element value.
[0148] The development module 82 is specifically configured to select, based on the first similarities, a second external domain corresponding to the largest first similarity as a target external domain corresponding to the first external domain.
[0149] The development module 82 is specifically used to select a preset number of second external domains in descending order of the first similarity; determine the peer rating value of each selected second external domain; and use the second external domain with the highest peer rating value as the target external domain corresponding to the first external domain.
[0150] The development module 82 is specifically used to obtain each business that references the selected second external domain for each second external domain; determine the sub-evaluation value corresponding to each business based on the second similarities between each first external domain and the third external domain in each business; and determine the peer rating value of the second external domain based on each sub-evaluation value.
[0151] The development module 82 is specifically configured to determine, for each first external domain and each service, each second similarity between the first external domain and each third external domain in the service, and select the largest second similarity as the sub-evaluation value corresponding to the service.
[0152] The development module 82 is specifically configured to determine the peer rating value of the second external domain based on the average value of each sub-evaluation value.
[0153] The device further comprises:
[0154] The test module 83 is used to perform a mapping test on the first external domain and the target internal domain according to the mapping relationship. If the test passes, the mapping relationship between the first external domain, the target internal domain and is saved in the external domain resource pool; if the test fails, the mapping relationship is updated, and the updated mapping relationship between the first external domain, the target internal domain and is saved in the external domain resource pool.
[0155] The present application also provides an electronic device, such as Figure 9 As shown, it includes: a processor 301, a communication interface 302, a memory 303 and a communication bus 304, wherein the processor 301, the communication interface 302, and the memory 303 communicate with each other through the communication bus 304;
[0156] The memory 303 stores a computer program, and when the program is executed by the processor 301 , the processor 301 performs any of the above method steps.
[0157] The communication bus mentioned in the electronic device mentioned above may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is used in the figure, but this does not mean that there is only one bus or only one type of bus.
[0158] The communication interface 302 is used for communication between the electronic device and other devices.
[0159] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk memory. Alternatively, the memory may be at least one storage device located away from the processor.
[0160] The above-mentioned processor can be a general-purpose processor, including a central processing unit, a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc.
[0161] The present application also provides a computer storage readable storage medium, which stores a computer program that can be executed by an electronic device. When the program runs on the electronic device, the electronic device implements any of the above method steps when executing.
[0162] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present application.
[0163] Obviously, those skilled in the art may make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.
Claims
1. An interface development method, characterized in that: The method comprises: Obtain each first external domain included in the newly added service, and perform the following steps for each first external domain: determining first similarities between the first external domain and second external domains in a pre-stored external domain resource pool; A preset number of second external domains are selected in descending order of first similarities; for each selected second external domain, each business referencing the second external domain is obtained; based on each second similarity between each first external domain and the third external domain in each business, a sub-evaluation value corresponding to each business is determined; based on each sub-evaluation value, a peer rating value of the second external domain is determined; the second external domain with the highest peer rating value is used as the target external domain corresponding to the first external domain; and based on the mapping relationship between the target external domain and the corresponding target internal domain, an interface is developed for the first external domain; Among them, the external domain includes domain identification, domain attributes and domain values; the internal domain includes ID, name, length, format, purpose and direction; there is a mapping relationship between the values of external domain units and internal domain units.
2. The method according to claim 1, wherein The determining of the first similarity between the first external domain and each second external domain in the pre-stored external domain resource pool includes: The first similarity between the first external domain and each second external domain in the pre-saved external domain resource pool is determined based on the element values in the first external domain, the element values in each second external domain in the pre-saved external domain resource pool, and the preset weight values corresponding to each element value.
3. The method according to claim 1, wherein The determining, according to the respective first similarities, a target external domain corresponding to the first external domain includes: According to the first similarities, a second external domain corresponding to the largest first similarity is selected as the target external domain corresponding to the first external domain.
4. The method according to claim 1, wherein The determining, based on the respective second similarities between the respective first external domains and the respective third external domains in the respective services, the sub-evaluation values corresponding to the respective services comprises: For each of the first external domains and each of the services, determine each second similarity between the first external domain and each of the third external domains in the service, and select the largest second similarity as the sub-evaluation value corresponding to the service.
5. The method according to claim 1, wherein Determining the peer rating value of the second external domain according to each sub-evaluation value includes: The peer rating value of the second external domain is determined according to the average value of the sub-evaluation values.
6. The method according to claim 1, wherein The method further comprises: According to the mapping relationship, a mapping test is performed on the first external domain and the target internal domain. If the test passes, the mapping relationship between the first external domain, the target internal domain and is saved in the external domain resource pool; if the test fails, the mapping relationship is updated, and the updated mapping relationship between the first external domain, the target internal domain and is saved in the external domain resource pool.
7. An interface development device, characterized in that: The device comprises: a determination module, configured to obtain each first external domain included in the newly added service, and determine, for each first external domain, each first similarity between the first external domain and each second external domain in a pre-stored external domain resource pool; A development module is configured to select a preset number of second external domains in descending order of first similarity; for each selected second external domain, obtain each business that references the second external domain; determine a sub-evaluation value corresponding to each business based on each second similarity between each first external domain and a third external domain in each business; determine a peer rating value of the second external domain based on each sub-evaluation value; use the second external domain with the highest peer rating value as the target external domain corresponding to the first external domain; and develop an interface for the first external domain based on a mapping relationship between the target external domain and the corresponding target internal domain. Among them, the external domain includes domain identification, domain attributes and domain values; the internal domain includes ID, name, length, format, purpose and direction; there is a mapping relationship between the values of external domain units and internal domain units.
8. The device according to claim 7, characterized in that The determination module is specifically used to determine the first similarity between the first external domain and each second external domain in the pre-saved external domain resource pool based on each element value in the first external domain, each element value in each second external domain in the pre-saved external domain resource pool, and the preset weight values corresponding to each element value.
9. The device according to claim 7, wherein The development module is specifically configured to select, based on the first similarities, a second external domain corresponding to the largest first similarity as a target external domain corresponding to the first external domain.
10. The device according to claim 7, wherein The development module is specifically configured to determine, for each first external domain and each service, each second similarity between the first external domain and each third external domain in the service, and select the largest second similarity as the sub-evaluation value corresponding to the service.
11. The device according to claim 7, wherein The development module is specifically configured to determine the peer rating value of the second external domain based on the average value of each sub-evaluation value.
12. The device according to claim 7, wherein The device further comprises: A testing module is used to perform a mapping test on the first external domain and the target internal domain according to the mapping relationship. If the test passes, the mapping relationship between the first external domain, the target internal domain and is saved in the external domain resource pool; if the test fails, the mapping relationship is updated, and the updated mapping relationship between the first external domain, the target internal domain and is saved in the external domain resource pool.
13. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory for storing computer programs; A processor, configured to implement the method steps described in any one of claims 1 to 6 when executing a program stored in a memory.
14. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Interface data transmission and parameter management method and device, equipment and medium
CN114138356A