Search

CN-121996226-A - Method, device and storage medium for generating application scene

CN121996226ACN 121996226 ACN121996226 ACN 121996226ACN-121996226-A

Abstract

The embodiment of the invention provides a method, a device and a storage medium for generating an application scene, wherein the method comprises the steps of obtaining a user input language, carrying out deep analysis, entity identification and intention classification on the user input language to obtain an application scene name, a core service entity, a user requirement and an application scene type required by a user; the method comprises the steps of setting a model component mapping library, selecting matched visual components from the model component mapping library according to application scene names, core service entities and application scene types required to be generated by users, analyzing user requirements to obtain screening conditions, time ranges and dimension indexes, obtaining component parameters of the visual components, determining data request URL meeting requirements according to the visual components and the component parameters thereof, generating complete codes based on grammar rules, and adapting the complete codes and the data request URL based on a fence layout system to generate the application scenes.

Inventors

  • BAO SHIJIE
  • SUN JINCHAO

Assignees

  • 武汉侏罗纪技术开发有限公司

Dates

Publication Date
20260508
Application Date
20251208

Claims (10)

  1. 1. A method of generating an application scenario, the method comprising: obtaining a user input language, and carrying out deep analysis, entity identification and intention classification on the user input language to obtain an application scene name, a core service entity, a user requirement and an application scene type required by a user; Setting a model component mapping library, and selecting a matched visual component from the model component mapping library according to the application scene name, the core service entity and the application scene type required to be generated by a user; Analyzing the user requirements to obtain screening conditions, time ranges and dimension indexes, wherein the screening conditions, the time ranges and the dimension indexes are used for obtaining component parameters of the visual component; determining a data request URL meeting the requirements according to the visual component and the component parameters thereof; And generating a complete code based on grammar rules, and adapting the complete code and the data request URL based on a palisade layout system to generate an application scene.
  2. 2. The method of claim 1, wherein the step of determining the position of the substrate comprises, The application scene type comprises a data billboard, a service form and statistical analysis; the visual component comprises a line graph, a bar graph and a table; the complete code includes template structure, data logic, style definition, and API request encapsulation logic.
  3. 3. The method of claim 1, wherein the step of determining the position of the substrate comprises, The data request URL supports dynamic parameter replacement and query condition assembly, including: identifying a data type of parameters to be assembled, wherein the data type comprises a character string, a number, a date, a Boolean value and an array; Converting the identified parameters into a format of an adaptive back end according to a back end interface preset rule or custom configuration; And identifying a logic operator in the query condition by adopting a preset grammar, wherein the preset grammar is in a combination form of a parameter name and the operator, analyzing the preset grammar, and converting the preset grammar into a query format supported by a rear-end interface for range query, multi-value matching and fuzzy query.
  4. 4. The method according to claim 1, characterized in that the method further comprises: Acquiring post information and corresponding service attributes of a user, wherein the service attributes comprise service fields, data operation authorities and core service flows corresponding to the posts; based on the service attribute, extracting an application scene type to be checked and a core service entity, wherein the core service entity comprises a core data object and an association relation related in a post service flow; establishing an adaptation check rule base of the service attribute, the application scene type and the core service entity, wherein the check rule base comprises legal application scene type ranges and core service entity check standards corresponding to different post service attributes; And carrying out validity verification on the extracted application scene type according to the verification rule base, and verifying the integrity, relevance and service suitability of the core service entity.
  5. 5. The method of claim 1, wherein the step of determining the position of the substrate comprises, The model component mapping library comprises corresponding relation rules of the visual components and the data model, wherein the corresponding relation rules are preset according to service characteristics of different application scene types, and the method comprises the following steps: dividing the application scene into different application scene types based on the business target, the data interaction mode, the flow complexity and the permission control requirement; extracting core service characteristics of various application scenes, wherein the core service characteristics comprise service triggering conditions, data flow paths, key service index thresholds and abnormal processing requirements; Different corresponding relation rules are preset according to core service characteristics of different types of application scenes, wherein the corresponding relation rules comprise mapping rules of service entities and data fields, matching rules of flow nodes and operation authorities and association rules of service events and response strategies.
  6. 6. The method of claim 1, wherein the step of determining the position of the substrate comprises, And carrying out deep analysis on the user input language by adopting an LLM large model.
  7. 7. An apparatus for generating an application scenario, the apparatus comprising: the first processing module is used for acquiring a user input language, carrying out deep analysis, entity identification and intention classification on the user input language to obtain an application scene name, a core service entity, a user demand and an application scene type required by a user; the second processing module is used for setting a model component mapping library, and selecting a matched visual component from the model component mapping library according to the application scene name, the core service entity and the application scene type required to be generated by a user; the third processing module is used for analyzing the user requirements to obtain screening conditions, time ranges and dimension indexes and obtaining component parameters of the visual component; the fourth processing module is used for determining a data request URL meeting the requirements according to the visualization component and the component parameters thereof; And the fifth processing module is used for generating complete codes based on grammar rules, and generating application scenes by adapting the complete codes and the data request URLs based on the palindromic layout system.
  8. 8. The apparatus of claim 7, wherein the device comprises a plurality of sensors, The application scene type comprises a data billboard, a service form and statistical analysis; the visual component comprises a line graph, a bar graph and a table; the complete code includes template structure, data logic, style definition, and API request encapsulation logic.
  9. 9. The apparatus of claim 7, wherein the apparatus further comprises: The sixth processing module is used for acquiring post information and corresponding service attributes of the user, wherein the service attributes comprise service fields, data operation authorities and core service flows corresponding to the posts; based on the service attribute, extracting an application scene type to be checked and a core service entity, wherein the core service entity comprises a core data object and an association relation related in a post service flow; establishing an adaptation check rule base of the service attribute, the application scene type and the core service entity, wherein the check rule base comprises legal application scene type ranges and core service entity check standards corresponding to different post service attributes; And carrying out validity verification on the extracted application scene type according to the verification rule base, and verifying the integrity, relevance and service suitability of the core service entity.
  10. 10. A machine-readable storage medium having stored thereon instructions for causing a machine to perform the method of generating an application scenario according to any one of the preceding claims 1-6.

Description

Method, device and storage medium for generating application scene Technical Field The invention relates to the technical field of man-machine interaction and code development, in particular to a method, a device and a storage medium for generating an application scene. Background Under the digital transformation acceleration background, the development efficiency, adaptability and usability requirements of enterprises on business applications are greatly increased. The low-code development platform is a core support for enterprises to construct business applications by virtue of the advantages of simplifying the flow and shortening the period, and the popularity and the market permeability are continuously improved. Under the trend, the demands of enterprises on quick response and efficient construction of personalized application scenes are becoming stronger, and the intelligent level and adaptation capability of a low-code platform become core competitiveness. However, the existing low-code technology has a plurality of outstanding problems, is difficult to meet the actual demands of enterprises, restricts the popularization and application of a platform, and is specifically expressed as follows: Firstly, the technical threshold is higher. Although the traditional low-code platform claims to reduce development difficulty, users are still required to have basic programming knowledge and technical reserves, and real natural language driven development cannot be realized. The user needs to be familiar with specific logic, grammar or configuration specifications of the platform, the threshold is higher for business personnel without programming foundation, and people are difficult to realize, so that creativity of the business personnel is limited, and application development efficiency is reduced. Secondly, the personalized adaptation is insufficient. The requirements and operation habits of different enterprises and different posts in the same enterprise are obviously different, but the existing system lacks an intelligent adaptation mechanism based on post attributes, can not accurately identify user roles and core requirements, and is difficult to provide customized application scene generation services. The user needs to adjust under the general framework by himself, which not only increases the operation complexity, but also may cause the disconnection of the application scene and the service requirement, and affect the service efficiency. Thirdly, the multiplexing efficiency of the components is low. The componentization development is a core advantage of a low-code platform, but the binding of a data model and a graphic component in the prior art is complicated, and an automation mechanism is lacked. The user needs to manually configure a large number of parameters and write calling logic, which is time-consuming and labor-consuming, and is easy to cause multiplexing failure due to human errors, thereby not only reducing efficiency, but also possibly increasing cost, and violating the original purpose of simplifying the flow by low codes. Fourth, visual generation lacks intelligence. Visualization is a key for improving development efficiency, but the current technology cannot realize automatic visualization generation based on natural language description, and a user needs to manually complete component selection, parameter setting and layout design. Even if a part of platforms support simple visual configuration, parameters cannot be automatically spliced, codes cannot be generated, self-adaptive fence layout cannot be realized, flexibility and intelligence are insufficient, and diversified scene requirements cannot be met. At present, the core functions of the mainstream low-code platform are concentrated on visual dragging components and attribute configuration, and the key links of component selection, parameter setting, model and component binding, layout design and the like still need to be completed manually depending on manual intervention. For example, although some platforms support the configurable binding of data models and UI components, they lack advanced natural language understanding capability, cannot accurately analyze user requirements, and are difficult to implement intelligent generation and adaptation of application scenarios. In summary, the existing low-code technology has obvious short boards in the aspects of usability, personalized adaptation, component multiplexing, intelligent visualization and the like, and cannot meet the requirement of enterprises for quickly constructing personalized business applications. Therefore, development of related technologies is needed to solve the above problems, and improve the level of intelligence and practical value of the low-code platform. Disclosure of Invention The embodiment of the invention aims to provide a method, a device and a storage medium for generating an application scene. In order to achieve the above object, an embodim