CN115543291A - Development and application method and device of interface template suite - Google Patents

Development and application method and device of interface template suite Download PDF

Info

Publication number
CN115543291A
CN115543291A CN202211253081.7A CN202211253081A CN115543291A CN 115543291 A CN115543291 A CN 115543291A CN 202211253081 A CN202211253081 A CN 202211253081A CN 115543291 A CN115543291 A CN 115543291A
Authority
CN
China
Prior art keywords
interface
interface template
template
service
built
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211253081.7A
Other languages
Chinese (zh)
Inventor
诸焕辉
凌晨
许畅
林玉千
孙小博
易文峰
李小强
梁培
章尊志
李忠文
薛煜帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Southern Power Grid Digital Platform Technology Guangdong Co ltd
Original Assignee
China Southern Power Grid Digital Platform Technology Guangdong Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Southern Power Grid Digital Platform Technology Guangdong Co ltd filed Critical China Southern Power Grid Digital Platform Technology Guangdong Co ltd
Priority to CN202211253081.7A priority Critical patent/CN115543291A/en
Publication of CN115543291A publication Critical patent/CN115543291A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method and a device for developing and applying an interface template suite, wherein the method comprises the following steps: when detecting that a user carries out interface construction operation triggered by an interface template to be constructed on a visual interface template manufacturing designer, adjusting page information of the interface template to be constructed according to the interface construction operation to obtain interface templates, wherein an interface code format corresponding to each interface template is matched with a preset code format corresponding to the interface template manufacturing designer; and generating an interface template set based on all the interface templates, wherein the preset service scenes of each interface template in the interface template set are matched. Therefore, the interface template can be developed through the visual interface template making designer, the development difficulty of the interface template is reduced, the development efficiency of the interface template is improved, the dependence on the code editing capability of developers is reduced, and the uniformity of the code style among the interface templates developed by different developers is improved.

Description

Development and application method and device of interface template suite
Technical Field
The invention relates to the technical field of interface development, in particular to a development and application method and device of an interface template suite.
Background
In the internet industry, most enterprises still adopt a traditional mode of manually writing codes from '0' to build a business system, and the traditional mode is limited by factors such as a skill stack of research and development personnel, research and development quality, code operation and maintenance and the like, so that the research and development cost and the operation and maintenance cost of the business system are high. Therefore, some low-code platforms gradually appear in the internet industry, and enterprises can directly build business interfaces in a visualization and parameter configuration mode through the low-code platforms, however, the technical difficulty and the cost of the research and development construction of the low-code development platforms are high, the business interfaces generated by the low-code development platforms cannot be applied to other business scenes with high similarity, the business interfaces of other business scenes must be redeveloped, and the reuse rate of the business interfaces is reduced.
Based on this, part of enterprises adopt a mode of manually writing a static page template to improve the reusability of a business interface, that is, developers manually code the interface template of the universal type sample code according to the interface prototype draft, and if a business system needs to be developed, the business interface can be obtained only by adjusting and modifying the interface template. However, practice finds that the static page template still needs to be manually coded by developers offline as the interface template, so that the requirements on the technical capability of the developers are high, the development difficulty of the interface template is improved, the development efficiency of the interface template is reduced, the response to the development appeal of the interface template of different service scenes is slow, and in addition, because the coding habits of different developers are different, the code style difference between different service interfaces in the same service system built by the static page templates developed by different developers is large, and the code operation and maintenance cost of the service system is improved.
Disclosure of Invention
The invention aims to provide a development and application method and a device of an interface template suite, which can reduce the development difficulty of the interface template, improve the development efficiency of the interface template and improve the uniformity of code styles among the interface templates developed by different developers.
In order to solve the above technical problem, a first aspect of the present invention discloses a method for developing and applying an interface template kit, where the method includes:
when detecting that a user performs interface construction operation triggered on one or more interface templates to be constructed by a visual interface template manufacturing designer, adjusting page information of the interface templates to be constructed according to the interface construction operation to obtain interface templates required by the user, wherein an interface code format corresponding to each interface template is matched with a preset code format corresponding to the interface template manufacturing designer;
and generating an interface template kit required by a user based on all the interface templates, wherein the preset service scene of each interface template in the interface template kit is matched, and the preset service scene is used for representing the preset application scene in the interface template.
As an optional implementation manner, in the first aspect of the present invention, all the interface templates to be built include at least one blank template created in advance and/or at least one parsing interface template parsed in advance, where the parsing interface template includes a parsing interface obtained by parsing one or more existing service interfaces imported in advance.
As an optional implementation manner, in the first aspect of the present invention, the page information includes a view layer layout and/or a model layer business rule assembly;
for each interface template to be built, adjusting page information of the interface template to be built according to the interface building operation to obtain an interface template required by a user, wherein the method comprises the following steps:
when the interface construction operation comprises an interface drawing operation, adjusting the view layer layout of the interface template to be constructed according to the interface drawing operation to obtain the interface template required by a user, wherein the interface drawing operation comprises a component selection operation for selecting an interface component and a component layout operation aiming at the interface component; and/or the presence of a gas in the gas,
and when the interface building operation comprises service configuration operation, configuring the model layer service rule assembly of the interface template to be built according to the service configuration operation to obtain the interface template required by the user.
As an optional implementation manner, in the first aspect of the present invention, for each interface template to be built, the adjusting, according to the interface drawing operation, a view layer layout of the interface template to be built to obtain an interface template required by a user includes:
adding an interface component selected by a user from a selectable interface component library to a corresponding position of the interface template to be built according to the interface drawing operation so as to adjust the visual layer layout of the interface template to be built and obtain the interface template required by the user, wherein the interface component comprises an invariable area component with an invariable component type and/or a variable area component with a variable component type; and/or the presence of a gas in the gas,
and according to the interface drawing operation, modifying the component basic attribute of the existing interface component of the interface template to be built selected by the user in the interface template to be built so as to adjust the view layer layout of the interface template to be built and obtain the interface template required by the user, wherein the component basic attribute comprises a component type and/or a component format, and the component type of each interface component comprises a variable type or an invariable type.
As an optional implementation manner, in the first aspect of the present invention, the model layer business rule of each interface template to be built is assembled into a business logic including the interface template to be built, where the business logic includes a data model and/or a behavior logic;
for each interface template to be built, the behavior logic of the interface template to be built is configured based on the following modes:
when the service configuration operation comprises a service behavior definition operation triggered by a user on a visual form of the interface template to be built, according to a service behavior matched with the interface template to be built and indicated by the service behavior definition operation, determining at least one behavior logic code matched with the interface template to be built from all built-in behavior logic codes of the interface template to be built, and assembling all the behavior logic codes according to the service behavior definition operation to obtain the behavior logic of the interface template to be built;
and when the service configuration operation comprises a code editing operation triggered by the user on a code editor of the interface template making designer aiming at the interface template to be built, editing the behavior logic code of the interface template to be built according to the code editing operation to obtain the behavior logic of the interface template to be built.
As an optional implementation manner, in the first aspect of the present invention, for each interface template to be created, after the page information of the interface template to be created is adjusted according to the interface creating operation to obtain an interface template required by the user, the method further includes:
when a preview request of a user for any interface construction operation corresponding to the interface template to be constructed is detected, a preview result corresponding to the interface construction operation is generated and displayed to the user, wherein the preview result corresponding to the interface drawing operation comprises a global preview result of the interface template generated by the interface template to be constructed or a local preview result matched with the interface drawing operation in the interface template generated by the interface template to be constructed, and the preview result corresponding to the service configuration operation comprises a data model configuration result of the interface template to be constructed and/or a behavior logic execution process of the interface template to be constructed.
As an optional implementation manner, in the first aspect of the present invention, any generated interface template kit is stored in a preset interface template library;
and, the method further comprises:
when a business interface generation request triggered by a user in a visual interface template application designer is detected, calling a target interface template kit matched with the business interface generation request in the interface template library to the interface template application designer according to the business interface generation request;
determining at least one target interface template to be called in the target interface template suite;
and filling a service data source corresponding to the predetermined service interface generation request into a variable region of each target interface template to generate a target service interface corresponding to the service interface generation request, wherein each variable region comprises at least one variable region component with a variable component type and/or at least one variable service logic with a variable logic type.
As an optional implementation manner, in the first aspect of the present invention, the filling a predetermined service data source corresponding to the service interface generation request into a variable region of each target interface template to generate a target service interface corresponding to the service interface generation request includes:
for the variable area of each target interface template, determining target business data matched with the variable area from a business data source corresponding to a predetermined business interface generation request according to business data configuration information input by a user in a guide form configuration page corresponding to the variable area and/or business data configuration operation triggered by a visual page mapped by the target interface template by the user, wherein the guide form configuration page is used for guiding the user to gradually configure a plurality of template business data matched with each variable area;
and for each variable region, filling the target service data matched with the variable region into the variable region to generate a target service interface corresponding to the service interface generation request.
As an optional implementation manner, in the first aspect of the present invention, the method further comprises:
for each variable region, judging whether all other variable regions of all the target interface templates exist in the associated variable region corresponding to the variable region;
for each variable region, when judging that the associated variable region corresponding to the variable region exists, judging whether the synchronous mode of the variable region is in an unlocking state;
and for each variable region, when the synchronous mode of the variable region is judged not to be in the unlocking state, synchronously filling the target service data matched with the variable region into the associated variable region corresponding to the variable region so as to generate a target service interface corresponding to the service interface generation request.
The second aspect of the present invention discloses an apparatus for developing and applying interface template kits, the apparatus comprising:
the interface construction module is used for adjusting page information of the interface template to be constructed according to the interface construction operation when detecting the interface construction operation triggered by a user on one or more interface templates to be constructed by a visual interface template manufacturing designer, so as to obtain the interface template required by the user, wherein the interface code format corresponding to each interface template is matched with the preset code format corresponding to the interface template manufacturing designer;
the generating module is used for generating an interface template suite required by a user based on all the interface templates, and the preset service scenes of each interface template in the interface template suite are matched, wherein the preset service scenes are used for representing preset application scenes in the interface templates.
As an optional implementation manner, in the second aspect of the present invention, all the interface templates to be built include at least one blank template created in advance and/or at least one analysis interface template analyzed in advance, and the analysis interface template includes an analysis interface obtained by analyzing one or more existing service interfaces imported in advance.
As an optional implementation manner, in the second aspect of the present invention, the page information includes a view layer layout and/or a model layer business rule assembly;
for each interface template to be built, the specific mode that the interface building module adjusts the page information of the interface template to be built according to the interface building operation to obtain the interface template required by the user comprises the following steps:
when the interface construction operation comprises an interface drawing operation, adjusting the view layer layout of the interface template to be constructed according to the interface drawing operation to obtain the interface template required by a user, wherein the interface drawing operation comprises a component selection operation for selecting an interface component and a component layout operation aiming at the interface component; and/or the presence of a gas in the gas,
and when the interface building operation comprises service configuration operation, configuring the model layer service rule assembly of the interface template to be built according to the service configuration operation to obtain the interface template required by the user.
As an optional implementation manner, in the second aspect of the present invention, for each interface template to be built, a specific manner in which the interface building module adjusts the layout of the view layer of the interface template to be built according to the interface drawing operation to obtain the interface template required by the user includes:
adding an interface component selected by a user from a selectable interface component library to a corresponding position of the interface template to be built according to the interface drawing operation so as to adjust the visual layer layout of the interface template to be built and obtain the interface template required by the user, wherein the interface component comprises an invariable area component with an invariable component type and/or a variable area component with a variable component type; and/or the presence of a gas in the gas,
and according to the interface drawing operation, modifying the component basic attribute of the existing interface component of the interface template to be built selected by the user in the interface template to be built so as to adjust the view layer layout of the interface template to be built and obtain the interface template required by the user, wherein the component basic attribute comprises a component type and/or a component format, and the component type of each interface component comprises a variable type or an invariable type.
As an optional implementation manner, in the second aspect of the present invention, the model layer business rule of each interface template to be built assembles a business logic including the interface template to be built, where the business logic includes a data model and/or a behavior logic;
for each interface template to be built, the behavior logic of the interface template to be built is configured by the interface building module based on the following modes:
when the service configuration operation comprises a service behavior definition operation triggered by a user on a visual form of the interface template to be built, according to a service behavior matched with the interface template to be built and indicated by the service behavior definition operation, determining at least one behavior logic code matched with the interface template to be built from all built-in behavior logic codes of the interface template to be built, and assembling all the behavior logic codes according to the service behavior definition operation to obtain the behavior logic of the interface template to be built;
and when the service configuration operation comprises a code editing operation triggered by the user on a code editor of the interface template making designer aiming at the interface template to be built, editing the behavior logic code of the interface template to be built according to the code editing operation to obtain the behavior logic of the interface template to be built.
As an optional implementation manner, in the second aspect of the present invention, the generating module is further configured to, for each interface template to be built, after the interface building module adjusts page information of the interface template to be built according to the interface building operation to obtain an interface template required by a user, generate a preview result corresponding to the interface building operation when a preview request of the user for any interface building operation corresponding to the interface template to be built is detected, where the preview result is used for being displayed to the user, where the preview result corresponding to the interface drawing operation includes a global preview result of the interface template generated by the interface template to be built or a local preview result matched with the interface drawing operation in the interface template generated by the interface template to be built, and the preview result corresponding to the service configuration operation includes a data model configuration result of the interface template to be built and/or a behavior logic execution process of the interface template to be built.
As an alternative implementation, in the second aspect of the present invention, any generated interface template kit is stored in a preset interface template library;
and, the apparatus further comprises:
the calling module is used for calling a target interface template kit matched with the business interface generation request in the interface template library to the interface template application designer according to the business interface generation request when detecting the business interface generation request triggered by a user in the visual interface template application designer;
the determining module is used for determining at least one target interface template to be called in the target interface template suite;
and the filling module is used for filling a predetermined service data source corresponding to the service interface generation request into the variable region of each target interface template to generate a target service interface corresponding to the service interface generation request, wherein each variable region comprises at least one variable region component with a variable component type and/or at least one variable service logic with a variable logic type.
As an optional implementation manner, in the second aspect of the present invention, the filling module fills a predetermined service data source corresponding to the service interface generation request into the variable region of each target interface template, so as to generate the target service interface corresponding to the service interface generation request in a specific manner, including:
for the variable area of each target interface template, determining target business data matched with the variable area from a business data source corresponding to a predetermined business interface generation request according to business data configuration information input by a user in a guide form configuration page corresponding to the variable area and/or business data configuration operation triggered by a visual page mapped by the target interface template by the user, wherein the guide form configuration page is used for guiding the user to gradually configure a plurality of template business data matched with each variable area;
and for each variable region, filling the target service data matched with the variable region into the variable region to generate a target service interface corresponding to the service interface generation request.
As an alternative embodiment, in the second aspect of the present invention, the apparatus further comprises:
the judging module is used for judging whether all other variable regions of all the target interface templates exist in the associated variable region corresponding to the variable region or not for each variable region; when judging that the associated variable region corresponding to the variable region exists, judging whether the synchronous mode of the variable region is in an unlocking state;
the filling module is further configured to, for each variable region, when the determining module determines that the synchronization mode of the variable region is not in the unlocked state, synchronously fill the target service data matched with the variable region into the associated variable region corresponding to the variable region, so as to generate a target service interface corresponding to the service interface generation request.
The third aspect of the present invention discloses another interface template kit developing and applying apparatus, including:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program codes stored in the memory to execute the development application method of the interface template suite disclosed by the first aspect of the invention.
The fourth aspect of the present invention discloses a computer storage medium, which stores computer instructions, and when the computer instructions are called, the computer instructions are used for executing the development and application method of the interface template suite disclosed in the first aspect of the present invention.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, when detecting that a user performs interface construction operation triggered on one or more interface templates to be constructed by a visual interface template manufacturing designer, adjusting page information of the interface templates to be constructed according to the interface construction operation to obtain the interface templates required by the user, wherein the interface code format corresponding to each interface template is matched with the preset code format corresponding to the interface template manufacturing designer; and generating an interface template kit required by a user based on all interface templates, wherein the preset service scene of each interface template in the interface template kit is matched, and the preset service scene is used for representing the preset application scene in the interface template. Therefore, the interface template can be developed by the visual interface template making designer, so that developers can build the interface template in a visual mode, the development difficulty of the interface template is reduced, the development efficiency of the interface template is improved, the response speed of development requirements of the interface templates of different service scenes is improved, the dependence on the code editing capacity of the developers is reduced, the uniformity of code styles among the interface templates developed by different developers is improved, and the code operation and maintenance cost of service systems comprising different service interfaces is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart illustrating a method for developing and applying an interface template kit according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another method for developing and applying an interface template kit according to an embodiment of the present disclosure;
FIG. 3 is a schematic structural diagram of an apparatus for developing and applying an interface template kit according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of another interface template kit development application apparatus disclosed in the embodiments of the present invention;
fig. 5 is a schematic structural diagram of a development and application apparatus of another interface template kit according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between different objects and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, apparatus, article, or article that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or article.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The invention discloses a development and application method and a device of an interface template suite, which can develop an interface template through a visual interface template making designer, so that developers can build the interface template in a visual mode, thereby reducing the development difficulty of the interface template, improving the development efficiency of the interface template, further improving the response speed of the development appeal of the interface template in different service scenes, reducing the dependence on the code editing capability of the developers, and improving the uniformity of code styles among the interface templates developed by different developers, thereby being beneficial to reducing the code operation and maintenance cost of service systems comprising different service interfaces. The following are detailed descriptions.
Example one
Referring to fig. 1, fig. 1 is a schematic flowchart of a method for developing and applying an interface template kit according to an embodiment of the present invention. The method for developing and applying an interface template kit described in fig. 1 may be applied to a development and application platform of an interface template kit, the development and application platform may be applied to research and development of service interfaces of various service systems, the development and application platform may include a development component of an interface template kit, such as an interface template making designer, and the development and application platform may further include an application component of an interface template kit, such as an interface template application designer, which is not limited in the embodiment of the present invention. As shown in fig. 1, the method for developing and applying the interface template suite may include the following operations:
101. when detecting that a user performs interface construction operation triggered on one or more interface templates to be constructed by a visual interface template manufacturing designer, adjusting page information of the interface templates to be constructed according to the interface construction operation to obtain the interface templates required by the user.
Optionally, the interface code format corresponding to each interface template matches the preset code format corresponding to the interface template making designer, that is, the interface code formats created by any multiple users using the interface template making designer all match each other.
Optionally, all the interface templates to be built may include at least one blank template created in advance and/or at least one analysis interface template analyzed in advance, and the analysis interface template may include an analysis interface obtained by analyzing one or more existing service interfaces imported in advance. Therefore, the interface template can be created through the blank interface, the existing service interface is analyzed, and the analysis result is finely adjusted to obtain the interface template, so that the diversity of the interface template building modes is improved, the interface template building efficiency is further improved, and the reuse rate of the service interface can be improved.
In the embodiment of the invention, optionally, when the user makes the interface template, the interface template making designer can support the user to check the preview effect of the current interface template at any time, and after the interface template is made, the interface template can be stored in a development application platform of the interface template suite to support the accumulation and reuse of the interface template.
Before creating the interface template according to step 101, basic information of the interface template suite to be generated, such as the name, type, application scenario, and the like of the interface template suite, may also be input in the visualized interface template creation designer.
Optionally, the page information may include a view layer layout and/or a model layer business rule assembly.
Further optionally, the view layer layout of each interface template to be built may include a component layout in the interface template to be built, for example, interface components included in the interface template to be built, and a position, a size, a color, a type, a shape, and the like of each interface component; the model layer business rule assembly of each interface template to be built can comprise business logic of the interface template to be built, and the business logic can comprise a data model and/or behavior logic.
Further optionally, the data model of each interface template to be built may include one or more of a user authority, an interface parameter, a data constant and a service model corresponding to the interface template to be built, and further optionally, the data model of each interface template to be built may include a user authority, an interface parameter, a data constant and a service model corresponding to data and/or behavior of the interface template to be built. Taking two interface templates, namely a personnel list page and an editing page as an example, the editing button and/or the storage button on the editing page can be hidden after a user jumps from the personnel list page to the editing page through the user permission, so that the user only has the data viewing permission but not the data editing permission; when a person list page clicks a certain piece of data to jump to an editing page, data required for transmitting the editing page needs to be set on a url address of the jumping editing page, the data is interface parameters, the url address is a constant data value, and the url value can be defined as a data constant, such as: http://127.0.0.1/queryid = xxxx, "id = xxxx" is an interface parameter, and in this scenario, a target skip page is required to define a variable for receiving data, "http://127.0.0.1/query? "is a data constant; because the user of the editing page inputs the personnel information, the personnel business model object can be used for associating the form at the moment, the data input in the form is stored in the personnel business model object, and the personnel business model object is stored in a back-end database or other media.
As an optional implementation manner, for each interface template to be built, according to an interface building operation, adjusting page information of the interface template to be built to obtain an interface template required by a user, which may include:
when the interface construction operation comprises interface drawing operation, adjusting the view layer layout of the interface template to be constructed according to the interface drawing operation to obtain the interface template required by a user, wherein the interface drawing operation comprises component selection operation for selecting an interface component and component layout operation for the interface component; and/or the presence of a gas in the gas,
and when the interface building operation comprises service configuration operation, configuring the model layer service rule assembly of the interface template to be built according to the service configuration operation to obtain the interface template required by the user.
Therefore, the optional implementation mode can be implemented to respectively adjust and configure the view layer layout and the model layer business rule assembly of the interface template to be built to obtain the interface template, the accuracy and the reliability of the building of the interface template are improved, and the view layer and the model layer are decoupled, so that the building difficulty and the modification convenience of the interface template are reduced.
Optionally, the user may select a primitive component built in the interface template making designer, and also integrate a third party primitive component and/or a service primitive component built by the user into the interface template making designer through a primitive component extension function of the interface template making designer. This can improve the diversity of the interface components
Optionally, the component layout operation may include a component placement operation for placing the interface component and/or a component property configuration operation for modifying a basic property of the component, and preferably, the component placement operation is a drag and pull operation. This can improve the intuitiveness of the interface component configuration.
In this optional embodiment, optionally, for each interface template to be built, according to the interface drawing operation, adjusting the view layer layout of the interface template to be built to obtain the interface template required by the user, which may include:
according to the interface drawing operation, adding an interface component selected by a user from an optional interface component library to a corresponding position of the interface template to be built so as to adjust the visual layer layout of the interface template to be built and obtain the interface template required by the user, wherein optionally, the interface component can comprise an invariable area component with an invariable component type and/or a variable area component with a variable component type; and/or the presence of a gas in the gas,
according to the interface drawing operation, modifying the component basic attribute of the existing interface component of the interface template to be built selected by the user in the interface template to be built so as to adjust the view layer layout of the interface template to be built and obtain the interface template required by the user, wherein the component basic attribute comprises a component type and/or a component format, and optionally, the component type of each interface component can be a variable type or an invariable type.
Optionally, the component format of each interface component may include the text style (e.g., text size, color, spacing, etc.) and/or the component shape (e.g., component size, component spacing, layout pattern, etc.) of the interface component.
Specifically, the user may build an interface template by combining a plurality of variable area components and/or non-variable area components, or may convert a single or a plurality of interface components (e.g., all interface components in a certain area) built in the interface template into a variable area component or a non-variable area component.
Therefore, the optional implementation method can also be implemented by building the interface template through a plurality of existing interface components, so that the development difficulty of the interface template view layer is reduced, and the development efficiency of the interface template view layer is improved.
In the embodiment of the invention, optionally, when the view layer layout of the interface template to be built is adjusted, the number of the layout rows and columns of the interface template to be built can be limited, so that the layout typesetting of the interface template during application is limited.
In this optional embodiment, further optionally, for each interface template to be built, the behavior logic of the interface template to be built is configured based on the following manner:
when the service configuration operation comprises a service behavior definition operation triggered by a user on a visual form of an interface template to be built, determining at least one behavior logic code matched with the interface template to be built from all built-in behavior logic codes of the interface template manufacturing designer according to a service behavior matched with the interface template to be built indicated by the service behavior definition operation, and assembling all behavior logic codes according to the service behavior definition operation to obtain behavior logic of the interface template to be built;
when the service configuration operation comprises a code editing operation triggered by a user on a code editor of an interface template manufacturing designer aiming at the interface template to be built, editing the behavior logic code of the interface template to be built according to the code editing operation to obtain the behavior logic of the interface template to be built.
For example, after a target page address needing to be jumped is selected on the visual form, a jump behavior function can be called or generated, and a user does not need to care about how a code corresponding to the jump behavior function is written; for another example, if the skipped target service address carries special service data that cannot be entered on the visual form, the code corresponding to the skip behavior function may be directly modified or written on the code editor.
In the embodiment of the present invention, optionally, the built-in behavior logic code of the interface template making designer is an optimal practice behavior template determined based on preset service requirements, for example, a behavior logic code commonly used by a service is set as the optimal practice behavior template.
Therefore, by implementing the optional implementation mode, a plurality of built-in behavior logic codes can be built into the behavior logic of the interface template according to the business behaviors, so that the development difficulty of the interface template model layer is reduced, the development efficiency of the interface template model layer is improved, the dependence on the code editing capacity of developers is further reduced, the uniformity of the code styles among the interface templates developed by different developers is improved, the code operation and maintenance cost of business systems comprising different business interfaces is reduced, in addition, a user is allowed to directly edit the behavior logic codes, and the situation that the built-in behavior logic codes cannot meet business requirements and cannot build the interface template is reduced.
102. And generating an interface template kit required by the user based on all the interface templates.
In the embodiment of the invention, the preset service scenes of each interface template in the interface template suite are matched, wherein the preset service scenes are used for representing the preset application scenes in the interface templates.
In the embodiment of the present invention, optionally, any generated interface template suite may be stored in a preset interface template library, and after the interface template suite is generated, a manufacturing result corresponding to the interface template suite may be queried through an interface template suite list.
Therefore, by implementing the embodiment of the invention, the interface template can be developed through the visual interface template making designer, so that developers can build the interface template in a visual mode, the development difficulty of the interface template is reduced, the development efficiency of the interface template is improved, the response speed to the development appeal of the interface template of different service scenes is improved, the dependence on the code editing capability of the developers is reduced, the uniformity of the code style among the interface templates developed by different developers is improved, and the reduction of the code operation and maintenance cost of service systems comprising different service interfaces is facilitated.
In an optional embodiment, the method may further comprise:
and injecting predetermined technology stack information matched with the interface template suite to be generated into a visual general designer to obtain a visual interface template manufacturing designer, wherein the technology stack information comprises front-end programming development language matched with the interface template suite.
For example, the element-ui interface template designer and the mint-ui interface template designer can be obtained by injecting technical stack information such as element-ui and mint-ui into a universal designer.
Therefore, by implementing the optional embodiment, the technology stack information can be injected into the universal designer to obtain the interface template manufacturing designer matched with different development languages, so that the requirement of a user on the diversification of the programming development languages is met.
In another optional embodiment, for each interface template to be built, after adjusting page information of the interface template to be built according to the interface building operation to obtain an interface template required by the user, the method may further include:
and optionally, the preview result corresponding to the interface drawing operation comprises a global preview result of the interface template generated by the interface template to be built or a local preview result matched with the interface drawing operation in the interface template to be built, and the preview result corresponding to the service configuration operation comprises a data model configuration result of the interface template to be built and/or a behavior logic execution process of the interface template to be built.
Therefore, the implementation of the optional embodiment can meet the requirement that a user checks the preview result of the interface template in real time in the interface template building process, so that the user can adjust the interface template in time, and the efficiency and the accuracy of the interface template building are improved.
In yet another optional embodiment, before generating the user-desired interface template kit based on all interface templates, the method may further comprise:
for each interface template, judging whether the interface template meets a preset manufacturing standard condition; if yes, triggering to execute the step 102; when the judgment result is negative, correcting the template information of the interface template, or prompting a user to correct the template information of the interface template;
optionally, for each interface template, determining whether the interface template meets a preset production specification condition may include:
and judging whether the interface template meets the preset manufacturing standard conditions or not according to the template information of the interface template, or judging whether the interface template meets the preset manufacturing standard conditions or not according to feedback information of a user aiming at a preview result of the interface template.
In this optional embodiment, optionally, when determining whether the interface template meets the manufacturing specification condition according to the template information of each interface template, it may be detected whether the mandatory data in the interface template is completely filled (such as the interface template name, the component mandatory property, and the like), whether the data format meets the preset requirement, and whether the interface template includes a variable region may also be detected.
Therefore, the generated interface template can be verified by implementing the optional embodiment, so that the accuracy and reliability of the interface template building are further improved.
Example two
Referring to fig. 2, fig. 2 is a flowchart illustrating another method for developing and applying an interface template kit according to an embodiment of the present invention. The method for developing and applying an interface template kit described in fig. 2 may be applied to a development and application platform of an interface template kit, the development and application platform may be applied to research and development of service interfaces of various service systems, the development and application platform may include a development component of an interface template kit, such as an interface template making designer, and the development and application platform may further include an application component of an interface template kit, such as an interface template application designer, which is not limited in the embodiment of the present invention. As shown in fig. 2, the method for developing and applying the interface template suite may include the following operations:
201. when detecting that a user performs interface construction operation triggered on one or more interface templates to be constructed by a visual interface template manufacturing designer, adjusting page information of the interface templates to be constructed according to the interface construction operation to obtain the interface templates required by the user.
202. And generating an interface template suite required by the user based on all the interface templates.
In the embodiment of the present invention, for other descriptions of step 201 to step 202, please refer to the detailed description of step 101 to step 102 in the first embodiment, which is not repeated herein.
203. When a business interface generation request triggered by a user in a visual interface template application designer is detected, a target interface template kit matched with the business interface generation request in an interface template library is called to the interface template application designer according to the business interface generation request.
204. And determining at least one target interface template to be called in the target interface template suite.
In the embodiment of the present invention, optionally, a user may select to invoke a part of or all interface templates in the interface template suite, which is not limited in the embodiment of the present invention.
205. And filling a service data source corresponding to the predetermined service interface generation request into the variable region of each target interface template to generate a target service interface corresponding to the service interface generation request.
In the embodiment of the present invention, optionally, the business data source may be used to fill one or more of the alternative form data, the alternative behavior logic, the alternative data model, and the like in the variable region.
In the embodiment of the invention, optionally, when the user makes the target service interface, the user can be supported to check the preview effect of the target service interface at any time, so that the user can check whether the target service interface meets the service appeal in real time.
As an optional implementation manner, filling a service data source corresponding to a predetermined service interface generation request into a variable region of each target interface template to generate a target service interface corresponding to the service interface generation request, which may include:
for the variable area of each target interface template, determining target business data matched with the variable area from a business data source corresponding to a predetermined business interface generation request according to business data configuration information input by a user in a guide form configuration page corresponding to the variable area and/or business data configuration operation triggered by the user in a visual page mapped by the target interface template;
and for each variable region, filling the target service data matched with the variable region into the variable region to generate a target service interface corresponding to the service interface generation request.
Optionally, each variable zone may include at least one variable zone component with a component type of variable type and/or at least one variable business logic with a logic type of variable type.
In this alternative embodiment, optionally, the guided form configuration page is used to guide the user to gradually configure a plurality of template business data guided form configuration pages matched with each variable area, for example, guide the user to fill in the data types of the variable areas to be filled in, and the business data configuration operation may include a drag operation and/or a natural semantic operation (i.e., a definition function).
Therefore, the optional implementation method can be implemented to configure the service data source of the variable region through the guide form configuration page, so that the accuracy, reliability and comprehensiveness of configuration and filling of the service data source are improved, or the service data source is filled through service data configuration operation triggered by the visual page mapped by the interface template, so that what a user sees is what you get in the operation process, the intuitiveness and accuracy of filling of the service data source are improved, and the difficulty of configuration of the service data source is reduced.
Therefore, by implementing the embodiment of the invention, the interface template can be developed through the visual interface template making designer, so that a developer can build the interface template in a visual mode, the development difficulty of the interface template is reduced, the development efficiency of the interface template is improved, the response speed of the development appeal of the interface templates of different service scenes is further improved, the dependence on the code editing capacity of the developer is reduced, the uniformity of the code styles among the interface templates developed by different developers is improved, the code operation and maintenance cost of service systems comprising different service interfaces is favorably reduced, in addition, the service interface can be obtained by directly filling the variable region of the interface template with the service data source, and the development efficiency of the service interface is favorably improved.
In an optional embodiment, the method may further comprise:
for each variable area, judging whether all other variable areas of all target interface templates exist in the associated variable area corresponding to the variable area;
for each variable region, when judging that the associated variable region corresponding to the variable region exists, judging whether the synchronous mode of the variable region is in an unlocking state;
and for each variable region, when the synchronous mode of the variable region is judged not to be in the unlocking state, synchronously filling the target service data matched with the variable region into the associated variable region corresponding to the variable region to generate a target service interface corresponding to the service interface generation request.
In this alternative embodiment, optionally, the associated variable zone corresponding to each variable zone may include other variable zones having the same variable zone content (e.g., the same variable zone component and/or the same variable service logic) as the variable zone, and further optionally, each variable zone may match the zone identifier (e.g., synchronization identifier) of its corresponding associated variable zone. Preferably, each variable region is the same variable region as its corresponding associated variable region.
In this optional embodiment, optionally, for each variable region, when it is determined that the unlocking mode of the variable region is in the unlocked state, only the target service data matched with the variable region is filled into the variable region.
Therefore, the optional embodiment can be implemented to synchronously fill the service data source into the plurality of associated variable areas, so that the filling efficiency of the variable area data source is improved, and the service data source is synchronously filled into the associated areas only when the synchronization mode is not in the unlocking state, that is, the service data source is not synchronously filled into the associated areas when the synchronization mode is in the filling state, so that the personalized data filling requirement of a single variable area can be met.
In another optional embodiment, after filling the predetermined service data source corresponding to the service interface generation request into the variable region of each target interface template to generate the target service interface corresponding to the service interface generation request, the method may further include:
and when detecting the data modification operation of the user aiming at the target service interface, modifying the target service interface according to the data modification operation.
In this optional embodiment, optionally, when the built-in primitive assembly, the third-party primitive assembly, or the service primitive assembly built by the user cannot fill the service data source, the service data source may also be manually filled in the above manner.
Therefore, the implementation of the optional embodiment can enable the user to manually fill the service data source, and further improve the accuracy and reliability of filling the service data source.
In yet another optional embodiment, the method may further comprise:
when detecting a view layer layout modification operation triggered by a user for a target interface template, determining whether the template interface template is in a view layer layout unlocked state, and when determining that the target interface template is in the view layer layout unlocked state, modifying the view layer layout of the target interface template according to the view layer layout modification operation, optionally, the view layer layout modification operation may include modification, addition and deletion operations for an interface component.
Therefore, the view layer layout can be changed according to the requirements of the user when the interface template is applied, the flexibility of the application of the interface template is improved, the user is allowed to modify the view layer layout only when the view layer layout of the interface template is in an unlocked state, and the condition that the view layer layout is modified by mistake can be reduced.
In yet another optional embodiment, before filling the service data source corresponding to the predetermined service interface generation request into the variable region of each target interface template to generate the target service interface corresponding to the service interface generation request, the method may further include:
and binding a service data model corresponding to a service data source corresponding to the predetermined service interface generation request with the interface template kit so that the interface template kit can be filled in the service data source.
This can be seen to increase the likelihood that the interface template kit will successfully populate the service data source.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic structural diagram of an application development device for an interface template kit according to an embodiment of the present invention. The development application apparatus of the interface template kit depicted in fig. 3 may be applied to a development application platform of the interface template kit, the development application platform may be applied to research and development of service interfaces of various service systems, the development application platform may include a development component of the interface template kit, such as an interface template making designer, and the development application platform may further include an application component of the interface template kit, such as an interface template application designer, which is not limited in the embodiment of the present invention. As shown in fig. 3, the development application device of the interface template kit may include:
the interface construction module 301 is configured to, when detecting that a user performs interface construction operation triggered by a visual interface template manufacturing designer on one or more interface templates to be constructed, adjust page information of the interface template to be constructed according to the interface construction operation to obtain an interface template required by the user, where an interface code format corresponding to each interface template is matched with a preset code format corresponding to the interface template manufacturing designer;
a generating module 302, configured to generate an interface template suite required by a user based on all interface templates, where preset service scenarios of each interface template in the interface template suite are matched, where the preset service scenarios are used to represent preset application scenarios in the interface templates.
Therefore, the device described in the implementation of fig. 3 can develop the interface template through the visual interface template making designer, so that a developer can build the interface template in a visual manner, thereby reducing the development difficulty of the interface template, improving the development efficiency of the interface template, further improving the response speed of the development appeal of the interface templates in different service scenes, reducing the dependence on the code editing capability of the developer, improving the uniformity of the code style among the interface templates developed by different developers, and being beneficial to reducing the code operation and maintenance cost of service systems including different service interfaces.
In an optional embodiment, as shown in fig. 3, all the interface templates to be built include at least one blank template created in advance and/or at least one parsing interface template parsed in advance, and the parsing interface template includes a parsing interface formed by parsing one or more existing service interfaces imported in advance.
Therefore, the device described in fig. 3 can also create an interface template through a blank interface and obtain the interface template by analyzing the existing service interface and finely adjusting the analysis result, so that the diversity of the interface template construction mode is improved, the efficiency of the interface template construction is further improved, and the reuse rate of the service interface can be improved.
In another alternative embodiment, as shown in FIG. 3, the page information may include view level layout and/or model level business rule assembly;
for each interface template to be built, the specific manner of adjusting the page information of the interface template to be built by the interface building module 301 according to the interface building operation to obtain the interface template required by the user may include:
when the interface construction operation comprises interface drawing operation, adjusting the view layer layout of the interface template to be constructed according to the interface drawing operation to obtain the interface template required by a user, wherein the interface drawing operation comprises component selection operation for selecting an interface component and component layout operation for the interface component; and/or the presence of a gas in the atmosphere,
and when the interface building operation comprises service configuration operation, configuring the model layer service rule assembly of the interface template to be built according to the service configuration operation to obtain the interface template required by the user.
Therefore, the device described in the embodiment of fig. 3 can also be used for respectively adjusting and configuring the view layer layout and the model layer business rule assembly of the interface template to be built to obtain the interface template, so that the building accuracy and reliability of the interface template are improved, and the view layer and the model layer are decoupled, thereby reducing the building difficulty and the modification convenience of the interface template.
In still another optional embodiment, as shown in fig. 3, for each interface template to be created, the specific manner of adjusting the view layer layout of the interface template to be created by the interface creation module 301 according to the interface drawing operation to obtain the interface template required by the user may include:
adding an interface component selected by a user from an optional interface component library to a corresponding position of the interface template to be built according to interface drawing operation so as to adjust the visual layer layout of the interface template to be built and obtain the interface template required by the user, wherein the interface component can comprise an invariable area component with an invariable component type and/or a variable area component with a variable component type; and/or the presence of a gas in the gas,
according to the interface drawing operation, modifying the component basic attribute of the existing interface component of the interface template to be built selected by the user in the interface template to be built so as to adjust the view layer layout of the interface template to be built and obtain the interface template required by the user, wherein the component basic attribute comprises a component type and/or a component format, and the component type of each interface component can be a variable type or an invariable type.
Therefore, the device described in fig. 3 can also be implemented to build an interface template through a plurality of existing interface components, so that the development difficulty of the interface template view layer is reduced, and the development efficiency of the interface template view layer is improved.
In yet another alternative embodiment, as shown in fig. 3, the model layer business rule assembly of each interface template to be built may include business logic of the interface template to be built, and the business logic may include a data model and/or behavior logic;
for each interface template to be built, the behavior logic of the interface template to be built is configured by the interface building module 301 based on the following modes:
when the service configuration operation comprises a service behavior definition operation triggered by a user on a visual form of an interface template to be built, determining at least one behavior logic code matched with the interface template to be built from all built-in behavior logic codes of the interface template manufacturing designer according to a service behavior matched with the interface template to be built indicated by the service behavior definition operation, and assembling all behavior logic codes according to the service behavior definition operation to obtain behavior logic of the interface template to be built;
when the service configuration operation comprises a code editing operation triggered by a user on a code editor of an interface template manufacturing designer aiming at the interface template to be built, editing the behavior logic code of the interface template to be built according to the code editing operation to obtain the behavior logic of the interface template to be built.
It can be seen that the implementation of the apparatus described in fig. 3 can also build a plurality of built-in behavior logic codes into the behavior logic of the interface template according to the business behavior, thereby reducing the development difficulty of the interface template model layer, improving the development efficiency of the interface template model layer, and further reducing the dependence on the code editing capability of developers, so as to improve the uniformity of the code styles among the interface templates developed by different developers, thereby being beneficial to reducing the code operation and maintenance cost of business systems including different business interfaces, and in addition, allowing users to directly edit behavior logic codes, thereby reducing the situation that the built-in behavior logic codes cannot meet the business requirements and thus cannot build the interface template.
In yet another optional embodiment, as shown in fig. 3, the generating module 302 is further configured to, for each interface template to be created, after the interface creating module 301 adjusts page information of the interface template to be created according to the interface creating operation to obtain an interface template required by the user, when a preview request of the user for any interface creating operation corresponding to the interface template to be created is detected, generate a preview result corresponding to the interface creating operation, where the preview result is used to be displayed to the user, optionally, the preview result corresponding to the interface drawing operation may include a global preview result of the interface template generated by the interface template to be created or a local preview result matched with the interface drawing operation in the interface template generated by the interface template to be created, and the preview result corresponding to the service configuration operation may include a data model configuration result of the interface template to be created and/or a behavior logic execution process of the interface template to be created.
Therefore, the device described in the embodiment of fig. 3 can meet the requirement of a user for viewing the preview result of the interface template in real time in the interface template building process, so that the user can adjust the interface template in time, and the efficiency and the accuracy of the interface template building are improved.
In yet another alternative embodiment, as shown in fig. 4, the generated arbitrary interface template suite is stored in a preset interface template library;
and, the apparatus may further include:
the invoking module 303 is configured to, when a service interface generation request triggered by a user in the visual interface template application designer is detected, invoke a target interface template suite, which is matched with the service interface generation request, in the interface template library to the interface template application designer according to the service interface generation request;
a determining module 304, configured to determine at least one target interface template to be called in the target interface template set;
a filling module 305, configured to fill a service data source corresponding to a predetermined service interface generation request into a variable region of each target interface template to generate a target service interface corresponding to the service interface generation request, where each variable region may include at least one variable region component whose component type is a variable type and/or at least one variable service logic whose logic type is a variable type.
Therefore, by implementing the apparatus described in fig. 4, a service interface can be obtained by directly filling the service data source into the variable region of the interface template, which is beneficial to improving the development efficiency of the service interface.
In yet another alternative embodiment, as shown in fig. 4, the filling module 305 fills the service data source corresponding to the predetermined service interface generation request into the variable region of each target interface template, so that a specific manner of generating the target service interface corresponding to the service interface generation request may include:
for the variable area of each target interface template, according to business data configuration information input by a user in a guide form configuration page corresponding to the variable area and/or business data configuration operation triggered by a visual page mapped by the target interface template by the user, determining target business data matched with the variable area from a business data source corresponding to a predetermined business interface generation request, and optionally, guiding the user to gradually configure a plurality of template business data matched with each variable area by the guide form configuration page;
and for each variable region, filling the target service data matched with the variable region into the variable region to generate a target service interface corresponding to the service interface generation request.
It can be seen that, by implementing the apparatus described in fig. 4, the service data source of the variable region can also be configured through the guided form configuration page, which is beneficial to improving the accuracy, reliability and comprehensiveness of configuration and filling of the service data source, or the service data source is filled through the service data configuration operation triggered by the visual page mapped by the interface template, so that what a user sees is what he obtains in the operation process, the intuitiveness and accuracy of filling of the service data source are improved, and the difficulty of configuration of the service data source is reduced.
In yet another alternative embodiment, as shown in fig. 4, the apparatus may further include:
the judging module 306 is configured to judge, for each variable region, whether associated variable regions corresponding to the variable region exist in all other variable regions of all target interface templates; when judging that the associated variable region corresponding to the variable region exists, judging whether the synchronous mode of the variable region is in an unlocking state;
the filling module 306 is further configured to, for each variable region, when the determining module 306 determines that the synchronization mode of the variable region is not in the unlocked state, synchronously fill the target service data matched with the variable region into the associated variable region corresponding to the variable region, so as to generate a target service interface corresponding to the service interface generation request.
It can be seen that, by implementing the apparatus described in fig. 4, the service data source can be synchronously filled into multiple associated variable regions, which is beneficial to improving the filling efficiency of the variable region data source, and the service data source is synchronously filled into the associated regions only when the synchronization mode is not in the unlocked state, that is, the service data source is not synchronously filled into the associated regions when the synchronization mode is in the filling state, so that the personalized data filling requirement of a single variable region can be met.
Example four
Referring to fig. 5, fig. 5 is a schematic structural diagram of another development and application device of an interface template kit according to an embodiment of the present disclosure. As shown in fig. 5, the development application device of the interface template kit may include:
a memory 401 storing executable program code;
a processor 402 coupled with the memory 401;
the processor 402 calls the executable program code stored in the memory 401 to execute the steps in the method for developing an application of an interface template suite described in the first embodiment or the second embodiment of the present invention.
EXAMPLE five
The embodiment of the invention discloses a computer storage medium, which stores computer instructions, and when the computer instructions are called, the computer instructions are used for executing the steps of the development and application method of the interface template suite described in the first embodiment or the second embodiment of the invention.
Example six
The embodiment of the invention discloses a computer program product, which comprises a non-transitory computer readable storage medium storing a computer program, wherein the computer program is operable to make a computer execute the steps in the method for developing and applying an interface template kit described in the first embodiment or the second embodiment.
The above-described embodiments of the apparatus are merely illustrative, and the modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of 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. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above detailed description of the embodiments, those skilled in the art will clearly understand that the embodiments may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. Based on such understanding, the above technical solutions may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, wherein the storage medium includes a Read-Only Memory (ROM), a Random Access Memory (RAM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc-Read-Only Memory (CD-ROM) or other Memory capable of storing data, a magnetic tape, or any other computer-readable medium capable of storing data.
Finally, it should be noted that: the method and apparatus for developing and applying an interface template kit disclosed in the embodiments of the present invention are only preferred embodiments of the present invention, and are only used for illustrating the technical solutions of the present invention, rather than for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art; the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for developing and applying an interface template suite, the method comprising:
when detecting that a user carries out interface construction operation triggered by one or more interface templates to be constructed on a visual interface template manufacturing designer, adjusting page information of the interface templates to be constructed according to the interface construction operation to obtain interface templates required by the user, wherein an interface code format corresponding to each interface template is matched with a preset code format corresponding to the interface template manufacturing designer;
and generating an interface template kit required by a user based on all the interface templates, wherein the preset service scene of each interface template in the interface template kit is matched, and the preset service scene is used for representing the preset application scene in the interface template.
2. The development and application method of the interface template kit according to claim 1, wherein all the interface templates to be built comprise at least one blank template created in advance and/or at least one analysis interface template analyzed in advance, and the analysis interface template comprises an analysis interface formed by analyzing one or more existing service interfaces imported in advance.
3. The method for developing and applying interface template kit according to claim 2, wherein the page information comprises a view layer layout and/or a model layer business rule assembly;
for each interface template to be built, adjusting page information of the interface template to be built according to the interface building operation to obtain an interface template required by a user, wherein the method comprises the following steps:
when the interface construction operation comprises an interface drawing operation, adjusting the view layer layout of the interface template to be constructed according to the interface drawing operation to obtain the interface template required by a user, wherein the interface drawing operation comprises a component selection operation for selecting an interface component and a component layout operation aiming at the interface component; and/or the presence of a gas in the atmosphere,
and when the interface building operation comprises service configuration operation, configuring the model layer service rule assembly of the interface template to be built according to the service configuration operation to obtain the interface template required by the user.
4. The method for developing and applying the interface template kit according to claim 3, wherein for each interface template to be built, the adjusting of the view layer layout of the interface template to be built according to the interface drawing operation to obtain the interface template required by the user comprises:
adding an interface component selected by a user from a selectable interface component library to a corresponding position of the interface template to be built according to the interface drawing operation so as to adjust the visual layer layout of the interface template to be built and obtain the interface template required by the user, wherein the interface component comprises an invariable area component with an invariable component type and/or a variable area component with a variable component type; and/or the presence of a gas in the gas,
and according to the interface drawing operation, modifying the component basic attribute of the existing interface component of the interface template to be built selected by the user in the interface template to be built so as to adjust the view layer layout of the interface template to be built and obtain the interface template required by the user, wherein the component basic attribute comprises a component type and/or a component format, and the component type of each interface component comprises a variable type or an invariable type.
5. The development and application method of the interface template kit according to claim 3, wherein the model layer business rule assembly of each interface template to be built comprises business logic of the interface template to be built, and the business logic comprises a data model and/or behavior logic;
for each interface template to be built, the behavior logic of the interface template to be built is configured based on the following modes:
when the service configuration operation comprises a service behavior definition operation triggered by a user on a visual form of the interface template to be built, according to a service behavior matched with the interface template to be built and indicated by the service behavior definition operation, determining at least one behavior logic code matched with the interface template to be built from all built-in behavior logic codes of the interface template to be built, and assembling all the behavior logic codes according to the service behavior definition operation to obtain the behavior logic of the interface template to be built; and/or
And when the service configuration operation comprises a code editing operation triggered by the user on a code editor of the interface template making designer aiming at the interface template to be built, editing the behavior logic code of the interface template to be built according to the code editing operation to obtain the behavior logic of the interface template to be built.
6. The development and application method of the interface template kit according to claim 3, wherein for each interface template to be built, after the page information of the interface template to be built is adjusted according to the interface building operation to obtain the interface template required by the user, the method further comprises:
when a preview request of a user for any interface construction operation corresponding to the interface template to be constructed is detected, a preview result corresponding to the interface construction operation is generated and displayed to the user, wherein the preview result corresponding to the interface drawing operation comprises a global preview result of the interface template generated by the interface template to be constructed or a local preview result matched with the interface drawing operation in the interface template generated by the interface template to be constructed, and the preview result corresponding to the service configuration operation comprises a data model configuration result of the interface template to be constructed and/or a behavior logic execution process of the interface template to be constructed.
7. The method for developing and applying the interface template kit according to any one of claims 1 to 6, wherein any generated interface template kit is stored in a preset interface template library;
and, the method further comprises:
when a business interface generation request triggered by a user in a visual interface template application designer is detected, a target interface template suite matched with the business interface generation request in the interface template library is called into the interface template application designer according to the business interface generation request;
determining at least one target interface template to be called in the target interface template suite;
and filling a service data source corresponding to the predetermined service interface generation request into a variable region of each target interface template to generate a target service interface corresponding to the service interface generation request, wherein each variable region comprises at least one variable region component with a variable component type and/or at least one variable service logic with a variable logic type.
8. The method for developing and applying the interface template kit according to claim 7, wherein the step of filling a predetermined service data source corresponding to the service interface generation request into the variable region of each target interface template to generate the target service interface corresponding to the service interface generation request comprises:
for the variable region of each target interface template, determining target business data matched with the variable region from a business data source corresponding to a predetermined business interface generation request according to business data configuration information input by a user in a guided form configuration page corresponding to the variable region and/or business data configuration operation triggered by a visual page mapped by the target interface template by the user, wherein the guided form configuration page is used for guiding the user to gradually configure a plurality of template business data matched with each variable region;
and for each variable region, filling the target service data matched with the variable region into the variable region to generate a target service interface corresponding to the service interface generation request.
9. The method for developing and applying the interface template kit according to claim 8, further comprising:
for each variable region, judging whether an associated variable region corresponding to the variable region exists in all other variable regions of all the target interface templates;
for each variable region, when judging that the associated variable region corresponding to the variable region exists, judging whether the synchronous mode of the variable region is in an unlocking state;
and for each variable region, when the synchronous mode of the variable region is judged not to be in the unlocking state, synchronously filling the target service data matched with the variable region into the associated variable region corresponding to the variable region so as to generate a target service interface corresponding to the service interface generation request.
10. An apparatus for developing an application for an interface template kit, the apparatus comprising:
the interface construction module is used for adjusting page information of the interface template to be constructed according to the interface construction operation when detecting that the user performs the interface construction operation triggered by the visual interface template manufacturing designer aiming at one or more interface templates to be constructed, so as to obtain the interface template required by the user, wherein the interface code format corresponding to each interface template is matched with the preset code format corresponding to the interface template manufacturing designer;
the generating module is used for generating an interface template suite required by a user based on all the interface templates, and the preset service scenes of each interface template in the interface template suite are matched, wherein the preset service scenes are used for representing preset application scenes in the interface templates.
CN202211253081.7A 2022-10-13 2022-10-13 Development and application method and device of interface template suite Pending CN115543291A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211253081.7A CN115543291A (en) 2022-10-13 2022-10-13 Development and application method and device of interface template suite

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211253081.7A CN115543291A (en) 2022-10-13 2022-10-13 Development and application method and device of interface template suite

Publications (1)

Publication Number Publication Date
CN115543291A true CN115543291A (en) 2022-12-30

Family

ID=84733853

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211253081.7A Pending CN115543291A (en) 2022-10-13 2022-10-13 Development and application method and device of interface template suite

Country Status (1)

Country Link
CN (1) CN115543291A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117785201A (en) * 2024-02-26 2024-03-29 成都中科合迅科技有限公司 Component interface drawing method and system based on position identification record

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117785201A (en) * 2024-02-26 2024-03-29 成都中科合迅科技有限公司 Component interface drawing method and system based on position identification record
CN117785201B (en) * 2024-02-26 2024-05-07 成都中科合迅科技有限公司 Component interface drawing method and system based on position identification record

Similar Documents

Publication Publication Date Title
US9946518B2 (en) System and method for extending a visualization platform
US7032210B2 (en) Method and system for generating program source code of a computer application from an information model
CN110806863A (en) Interface document generation method and device, electronic equipment and storage medium
CN105511873B (en) User interface control display method and device
CN114035773B (en) Configuration-based low-code form development method, system and device
US20160098250A1 (en) Application prototyping tool
EP3564812B1 (en) Method and system for automated creation of graphical user interfaces
CN111625226A (en) Prototype-based human-computer interaction design implementation method and system
CN114820881A (en) Picture generation method, intelligent terminal and computer readable storage medium thereof
CN108229182B (en) Method and system for verifying picture configuration by using information isomorphism
US20230119466A1 (en) Code block element for integrated graphic design system
CN115543291A (en) Development and application method and device of interface template suite
CN117311683B (en) Code auxiliary system, code auxiliary processing method and device and electronic equipment
WO2013109858A1 (en) Design canvas
CN113095056B (en) Generation method, processing method, device, electronic equipment and medium
CN102323858B (en) Identify the input method of modification item in input, terminal and system
CN110275923B (en) Management method and equipment of plug-in graphics
CN113709575B (en) Video editing processing method and device, electronic equipment and storage medium
CN114706582A (en) Icon processing method and device during program operation, electronic equipment and storage medium
CN113761863A (en) List page configuration method, device and storage medium
KR101991297B1 (en) Web-based document editing support apparatus for customizing document editing interface and operating method thereof
CN112631587A (en) Interface prototype design method, interface prototype operation method and storage medium
CN111368523A (en) Method and device for converting layout format of movie and television script
CN106897104B (en) Program editing platform and program editing method
CN114722136B (en) System and method for customizing and displaying interaction of webpage text map

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination