Demand development method and device, equipment, program product and storage medium

By using the interface design knowledge base and code generation model to automatically generate interface design and code, the problem of inefficient software development in the financial technology field is solved, the automation of interface design and code generation is realized, and the development efficiency is improved.

CN119668558APending Publication Date: 2025-03-21INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411882255.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-19
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

In the field of financial technology, it is difficult for existing technologies to effectively utilize advanced technologies for software development, especially in interface design and code generation, which leads to inefficient development.

Method used

By obtaining the original requirements file, using pre-established interface design knowledge base and R&D requirements for search and enhance generation, automatically generate interface design recommendation information, and generate original code based on target interface information, preset code generation model and code generation prompt information.

Benefits of technology

It reduces the work of developers to manually write interface definitions and code, improves the efficiency of demand development, and realizes the automation of interface design and automatic code generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119668558A_ABST
    Figure CN119668558A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a demand development method, device and equipment, a program product and a storage medium, relates to the field of artificial intelligence and can also be applied to the field of financial science and technology, and the method comprises the following steps: obtaining an original demand file sent by a first user; performing retrieval enhancement generation on the original demand file based on a pre-established interface design knowledge base and pre-acquired research and development demands to obtain interface design recommendation information; receiving target interface information sent by a second user based on the interface design recommendation information, and generating an original code corresponding to the original demand file based on the target interface information, a preset code generation model and predetermined code generation prompt information; and displaying the original code to the second user. According to the method disclosed by the invention, the work of manually writing interface definitions by developers is reduced. The demand development is automatically performed according to the code generation model and the code generation prompt information, and the code corresponding to the demand file is generated, so that the demand development efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of artificial intelligence and may also be applicable to the field of financial technology, and in particular, to a demand development method, device, equipment, program product and storage medium. Background Art

[0002] With the rapid development of artificial intelligence technology, software design and programming based on the use of some coding tools to assist developers has become mainstream. However, in the field of financial technology, due to its high complexity and strict requirements for security and stability, how to effectively use advanced technologies for software development is still a problem to be solved.

[0003] At present, the development process of most financial technology projects still relies on developers to manually code directly according to the requirements documents and interface documents. In this process, developers can use coding assistant tools to assist in completing tasks such as code completion and unit test generation. This method improves development efficiency to a certain extent. However, this method is limited to code completion and unit test generation, and lacks macro design capabilities. The completion tool cannot determine the interface design that conforms to the business logic, and the details still need to be manually corrected by the developer, which reduces the efficiency of demand development. Summary of the invention

[0004] The embodiments of the present invention provide a demand development method, apparatus, device, program product and storage medium, which can automatically generate interface design according to demand, reduce the work of developers manually writing interface definitions and codes, and improve the efficiency of demand development.

[0005] In a first aspect, an embodiment of the present invention provides a demand development method, including:

[0006] Obtaining the original demand file sent by the first user;

[0007] Based on a pre-established interface design knowledge base and pre-acquired R&D requirements, the original requirement document is searched and enhanced to obtain interface design recommendation information;

[0008] Receiving target interface information sent by a second user based on the interface design recommendation information, and generating original code corresponding to the original requirement file based on the target interface information, a preset code generation model and predetermined code generation prompt information;

[0009] The original code is presented to the second user.

[0010] In a second aspect, an embodiment of the present invention provides a demand development device, the device comprising:

[0011] An information acquisition module, used to acquire the original demand file sent by the first user;

[0012] A first determination module is used to retrieve and enhance the original requirement document based on a pre-established interface design knowledge base and pre-acquired R&D requirements to obtain interface design recommendation information;

[0013] A second determination module is used to receive target interface information sent by a second user based on the interface design recommendation information, and generate original code corresponding to the original requirement file based on the target interface information, a preset code generation model and predetermined code generation prompt information;

[0014] An information display module is used to display the original code to the second user.

[0015] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a demand development method as described in any one of the embodiments of the present invention is implemented.

[0016] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a demand development method as described in any one of the embodiments of the present invention.

[0017] In a fifth aspect, an embodiment of the present invention provides a computer program product, including a computer program, which, when executed by a processor, implements a demand development method as described in any one of the embodiments of the present invention.

[0018] In an embodiment of the present invention, an original requirement file sent by a first user is obtained; based on a pre-established interface design knowledge base and pre-acquired R&D requirements, the original requirement file is searched and enhanced to obtain interface design recommendation information; the target interface information sent by a second user based on the interface design recommendation information is received, and the original code corresponding to the original requirement file is generated based on the target interface information, a preset code generation model, and predetermined code generation prompt information; the original code is displayed to the second user. The method of an embodiment of the present invention can automatically generate an interface design through a search and enhancement generation technology, reducing the work of developers manually writing interface definitions. Requirements development is automatically performed according to the code generation model and the code generation prompt information, and the code corresponding to the requirement file is generated, thereby improving the efficiency of requirements development. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 A first flow chart of a demand development method provided by an embodiment of the present invention;

[0021] Figure 2 A second flow chart of a demand development method provided by an embodiment of the present invention;

[0022] Figure 3 A flowchart for synchronously updating demand development according to demand changes provided by an embodiment of the present invention;

[0023] Figure 4 A schematic diagram of the structure of a demand development device provided by an embodiment of the present invention;

[0024] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0025] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0026] Figure 1 This is the first flow chart of a demand development method provided in an embodiment of the present invention. The method in the embodiment of the present invention can automatically generate interface designs according to the requirements, reducing the work of developers manually writing interface definitions and codes, and improving the efficiency of demand development. The information collected in the method in the embodiment of the present invention is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data comply with the relevant laws, regulations and standards of relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse. The method can be executed by a demand development device provided in an embodiment of the present invention, and the device can be implemented in software and / or hardware. The following embodiments will be described by taking the device integrated in an electronic device as an example. The electronic device can be a server or a computer device, etc., with reference to Figure 1 , the method may specifically include the following steps:

[0027] Step 101: Obtain an original demand file sent by a first user.

[0028] Among them, the first user is a user who puts forward a demand and needs the second user to develop his demand in order to realize his demand. The original demand file is one or more files determined by the first user according to his specific needs. The original demand file includes business requirements, user requirements, functional requirements, non-functional requirements and constraints. Business requirements include business goals and requirements that the project to be developed by the first user needs to meet. Functional requirements include specific functions that the project needs to achieve. Non-functional requirements include requirements in terms of performance, security and reliability that the project needs to meet. Constraints include various restrictions and constraints that the project needs to comply with during implementation. Specifically, after the first user determines the original demand file, the original demand file can be uploaded to the server, and the server can receive the original demand file sent by the first user. Alternatively, the first user can also upload the original demand file to its own business system, and the server can obtain the original demand file from the business system.

[0029] Step 102: Based on the pre-established interface design knowledge base and the pre-acquired R&D requirements, the original requirement document is searched and enhanced to obtain interface design recommendation information.

[0030] Among them, the interface design knowledge base is a database pre-established by the server, including general interface design information and specific interface design information in the server. The interface design knowledge base in this solution is a database or system for storing and retrieving information related to interface design. The interface design knowledge base can provide guidance and reference for interface design, thereby improving the quality and efficiency of interface design. The interface design knowledge base can include interface data models: including the design of data structures such as interface definitions, parameters and return values; design principles: including basic principles and patterns of interface design; best practices: various interface design cases inside and outside the field; document templates, examples of interface design, and instructions for use of related tools. The second user can quickly find relevant design knowledge and cases in the interface design knowledge base based on keywords. The interface design knowledge base can record the change history of interface design and support interface design management and backtracking of different versions. The interface design recommendation information is obtained after the original requirement document is retrieved and enhanced, and the interface design recommendation information includes at least one recommended interface design scheme and evaluation information of each recommended interface design scheme. The R&D requirements are determined by the server after the fuzzy requirements input by the second user are analyzed, and are used to instruct the server to perform retrieval and enhanced generation of key information.

[0031] Specifically, after obtaining the original requirement file, the server can determine the prompt information for retrieval enhancement generation based on the R&D requirements and the original requirement file. The original requirement file is searched and enhanced based on the prompt information and the interface design knowledge base to obtain at least one interface design recommendation scheme corresponding to the original requirement file, as well as the reasons for recommending each interface design recommendation scheme, including the advantages and disadvantages of each interface design recommendation scheme. In an optional implementation, a key feature analysis is performed on the R&D requirements acquired in advance, and interface design prompt words are determined based on the key feature analysis results; interface design recommendation information is determined in the interface design knowledge base and a predetermined general knowledge base based on the interface design prompt words, the original requirement file, and a pre-set text similarity algorithm; wherein the interface design information includes at least one recommended interface design scheme and evaluation information of the recommended interface design.

[0032] Step 103: Receive target interface information sent by the second user based on the interface design recommendation information, and generate original code corresponding to the original requirement file based on the target interface information, a preset code generation model and predetermined code generation prompt information.

[0033] Among them, the target interface information is the interface design information determined by the second user according to the interface design recommendation information after obtaining the interface design recommendation information, and returned to the server. The preset code generation model is a model predetermined by the server and is used to automatically generate code according to the prompt information. The preset code generation model in this solution can be a large language model or a deep learning model pre-trained by the server. The code generation prompt information is determined by the server after performing a demand analysis on the fuzzy requirements input by the second user, and is key information used to guide the preset code generation model to generate the initial code. The original code is the code that implements the requirement function of the original requirement document.

[0034] Specifically, after determining the interface design recommendation information, the server displays the interface design recommendation information to the second user, and the second user can select a target interface design recommendation scheme that best meets the requirements of the second user from each recommended interface design scheme. After the second user selects the target interface design recommendation scheme, the server can determine the target interface information based on the target interface design recommendation scheme selected by the second user. The target interface information, code generation prompt information, and the original requirement file are input into the preset code generation model to obtain the original code output by the preset code generation model. In an optional implementation, after obtaining the target interface information, information extraction is performed on the target interface information to obtain basic code generation information; an interface code framework is generated based on the basic information and the generation prompt information; the interface code framework is sent to the preset code generation model, and the original code sent by the preset code generation model is obtained.

[0035] Step 104: Display the original code to the second user.

[0036] Specifically, after obtaining the original code, in order to improve the readability and maintainability of the original code, the server can format the original code. This includes adjusting code indentation, adding necessary comments, and optimizing code layout. After formatting the original code, the server can select a suitable method to display the original code based on the needs of the second user obtained in advance. The display methods include web interface display, integrated development environment plug-in display, or text file display. In this solution, after displaying the original code, the server can collect feedback from the second user on the original code. The feedback includes the second user's evaluation of the code quality, suggestions for function implementation, and requirements for performance optimization. Based on the feedback from the second user, the server can iterate and optimize the original code, such as modifying the code logic, optimizing algorithm performance, and adding new functions. Through this method of continuous iteration and optimization of code, the quality of the code and the ability to meet user needs can be improved.

[0037] The technical solution of this embodiment obtains the original requirement file sent by the first user; performs retrieval enhancement generation on the original requirement file based on a pre-established interface design knowledge base and pre-acquired R&D requirements to obtain interface design recommendation information; receives the target interface information sent by the second user based on the interface design recommendation information, and generates the original code corresponding to the original requirement file based on the target interface information, a preset code generation model and predetermined code generation prompt information; and displays the original code to the second user. The technical solution of this embodiment can automatically generate interface design through retrieval enhancement generation technology, reducing the work of developers manually writing interface definitions. Demand development is automatically performed according to the code generation model and code generation prompt information, and the code corresponding to the requirement file is generated, thereby improving the efficiency of demand development.

[0038] Figure 2 The second flow chart of a demand development method provided by an embodiment of the present invention is a refinement of the above embodiment. The specific method can be as follows Figure 2 As shown, the method may include the following steps:

[0039] Step 201: Obtain an original demand file sent by a first user.

[0040] Step 202: Perform a key feature analysis on the R&D requirements, and determine interface design prompts based on the key feature analysis results.

[0041] The R&D requirements are key information determined by the server after analyzing the fuzzy requirements input by the second user, and are used to help the server perform retrieval enhancement generation. The interface design prompt is used to indicate how to perform retrieval enhancement generation on the original requirement file.

[0042] Specifically, after receiving the original demand file sent by the first user, the server analyzes and processes the demand content in the original demand file and extracts the key information and demand points. The key information and demand points in the original demand file are displayed to the second user, and the second user can determine the R&D demand based on the key information and demand points, and return the R&D demand to the server. After obtaining the R&D demand, the server performs key feature analysis on the R&D demand, including identifying feature information such as keywords, phrases and concepts in the R&D demand, as well as the relationship and importance between the feature information. After obtaining the key feature analysis results, the server can generate a set of interface design prompt words based on the results of the key feature analysis. In this solution, in order to improve the accuracy and effectiveness of the prompt words, the server can optimize and adjust the generated interface design prompt words. For example, the interface design prompt words are expanded, streamlined or recombined to ensure that the interface design prompt words can help the server to perform retrieval enhancement generation to the greatest extent. Through the interface design prompt words, the standardization and consistency of the interface design are ensured, and the design differences caused by human factors are avoided.

[0043] Step 203: Determine interface design recommendation information in an interface design knowledge base and a predetermined general knowledge base based on the interface design prompt words, the original requirement document, and a preset text similarity algorithm.

[0044] The interface design information includes at least one interface design recommendation and evaluation information of the interface design recommendation. The text similarity algorithm is used to calculate the correlation between different texts, and the text similarity algorithm includes cosine similarity or edit distance similarity. Specifically, the interface design prompt word can reflect the core points and key requirements of the demand, and help the server find relevant interface design information more accurately. After obtaining the interface design prompt word, the server can use the text similarity algorithm to measure the similarity between the interface design prompt word and the text content in the interface design knowledge base. According to the similarity between the interface design prompt word and the text content in the interface design knowledge base, the interface design recommendation scheme is determined from the interface design knowledge base. According to the characteristics of each interface design recommendation scheme and its corresponding similarity, the evaluation information of each interface design recommendation scheme is generated. The interface design recommendation information is determined according to the evaluation information and the interface design recommendation scheme. If the similarity between the text in the interface design knowledge base and the interface design prompt word is low, that is, the interface design recommendation information cannot be determined from the interface design knowledge base, the server can determine the interface design recommendation information in the general knowledge base according to the interface design prompt word and the text similarity algorithm.

[0045] Step 204: Receive the target interface information sent by the second user based on the interface design recommendation information, extract information from the target interface information, and obtain basic information for code generation; and generate an interface code framework based on the basic information for code generation.

[0046] Specifically, the target interface information is the interface design information determined by the second user according to the interface design recommendation information after obtaining the interface design recommendation information, and returned to the server. In this solution, after obtaining the target interface information, it also includes: optimizing the target interface information according to a pre-set interface optimization index to obtain optimized interface information, and displaying the optimized interface information to the second user, so that the second user adjusts the target interface information based on the optimized interface information.

[0047] Among them, the interface optimization index is used to indicate the optimization direction or optimization method of the server for the target interface information, and the interface optimization index in this solution includes performance index and security index. The optimized interface information includes a specific description of the optimization suggestion, the expected effect and the implementation suggestion. Specifically, after obtaining the target interface information selected by the second user, the server can optimize the interface design scheme in the target interface information according to the interface optimization index. Exemplarily, after determining the target interface information, the server analyzes the response time and throughput of the interface design scheme according to the performance index, evaluates the performance of the interface design scheme, and determines the optimized interface information according to the evaluation result. For example, it is recommended to add a cache mechanism to reduce the number of database queries, or to use paging processing to optimize the transmission efficiency of a large amount of data. After determining the target interface information, the server performs a security analysis on the interface design scheme in the target interface information according to the security index, and determines the optimized interface information according to the security analysis result. For example, add identity authentication, data encryption or input verification functions to some pages with high importance and security. Further, after obtaining the interface optimization information, the server displays the optimized interface information to the second user. The second user can adjust and improve the target interface information based on the displayed optimized interface information.

[0048] In the above steps, the target interface information is carefully optimized according to the pre-set interface optimization indicators, which can improve the performance and security of the server and enhance the user experience.

[0049] Specifically, after determining the final target interface information, extract information from the target interface information to obtain basic information for code generation; generate an interface code framework based on the basic information. The basic code information is used to generate the interface code framework, and the basic code information may include key information such as the functional description, parameter description, and return value processing of the interface. The code generation prompt information is determined by the server based on the development requirements of the second user obtained in advance, and is used to instruct the preset code generation model to generate the original code. The interface code framework is a preliminary, executable code structure that contains the basic skeleton of the interface, method signatures, parameter lists, return types, etc.

[0050] After obtaining the target interface information, the target interface information is parsed using a preset natural language processing technology to extract the key attributes and features of the interface. Basic information for code generation, i.e., code generation basic information, is extracted from the parsed target interface information. According to the code generation basic information, a matching code structure is determined in a predefined code structure library. After obtaining the code structure, the code generation basic information is filled into the code structure to obtain an interface code framework.

[0051] Step 205: Send the interface code framework and generation prompt information to the preset code generation model, and obtain the original code sent by the preset code generation model.

[0052] Among them, the generation prompt information is determined by the server according to the development needs of the second user obtained in advance, and is used to instruct the preset code generation model to generate original code information. The preset code generation model is a model predetermined by the server and is used to automatically generate code according to the prompt information. The preset code generation model in this scheme can be a large language model or a deep learning model pre-trained by the server. After obtaining the interface code framework and the generation prompt information, the interface code framework, the generation prompt information and the original requirement file are packaged into request data and sent to the preset code generation model. The preset code generation model can process the request and generate the original code corresponding to the original requirement file.

[0053] In this solution, optionally, after obtaining the original code, it also includes: optimizing the original code according to a preset code optimization index to obtain an optimized code, and presenting the optimized code to the second user so that the second user can adjust the original code based on the optimized code.

[0054] Among them, the code optimization index is used to indicate the optimization direction or optimization method of the server for the original code, etc. The code optimization index in this solution includes coupling index and repeatability index, etc. Specifically, after obtaining the original code, the server can optimize the original code according to the code optimization index. The server can identify repeated code fragments in the original code and suggest converting them into functions or modules. By reducing code duplication, the maintainability and readability of the code can be improved. For example, if the same logic is found to be used in multiple places, it can be encapsulated into an independent function or module for reuse in other places where it is needed. The server can also identify tightly coupled modules in the original code and suggest converting them into modular or microservice code. By decomposing the original code into smaller and more independent modules, the dependencies between modules can be reduced, and the flexibility and scalability of business function implementation can be improved. For example, for complex business logic, it can be split into multiple independent services, each service is responsible for a part of the function, and communicates through an interface. Further, after obtaining the optimized code, the server displays the optimized code to the second user. The second user can adjust and improve the original code based on the displayed optimized code.

[0055] Step 206: Display the original code to the second user.

[0056] In the technical solution of this embodiment, the original requirement file sent by the first user is obtained. The key feature analysis is performed on the R&D requirements, and the interface design prompt words are determined according to the key feature analysis results. The interface design recommendation information is determined in the interface design knowledge base and the predetermined general knowledge base based on the interface design prompt words, the original requirement file and the pre-set text similarity algorithm. Among them, the interface design information includes at least one recommended interface design and evaluation information of the recommended interface design. The target interface information sent by the second user based on the interface design recommendation information is received, and the target interface information is extracted to obtain the basic information for code generation; the interface code framework is generated based on the basic information and the generation prompt information. The interface code framework is sent to the preset code generation model, and the original code sent by the preset code generation model is obtained. The original code is displayed to the second user. The technical solution of this embodiment can quickly find and recommend suitable interface designs in the interface design knowledge base and the general knowledge base, thereby improving the efficiency of interface design. The interface code framework is automatically generated by the preset code generation model, which reduces the manual operation of developers, so that everything from requirement analysis to code generation can be completed efficiently, thereby improving the overall development efficiency.

[0057] Figure 3 A flowchart of synchronously updating demand development according to demand changes provided by an embodiment of the present invention. The specific method can be as follows Figure 3 As shown, the method may include the following steps:

[0058] Step 301: Acquire the requirement change file sent by the first user in real time.

[0059] The requirement change file is one or more files determined by the first user based on the original requirement document and the new requirement. When the original requirement of the first user changes, the first user can modify the original requirement document according to the requirement to obtain the requirement change file. The server can obtain the requirement change file in real time through polling, event triggering or message queue.

[0060] Step 302: Analyze the requirement change file based on the predetermined original requirement file to obtain change information of the requirement change file.

[0061] Among them, the change information is the specific changes in the demand change file relative to the original demand document. The change information may include newly added functional requirements, modified business logic, and deleted old functions. After obtaining the demand change file, the server can use natural language processing technology to parse the demand change file. For example, identify the keywords, phrases, and sentence structures in the document to extract the specific content of the demand change file. Compare the specific content of the demand change file with the content in the original demand file to identify the differences between the two, and obtain the change information based on the differences.

[0062] Step 303: Adjust the original code based on the change information to obtain the change code corresponding to the required change file, and display the change code to the second user.

[0063] After obtaining the change information, the server can analyze the change information, modify the original code to obtain the change code, or directly generate the change code according to the change information and the required change file. In this solution, optionally, the original code is adjusted based on the change information to obtain the change code corresponding to the required change file, including: performing change analysis on the change information to obtain the change prompt word; inputting the change information, the change prompt word and the required change file into the preset code generation model to obtain the updated interface design information and updated code information output by the preset code generation model; obtaining the change code corresponding to the required change file based on the updated interface design information and the updated code information.

[0064] Among them, the change prompt word can represent the key elements in the change information. After obtaining the change information, the server can perform text classification, entity recognition and relationship extraction on the change information to extract the key change elements and obtain the change prompt word. Exemplarily, for changes of function extension type, the prompt word may be "new function"; for changes of logic adjustment type, the prompt word may be "business logic modification"; for changes of optimization type, the prompt word may be "performance optimization" or "security reinforcement". Get the change prompt word. After obtaining the change prompt word, the change information, the change prompt word and the demand change file are input into the preset code generation model. After receiving the input data, the preset code generation model will process it according to the built-in logic and algorithm, including inferring the best interface design update scheme and the corresponding code implementation according to the change prompt word and the change information, that is, updating the interface design information and updating the code information. The updated interface design information and the updated code information are sorted to obtain the change code corresponding to the demand change file. In this scheme, the server can obtain the update record according to the change code generated each time, and store it in the version code library, so that the server can manage it.

[0065] In the above steps, by using the preset code generation model, the updated interface design information and the updated code information are automatically obtained according to the requirement change information, which improves the development efficiency and helps to ensure the code quality and consistency.

[0066] The technical solution of this embodiment obtains the requirement change file sent by the first user in real time; analyzes the requirement change file based on the predetermined original requirement file to obtain the change information of the requirement change file; adjusts the original code based on the change information to obtain the change code corresponding to the requirement change file, and displays the change code to the second user. The technical solution of this embodiment can actively and automatically obtain the requirement change file in real time when the requirement changes, and synchronously update the code and interface design according to the requirement change file, thereby reducing the manual adjustment of developers and improving the efficiency of requirement development.

[0067] Figure 4 The present invention provides a schematic diagram of the structure of a demand development device, which is suitable for executing the demand development method provided by the present invention. Figure 4 As shown, the device may specifically include:

[0068] The information acquisition module 401 is used to acquire the original demand file sent by the first user;

[0069] The first determination module 402 is used to search and enhance the original requirement document based on the pre-established interface design knowledge base and the pre-acquired R&D requirements to obtain interface design recommendation information;

[0070] The second determination module 403 is used to receive the target interface information sent by the second user based on the interface design recommendation information, and generate the original code corresponding to the original requirement file based on the target interface information, the preset code generation model and the predetermined code generation prompt information;

[0071] The information display module 404 is used to display the original code to the second user.

[0072] Optionally, the first determination module 402 is specifically used to: perform key feature analysis on the research and development requirements, and determine the interface design prompt words according to the key feature analysis results;

[0073] The interface design recommendation information is determined in the interface design knowledge base and a predetermined general knowledge base based on the interface design prompt words, the original requirement document and a preset text similarity algorithm; wherein the interface design information includes at least one recommended interface design and evaluation information of the recommended interface design.

[0074] Optionally, the second determination module 403 is specifically configured to: extract information from the target interface information to obtain basic information for code generation; and generate an interface code framework based on the basic information for code generation;

[0075] The interface code framework and the generation prompt information are sent to a preset code generation model, and the original code sent by the preset code generation model is obtained.

[0076] Optionally, the first determination module 402 is further configured to: optimize the target interface information according to a preset interface optimization index to obtain optimized interface information, and display the optimized interface information to the second user, so that the second user adjusts the target interface information based on the optimized interface information;

[0077] Optionally, the second determination module 403 is further used to: optimize the original code according to a preset code optimization index to obtain an optimized code, and display the optimized code to the second user, so that the second user adjusts the original code based on the optimized code.

[0078] Optionally, the second determining module 403 is further used to: obtain the demand change file sent by the first user in real time;

[0079] Analyzing the demand change file based on the predetermined original demand file to obtain change information of the demand change file;

[0080] The original code is adjusted based on the change information to obtain a change code corresponding to the demand change file, and the change code is displayed to the second user.

[0081] Optionally, the second determining module 403 is further used to: perform change analysis on the change information to obtain a change prompt word;

[0082] Input the change information, the change prompt word and the requirement change file into the preset code generation model to obtain the updated interface design information and updated code information output by the preset code generation model;

[0083] A change code corresponding to the requirement change file is obtained based on the update interface design information and the update code information.

[0084] The demand development device provided in the embodiment of the present invention can execute the demand development method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For the contents not described in detail in this embodiment, reference can be made to the description in any method embodiment of the present invention.

[0085] An embodiment of the present invention also provides a computer program product.

[0086] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer program products, which can include one or more computer programs, which can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor, which can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0087] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, referring to Figure 5 , Figure 5 The electronic device 12 shown is only an example and should not limit the functions and scope of use of the embodiments of the present application. Figure 5 As shown, the electronic device 12 is in the form of a general purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0088] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0089] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.

[0090] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical medium) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present application.

[0091] A program / utility 40 having a set (at least one) of program modules 46 may be stored, for example, in the memory 28, such program modules 46 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 46 generally perform the functions and / or methods of the embodiments described herein.

[0092] The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), may communicate with one or more devices that enable a user to interact with the electronic device 12, and / or may communicate with any device that enables the electronic device 12 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the electronic device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via the bus 18. It should be understood that although Figure 5 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0093] The processing unit 16 executes various functional applications and data processing by running the program stored in the system memory 28, for example, implementing a demand development method provided in an embodiment of the present invention: obtaining an original demand file sent by a first user; searching, enhancing and generating the original demand file based on a pre-established interface design knowledge base and pre-acquired R&D requirements to obtain interface design recommendation information; receiving target interface information sent by a second user based on the interface design recommendation information, and generating original code corresponding to the original demand file based on the target interface information, a preset code generation model and predetermined code generation prompt information; and displaying the original code to the second user.

[0094] The embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, a demand development method as provided in all the embodiments of the present invention is implemented: obtaining an original demand file sent by a first user; searching, enhancing and generating the original demand file based on a pre-established interface design knowledge base and pre-acquired R&D requirements to obtain interface design recommendation information; receiving target interface information sent by a second user based on the interface design recommendation information, and generating the original code corresponding to the original demand file based on the target interface information, a preset code generation model and predetermined code generation prompt information; and displaying the original code to the second user. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electronic device, device or device of electrical, magnetic, optical, electromagnetic, infrared, or semiconductor, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction-executing electronic device, apparatus, or device.

[0095] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction-executing electronic device, apparatus, or device.

[0096] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0097] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0098] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A demand development method, characterized in that: The method comprises: Obtaining the original demand file sent by the first user; Based on a pre-established interface design knowledge base and pre-acquired R&D requirements, the original requirement document is searched and enhanced to obtain interface design recommendation information; Receiving target interface information sent by a second user based on the interface design recommendation information, and generating original code corresponding to the original requirement file based on the target interface information, a preset code generation model and predetermined code generation prompt information; The original code is presented to the second user.

2. The method according to claim 1, characterized in that Based on the pre-established interface design knowledge base and the pre-acquired R&D requirements, the original requirement document is searched and enhanced to obtain interface design recommendation information, including: Perform key feature analysis on the research and development requirements, and determine interface design prompts based on the key feature analysis results; The interface design recommendation information is determined in the interface design knowledge base and a predetermined general knowledge base based on the interface design prompt words, the original requirement document and a preset text similarity algorithm; wherein the interface design information includes at least one recommended interface design scheme and evaluation information of the recommended interface design scheme.

3. The method according to claim 1, characterized in that Generating original code corresponding to the original requirement file based on the target interface information, a preset code generation model and predetermined code generation prompt information, including: Extracting information from the target interface information to obtain basic information for code generation; generating an interface code framework based on the basic information for code generation; The interface code framework and the generation prompt information are sent to the preset code generation model, and the original code sent by the preset code generation model is obtained.

4. The method according to claim 1, characterized in that: The method further comprises: Optimizing the target interface information according to a preset interface optimization index to obtain optimized interface information, and displaying the optimized interface information to the user, so that the second user adjusts the target interface information based on the optimized interface information; The original code is optimized according to a preset code optimization index to obtain an optimized code, and the optimized code is displayed to the second user so that the second user adjusts the original code based on the optimized code.

5. The method according to claim 1, characterized in that The method further comprises: Obtain the requirement change file sent by the first user in real time; Analyzing the demand change file based on the predetermined original demand file to obtain change information of the demand change file; The original code is adjusted based on the change information to obtain a change code corresponding to the demand change file, and the change code is displayed to the second user.

6. The method according to claim 5, characterized in that The original code is adjusted based on the change information to obtain a change code corresponding to the demand change file, including: Performing change analysis on the change information to obtain a change prompt word; Input the change information, the change prompt word and the requirement change file into the preset code generation model to obtain the updated interface design information and updated code information output by the preset code generation model; A change code corresponding to the demand change file is obtained based on the update interface design information and the update code information.

7. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements a demand development method according to any one of claims 1 to 6.

8. A demand development device, characterized in that: include: An information acquisition module, used to acquire the original demand file sent by the first user; A first determination module is used to retrieve and enhance the original requirement document based on a pre-established interface design knowledge base and pre-acquired R&D requirements to obtain interface design recommendation information; A second determination module is used to receive target interface information sent by a second user based on the interface design recommendation information, and generate original code corresponding to the original requirement file based on the target interface information, a preset code generation model and predetermined code generation prompt information; An information display module is used to display the original code to the second user.

9. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the demand development method as claimed in any one of claims 1 to 6 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the demand development method as claimed in any one of claims 1 to 6 is implemented.