E-commerce applet subpackage method and device, equipment and medium
Through the combination of functional tree diagram and target subcontracting model, the mini program subcontracting structure is automatically updated, which solves the problems of subcontracting logic confusion and low efficiency caused by relying on developers' understanding in the existing technology, and achieves more efficient subcontracting process.
Patent Information
- Application Number
- CN202411332907.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2024-12-27
AI Technical Summary
The existing mini-program subcontracting technology relies on developers' understanding of business logic and subcontracting structure, and is easily affected by personal factors, resulting in confusion in subcontracting logic, consuming a lot of labor costs and inefficient subcontracting.
By creating a functional tree diagram and an initial subcontracting structure, the target subcontracting model is called to extract the function point keywords from the requirements document and convert them into names to be updated. The initial subcontracting structure is updated according to the subcontracting policy template to generate the target subcontracting structure. Reduce the impact of personal factors and improve subcontracting efficiency.
It effectively reduces the impact of personal factors in the subcontracting process, reduces labor costs, and improves the subcontracting efficiency of e-commerce mini programs.
Smart Images

Figure CN119201149A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mini-program subpackaging technology, and in particular to an e-commerce mini-program subpackaging method, device, equipment and medium. Background Art
[0002] As a new form of mobile Internet application, mini programs are rapidly gaining popularity due to their convenience and lightweight features. When a mini program is started, the main package will be downloaded and started by default, and the startup page will be displayed. When the user enters a page associated with the startup page, the client will download the corresponding sub-package, and then run and display it after the download is complete.
[0003] The data packages of existing mini programs are usually subject to size restrictions. For example, the size of all sub-packages of the entire mini program cannot exceed 20M, and the size of a single sub-package / main package cannot exceed 2M. If the mini program is not sub-packaged, the maximum size of its main package can only be 2M. As business functions and business scenarios continue to increase, its code size will be much larger than 2M. The main package strategy alone cannot meet all business needs. When the main package size exceeds 2M, it will not be possible to update and iterate, add business scenario codes, or release new versions.
[0004] Therefore, existing technologies generally rely on developers' understanding of business logic and subcontracting structure to manage subcontracting. The subcontracting process is easily affected by personal factors, which may cause confusion in subcontracting logic and fail to better decouple and collaborate when the team is developing together, consuming a lot of manpower costs and low subcontracting efficiency. Summary of the invention
[0005] The present invention provides an e-commerce mini-program subpackaging method, device, equipment and medium, which solves the technical problems that the prior art generally relies on the developer's understanding of business logic and subpackaging structure to manage subpackaging, which is easily affected by personal factors during the subpackaging process, may cause confusion in subpackaging logic, consume a lot of manpower costs and have low subpackaging efficiency.
[0006] A first aspect of the present invention provides an e-commerce mini program subpackaging method, comprising:
[0007] When an e-commerce applet is received, a function tree diagram corresponding to the e-commerce applet is created;
[0008] Constructing an initial sub-package structure corresponding to the e-commerce applet according to the functional tree diagram;
[0009] When a requirement document is received, the target subcontracting model is called to extract function point keywords from the requirement document and convert them into names to be updated;
[0010] The target subcontracting model is used to update the initial subcontracting structure according to the subcontracting strategy template and the name to be updated to generate a target subcontracting structure.
[0011] Optionally, when receiving the e-commerce mini program, creating a function tree diagram corresponding to the e-commerce mini program includes:
[0012] When an e-commerce applet is received, the business function points of the e-commerce applet are traversed and determined as first-level function points;
[0013] The function information associated with each business function point is determined as a secondary function point, and a function tree diagram corresponding to the e-commerce applet is obtained.
[0014] Optionally, constructing an initial sub-packaging structure corresponding to the e-commerce applet according to the functional tree diagram includes:
[0015] Traversing the functional branches in the functional tree diagram, and creating a functional point name for each functional point in each functional branch;
[0016] The names of the functional points are loaded into the sub-packaging strategy template to generate the initial sub-packaging structure corresponding to the e-commerce applet.
[0017] Optionally, when receiving the requirement document, calling the target subcontracting model to extract the function point keywords from the requirement document and converting them into names to be updated includes:
[0018] When a requirement document is received, the target subcontracting model is called to parse the requirement document to extract context information and multiple function point keywords;
[0019] According to each of the function point keywords and the associated context information, matching the function point level corresponding to the function point keyword;
[0020] The function point keywords are renamed according to the function point levels to obtain names to be updated.
[0021] Optionally, the updating of the initial subcontract structure according to the subcontract strategy template and the name to be updated by the target subcontract model to generate the target subcontract structure includes:
[0022] Retrieving the initial subcontract structure according to the name to be updated through the target subcontract model;
[0023] If the first configuration part identical to the existing part of the named object to be updated is retrieved, then the first configuration part is loaded into the sub-package strategy template according to the function point level to which the named object to be updated belongs, to obtain an updated sub-package structure;
[0024] The updated sub-package structure is added to the first configuration part to generate a target sub-package structure.
[0025] If a second configuration part that is completely identical to the name to be updated is retrieved, it is loaded into the subcontracting strategy template according to the function point level to which the name to be updated belongs, and an alternative subcontracting structure is generated;
[0026] The second configuration part is replaced by the replacement sub-packaging structure to generate a target sub-packaging structure.
[0027] If the configuration part identical to the name to be updated is not retrieved, the name to be updated is loaded into the sub-packaging strategy template to generate a newly added sub-packaging structure;
[0028] The newly added subpackage structure is added to the initial subpackage structure to generate a target subpackage structure.
[0029] Optionally, the method further comprises:
[0030] Extracting a first page path from the target sub-packaging structure by using the target sub-packaging model;
[0031] Determine the page jump relationship corresponding to the target sub-packaging structure according to the requirement document through the target sub-packaging model;
[0032] The component code and the first page logic code in the folder under the first page path are output according to the page jump relationship through the target subpackaging model.
[0033] Optionally, the method further comprises:
[0034] In response to the user preference data sent by the user terminal, determine the corresponding preference function name according to the user preference data;
[0035] Locating a corresponding second page path from the target sub-packaging structure according to the preferred function name;
[0036] Return the second page logic code in the folder under the second page path to the user end.
[0037] A second aspect of the present invention provides an e-commerce applet subpackaging device, comprising:
[0038] A tree diagram creation module, used for creating a function tree diagram corresponding to the e-commerce mini program when the e-commerce mini program is received;
[0039] A sub-contracting structure generating module, used to construct an initial sub-contracting structure corresponding to the e-commerce applet according to the function tree diagram;
[0040] A functional requirement extraction module is used for, when receiving a requirement document, calling a target subcontracting model to extract function point keywords from the requirement document and converting them into names to be updated;
[0041] The subcontract structure updating module is used to update the initial subcontract structure according to the target subcontract model, the subcontract strategy template and the name to be updated, and generate a target subcontract structure.
[0042] The third aspect of the present invention provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the e-commerce mini-program subpackaging method as described in any one of the first aspect of the present invention.
[0043] The fourth aspect of the present invention provides: A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed, implements the e-commerce mini-program subpackaging method as described in any one of the first aspects of the present invention.
[0044] It can be seen from the above technical solutions that the present invention has the following advantages:
[0045] When an e-commerce applet is received, a function tree diagram corresponding to the e-commerce applet is created; an initial subcontracting structure corresponding to the e-commerce applet is constructed according to the function tree diagram; when a requirement document is received, the target subcontracting model is called to extract function point keywords from the requirement document and convert them into names to be updated; the initial subcontracting structure is updated according to the subcontracting strategy template and the names to be updated through the target subcontracting model to generate a target subcontracting structure, thereby reducing the impact of personal factors on the subcontracting process and reducing labor costs by combining the model with the subcontracting strategy template, thereby effectively improving the subcontracting efficiency of the e-commerce applet. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0047] Figure 1 A flowchart of the steps of a method for subcontracting an e-commerce mini program provided by an embodiment of the present invention;
[0048] Figure 2 A function point tree diagram of an e-commerce applet in an embodiment of the present invention;
[0049] Figure 3 A schematic diagram of an initial sub-packaging structure provided by an embodiment of the present invention;
[0050] Figure 4 A structural block diagram of an e-commerce mini-program subpackaging device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0051] The embodiments of the present invention provide an e-commerce mini-program subpackaging method, device, equipment and medium, which are used to solve the technical problems that the existing technology generally relies on the developer's understanding of business logic and subpackaging structure to manage subpackaging, which is easily affected by personal factors during the subpackaging process, may cause confusion in subpackaging logic, consume a lot of manpower costs and have low subpackaging efficiency.
[0052] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0053] See also Figure 1 , Figure 1 A flowchart of the steps of an e-commerce mini-program subpackaging method provided in an embodiment of the present invention.
[0054] The present invention provides an e-commerce mini program subpackaging method, comprising:
[0055] Step 101, when an e-commerce applet is received, a function tree diagram corresponding to the e-commerce applet is created;
[0056] E-commerce mini programs refer to applications developed based on third-party social platforms, designed specifically for e-commerce platforms, and aim to provide public users with a more convenient shopping experience.
[0057] In this embodiment, in order to implement the subcontracting operation of the e-commerce applet, when the e-commerce applet is received, the function points are split according to the function flow of the e-commerce applet to obtain the function points corresponding to each page displayed by the e-commerce applet and each function control in the page. According to each function point and its association, a function tree diagram corresponding to the e-commerce applet is created.
[0058] It should be noted that there are at least two levels of function points in the function tree diagram, such as first-level function points and second-level function points, which can be Figure 2 As shown in the figure. The e-commerce mini program is divided into two main processes: shopping and ordering. The two main processes of shopping and ordering contain many business function points. For example, shopping includes: search, products, activities, etc., and ordering includes settlement, orders, users, coupons and other function points. These function points are called first-level function points. There are also multiple function points under the first-level function points, such as: list, details, etc., which are called second-level function points.
[0059] In an example of the present application, step 101 may include the following sub-steps:
[0060] When an e-commerce applet is received, the business function points of the e-commerce applet are traversed and determined as first-level function points;
[0061] The functional information associated with each business function point is determined as a secondary function point, and a functional tree diagram corresponding to the e-commerce mini program is obtained.
[0062] Business function points refer to each business function control within each display page of the e-commerce mini program, such as search, specific products, activities, settlement, orders, users, and coupons.
[0063] In this embodiment, when an e-commerce applet is received, the business function points are traversed according to its main business process to determine all the first-level function points of the e-commerce applet. During the use of the e-commerce applet, after the user clicks on a first-level function point, the page jumps to the corresponding second-level page such as list, details or results. In order to facilitate the subsequent subpackaging of this type of data, the function information associated with each first-level function point is determined as a second-level function point.
[0064] Take the first-level function point as the parent category and the second-level function point as the child category, and establish the association between the first-level function point and the second-level function point to obtain the function tree diagram corresponding to the e-commerce applet.
[0065] It should be noted that the function tree diagram includes not only the primary function points and secondary function points required for sub-packaging, but also the main function points corresponding to the main package, such as Figure 2 In the purchase and ordering process, users can understand the function implementation logic of the function tree diagram.
[0066] Step 102, constructing an initial sub-package structure corresponding to the e-commerce applet according to the function tree diagram;
[0067] After the function tree diagram is generated, the sub-contracting structure is constructed one by one along the multi-level function points of each function branch in the function tree diagram, so as to generate the initial sub-contracting structure corresponding to the e-commerce applet. The initial sub-contracting structure includes the sub-contracting structure corresponding to each function point.
[0068] In an example of the present application, step 102 may include the following sub-steps:
[0069] Traverse the functional branches in the functional tree diagram, and create function point names for each functional point in each functional branch;
[0070] Load the names of each function point into the sub-packaging strategy template to generate the initial sub-packaging structure corresponding to the e-commerce applet.
[0071] In the function tree diagram, a corresponding function branch is set according to each program function to indicate the program function type and the page or function data that implements the program function. In the embodiment of the present application, after completing the construction of the function tree diagram, by traversing each function branch in the function tree diagram, a function point name is created for each function point in each function branch. Then each function point name is loaded into the corresponding position in the sub-packaging strategy template, and the data storage path is constructed with the corresponding function point name, thereby generating the initial sub-packaging structure corresponding to the e-commerce mini program, such as Figure 3 shown.
[0072] by Figure 2 Take the first functional branch in as an example, its first-level functional point + second-level functional point is search + list, and the final sub-package applet page is named in English using the first-level functional point + second-level functional point, and the corresponding functional point is named search + searchList. After loading into the sub-package strategy template, the classification name is subpacakges / search / pages / searchList.
[0073] Among them, the sub-packaging policy template can be set according to user needs, or according to Figure 3 The structure in is set, including at least "root", "name" and "pages" to indicate the function point naming of the first-level function point and the function point naming of the associated second-level function points.
[0074] Step 103, when the requirement document is received, the target subcontracting model is called to extract the function point keywords from the requirement document and rename them to the names to be updated;
[0075] A requirements document refers to a text document that records at least the keywords of the function points related to the program functions. It can also describe the functions, performance, user interface, business processes, security requirements, data requirements, non-functional requirements (such as availability, reliability, maintainability, etc.) and other related constraints that the system, product or service needs to meet.
[0076] The target subcontracting model refers to a big data model used to extract function point keywords from requirement documents and adaptively update the initial subcontracting structure according to the context information and subcontracting strategy template of the requirement documents, such as the large-scale visual language model Qwen-Vl-Max.
[0077] In this embodiment, when a requirement document is received, the target subcontracting model can be called to understand and analyze the requirement document, extract function point keywords from it, and rename them to the names to be updated to obtain the data basis for subsequent template loading.
[0078] In an example of the present application, step 103 may include the following sub-steps:
[0079] When a requirement document is received, the target subcontracting model is called to parse the requirement document and extract context information and multiple function point keywords;
[0080] According to each function point keyword and the associated context information, matching the function point level corresponding to the function point keyword;
[0081] Rename each function point keyword according to the function point level to obtain the name to be updated.
[0082] The context information refers to a statement describing the function point type corresponding to the function point keyword.
[0083] In this embodiment, when the server or processor receives the requirement document, the target subcontracting model is called to parse the requirement document. Since the Chinese requirement document can express the function in a relatively concise sentence, there may be multiple function points in one word. Therefore, after extracting multiple function point keywords and context information from the requirement document, each function point keyword is analyzed according to the context information to match the function point level corresponding to the function point keyword. For example, if the "user comment" function is mentioned in the requirement document, it is matched to the "user" level function point, and the corresponding "comment" is used as the second-level function point.
[0084] After completing the matching at the function point level, each function point keyword is renamed according to each function point level to obtain the name to be updated, for example, "user" is renamed to "user" and "comment" is renamed to "comment".
[0085] In addition, since the iteration of the mini program may add new functions, and the names of such functions do not exist in the original initial subcontracting structure, the description of the first-level and second-level function points of this part, as well as steps a, b, and c of establishing a standard subcontracting strategy template will also be input into the above-mentioned target subcontracting model AI as prompt words. For the first-level and second-level function points that are not in the template, AI will automatically add function point classifications after extracting keywords, and generate subcontracting directories and page names.
[0086] Step 104, the initial subcontract structure is updated through the target subcontract model according to the subcontract strategy template and the name to be updated to generate a target subcontract structure.
[0087] In an example of the present application, step 104 may include the following sub-steps:
[0088] Retrieve the initial subcontract structure according to the name to be updated through the target subcontract model;
[0089] If the first configuration part that is the same as the existing part of the name to be updated is retrieved, it is loaded into the subcontracting strategy template according to the function point level to which the name to be updated belongs, to obtain an updated subcontracting structure;
[0090] Add the update sub-package structure to the first configuration section to generate the target sub-package structure.
[0091] If a second configuration part with the same name as the one to be updated is retrieved, it is loaded into the subcontracting strategy template according to the function point level to which the name to be updated belongs, and an alternative subcontracting structure is generated;
[0092] The second configuration part is replaced with the alternative sub-package structure to generate a target sub-package structure.
[0093] If the configuration part with the same name as the one to be updated is not retrieved, the name to be updated is loaded into the sub-package strategy template to generate a new sub-package structure;
[0094] Adding a new subcontract structure to the initial subcontract structure will generate the target subcontract structure.
[0095] In an embodiment of the present application, the target subcontract model can be called to retrieve the initial subcontract structure according to the name to be updated. If the first configuration part that is the same as the part of the name to be updated is retrieved, it indicates that the subcontract to which the name to be updated belongs belongs to the first configuration part. At this time, it can be loaded into the subcontract strategy template according to the functional point level to which the name to be updated belongs to generate an updated subcontract structure. For example, if the name to be updated is subpacakges / search / pages / searchLis, and the first configuration part only has subpacakges / search, then the updated subcontract structure can be added to the first configuration part as a new part of the first-level functional point to obtain the target subcontract structure.
[0096] If a second configuration part that is exactly the same as the name to be updated is retrieved, it indicates that the subpackage to which the name to be updated belongs already exists in the original initial subpackage structure and needs to be replaced as a whole. At this time, it can be loaded into the subpackage strategy template according to the functional point level to which the name to be updated belongs to generate an alternative subpackage structure. For example, if the name to be updated is subpacakges / search / pages / searchLis, and the second configuration part also exists subpacakges / search / pages / searchLis, the alternative subpackage structure is used to replace the second configuration part to generate the target subpackage structure.
[0097] If the configuration part with the same name as the one to be updated is not retrieved in the initial subpackage structure, it indicates that the subpackage to which the name to be updated belongs does not exist in the initial subpackage structure and is a newly added subpackage. At this time, the name to be updated can be loaded into the subpackage policy template to generate a new subpackage structure. For example, if the name to be updated is subpacakges / search / pages / search Detail, and the content does not exist in the initial subpackage structure, the new subpackage structure will be added to the initial subpackage structure to generate the target subpackage structure.
[0098] For example, the requirement document mentions the "user comment" function. GPT-4 classifies it as the "user" first-level function point and generates the target subcontract structure as follows:
[0099] First-level function point: user
[0100] Secondary function point: Comments
[0101] Subpackage directory: subpackages / user / pages / comment
[0102] Page naming: commentList, commentDetail
[0103] In another example of the present application, the method further includes the following steps S11-S13:
[0104] S11, extracting the first page path from the target sub-packaging structure through the target sub-packaging model;
[0105] S12, determining the page jump relationship corresponding to the target subcontracting structure according to the requirement document through the target subcontracting model;
[0106] S13. Output the component code and the first page logic code in the folder under the first page path according to the page jump relationship through the target subpackaging model.
[0107] In the embodiment of the present application, after outputting the subpackage structure, the path of the page can be obtained, for example, subpackages / user / pages / comment / commentList (subpackage comment list) and the page path subpackages / user / pages / comment / commentDetail (subpackage comment details).
[0108] The target subcontracting model analyzes the jump relationship between pages according to the requirements document. For example, the relationship between the two paths above is: click the comment list to navigate to the corresponding comment details page. The target subcontracting model will output the mini-program component code and JS logic code based on the relationship.
[0109] In one example of the present application, the method further includes the following steps S21-S23:
[0110] S21, responding to the user preference data sent by the user terminal, and determining the corresponding preference function name according to the user preference data;
[0111] S22, locating the corresponding second page path from the target sub-packaging structure according to the preferred function name;
[0112] S23. Return the second page logic code in the folder under the second page path to the user end.
[0113] In this embodiment, after obtaining the target subpackage structure, in response to the user preference data sent by the user terminal, the target subpackage model determines the corresponding preference function name according to the user preference data, such as the user comment list subpackages / user / pages / comment / commentList, locates the corresponding second page path from the target subpackage structure according to the preference function name, and returns the second page logic code in the folder under the second page path to the user terminal.
[0114] For example, if user A prefers to read the most popular 5-star-rated reviews in the review list, the big model will generate code to filter the most popular 5-star-rated list, as well as code to navigate to the corresponding sub-package review details page.
[0115] In an embodiment of the present application, when an e-commerce applet is received, a function tree diagram corresponding to the e-commerce applet is created; an initial subcontracting structure corresponding to the e-commerce applet is constructed according to the function tree diagram; when a requirement document is received, the target subcontracting model is called to extract function point keywords from the requirement document and convert them into names to be updated; the initial subcontracting structure is updated according to the subcontracting strategy template and the names to be updated through the target subcontracting model to generate a target subcontracting structure, thereby reducing the impact of personal factors on the subcontracting process and reducing labor costs by combining the model with the subcontracting strategy template, thereby effectively improving the subcontracting efficiency of the e-commerce applet.
[0116] See also Figure 4 , Figure 4 A structural block diagram of an e-commerce mini-program subpackaging device according to an embodiment of the present application is shown.
[0117] An embodiment of the present invention provides an e-commerce applet subpackaging device, including:
[0118] The tree diagram creation module 401 is used to create a function tree diagram corresponding to the e-commerce mini program when the e-commerce mini program is received;
[0119] A sub-package structure generation module 402 is used to construct an initial sub-package structure corresponding to the e-commerce applet according to the function tree diagram;
[0120] Functional requirement extraction module 403, for extracting function point keywords from the requirement document and converting them into names to be updated when receiving the requirement document;
[0121] The sub-package structure updating module 404 is used to update the initial sub-package structure according to the sub-package strategy template and the name to be updated through the target sub-package model to generate the target sub-package structure.
[0122] Optionally, the tree diagram creation module 401 is specifically used for:
[0123] When an e-commerce applet is received, the business function points of the e-commerce applet are traversed and determined as first-level function points;
[0124] The functional information associated with each business function point is determined as a secondary function point, and a functional tree diagram corresponding to the e-commerce mini program is obtained.
[0125] Optionally, the sub-packaging structure generating module 402 is specifically used for:
[0126] Traverse the functional branches in the functional tree diagram, and create function point names for each functional point in each functional branch;
[0127] Load the names of each function point into the sub-packaging strategy template to generate the initial sub-packaging structure corresponding to the e-commerce applet.
[0128] Optionally, the function requirement extraction module 403 is specifically used for:
[0129] When a requirement document is received, the target subcontracting model is called to parse the requirement document and extract context information and multiple function point keywords;
[0130] According to each function point keyword and the associated context information, matching the function point level corresponding to the function point keyword;
[0131] Rename each function point keyword according to the function point level to obtain the name to be updated.
[0132] Optionally, the sub-packet structure updating module 404 is specifically used for:
[0133] Retrieve the initial subcontract structure according to the name to be updated through the target subcontract model;
[0134] If the first configuration part that is the same as the existing part of the name to be updated is retrieved, it is loaded into the subcontracting strategy template according to the function point level to which the name to be updated belongs, to obtain an updated subcontracting structure;
[0135] Add the update sub-package structure to the first configuration section to generate the target sub-package structure.
[0136] If a second configuration part with the same name as the one to be updated is retrieved, it is loaded into the subcontracting strategy template according to the function point level to which the name to be updated belongs, and an alternative subcontracting structure is generated;
[0137] The second configuration part is replaced with the alternative sub-package structure to generate a target sub-package structure.
[0138] If the configuration part with the same name as the one to be updated is not retrieved, the name to be updated is loaded into the sub-package strategy template to generate a new sub-package structure;
[0139] Adding a new subcontract structure to the initial subcontract structure will generate the target subcontract structure.
[0140] Optionally, the target subcontracting model is also used to:
[0141] Extract the first page path from the target sub-package structure;
[0142] Determine the page jump relationship corresponding to the target sub-package structure according to the requirements document;
[0143] Output the component code and the first page logic code in the folder under the first page path according to the page jump relationship.
[0144] Optionally, the device further comprises:
[0145] A user preference response module, used to respond to user preference data sent by the user terminal and determine the corresponding preference function name according to the user preference data;
[0146] A page path locating module, used to locate the corresponding second page path from the target sub-package structure according to the preferred function name;
[0147] The code return module is used to return the second page logic code in the folder under the second page path to the user end.
[0148] An embodiment of the present invention provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the e-commerce mini-program subpackaging method as described in any embodiment of the present invention.
[0149] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed, implements the e-commerce mini-program subpackaging method as described in any embodiment of the present invention.
[0150] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0151] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0152] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0153] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of software functional modules.
[0154] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for an electronic device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0155] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for subcontracting an e-commerce applet, characterized in that: include: When an e-commerce applet is received, a function tree diagram corresponding to the e-commerce applet is created; Constructing an initial sub-package structure corresponding to the e-commerce applet according to the functional tree diagram; When a requirement document is received, the target subcontracting model is called to extract function point keywords from the requirement document and convert them into names to be updated; The target subcontracting model is used to update the initial subcontracting structure according to the subcontracting strategy template and the name to be updated to generate a target subcontracting structure.
2. The method according to claim 1, characterized in that When receiving the e-commerce applet, creating a function tree diagram corresponding to the e-commerce applet, including: When an e-commerce applet is received, the business function points of the e-commerce applet are traversed and determined as first-level function points; The function information associated with each business function point is determined as a secondary function point, and a function tree diagram corresponding to the e-commerce applet is obtained.
3. The method according to claim 1, characterized in that: The constructing the initial sub-packaging structure corresponding to the e-commerce applet according to the functional tree diagram includes: Traversing the functional branches in the functional tree diagram, and creating a functional point name for each functional point in each functional branch; The names of the functional points are loaded into the sub-packaging strategy template to generate the initial sub-packaging structure corresponding to the e-commerce applet.
4. The method according to claim 1, characterized in that: When receiving the requirement document, calling the target subcontracting model to extract the function point keywords from the requirement document and converting them into names to be updated includes: When a requirement document is received, the target subcontracting model is called to parse the requirement document to extract context information and multiple function point keywords; According to each of the function point keywords and the associated context information, matching the function point level corresponding to the function point keyword; The function point keywords are renamed according to the function point levels to obtain names to be updated.
5. The method according to claim 1, characterized in that The updating of the initial subcontract structure according to the subcontract strategy template and the name to be updated by the target subcontract model to generate a target subcontract structure includes: Retrieving the initial subcontract structure according to the name to be updated through the target subcontract model; If the first configuration part identical to the existing part of the named object to be updated is retrieved, then the first configuration part is loaded into the sub-package strategy template according to the function point level to which the named object to be updated belongs, to obtain an updated sub-package structure; Adding the update sub-package structure to the first configuration part to generate a target sub-package structure; If a second configuration part that is completely identical to the name to be updated is retrieved, it is loaded into the subcontracting strategy template according to the function point level to which the name to be updated belongs, and an alternative subcontracting structure is generated; Replacing the second configuration part with the replacement sub-package structure to generate a target sub-package structure; If the configuration part identical to the name to be updated is not retrieved, the name to be updated is loaded into the sub-packaging strategy template to generate a newly added sub-packaging structure; The newly added subpackage structure is added to the initial subpackage structure to generate a target subpackage structure.
6. The method according to claim 1, characterized in that The method further comprises: Extracting a first page path from the target sub-packaging structure by using the target sub-packaging model; Determine the page jump relationship corresponding to the target sub-packaging structure according to the requirement document through the target sub-packaging model; The component code and the first page logic code in the folder under the first page path are output according to the page jump relationship through the target subpackaging model.
7. The method according to claim 1, characterized in that The method further comprises: In response to the user preference data sent by the user terminal, determine the corresponding preference function name according to the user preference data; Locating a corresponding second page path from the target sub-packaging structure according to the preferred function name; Return the second page logic code in the folder under the second page path to the user end.
8. An e-commerce applet subcontracting device, characterized in that: include: A tree diagram creation module, used for creating a function tree diagram corresponding to the e-commerce mini program when the e-commerce mini program is received; A sub-contracting structure generating module, used to construct an initial sub-contracting structure corresponding to the e-commerce applet according to the function tree diagram; A functional requirement extraction module is used for, when receiving a requirement document, calling a target subcontracting model to extract function point keywords from the requirement document and converting them into names to be updated; The subcontract structure updating module is used to update the initial subcontract structure according to the target subcontract model, the subcontract strategy template and the name to be updated, and generate a target subcontract structure.
9. An electronic device, characterized in that: It includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the e-commerce mini program subpackaging method as described in any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed, the e-commerce mini program subpackaging method as described in any one of claims 1 to 7 is implemented.