CN115080045A - Link generation method and device, computer equipment and storage medium - Google Patents

Link generation method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN115080045A
CN115080045A CN202210873452.5A CN202210873452A CN115080045A CN 115080045 A CN115080045 A CN 115080045A CN 202210873452 A CN202210873452 A CN 202210873452A CN 115080045 A CN115080045 A CN 115080045A
Authority
CN
China
Prior art keywords
link
user
target service
storage
service
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
CN202210873452.5A
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 Health Insurance Company of China Ltd
Original Assignee
Ping An Health Insurance Company of China 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 Health Insurance Company of China Ltd filed Critical Ping An Health Insurance Company of China Ltd
Priority to CN202210873452.5A priority Critical patent/CN115080045A/en
Publication of CN115080045A publication Critical patent/CN115080045A/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/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages

Abstract

The embodiment of the application belongs to the field of big data, and relates to a link generation method, which comprises the following steps: judging whether a link generation request input by a user is received or not; if yes, all the service scene information is analyzed from the link generation request; constructing a page canvas based on the service scene information, and displaying the page canvas; receiving a dragging operation which is triggered by the user and is used for the task contained in the page canvas, and generating corresponding link configuration information based on the dragging operation; and generating a target service link corresponding to the link generation request based on the link configuration information. The application also provides a link generation device, computer equipment and a storage medium. In addition, the application also relates to a block chain technology, and the target service link can be stored in the block chain. The method and the device improve the generation efficiency, the generation expansibility and the generation intelligence of the service link, and improve the use experience of users.

Description

Link generation method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of big data technologies, and in particular, to a link generation method and apparatus, a computer device, and a storage medium.
Background
In front-end development, a service link template is maintained in a service system, and the service link template is a template developed by a developer and used for generating a service link. The current generation mode of the service link is that service personnel manually fills service content in a service link template to generate a required service link. However, since the customer needs to update the service requirement quickly, when a service link needs to be constructed according to the current new service requirement, a developer needs to update the service link template first, and then a subsequent service worker creates a required service link based on the updated service link template, such a processing manner needs to consume more human resources, the workload of the developer is large and frequent, and the generation efficiency of the service link is low.
Disclosure of Invention
An object of the embodiments of the present application is to provide a link generation method, an apparatus, a computer device, and a storage medium, so as to solve the technical problems that the existing service link generation method needs to consume more human resources, developers have a large and frequent workload, and the service link generation efficiency is low.
In order to solve the foregoing technical problem, an embodiment of the present application provides a link generation method, which adopts the following technical solutions:
judging whether a link generation request input by a user is received or not; wherein the link generation request carries a plurality of service scene information;
if yes, analyzing all the service scene information from the link generation request;
constructing a page canvas based on the service scene information, and displaying the page canvas; the page canvas comprises tasks corresponding to the service scene information respectively;
receiving a dragging operation which is triggered by the user and is used for the task contained in the page canvas, and generating corresponding link configuration information based on the dragging operation;
and generating a target service link corresponding to the link generation request based on the link configuration information.
Further, the step of constructing a page canvas based on the service scene information specifically includes:
acquiring tasks corresponding to the business scene information respectively;
calling a preset initial page canvas;
adding all the tasks into the initial page canvas to obtain a processed page canvas;
and taking the processed page canvas as the page canvas.
Further, the link generation request also carries user information of the user, and after the step of generating the target service link corresponding to the link generation request based on the link configuration information, the method further includes:
analyzing the link generation request to obtain the user information;
determining an identity rating of the user based on the user information;
judging whether the identity grade belongs to a preset grade or not;
if the target service link belongs to the preset grade, storing the target service link in a block chain;
and if the target business link does not belong to the preset grade, storing the target business link in a local place.
Further, the step of determining the identity level of the user based on the user information specifically includes:
calling a preset authority score table;
inquiring an authority score corresponding to the user information from the authority score table based on the user information;
acquiring a preset authority score threshold;
generating an identity rating for the user based on the permission score and the permission score threshold.
Further, the step of storing the target service link in a block chain specifically includes:
converting the target service link into link data in a preset format;
acquiring the memory occupied amount of the link data;
screening out a first storage block with available memory larger than the occupied memory amount from all storage blocks contained in the block chain; wherein the number of the first storage blocks comprises a plurality;
determining a designated storage block from all the first storage blocks;
storing the link data in the designated storage area block.
Further, the step of determining the designated memory block from all the first memory blocks specifically includes:
acquiring the data storage times of all the first storage blocks in a preset time period, and screening out second storage blocks of which the data storage times are greater than a preset time threshold from all the first storage blocks;
acquiring the data storage failure times of all the second storage blocks in the preset time period, and screening out third storage blocks of which the data storage failure times are smaller than a preset failure time threshold from all the second storage blocks;
acquiring the data cleaning times of all the third storage blocks in the preset time period, and screening out a fourth storage block with the minimum data cleaning time from all the third storage blocks;
and taking the fourth storage block as the designated storage block.
Further, after the step of generating the target traffic link corresponding to the link generation request based on the link configuration information, the method further includes:
displaying the target service link;
judging whether modification operation for the target service link triggered by the user is received;
if so, acquiring modification configuration information corresponding to the modification operation;
modifying the target service link based on the modification configuration information to obtain a modified target service link;
and storing the modified target service link and deleting the target service link.
In order to solve the foregoing technical problem, an embodiment of the present application further provides a link generation apparatus, which adopts the following technical solutions:
the first judgment module is used for judging whether a link generation request input by a user is received or not; wherein the link generation request carries a plurality of service scene information;
the analysis module is used for analyzing all the service scene information from the link generation request if the service scene information is in the link generation request;
the construction module is used for constructing a page canvas based on the service scene information and displaying the page canvas; the page canvas comprises tasks corresponding to the service scene information respectively;
the first generation module is used for receiving a dragging operation which is triggered by the user and is used for the task contained in the page canvas, and generating corresponding link configuration information based on the dragging operation;
and the second generation module is used for generating a target service link corresponding to the link generation request based on the link configuration information.
In order to solve the above technical problem, an embodiment of the present application further provides a computer device, which adopts the following technical solutions:
judging whether a link generation request input by a user is received or not; the link generation request carries a plurality of pieces of service scene information;
if yes, all the service scene information is analyzed from the link generation request;
constructing a page canvas based on the service scene information, and displaying the page canvas; the page canvas comprises tasks corresponding to the service scene information respectively;
receiving a dragging operation which is triggered by the user and is used for the task contained in the page canvas, and generating corresponding link configuration information based on the dragging operation;
and generating a target service link corresponding to the link generation request based on the link configuration information.
In order to solve the above technical problem, an embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solutions:
judging whether a link generation request input by a user is received or not; wherein the link generation request carries a plurality of service scene information;
if yes, all the service scene information is analyzed from the link generation request;
constructing a page canvas based on the service scene information, and displaying the page canvas; the page canvas comprises tasks corresponding to the service scene information respectively;
receiving a dragging operation which is triggered by the user and is used for the task contained in the page canvas, and generating corresponding link configuration information based on the dragging operation;
and generating a target service link corresponding to the link generation request based on the link configuration information.
Compared with the prior art, the embodiment of the application mainly has the following beneficial effects:
according to the method and the device, after a link generation request input by a user is received, service scene information is firstly analyzed from the link generation request, a page canvas is constructed and displayed based on the obtained service scene information, drag operation of tasks contained in the page canvas, which is triggered by the user, is received, corresponding link configuration information is generated based on the drag operation, and finally a target service link corresponding to the link generation request is generated based on the link configuration information. According to the method and the device, different tasks are distinguished according to different service scene information input by a user, corresponding link configuration information is generated by capturing the dragging operation of the user on the tasks contained in the page canvas, and then the corresponding target service links are generated based on the link configuration information through rapid assembly, so that the generation efficiency, the generation expansibility and the generation intelligence of the service links are improved, and the use experience of the user is improved.
Drawings
In order to more clearly illustrate the solution of the present application, the drawings needed for describing the embodiments of the present application will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a link generation method according to the present application;
FIG. 3 is a schematic block diagram of one embodiment of a link generation apparatus according to the present application;
FIG. 4 is a schematic block diagram of one embodiment of a computer device according to the present application.
Detailed Description
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "including" and "having," and any variations thereof, in the description and claims of this application and the description of the above figures are intended to cover non-exclusive inclusions. The terms "first," "second," and the like in the description and claims of this application or in the above-described drawings are used for distinguishing between different objects and not for describing a particular order.
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 application. 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.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have various communication client applications installed thereon, such as a web browser application, a shopping application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture experts Group Audio Layer III, mpeg compression standard Audio Layer 3), MP4 players (Moving Picture experts Group Audio Layer IV, mpeg compression standard Audio Layer 4), laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background server providing support for pages displayed on the terminal devices 101, 102, 103.
It should be noted that, the link generation method provided in the embodiment of the present application is generally executed by a server/terminal device, and accordingly, the link generation apparatus is generally disposed in the server/terminal device.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continuing reference to FIG. 2, a flow diagram of one embodiment of a link generation method in accordance with the present application is shown. The link generation method comprises the following steps:
step S201, judging whether a link generation request input by a user is received; wherein the link generation request carries a plurality of service scenario information.
In this embodiment, the electronic device (for example, the server/terminal device shown in fig. 1) on which the link generation method operates may receive a link generation request input by a user through a wired connection manner or a wireless connection manner. It should be noted that the wireless connection means may include, but is not limited to, a 3G/4G/5G connection, a WiFi connection, a bluetooth connection, a WiMAX connection, a Zigbee connection, a uwb (ultra wideband) connection, and other wireless connection means now known or developed in the future. The link generation request is a request triggered by a user and used for generating a service link corresponding to the input service scene information. The link generation request carries a plurality of service scenario information, and may also carry user information of a user.
Step S202, if yes, all the service scene information is analyzed from the link generation request.
In this embodiment, the link generation request may be intercepted by using spring, and then the service context information may be analyzed from the link generation request. The service scenario information may include a plurality of types, for example, an insurance service scenario, a product sale service scenario, an after-sale service scenario, and the like.
Step S203, constructing a page canvas based on the service scene information, and displaying the page canvas; and the page canvas comprises tasks respectively corresponding to the service scene information.
In this embodiment, the above specific implementation process of building the page canvas based on the service scenario information will be described in further detail in the following specific embodiments, and will not be elaborated herein. In addition, the above-described tasks may refer to tasks in an integrated manner.
Step S204, receiving a dragging operation triggered by the user for the task contained in the page canvas, and generating corresponding link configuration information based on the dragging operation.
In this embodiment, the link configuration information refers to link assembly information of tasks corresponding to the drag operation, and the link assembly information includes serial or parallel relationships between the tasks.
Step S205, generating a target service link corresponding to the link generation request based on the link configuration information.
In this embodiment, link assembly may be performed on a task corresponding to a drag operation of a user based on link configuration information to generate a target traffic link corresponding to a link generation request. Specifically, a groovy script generated according to actual service usage requirements is executed in advance, so that link assembly is performed on a task corresponding to a drag operation of a user according to link configuration information by using the groovy script, and a target service link corresponding to a link generation request is generated. groovy is a dynamic language, similar to Java (even an upgraded version of Java, but with the features of a scripting language), and runs in a Java virtual machine. When running the Groovy script, it is compiled into Java class bytecode, and then this Java bytecode class is executed by the JVM virtual machine.
After receiving a link generation request input by a user, the method and the device can firstly analyze service scene information from the link generation request, then construct and display a page canvas based on the obtained service scene information, then receive a dragging operation triggered by the user for a task contained in the page canvas, generate corresponding link configuration information based on the dragging operation, and finally generate a target service link corresponding to the link generation request based on the link configuration information. According to the method and the device, different tasks are distinguished according to different service scene information input by a user, corresponding link configuration information is generated by capturing the dragging operation of the user on the tasks contained in the page canvas, and then the corresponding target service links are generated based on the link configuration information through rapid assembly, so that the generation efficiency, the generation expansibility and the generation intelligence of the service links are improved, and the use experience of the user is improved.
In some optional implementations, the building of the page canvas based on the service scenario information in step S202 includes the following steps:
and acquiring tasks respectively corresponding to the service scene information.
In this embodiment, the tasks respectively corresponding to the service scene information may be queried through a task data table constructed in advance according to the service requirements. The task data table stores various types of service scene information and task data tables corresponding to the various service scene information one by one.
And calling a preset initial page canvas.
In this embodiment, the initial page canvas may be an antX page canvas.
And adding all the tasks into the initial page canvas to obtain the processed page canvas.
And taking the processed page canvas as the page canvas.
According to the method and the device, after the link generation request is analyzed to obtain the service scene information, the tasks corresponding to the service scene information are obtained, and then the obtained tasks and the preset initial page canvas quickly construct the corresponding page canvas, so that the follow-up required service link can be generated quickly based on the editing processing triggered by the user on the page canvas, the link generation efficiency and the intelligence are improved, and the user experience is improved.
In some optional implementation manners of this embodiment, the link generation request further carries user information of the user, and after step S205, the electronic device may further perform the following steps:
and analyzing the link generation request to obtain the user information.
In this embodiment, the user information is information for identifying the identity of the user, and the user information may include name information or ID information of the user.
Determining an identity rating of the user based on the user information.
In this embodiment, the above-mentioned specific implementation process for determining the identity level of the user based on the user information will be described in further detail in the following specific embodiments, which are not set forth herein too much.
And judging whether the identity grade belongs to a preset grade or not.
In this embodiment, the preset level may be level information set according to an actual service usage requirement for determining whether a user belongs to an important user, and the preset level may specifically be an important level. If the identity level of the user belongs to the preset level, the user is judged to belong to the important user, and if the identity level of the user does not belong to the preset level, the user is judged not to belong to the important user, namely, the user is a common user. In addition, for users with different identity levels, the generated target service link is stored in a corresponding storage mode corresponding to the identity level of the user, so that the storage intelligence of the target service link is improved, and the use experience of the user is improved.
And if the target service link belongs to the preset grade, storing the target service link in a block chain.
In this embodiment, the service link is stored in the block chain, so that the privacy and security of the target service link can be effectively ensured. In addition, the above specific implementation process of storing the target service link in the blockchain will be described in further detail in the following specific embodiments, which are not set forth herein too much.
And if the target service link does not belong to the preset grade, storing the target service link in a local place.
In the embodiment, the target service link is stored in a local storage mode, so that the problem of low success rate of data query of the target service link caused by unstable or disconnected network and other conditions can be effectively solved, and the storage adaptability of the target service link is improved.
According to the method and the device, the identity grade of the user is compared with the preset grade, and the target service link is correspondingly stored in the block chain or the local area based on the obtained comparison result, so that the storage intelligence and the storage adaptability of the target service link are effectively improved, and the data security of the target service link is also ensured.
In some optional implementations, the determining the identity level of the user based on the user information includes the following steps:
and calling a preset authority point table.
In this embodiment, the authority score table is a pre-constructed data table in which user information of each legal employee and authority scores corresponding to the user information of each legal employee one to one are stored.
And inquiring the authority score corresponding to the user information from the authority score table based on the user information.
And acquiring a preset authority score threshold value.
In this embodiment, the permission score threshold may be a score threshold that is set according to an actual service usage requirement and used for determining whether a user belongs to an important user, where a value of the permission score threshold is not specifically limited.
Generating an identity rating for the user based on the permission score and the permission score threshold.
In this embodiment, if the authority score of the user is greater than the authority score threshold, the identity level of the user is determined to be an important level, and if the authority score of the user is not greater than the authority score threshold, the identity level of the user is determined to be a normal level.
According to the method and the device, the identity grade of the user can be quickly generated based on the authority score table and the authority score threshold, the identity grade of the user can be compared with the preset grade subsequently, and then the target service link is stored in the block chain or the local part based on the obtained comparison result, so that the intelligence and the target adaptability of the target service link storage are improved, and the safety of the service link storage is also ensured.
In some optional implementations, the storing the target service link in the block chain includes the following steps:
and converting the target service link into link data in a preset format.
In this embodiment, the predetermined format may be a block chain format.
And acquiring the memory occupied amount of the link data.
In this embodiment, the capacity value of the link data may be counted to obtain the corresponding memory usage amount.
Screening out a first storage block with available memory larger than the occupied memory amount from all storage blocks contained in the block chain; wherein the number of the first memory blocks comprises a plurality.
And determining a designated storage block from all the first storage blocks.
In this embodiment, the specific implementation process of determining the designated memory block from all the first memory blocks is described in further detail in the following specific embodiments, and will not be described in detail herein.
Storing the link data in the designated storage area block.
According to the method and the device, the memory occupied amount of the link data corresponding to the target service link is obtained, the first storage block with the available memory larger than the memory occupied amount is screened out from all the storage blocks contained in the block chain, the first storage block is further screened subsequently to determine the designated storage block for storing the link data, and the intelligence and the reasonability of the link data storage are improved.
In some optional implementations of this embodiment, the determining the designated memory block from all the first memory blocks includes the following steps:
and acquiring the data storage times of all the first storage blocks in a preset time period, and screening out second storage blocks of which the data storage times are greater than a preset time threshold value from all the first storage blocks.
In this embodiment, the value of the preset time period is not specifically limited, and may be set according to an actual service usage requirement, for example, the preset time period may be within a month before the current time. In addition, the specific value of the frequency threshold is not limited, and can be set according to the actual service use requirement.
And acquiring the data storage failure times of all the second storage blocks in the preset time period, and screening out a third storage block of which the data storage failure times are smaller than a preset failure time threshold value from all the second storage blocks.
In this embodiment, specific values of the failure number threshold are not limited, and may be set according to actual service use requirements.
And acquiring the data cleaning times of all the third storage blocks in the preset time period, and screening out a fourth storage block with the minimum data cleaning time from all the third storage blocks.
And taking the fourth storage block as the designated storage block.
According to the method and the device, the final appointed storage block is determined based on the data storage frequency, the data storage failure frequency and the data cleaning frequency of the first storage block in the preset time period, the storage of the generated target service link is carried out by reasonably selecting the corresponding appointed storage block according to the storage frequency condition, the storage first-field condition and the cleaning condition of the first storage block contained in the block chain, the accuracy of the obtained appointed storage block is effectively guaranteed, the possibility that the target service link is cleaned can be reduced, the storage efficiency of the target service link is improved, the user can conveniently and quickly inquire, and the use experience of the user is improved.
In some optional implementation manners of this embodiment, after step S205, the electronic device may further perform the following steps:
and displaying the target service link.
In this embodiment, the target service link may be displayed on the current interface corresponding to the page canvas.
And judging whether a modification operation triggered by the user on the target service link is received.
In this embodiment, a modification button may be set in the current interface, and a user may trigger a modification operation on the target service link by clicking the modification button.
And if so, acquiring modification configuration information corresponding to the modification operation.
In this embodiment, the modified configuration information may be information for modifying the preliminarily generated assembly relationship of the target service link, and may include configuration information for adding, deleting, and the like the assembly relationship of the target service link, for example.
And modifying the target service link based on the modification configuration information to obtain a modified target service link.
And storing the modified target service link and deleting the target service link.
In this embodiment, after the modified target service link is stored, the storage rationality of the service link can be improved by deleting the target service link.
After the target service link is generated, the user can modify the target service link according to actual use requirements to regenerate the required correct service link, and the modification mode does not need the change and version of background code logic, so that the intelligence and convenience of generating the service link are effectively improved, the development work of developers is greatly reduced, and the use physical examination of the user is improved.
It is emphasized that, to further ensure the privacy and security of the target traffic link, the target traffic link may also be stored in a node of a blockchain.
The block chain referred by the application is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The embodiment of the application can acquire and process related data based on an artificial intelligence technology. Among them, Artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
The artificial intelligence infrastructure generally includes technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation/interaction systems, mechatronics, and the like. The artificial intelligence software technology mainly comprises a computer vision technology, a robot technology, a biological recognition technology, a voice processing technology, a natural language processing technology, machine learning/deep learning and the like.
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 hardware associated with computer readable instructions, which can be stored in a computer readable storage medium, and when executed, the processes of the embodiments of the methods described above can be included. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
With further reference to fig. 3, as an implementation of the method shown in fig. 2, the present application provides an embodiment of a link generation apparatus, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus may be specifically applied to various electronic devices.
As shown in fig. 3, the link generating apparatus 300 according to this embodiment includes: a first determination module 301, an analysis module 302, a construction module 303, a first generation module 304, and a second generation module 305. Wherein:
a first judging module 301, configured to judge whether a link generation request input by a user is received; wherein the link generation request carries a plurality of service scene information;
an analyzing module 302, configured to analyze all the service scenario information from the link generation request if yes;
a building module 303, configured to build a page canvas based on the service scene information, and display the page canvas; the page canvas comprises tasks corresponding to the service scene information respectively;
a first generating module 304, configured to receive a drag operation, triggered by the user, on the task included in the page canvas, and generate corresponding link configuration information based on the drag operation;
a second generating module 305, configured to generate a target traffic link corresponding to the link generation request based on the link configuration information.
In this embodiment, the operations that the modules or units are respectively configured to execute correspond to the steps of the link generation method in the foregoing embodiment one to one, and are not described herein again.
In some optional implementations of this embodiment, the building module 303 includes:
the first obtaining submodule is used for obtaining tasks corresponding to the service scene information respectively;
the first calling submodule is used for calling a preset initial page canvas;
the adding submodule is used for adding all the tasks into the initial page canvas to obtain a processed page canvas;
and the first determining submodule is used for taking the processed page canvas as the page canvas.
In this embodiment, the operations that the modules or units are respectively configured to execute correspond to the steps of the link generation method in the foregoing embodiment one to one, and are not described herein again.
In some optional implementations of this embodiment, the link generating device further includes:
the acquisition module is used for analyzing the link generation request to obtain the user information;
a determination module to determine an identity level of the user based on the user information;
the first judgment module is used for judging whether the identity grade belongs to a preset grade or not;
the first storage module is used for storing the target service link in a block chain if the target service link belongs to the preset grade;
and the second storage module is used for locally storing the target service link if the target service link does not belong to the preset grade.
In this embodiment, the operations that the modules or units are respectively configured to execute correspond to the steps of the link generation method in the foregoing embodiment one to one, and are not described herein again.
In some optional implementations of this embodiment, the determining module includes:
the second calling submodule is used for calling a preset authority score table;
the query submodule is used for querying the authority score corresponding to the user information from the authority score table based on the user information;
the second obtaining submodule is used for obtaining a preset authority score threshold value;
and the generation submodule is used for generating the identity level of the user based on the authority score and the authority score threshold value.
In this embodiment, the operations that the modules or units are respectively configured to execute correspond to the steps of the link generation method in the foregoing embodiment one to one, and are not described herein again.
In some optional implementations of this embodiment, the first storage module includes:
the conversion submodule is used for converting the target service link into link data in a preset format;
a third obtaining submodule, configured to obtain an amount of memory occupied by the link data;
the screening submodule is used for screening out a first storage block of which the available memory is larger than the occupied memory amount from all the storage blocks contained in the block chain; wherein the number of the first memory blocks comprises a plurality of memory blocks;
a second determining submodule, configured to determine a designated storage block from all the first storage blocks;
and the storage submodule is used for storing the link data in the specified storage area block.
In this embodiment, the operations that the modules or units are respectively configured to execute correspond to the steps of the link generation method in the foregoing embodiment one to one, and are not described herein again.
In some optional implementations of this embodiment, the second determining sub-module includes:
the first screening unit is used for acquiring the data storage times of all the first storage blocks in a preset time period and screening out second storage blocks of which the data storage times are larger than a preset time threshold value from all the first storage blocks;
the second screening unit is used for acquiring the data storage failure times of all the second storage blocks in the preset time period and screening out third storage blocks of which the data storage failure times are smaller than a preset failure time threshold from all the second storage blocks;
the third screening unit is used for acquiring the data cleaning times of all the third storage blocks in the preset time period and screening out a fourth storage block with the minimum data cleaning time from all the third storage blocks;
a determination unit, configured to use the fourth storage block as the designated storage block.
In this embodiment, the operations that the modules or units are respectively configured to execute correspond to the steps of the link generation method in the foregoing embodiment one to one, and are not described herein again.
In some optional implementations of this embodiment, the link generating device further includes:
the display module is used for displaying the target service link;
the second judging module is used for judging whether the modification operation of the target service link triggered by the user is received or not;
the acquisition module is used for acquiring modification configuration information corresponding to the modification operation if the modification operation is successful;
the modification module is used for modifying the target service link based on the modification configuration information to obtain a modified target service link;
and the storage module is used for storing the modified target service link and deleting the target service link.
In this embodiment, the operations that the modules or units are respectively configured to execute correspond to the steps of the link generation method in the foregoing embodiment one to one, and are not described herein again.
In order to solve the technical problem, the embodiment of the application further provides computer equipment. Referring to fig. 4, fig. 4 is a block diagram of a basic structure of a computer device according to the present embodiment.
The computer device 4 comprises a memory 41, a processor 42, a network interface 43 communicatively connected to each other via a system bus. It is noted that only computer device 4 having components 41-43 is shown, but it is understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead. As will be understood by those skilled in the art, the computer device is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The computer device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The computer equipment can carry out man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch panel or voice control equipment and the like.
The memory 41 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 41 may be an internal storage unit of the computer device 4, such as a hard disk or a memory of the computer device 4. In other embodiments, the memory 41 may also be an external storage device of the computer device 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the computer device 4. Of course, the memory 41 may also include both internal and external storage devices of the computer device 4. In this embodiment, the memory 41 is generally used for storing an operating system installed in the computer device 4 and various types of application software, such as computer readable instructions of a link generation method. Further, the memory 41 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 42 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 42 is typically used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is configured to execute computer readable instructions stored in the memory 41 or process data, such as computer readable instructions for executing the link generation method.
The network interface 43 may comprise a wireless network interface or a wired network interface, and the network interface 43 is generally used for establishing communication connection between the computer device 4 and other electronic devices.
Compared with the prior art, the embodiment of the application mainly has the following beneficial effects:
in the embodiment of the application, after a link generation request input by a user is received, service scene information is firstly analyzed from the link generation request, a page canvas is constructed and displayed based on the obtained service scene information, then dragging operation of a task contained in the page canvas triggered by the user is received, corresponding link configuration information is generated based on the dragging operation, and finally a target service link corresponding to the link generation request is generated based on the link configuration information. According to the method and the device, different tasks are distinguished according to different service scene information input by a user, corresponding link configuration information is generated by capturing the dragging operation of the user on the tasks contained in the page canvas, and then the corresponding target service links are generated based on the link configuration information through rapid assembly, so that the generation efficiency, the generation expansibility and the generation intelligence of the service links are improved, and the use experience of the user is improved.
The present application further provides another embodiment, which is to provide a computer-readable storage medium storing computer-readable instructions executable by at least one processor to cause the at least one processor to perform the steps of the link generation method as described above.
Compared with the prior art, the embodiment of the application mainly has the following beneficial effects:
in the embodiment of the application, after a link generation request input by a user is received, service scene information is firstly analyzed from the link generation request, a page canvas is constructed and displayed based on the obtained service scene information, then dragging operation of a task contained in the page canvas triggered by the user is received, corresponding link configuration information is generated based on the dragging operation, and finally a target service link corresponding to the link generation request is generated based on the link configuration information. According to the method and the device, different tasks are distinguished according to different service scene information input by a user, corresponding link configuration information is generated by capturing the dragging operation of the user on the tasks contained in the page canvas, and then the corresponding target service links are generated based on the link configuration information through rapid assembly, so that the generation efficiency, the generation expansibility and the generation intelligence of the service links are improved, and the use experience of the user is improved.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
It is to be understood that the above-described embodiments are merely illustrative of some, but not restrictive, of the broad invention, and that the appended drawings illustrate preferred embodiments of the invention and do not limit the scope of the invention. This application is capable of embodiments in many different forms and is provided for the purpose of enabling a thorough understanding of the disclosure of the application. Although the present application has been described in detail with reference to the foregoing embodiments, it will be apparent to one skilled in the art that the present application may be practiced without modification or with equivalents of some of the features described in the foregoing embodiments. All equivalent structures made by using the contents of the specification and the drawings of the present application are directly or indirectly applied to other related technical fields and are within the protection scope of the present application.

Claims (10)

1. A link generation method, comprising the steps of:
judging whether a link generation request input by a user is received or not; wherein the link generation request carries a plurality of service scene information;
if yes, all the service scene information is analyzed from the link generation request;
constructing a page canvas based on the service scene information, and displaying the page canvas; the page canvas comprises tasks corresponding to the service scene information respectively;
receiving a dragging operation which is triggered by the user and is used for the task contained in the page canvas, and generating corresponding link configuration information based on the dragging operation;
and generating a target service link corresponding to the link generation request based on the link configuration information.
2. The link generation method according to claim 1, wherein the step of constructing a page canvas based on the service scenario information specifically includes:
acquiring tasks respectively corresponding to the service scene information;
calling a preset initial page canvas;
adding all the tasks into the initial page canvas to obtain a processed page canvas;
and taking the processed page canvas as the page canvas.
3. The link generation method according to claim 1, wherein the link generation request further carries user information of the user, and after the step of generating the target service link corresponding to the link generation request based on the link configuration information, the method further comprises:
analyzing the link generation request to obtain the user information;
determining an identity level of the user based on the user information;
judging whether the identity grade belongs to a preset grade or not;
if the target service link belongs to the preset grade, storing the target service link in a block chain;
and if the target service link does not belong to the preset grade, storing the target service link in a local place.
4. The link generation method according to claim 3, wherein the step of determining the identity level of the user based on the user information specifically includes:
calling a preset authority score table;
inquiring an authority score corresponding to the user information from the authority score table based on the user information;
acquiring a preset authority score threshold;
generating an identity rating for the user based on the permission score and the permission score threshold.
5. The link generation method according to claim 3, wherein the step of storing the target service link in a block chain specifically comprises:
converting the target service link into link data in a preset format;
acquiring the memory occupied amount of the link data;
screening out a first storage block with available memory larger than the occupied memory amount from all storage blocks contained in the block chain; wherein the number of the first memory blocks comprises a plurality of memory blocks;
determining a designated storage block from all the first storage blocks;
storing the link data in the designated storage area block.
6. The link generation method according to claim 5, wherein the step of determining the designated memory block from all the first memory blocks specifically comprises:
acquiring the data storage times of all the first storage blocks in a preset time period, and screening out second storage blocks of which the data storage times are greater than a preset time threshold from all the first storage blocks;
acquiring the data storage failure times of all the second storage blocks in the preset time period, and screening out third storage blocks of which the data storage failure times are smaller than a preset failure time threshold from all the second storage blocks;
acquiring the data cleaning times of all the third storage blocks in the preset time period, and screening out a fourth storage block with the minimum data cleaning time from all the third storage blocks;
and taking the fourth storage block as the designated storage block.
7. The link generation method according to claim 1, further comprising, after the step of generating the target traffic link corresponding to the link generation request based on the link configuration information:
displaying the target service link;
judging whether modification operation for the target service link triggered by the user is received;
if so, acquiring modification configuration information corresponding to the modification operation;
modifying the target service link based on the modification configuration information to obtain a modified target service link;
and storing the modified target service link and deleting the target service link.
8. A link generation apparatus, comprising:
the first judgment module is used for judging whether a link generation request input by a user is received or not; wherein the link generation request carries a plurality of service scene information;
the analysis module is used for analyzing all the service scene information from the link generation request if the service scene information is in the link generation request;
the construction module is used for constructing a page canvas based on the service scene information and displaying the page canvas; the page canvas comprises tasks corresponding to the service scene information respectively;
the first generation module is used for receiving a dragging operation which is triggered by the user and is used for the task contained in the page canvas, and generating corresponding link configuration information based on the dragging operation;
and the second generation module is used for generating a target service link corresponding to the link generation request based on the link configuration information.
9. A computer device comprising a memory having computer readable instructions stored therein and a processor which when executed implements the steps of the link generation method of any of claims 1 to 7.
10. A computer-readable storage medium having computer-readable instructions stored thereon which, when executed by a processor, implement the steps of the link generation method of any of claims 1 to 7.
CN202210873452.5A 2022-07-22 2022-07-22 Link generation method and device, computer equipment and storage medium Pending CN115080045A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210873452.5A CN115080045A (en) 2022-07-22 2022-07-22 Link generation method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210873452.5A CN115080045A (en) 2022-07-22 2022-07-22 Link generation method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115080045A true CN115080045A (en) 2022-09-20

Family

ID=83242592

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210873452.5A Pending CN115080045A (en) 2022-07-22 2022-07-22 Link generation method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115080045A (en)

Similar Documents

Publication Publication Date Title
CN117251228A (en) Function management method, device, computer equipment and storage medium
CN116956326A (en) Authority data processing method and device, computer equipment and storage medium
CN115757075A (en) Task abnormity detection method and device, computer equipment and storage medium
CN116450723A (en) Data extraction method, device, computer equipment and storage medium
CN115712422A (en) Form page generation method and device, computer equipment and storage medium
CN116383787A (en) Page creation method, page creation device, computer equipment and storage medium
CN115292580A (en) Data query method and device, computer equipment and storage medium
CN115080045A (en) Link generation method and device, computer equipment and storage medium
CN115239185A (en) Service provider distribution method, service provider distribution device, computer equipment and storage medium
CN116842011A (en) Blood relationship analysis method, device, computer equipment and storage medium
CN117290597A (en) Information pushing method, device, equipment and storage medium based on artificial intelligence
CN116910095A (en) Buried point processing method, buried point processing device, computer equipment and storage medium
CN116627416A (en) Page configuration method, page configuration device, computer equipment and storage medium
CN115426146A (en) System login method and device, computer equipment and storage medium
CN115905224A (en) Working hour data processing method and device, computer equipment and storage medium
CN115546356A (en) Animation generation method and device, computer equipment and storage medium
CN117422523A (en) Product online method and device, computer equipment and storage medium
CN117453536A (en) System abnormality analysis method, system abnormality analysis device, computer device and storage medium
CN116401061A (en) Method and device for processing resource data, computer equipment and storage medium
CN117407420A (en) Data construction method, device, computer equipment and storage medium
CN117933699A (en) Task analysis method, device, computer equipment and storage medium
CN117112383A (en) Performance analysis method, device, equipment and storage medium based on artificial intelligence
CN115576837A (en) Batch number making method and device, computer equipment and storage medium
CN117251468A (en) Query processing method, device, computer equipment and storage medium
CN117076595A (en) Text processing method, device, equipment and storage medium based on artificial intelligence

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