CN112783483A - Function creating method, device, equipment and medium based on suspension button assembly - Google Patents

Function creating method, device, equipment and medium based on suspension button assembly Download PDF

Info

Publication number
CN112783483A
CN112783483A CN202110090423.7A CN202110090423A CN112783483A CN 112783483 A CN112783483 A CN 112783483A CN 202110090423 A CN202110090423 A CN 202110090423A CN 112783483 A CN112783483 A CN 112783483A
Authority
CN
China
Prior art keywords
function
button assembly
trunk
target position
suspension button
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
CN202110090423.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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202110090423.7A priority Critical patent/CN112783483A/en
Publication of CN112783483A publication Critical patent/CN112783483A/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/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

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

Abstract

The invention discloses a function creating method, a device, equipment and a medium based on a suspension button assembly, wherein the method comprises the following steps: when a project creating instruction is detected, a pre-integrated suspension button assembly is obtained to be displayed; receiving an interactive operation aiming at the suspension button assembly, and moving to a target position coordinate point based on the interactive operation; acquiring a plurality of parameters corresponding to the target position coordinate points, and generating a mapping identifier according to the parameters; mapping a trunk function corresponding to the mapping identifier from the suspension button assembly, and determining the trunk function as a target function of a target position point; and inputting a plurality of parameters corresponding to the target position coordinate points into the target function to generate a function. Therefore, by adopting the embodiment of the application, zero-code development of a user based on a visual interface is realized in the complete function creating process, the function creating process is simplified, and the function developing efficiency is improved.

Description

Function creating method, device, equipment and medium based on suspension button assembly
Technical Field
The invention relates to the technical field of computers, in particular to a function creating method, a function creating device, function creating equipment and a function creating medium based on a suspension button assembly.
Background
With the rapid development of the mobile internet, more and more software programs are in the visual field of the public, and the aspects of daily life of people are not changed any longer and no longer all the time, so that convenience is provided for the life of people, such as social software, entertainment software, traffic software and the like.
In the existing software function development, the layout of a platform and the logic of page realization all need research and development personnel to write one by one in a code mode, but the platform system has most similar functions, and in most similar functions, the difference is only that parameters called by each function are different, and at the moment, the research and development personnel need to rewrite codes for most similar functions in the platform system, so that the research and development personnel perform a large amount of repetitive labor, the development efficiency is low, the codes are bloated and not easy to maintain, errors are easy to occur, and the working efficiency of the research and development personnel is reduced. Further, a simpler and more convenient method is needed for performing the operation or processing of platform creation.
Disclosure of Invention
In view of the above, it is necessary to provide a function creation method, device, apparatus, and medium based on a floating button assembly, which address the problems of low development efficiency, a bulky code, and difficulty in maintenance.
A function creation method based on a floating button assembly comprises the following steps: when a project creating instruction is detected, a pre-integrated suspension button assembly is obtained to be displayed; receiving an interactive operation aiming at the suspension button assembly, and moving to a target position coordinate point based on the interactive operation; acquiring a plurality of parameters corresponding to the target position coordinate points, and generating a mapping identifier according to the parameters; mapping a trunk function corresponding to the mapping identifier from the suspension button assembly, and determining the trunk function as a target function of a target position point; and inputting a plurality of parameters corresponding to the target position coordinate points into the target function to generate a function.
In one embodiment, when a project creation instruction is detected, a pre-integrated floating button assembly is acquired for displaying, and the method includes: when a project creating instruction is detected, capturing a flow message corresponding to the project creating instruction; analyzing the flow message to generate an analyzed flow message; identifying whether a project creation identifier exists in the analyzed flow message under the software development environment; and when the project creation identification in the software development environment exists, loading a pre-integrated floating button component for displaying.
In one embodiment, the mode for detecting the project creating instruction comprises a hardware detection mode or a software detection mode; detecting an item creation instruction comprising: when the mode for detecting the project creating instruction is a hardware detection mode, detecting the project creating instruction in a software development environment in real time based on a preset flow probe; when the mode of detecting the project creating instruction is a software detection mode, acquiring the current existing flow message data; classifying the current existing flow message data by adopting a message classification algorithm to generate a plurality of classes of flow messages; and acquiring project creation instructions carrying software development environments from the traffic messages of multiple categories.
In one embodiment, the pre-integrated hover button assembly is generated according to the following method steps, including: acquiring historical service logic codes, and extracting trunk function nodes corresponding to each service logic from the historical service logic codes to generate a trunk function node set; performing semantic marking on each trunk function in the trunk function node set to generate a first trunk function node set after semantic marking; counting the number of backbone function nodes with the same semantics from the first backbone function node set marked with semantics, and acquiring the backbone function nodes with the number of the backbone function nodes more than the preset number of times to generate a second backbone node set; designing a suspension button by adopting a front-end interface design language; and setting different coordinate points in the suspension button, and mapping and associating the set different coordinate points with each trunk function in the second trunk node set to generate an integrated suspension button assembly.
In one embodiment, the pre-integrated hover button assembly is generated according to the following method steps, including: acquiring a current mainstream development framework; analyzing a source code in a mainstream development framework, acquiring a trunk function in the source code from the analyzed source code, and generating a trunk function set; analyzing semantic information corresponding to logic realized by each trunk function in the trunk function set; designing a suspension button by adopting a front-end interface design language; different coordinate points are set in the floating button, and the different coordinate points set in the floating button are associated with semantic information corresponding to the logic realized by each trunk function, so that an integrated floating button assembly is generated.
In one embodiment, counting the number of trunk function nodes with the same semantics from the first trunk function node set after the semantics are marked includes: a sliding window algorithm creates a sliding window; and sequentially inputting all the trunk functions in the first trunk function node set after semantic marking into a sliding window, and outputting the number of the trunk function nodes with the same semantic meaning.
In one embodiment, acquiring a plurality of parameters corresponding to the target position coordinate point, and generating a mapping identifier according to the plurality of parameters includes: acquiring a plurality of parameters corresponding to the target position point from the memory address; receiving a parameter arranging instruction, and acquiring the sequence of each object identifier in the suspension button assembly according to the parameter arranging instruction; arranging a plurality of parameters corresponding to the target position points according to a preset parameter arrangement rule to generate a plurality of arranged parameters; identifying whether the sequence corresponding to the object identifications of the plurality of arranged parameters is consistent with the sequence corresponding to each object identification in the suspension button assembly; and when the recognized sequence is consistent, converting a plurality of parameters corresponding to the target position point into byte codes and then generating a mapping identifier.
A hover button assembly-based functionality creation apparatus, the apparatus comprising: the suspension key assembly acquisition module is used for acquiring a suspension key assembly which is integrated in advance for displaying when a project creation instruction is detected; the suspension button assembly moving module is used for receiving the interactive operation aiming at the suspension button assembly and moving to the target position coordinate point based on the interactive operation; the mapping identifier generation module is used for acquiring a plurality of parameters corresponding to the target position coordinate points and generating mapping identifiers according to the parameters; the target function determining module is used for mapping a trunk function corresponding to the mapping identifier from the suspension button assembly and determining the trunk function as a target function of the target position point; and the function generating module is used for inputting a plurality of parameters corresponding to the target position coordinate points into the target function to generate functions.
An apparatus comprising a memory and a processor, the memory having stored therein computer readable instructions, which when executed by the processor, cause the processor to perform the steps of the above-described hover button assembly-based function creation method.
A medium having computer-readable instructions stored thereon, which, when executed by one or more processors, cause the one or more processors to perform the steps of the hover button assembly-based function creation method described above.
According to the function creating method, device, equipment and medium based on the suspension button assembly, when a project creating instruction is detected, the suspension button assembly integrated in advance is obtained to be displayed, then interactive operation aiming at the suspension button assembly is received, the suspension button assembly moves to a target position coordinate point based on the interactive operation, a plurality of parameters corresponding to the target position coordinate point are obtained, a mapping identifier is generated according to the parameters, a trunk function corresponding to the mapping identifier is mapped from the suspension button assembly, the trunk function is determined to be a target function of the target position point, and finally the parameters corresponding to the target position coordinate point are input into the target function to generate the function. According to the technical scheme, after the common logic codes are packaged into the functions, the packaged functions are integrated in the suspension button which is designed in advance, so that a developer can realize the writing of the function logic by calling the functions in the suspension button when writing the function codes, and the component design and the business function design are organically combined, so that the zero-code development of a user based on a visual interface is realized in the complete function creating process, the function creating process is simplified, and the function developing efficiency is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a diagram of an implementation environment of a floating button assembly-based function creation method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of the internal structure of the apparatus according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a method for creating a function based on a floating button assembly according to an embodiment of the present application;
FIG. 4 is a method diagram of a hover button assembly based functionality creation method provided in another embodiment of the present application;
FIG. 5 is a schematic diagram of a method for creating a function based on a floating button assembly according to another embodiment of the present application;
fig. 6 is a schematic device diagram of a function creation device based on a floating button assembly according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, the first data sample may be made the second data sample, and similarly, the second data sample may be made the first data sample, without departing from the scope of the present application.
Fig. 1 is a diagram of an implementation environment of a floating button component-based function creation method provided in an embodiment, as shown in fig. 1, in the implementation environment, including a device 110 and a client 120.
The device 110 may be a server device, such as a server device that stores a hover button assembly, or a function library that stores a backbone function integrated in a hover button assembly. When the function creation based on the floating button assembly is required, and the client 120 detects an item creation instruction, the client 120 acquires the pre-integrated floating button assembly from the device 110 to display the pre-integrated floating button assembly on the client 120, receives the interactive operation aiming at the floating button assembly, and moves to the target position coordinate point based on the interactive operation; the client 120 obtains a plurality of parameters corresponding to the target position coordinate point, and generates a mapping identifier according to the plurality of parameters; the client 120 maps and maps the trunk function corresponding to the identifier from the suspension button assembly, and determines the trunk function as the target function of the target position point; the client 120 inputs a plurality of parameters corresponding to the target position coordinate points into the target function to generate a function.
It should be noted that the client 120 may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, and the like. The server 110 and the client 120 may be connected through bluetooth, USB (Universal Serial Bus), or other communication connection methods, which is not limited herein.
Fig. 2 is a schematic diagram of the internal structure of the apparatus in one embodiment. As shown in fig. 2, the device includes a processor, a medium, a memory, and a network interface connected by a system bus. The device comprises a medium, an operating system, a database and computer readable instructions, wherein the database can store control information sequences, and the computer readable instructions can enable a processor to realize a function creating method based on the floating button assembly when being executed by the processor. The processor of the device is used to provide computing and control capabilities to support the operation of the entire device. The memory of the device may have computer readable instructions stored therein that, when executed by the processor, may cause the processor to perform a method of function creation based on a hover button assembly. The network interface of the device is used for connecting and communicating with the terminal. Those skilled in the art will appreciate that the configuration shown in fig. 2 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation on the devices to which the present application applies, and that a particular device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components. Wherein the medium is a storage medium.
The function creation method based on the floating button assembly provided by the embodiment of the present application will be described in detail below with reference to fig. 3 to 5. The method may be implemented in dependence of a computer program, executable on a von neumann based functionality creation device based on a suspended button assembly. The computer program may be integrated into the application or may run as a separate tool-like application.
Referring to fig. 3, a flowchart of a function creation method based on a floating button assembly is provided for an embodiment of the present application. As shown in fig. 3, the method of the embodiment of the present application may include the following steps:
s101, when a project creating instruction is detected, a pre-integrated suspension button assembly is obtained to be displayed;
the project is application software to be developed currently, the project creation instruction is an instruction for a research and development engineer to click to create a project in a development environment, for example, when the research and development engineer develops a project, the development environment (e.g., eclipse programming software) on the terminal is firstly opened, and the project creation instruction is clicked in the programming software to generate a project creation instruction.
In the embodiment of the application, when a user terminal detects a project creating instruction, a flow message corresponding to the project creating instruction is captured, then the flow message is analyzed, the analyzed flow message is generated, whether a project creating identifier in a software development environment exists or not is identified from the analyzed flow message, and finally, when the project creating identifier in the software development environment exists, a pre-integrated suspension button assembly is loaded for displaying.
In a possible implementation manner, when a project creating instruction is generated, the instruction is detected by a terminal, the instruction is captured and further analyzed after the instruction is detected, and when the instruction is determined to be the project creating instruction in a development environment after the analysis is completed, a pre-integrated floating button is acquired and displayed on a current terminal page.
Further, the mode for detecting the project creating instruction comprises a hardware detection mode or a software detection mode,
and when the mode for detecting the project creation instruction is a hardware detection mode, detecting the project creation instruction in the software development environment in real time based on a preset flow probe.
When the mode for detecting the project creation instruction is a software detection mode, firstly, the current existing flow message data is obtained, then, the current existing flow message data is classified by adopting a message classification algorithm to generate a plurality of classes of flow messages, and finally, the project creation instruction in the software development environment is obtained from the plurality of classes of flow messages.
Further, when the suspension button assembly is integrated:
in a possible implementation manner, firstly, historical service logic codes are obtained, trunk function nodes corresponding to each service function in the historical service logic codes are extracted, a trunk function node set is generated, semantic labeling is performed on each trunk function according to function description, for example, a platform user login function can be labeled as login, if the platform user registration function can be labeled as registration, if the platform user search function can be labeled as search, after semantic identification is performed on each trunk function, the frequency times of each semantic label are counted, a preset number of high-frequency semantic labels are determined according to the counted frequency times, and finally, a plurality of trunk functions corresponding to each high-frequency semantic label are determined.
Secondly, a floating button is designed by adopting a front-end interface design language (such as html, CSS, JavaScript and the like), the floating button can be set to be a circular icon, a rectangular icon or various display forms, or can be set to be a circular shape in an initialization state, and then a user can set the shape according to the preference of the user.
And finally, setting different coordinate points in the suspension button and mapping and associating a plurality of trunk functions corresponding to the high-frequency semantic tags to generate a finally integrated suspension button component.
Specifically, when the frequency times of each semantic label are counted, a sliding window is created through a sliding window algorithm, then each semantic label is sequentially input into the sliding window, when the byte codes of the semantic labels analyzed by the sliding window are the same, the semantic labels can be regarded as the same semantic label, and finally the occurrence times of each semantic label is obtained after the counting is finished.
In another possible implementation manner, a current mainstream development frame (e.g., a mainstream front-end development frame such as a exact frame, an Angular frame, or an Vue frame) is acquired, a source code in the mainstream development frame is analyzed, a trunk function in the source code is acquired, a function implementation corresponding to the trunk function is analyzed, semantic information of the trunk function implementation function is acquired, a floating button is designed, different coordinate points are set in the floating button, and the semantic information of the trunk function implementation function is associated, so that an integrated floating button assembly is finally acquired.
The integrated suspension button assembly can acquire the trunk functions with different functions according to the coordinate position points moved by the user, so that the development of the functions is completed quickly, and the process of independently writing programs by the user is reduced.
S102, receiving an interactive operation aiming at the suspension button assembly, and moving to a target position coordinate point based on the interactive operation;
the interactive operation is an operation that a user drags the floating button by using a finger or a mouse, and the purpose of the user is to drag the floating button to load a trunk function code required by the current service logic according to different position coordinate points.
Generally, after the integrated suspension button assembly is displayed, a user can operate the suspension button to realize functional logic development, wherein the position of the integrated suspension button during initial display can be set according to actual conditions, and the rest is not repeated here.
In a possible implementation manner, after the pre-integrated suspension button assembly is displayed, at this time, a user can drag the suspension button assembly to move to a target coordinate point according to business logic which needs to be developed by the user, firstly, the user puts a focus of a mouse or a finger on the suspension button assembly, so that the mouse or the finger is aligned with the integrated suspension button assembly, the focus of the finger or the mouse can move after the alignment, the integrated suspension button assembly moves simultaneously in the finger or mouse moving process, and the user releases the finger or the mouse after the finger or the mouse moves to the target position point, so that the integrated suspension button assembly stays at the target position point.
Specifically, when a user drags a floating button by using a finger or a mouse, the width and height (height) of a current page are calculated, when the finger or the mouse is aligned with a floating button component, a touch function event of the floating button component is triggered, when the user drags the floating button by using the finger or the mouse, the touch function event monitors a touch position in real time, assigns a value to a button stop position in a moving process in real time, and when the button moves to a target position and stops, a logic view function to be developed is added.
Further, when the touch function event stops, it indicates that the floating button assembly has moved to the target position point and stops, and at this time, the abscissa and the ordinate of the target position coordinate point need to be calculated.
Specifically, in calculating the abscissa and ordinate (X, Y) of the target position point, when dragged to 20px (Y <20) from the top of the page, the target position coordinate is (X, 0).
When dragged to 20px (y > height-20) from the bottom of the page, the target position coordinates are (x, height).
When dragged to the left of the page (x < width/2), the target position coordinates are (0, y).
When the user drags to the right side of the page (x > -width/2), the target position coordinate is (width, y).
S103, acquiring a plurality of parameters corresponding to the target position coordinate points, and generating a mapping identifier according to the parameters;
the plurality of parameters of the target position point at least comprise a function mapping identifier, a page material view and an xml object of page filling data.
Usually, a plurality of parameters corresponding to the target position coordinate points are located in a memory address and are associated with the target position points, and when the integrated floating button and a mouse arrow or a finger are in an out-of-focus state during acquisition, pre-associated parameter values are automatically acquired from the internal slave address.
In a possible implementation manner, when moving to a target position coordinate point, first, a corresponding parameter corresponding to the target position point is obtained from a memory address, where the parameter includes a function mapping identifier, a page material view, and an xml object of page fill data, and since an object identifier required by a function in a floating button assembly is not consistent with an object identifier in an actual service function, the object identifier of the target position point needs to be processed into an object identifier that can be recognized by the floating button assembly, so that parameter arrangement needs to be performed on the obtained multiple parameters.
When the parameters are arranged, firstly, a parameter arrangement instruction is received, the sequence of each object identifier in the suspension button is obtained according to the parameter arrangement instruction, then, a preset parameter arrangement rule is obtained, then, a plurality of obtained parameters associated with the target position point are arranged according to the parameter arrangement rule, the arranged parameter values are generated, the sequence of each object identifier corresponding to the arranged parameter values is compared with the sequence of each object identifier in the suspension button, and the mapping identifier is generated under the condition that the comparison is consistent.
Specifically, the parameter arrangement rule refers to a rule for arranging parameters associated with the target position point, such as which parameter is at the position of the first step of the floating button assembly, which parameter is at the position of the second step of the floating button assembly, and the like. It should be noted that all instructions triggered by the operation of dragging the floating button assembly to the target position point by the software developer may be the layout instructions, and after dragging the target assembly to the final position, the layout instructions are triggered to obtain the preset layout rule.
For example, the code logic desired by the target position point is a view page logic function of a login function, at the moment, the identifier of the target coordinate position point is a login view, a page material view is a login page material, an xml object of page filling data is an object identifier such as a user name, a password, a verification code and the like, a parameter arrangement rule is obtained, a plurality of parameters corresponding to the target position point coordinate are arranged to be consistent with the sequence of the object identifier in the suspension button assembly according to the parameter arrangement rule, and after the consistency is determined, a plurality of parameters corresponding to the target position point are converted into byte codes to generate the mapping identifier.
S104, mapping a trunk function corresponding to the mapping identifier from the suspension button assembly, and determining the trunk function as a target function of the target position point;
in a possible implementation manner, after the mapping identifier is generated, a second mapping identifier that is consistent with the target location point is mapped from the pre-integrated suspension button assembly, a trunk function of the second identifier is loaded from a trunk function library of the suspension button assembly according to the second mapping identifier, and the trunk function of the second identifier is determined as the trunk function of the target location point, so that the target function of the target location point is obtained.
And S105, inputting a plurality of parameters corresponding to the target position coordinate points into the target function to generate a function.
In one possible implementation, after obtaining the objective function of the target location point, a plurality of parameters corresponding to the target location coordinate point are input into the objective function, so as to generate the currently required function.
Furthermore, a lazy loading mechanism is adopted as optimization of the front end of the server, and the number of requests is reduced or delayed. A page can load a part of data first, when a button is triggered to display a popup window, the rest of data is loaded by using asynchronization (async), the display of the original data cannot be influenced by the newly obtained data, and meanwhile, the resource consumption of a server side is reduced to the maximum extent.
In the embodiment of the application, when a function creation device based on a floating button assembly detects a project creation instruction, a floating button assembly integrated in advance is acquired for display, then an interactive operation for the floating button assembly is received, the floating button assembly moves to a target position coordinate point based on the interactive operation, then a plurality of parameters corresponding to the target position coordinate point are acquired, a mapping identifier is generated according to the plurality of parameters, a trunk function corresponding to the mapping identifier is mapped from the floating button assembly, the trunk function is determined as a target function of the target position point, and finally the plurality of parameters corresponding to the target position coordinate point are input into the target function to generate a function. According to the technical scheme, after the common logic codes are packaged into the functions, the packaged functions are integrated in the suspension button which is designed in advance, so that a developer can realize the writing of the function logic by calling the functions in the suspension button when writing the function codes, and the component design and the business function design are organically combined, so that the zero-code development of a user based on a visual interface is realized in the complete function creating process, the function creating process is simplified, and the function developing efficiency is improved.
In order to facilitate understanding of the function creation method based on the floating button assembly provided by the embodiment of the present application, the following description is made with reference to fig. 4. As shown in fig. 4, a function creation method based on a floating button assembly includes:
s201, acquiring historical service logic codes, and extracting trunk function nodes corresponding to each service logic from the historical service logic codes to generate a trunk function node set;
s202, performing semantic marking on each trunk function in the trunk function node set to generate a semantic marked first trunk function node set;
s203, counting the number of the trunk function nodes with the same semantics from the first trunk function node set marked with the semantics, and acquiring the trunk function nodes with the number of the trunk function nodes more than the preset number of times to generate a second trunk node set;
s204, designing a suspension button by adopting a front-end interface design language;
s205, setting different coordinate points in the suspension button, and mapping and associating the set different coordinate points with each trunk function in the second trunk node set to generate an integrated suspension button assembly;
s206, when a project creating instruction is detected, a pre-integrated suspension button assembly is obtained to be displayed;
s207, receiving an interactive operation aiming at the suspension button assembly, and moving to a target position coordinate point based on the interactive operation;
s208, acquiring a plurality of parameters corresponding to the target position coordinate points, and generating a mapping identifier according to the plurality of parameters;
s209, mapping a trunk function corresponding to the mapping identifier from the suspension button assembly, and determining the trunk function as a target function of the target position point;
and S210, inputting a plurality of parameters corresponding to the target position coordinate points into the target function to generate a function.
In the embodiment of the application, when a function creation device based on a floating button assembly detects a project creation instruction, a floating button assembly integrated in advance is acquired for display, then an interactive operation for the floating button assembly is received, the floating button assembly moves to a target position coordinate point based on the interactive operation, then a plurality of parameters corresponding to the target position coordinate point are acquired, a mapping identifier is generated according to the plurality of parameters, a trunk function corresponding to the mapping identifier is mapped from the floating button assembly, the trunk function is determined as a target function of the target position point, and finally the plurality of parameters corresponding to the target position coordinate point are input into the target function to generate a function. According to the technical scheme, after the common logic codes are packaged into the functions, the packaged functions are integrated in the suspension button which is designed in advance, so that a developer can realize the writing of the function logic by calling the functions in the suspension button when writing the function codes, and the component design and the business function design are organically combined, so that the zero-code development of a user based on a visual interface is realized in the complete function creating process, the function creating process is simplified, and the function developing efficiency is improved.
In order to facilitate understanding of the function creation method based on the floating button assembly provided in the embodiments of the present application, the following description is made with reference to fig. 5. As shown in fig. 5, a function creation method based on a floating button assembly includes:
s301, acquiring a current mainstream development framework;
s302, analyzing a source code in the mainstream development framework, acquiring a trunk function in the source code from the analyzed source code, and generating a trunk function set;
s303, analyzing semantic information corresponding to the logic realized by each trunk function in the trunk function set;
s304, designing a suspension button by adopting a front-end interface design language;
s305, setting different coordinate points in the suspension button, associating the different coordinate points set in the suspension button with semantic information corresponding to the logic realized by each trunk function, and generating an integrated suspension button assembly;
s306, when a project creating instruction is detected, a pre-integrated suspension button assembly is obtained to be displayed;
s307, receiving interactive operation aiming at the suspension button assembly, and moving to a target position coordinate point based on the interactive operation;
s308, acquiring a plurality of parameters corresponding to the target position coordinate points, and generating a mapping identifier according to the parameters;
s309, mapping a trunk function corresponding to the mapping identifier from the suspension button assembly, and determining the trunk function as a target function of the target position point;
s310, inputting a plurality of parameters corresponding to the target position coordinate points into the target function to generate functions.
In the embodiment of the application, when a function creation device based on a floating button assembly detects a project creation instruction, a floating button assembly integrated in advance is acquired for display, then an interactive operation for the floating button assembly is received, the floating button assembly moves to a target position coordinate point based on the interactive operation, then a plurality of parameters corresponding to the target position coordinate point are acquired, a mapping identifier is generated according to the plurality of parameters, a trunk function corresponding to the mapping identifier is mapped from the floating button assembly, the trunk function is determined as a target function of the target position point, and finally the plurality of parameters corresponding to the target position coordinate point are input into the target function to generate a function. According to the technical scheme, after the common logic codes are packaged into the functions, the packaged functions are integrated in the suspension button which is designed in advance, so that a developer can realize the writing of the function logic by calling the functions in the suspension button when writing the function codes, and the component design and the business function design are organically combined, so that the zero-code development of a user based on a visual interface is realized in the complete function creating process, the function creating process is simplified, and the function developing efficiency is improved.
The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention. For details which are not disclosed in the embodiments of the apparatus of the present invention, reference is made to the embodiments of the method of the present invention.
Referring to fig. 6, a schematic structural diagram of a function creation apparatus based on a hover button assembly according to an exemplary embodiment of the present invention is shown, which is applied to a server. The hover button assembly-based functionality creation system may be implemented as all or a portion of a device through software, hardware, or a combination of both. The device 1 comprises a text acquisition module 10, a text conversion module 20, a feature extraction module 30, a first data output module 40, a second data output module 50 and a third data output module 60.
The suspension key assembly acquisition module 10 is configured to acquire a suspension button assembly which is integrated in advance for display when detecting a project creation instruction;
the suspension key assembly moving module 20 is configured to receive an interactive operation for the suspension key assembly, and move to a target position coordinate point based on the interactive operation;
the mapping identifier generating module 30 is configured to obtain a plurality of parameters corresponding to the target position coordinate point, and generate a mapping identifier according to the plurality of parameters;
the target function determining module 40 is configured to map a trunk function corresponding to the mapping identifier from the suspension button assembly, and determine the trunk function as a target function of the target location point;
and a function generating module 50, configured to input the plurality of parameters corresponding to the target position coordinate point into the objective function, and generate a function.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the embodiment of the application, when a function creation device based on a floating button assembly detects a project creation instruction, a floating button assembly integrated in advance is acquired for display, then an interactive operation for the floating button assembly is received, the floating button assembly moves to a target position coordinate point based on the interactive operation, then a plurality of parameters corresponding to the target position coordinate point are acquired, a mapping identifier is generated according to the plurality of parameters, a trunk function corresponding to the mapping identifier is mapped from the floating button assembly, the trunk function is determined as a target function of the target position point, and finally the plurality of parameters corresponding to the target position coordinate point are input into the target function to generate a function. According to the technical scheme, after the common logic codes are packaged into the functions, the packaged functions are integrated in the suspension button which is designed in advance, so that a developer can realize the writing of the function logic by calling the functions in the suspension button when writing the function codes, and the component design and the business function design are organically combined, so that the zero-code development of a user based on a visual interface is realized in the complete function creating process, the function creating process is simplified, and the function developing efficiency is improved.
In one embodiment, an apparatus is presented, the apparatus comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: when a project creating instruction is detected, a pre-integrated suspension button assembly is obtained to be displayed; receiving an interactive operation aiming at the suspension button assembly, and moving to a target position coordinate point based on the interactive operation; acquiring a plurality of parameters corresponding to the target position coordinate points, and generating a mapping identifier according to the parameters; mapping a trunk function corresponding to the mapping identifier from the suspension button assembly, and determining the trunk function as a target function of a target position point; and inputting a plurality of parameters corresponding to the target position coordinate points into the target function to generate a function.
In one embodiment, when the processor executes the instruction for detecting the creation of the project and acquires and displays the pre-integrated floating button assembly, the following operations are specifically executed: when a project creating instruction is detected, capturing a flow message corresponding to the project creating instruction; analyzing the flow message to generate an analyzed flow message; identifying whether a project creation identifier exists in the analyzed flow message under the software development environment; and when the project creation identification in the software development environment exists, loading a pre-integrated floating button component for displaying.
In one embodiment, when the processor executes generation of the pre-integrated floating button assembly, the following operations are specifically executed: acquiring historical service logic codes, and extracting trunk function nodes corresponding to each service logic from the historical service logic codes to generate a trunk function node set; performing semantic marking on each trunk function in the trunk function node set to generate a first trunk function node set after semantic marking; counting the number of backbone function nodes with the same semantics from the first backbone function node set marked with semantics, and acquiring the backbone function nodes with the number of the backbone function nodes more than the preset number of times to generate a second backbone node set; designing a suspension button by adopting a front-end interface design language; and setting different coordinate points in the suspension button, and mapping and associating the set different coordinate points with each trunk function in the second trunk node set to generate an integrated suspension button assembly.
In one embodiment, when the processor executes generation of the pre-integrated floating button assembly, the following operations are specifically executed: acquiring a current mainstream development framework; analyzing a source code in a mainstream development framework, acquiring a trunk function in the source code from the analyzed source code, and generating a trunk function set; analyzing semantic information corresponding to logic realized by each trunk function in the trunk function set; designing a suspension button by adopting a front-end interface design language; different coordinate points are set in the floating button, and the different coordinate points set in the floating button are associated with semantic information corresponding to the logic realized by each trunk function, so that an integrated floating button assembly is generated.
In an embodiment, when the processor performs statistics on the number of backbone function nodes with the same semantics from the first backbone function node set after the semantics are marked, the following operations are specifically performed: a sliding window algorithm creates a sliding window; and sequentially inputting all the trunk functions in the first trunk function node set after semantic marking into a sliding window, and outputting the number of the trunk function nodes with the same semantic meaning.
In one embodiment, the processor executes the following operations when acquiring a plurality of parameters corresponding to the target position coordinate points and generating the mapping identifier according to the plurality of parameters: acquiring a plurality of parameters corresponding to the target position point from the memory address; receiving a parameter arranging instruction, and acquiring the sequence of each object identifier in the suspension button assembly according to the parameter arranging instruction; arranging a plurality of parameters corresponding to the target position points according to a preset parameter arrangement rule to generate a plurality of arranged parameters; identifying whether the sequence corresponding to the object identifications of the plurality of arranged parameters is consistent with the sequence corresponding to each object identification in the suspension button assembly; and when the recognized sequence is consistent, converting a plurality of parameters corresponding to the target position point into byte codes and then generating a mapping identifier.
In one embodiment, a medium is presented having computer-readable instructions stored thereon which, when executed by one or more processors, cause the one or more processors to perform the steps of: when a project creating instruction is detected, a pre-integrated suspension button assembly is obtained to be displayed; receiving an interactive operation aiming at the suspension button assembly, and moving to a target position coordinate point based on the interactive operation; acquiring a plurality of parameters corresponding to the target position coordinate points, and generating a mapping identifier according to the parameters; mapping a trunk function corresponding to the mapping identifier from the suspension button assembly, and determining the trunk function as a target function of a target position point; and inputting a plurality of parameters corresponding to the target position coordinate points into the target function to generate a function.
In one embodiment, when the processor executes the instruction for detecting the creation of the project and acquires and displays the pre-integrated floating button assembly, the following operations are specifically executed: when a project creating instruction is detected, capturing a flow message corresponding to the project creating instruction; analyzing the flow message to generate an analyzed flow message; identifying whether a project creation identifier exists in the analyzed flow message under the software development environment; and when the project creation identification in the software development environment exists, loading a pre-integrated floating button component for displaying.
In one embodiment, when the processor executes generation of the pre-integrated floating button assembly, the following operations are specifically executed: acquiring historical service logic codes, and extracting trunk function nodes corresponding to each service logic from the historical service logic codes to generate a trunk function node set; performing semantic marking on each trunk function in the trunk function node set to generate a first trunk function node set after semantic marking; counting the number of backbone function nodes with the same semantics from the first backbone function node set marked with semantics, and acquiring the backbone function nodes with the number of the backbone function nodes more than the preset number of times to generate a second backbone node set; designing a suspension button by adopting a front-end interface design language; and setting different coordinate points in the suspension button, and mapping and associating the set different coordinate points with each trunk function in the second trunk node set to generate an integrated suspension button assembly.
In one embodiment, when the processor executes generation of the pre-integrated floating button assembly, the following operations are specifically executed: acquiring a current mainstream development framework; analyzing a source code in a mainstream development framework, acquiring a trunk function in the source code from the analyzed source code, and generating a trunk function set; analyzing semantic information corresponding to logic realized by each trunk function in the trunk function set; designing a suspension button by adopting a front-end interface design language; different coordinate points are set in the floating button, and the different coordinate points set in the floating button are associated with semantic information corresponding to the logic realized by each trunk function, so that an integrated floating button assembly is generated.
In an embodiment, when the processor performs statistics on the number of backbone function nodes with the same semantics from the first backbone function node set after the semantics are marked, the following operations are specifically performed: a sliding window algorithm creates a sliding window; and sequentially inputting all the trunk functions in the first trunk function node set after semantic marking into a sliding window, and outputting the number of the trunk function nodes with the same semantic meaning.
In one embodiment, the processor executes the following operations when acquiring a plurality of parameters corresponding to the target position coordinate points and generating the mapping identifier according to the plurality of parameters: acquiring a plurality of parameters corresponding to the target position point from the memory address; receiving a parameter arranging instruction, and acquiring the sequence of each object identifier in the suspension button assembly according to the parameter arranging instruction; arranging a plurality of parameters corresponding to the target position points according to a preset parameter arrangement rule to generate a plurality of arranged parameters; identifying whether the sequence corresponding to the object identifications of the plurality of arranged parameters is consistent with the sequence corresponding to each object identification in the suspension button assembly; and when the recognized sequence is consistent, converting a plurality of parameters corresponding to the target position point into byte codes and then generating a mapping identifier.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer readable medium, and when executed, can include the processes of the embodiments of the methods described above. The medium may be a non-volatile medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only show some embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A function creation method based on a hover button assembly, the method comprising:
when a project creating instruction is detected, a pre-integrated suspension button assembly is obtained to be displayed;
receiving an interactive operation aiming at the suspension button assembly, and moving to a target position coordinate point based on the interactive operation;
acquiring a plurality of parameters corresponding to the target position coordinate points, and generating a mapping identifier according to the parameters;
mapping a trunk function corresponding to the mapping identification from the suspension button assembly, and determining the trunk function as a target function of the target position point;
and inputting a plurality of parameters corresponding to the target position coordinate points into the target function to generate a function.
2. The method of claim 1, wherein the detecting of the item creation instruction, obtaining a pre-integrated hover button component for presentation comprises:
when a project creating instruction is detected, capturing a flow message corresponding to the project creating instruction;
analyzing the flow message to generate an analyzed flow message;
identifying whether a project creation identifier under a software development environment exists in the analyzed flow message;
and when the project creation identification in the software development environment exists, loading a pre-integrated floating button assembly for displaying.
3. The method according to claim 1, wherein the manner of detecting the item creation instruction includes a hardware detection manner or a software detection manner;
the detection item creating instruction comprises:
when the mode for detecting the project creating instruction is a hardware detection mode, detecting the project creating instruction carried in the software development environment in real time based on a preset flow probe; and the number of the first and second groups,
when the mode of detecting the project creating instruction is a software detection mode, acquiring the current existing flow message data;
classifying the current existing flow message data by adopting a message classification algorithm to generate a plurality of classes of flow messages;
and acquiring a project creating instruction carrying a software development environment from the traffic messages of the multiple categories.
4. The method of claim 1, wherein creating a pre-integrated hover button assembly comprises:
acquiring historical service logic codes, and extracting trunk function nodes corresponding to each service logic from the historical service logic codes to generate a trunk function node set;
performing semantic marking on each trunk function in the trunk function node set to generate a first trunk function node set after semantic marking;
counting the number of the backbone function nodes with the same semantics from the first backbone function node set after the semantics are marked, and acquiring the backbone function nodes of which the number is more than a preset number to generate a second backbone node set;
designing a suspension button by adopting a front-end interface design language;
and setting different coordinate points in the suspension button, and mapping and associating the set different coordinate points with each trunk function in the second trunk node set to generate an integrated suspension button assembly.
5. The method of claim 1, wherein creating a pre-integrated hover button assembly comprises:
acquiring a current mainstream development framework;
analyzing the source code in the mainstream development framework, and acquiring a trunk function in the source code from the analyzed source code to generate a trunk function set;
analyzing semantic information corresponding to the logic realized by each trunk function in the trunk function set;
designing a suspension button by adopting a front-end interface design language;
and setting different coordinate points in the suspension button, and associating the different coordinate points set in the suspension button with semantic information corresponding to the logic realized by each trunk function to generate an integrated suspension button assembly.
6. The method according to claim 4, wherein the counting the number of the backbone function nodes with the same semantics from the semantic-tagged first backbone function node set includes:
a sliding window algorithm creates a sliding window;
and sequentially inputting all the trunk functions in the first trunk function node set after semantic marking into the sliding window, and outputting the number of the trunk function nodes with the same semantic meaning.
7. The method of claim 1, wherein the obtaining a plurality of parameters corresponding to the target location coordinate point and generating a mapping identifier according to the plurality of parameters comprises:
acquiring a plurality of parameters corresponding to the target position point from the memory address;
receiving a parameter arranging instruction, and acquiring the sequence of each object identifier in the suspension button assembly according to the parameter arranging instruction;
arranging a plurality of parameters corresponding to the target position points according to a preset parameter arrangement rule to generate a plurality of arranged parameters;
identifying whether the sequence corresponding to the object identifications of the arranged parameters is consistent with the sequence corresponding to each object identification in the suspension button assembly;
and when the recognized sequence is consistent, converting a plurality of parameters corresponding to the target position point into byte codes and then generating a mapping identifier.
8. An apparatus for creating a function based on a hover button assembly, the apparatus comprising:
the suspension key assembly acquisition module is used for acquiring a suspension key assembly which is integrated in advance for displaying when a project creation instruction is detected;
the suspension button assembly moving module is used for receiving the interactive operation aiming at the suspension button assembly and moving to a target position coordinate point based on the interactive operation;
the mapping identifier generating module is used for acquiring a plurality of parameters corresponding to the target position coordinate points and generating mapping identifiers according to the parameters;
a target function determining module, configured to map a trunk function corresponding to the mapping identifier from the suspension button assembly, and determine the trunk function as a target function of the target location point;
and the function generating module is used for inputting a plurality of parameters corresponding to the target position coordinate points into the target function to generate functions.
9. An apparatus comprising a memory and a processor, the memory having stored therein computer readable instructions which, when executed by the processor, cause the processor to perform the steps of the hover button assembly-based function creation method as recited in any of claims 1-7.
10. A medium having computer-readable instructions stored thereon which, when executed by one or more processors, cause the one or more processors to perform the steps of the hover button assembly-based functionality creation as recited in any of claims 1-7.
CN202110090423.7A 2021-01-22 2021-01-22 Function creating method, device, equipment and medium based on suspension button assembly Pending CN112783483A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110090423.7A CN112783483A (en) 2021-01-22 2021-01-22 Function creating method, device, equipment and medium based on suspension button assembly

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110090423.7A CN112783483A (en) 2021-01-22 2021-01-22 Function creating method, device, equipment and medium based on suspension button assembly

Publications (1)

Publication Number Publication Date
CN112783483A true CN112783483A (en) 2021-05-11

Family

ID=75758683

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110090423.7A Pending CN112783483A (en) 2021-01-22 2021-01-22 Function creating method, device, equipment and medium based on suspension button assembly

Country Status (1)

Country Link
CN (1) CN112783483A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113655932A (en) * 2021-08-13 2021-11-16 北京数码大方科技股份有限公司 Interface calling method and interface calling device for information system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140068570A1 (en) * 2010-04-30 2014-03-06 Steven M. Cox System and Method for Translating Software Code
CN104216691A (en) * 2013-05-31 2014-12-17 华为技术有限公司 Application creating method and device
US20170126689A1 (en) * 2014-05-05 2017-05-04 Oliver Lloyd PTY Ltd. ACN 108-899 323 as Trustee of the WWITE Unit Trust Shared Access Appliance, Device And Process
CN111367507A (en) * 2020-03-11 2020-07-03 上海东普信息科技有限公司 Page code generation method, device, equipment and storage medium
US20200249916A1 (en) * 2019-02-05 2020-08-06 Simply Inspired Software, Inc. Automated generation of software bindings

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140068570A1 (en) * 2010-04-30 2014-03-06 Steven M. Cox System and Method for Translating Software Code
CN104216691A (en) * 2013-05-31 2014-12-17 华为技术有限公司 Application creating method and device
US20170126689A1 (en) * 2014-05-05 2017-05-04 Oliver Lloyd PTY Ltd. ACN 108-899 323 as Trustee of the WWITE Unit Trust Shared Access Appliance, Device And Process
US20200249916A1 (en) * 2019-02-05 2020-08-06 Simply Inspired Software, Inc. Automated generation of software bindings
CN111367507A (en) * 2020-03-11 2020-07-03 上海东普信息科技有限公司 Page code generation method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113655932A (en) * 2021-08-13 2021-11-16 北京数码大方科技股份有限公司 Interface calling method and interface calling device for information system
CN113655932B (en) * 2021-08-13 2023-08-08 北京数码大方科技股份有限公司 Interface calling method and interface calling device for information system

Similar Documents

Publication Publication Date Title
US11119738B2 (en) Generating data mappings for user interface screens and screen components for an application
US9274742B2 (en) Visual-symbolic control of remote devices having display-based user interfaces
US20180188897A1 (en) Behavior feature use in programming by example
US8745521B2 (en) System and method for annotating graphical user interface
CN108197024B (en) Embedded browser debugging method, debugging terminal and computer readable storage medium
US11048485B2 (en) User interface code re-use based upon machine learning of design documents
US20160077831A1 (en) Accurate and performant code design using memoization
CN110889056B (en) Page marking method and device
CN114115681B (en) Page generation method and device, electronic equipment and medium
CN110908922A (en) Application program testing method and device
CN111033465B (en) Terminal device, UI extension method, and recording medium
CN112835579A (en) Method and device for determining interface code, electronic equipment and storage medium
US10564739B2 (en) Pointer unification
US11604662B2 (en) System and method for accelerating modernization of user interfaces in a computing environment
CN112783483A (en) Function creating method, device, equipment and medium based on suspension button assembly
US20160292067A1 (en) System and method for keyword based testing of custom components
CN107077365B (en) Selectively loading precompiled headers and/or portions thereof
US20170277722A1 (en) Search service providing apparatus, system, method, and computer program
CN111198738A (en) Mobile terminal page display method and device and electronic equipment
WO2022259561A1 (en) Identification device, identification method, and identification program
CN105988992A (en) Icon pushing method and device
JP7029557B1 (en) Judgment device, judgment method and judgment program
CN112651942B (en) Layout detection method and device
US11694021B2 (en) Apparatus for generating annotated image information using multimodal input data, apparatus for training an artificial intelligence model using annotated image information, and methods thereof
CN109840113A (en) A kind of application data processing method and its equipment, storage medium, terminal

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