CN116502616A - Credential template generation method, device, equipment, medium and product - Google Patents

Credential template generation method, device, equipment, medium and product Download PDF

Info

Publication number
CN116502616A
CN116502616A CN202310296938.1A CN202310296938A CN116502616A CN 116502616 A CN116502616 A CN 116502616A CN 202310296938 A CN202310296938 A CN 202310296938A CN 116502616 A CN116502616 A CN 116502616A
Authority
CN
China
Prior art keywords
template
credential
parameters
parameter
input
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
CN202310296938.1A
Other languages
Chinese (zh)
Inventor
刘鑫
谢康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202310296938.1A priority Critical patent/CN116502616A/en
Publication of CN116502616A publication Critical patent/CN116502616A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Stored Programmes (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a credential template generation method, device, equipment, medium and product, and relates to the technical field of big data and artificial intelligence, wherein the method comprises the following steps: receiving a first input of a user to a first template parameter in a preset template parameter source, wherein the first template parameter comprises a plurality of template parameters; in response to the first input, displaying a plurality of template parameters in a front-end interface; and generating a first credential template according to data items preset for each template parameter in the plurality of template parameters, wherein the first credential template comprises a description tag for identifying a template parameter display position and a data source corresponding to the template parameter. The user can select the template parameters according to the actual demands, and adjust the display position of the template parameters in the first voucher template, the whole process is completed through the first input without adjusting development codes, and the voucher template generation efficiency is improved.

Description

Credential template generation method, device, equipment, medium and product
Technical Field
The application relates to the technical field of big data and artificial intelligence, in particular to a credential template generation method, a device, equipment, a medium and a product.
Background
At present, a large number of transaction scenes and business handling processes can involve a large number of business vouchers, each voucher can be generated according to different first voucher templates according to established businesses, and the variability of the first voucher templates is a characteristic of the business scenes. If a new first credential template is developed for different services, a great deal of workload is likely to be brought, and the template needs to be correspondingly modified due to the change of the requirement, so that the conventional software development mode cannot meet the requirement of quick online of the template.
Therefore, a method for generating the first credentials template of the service is needed to improve the efficiency of template generation.
Disclosure of Invention
The method, the device, the equipment, the medium and the product for generating the voucher template can improve the generating efficiency of the voucher template.
In a first aspect, an embodiment of the present application provides a credential template generating method, including:
receiving a first input of a user to a first template parameter in a preset template parameter source, wherein the first template parameter comprises a plurality of template parameters;
displaying the plurality of template parameters in a front-end interface in response to the first input;
generating a first voucher template according to data items preset for each template parameter in the plurality of template parameters, wherein the first voucher template comprises a description tag used for identifying a template parameter display position and a data source corresponding to the template parameter.
In a second aspect, the present application provides a credential template generating device, the device comprising:
the receiving module is used for receiving a first input of a first template parameter in a preset template parameter source by a user, wherein the first template parameter comprises a plurality of template parameters;
a response module for displaying the plurality of template parameters in a front-end interface in response to the first input;
the generation module is used for generating a first voucher template according to data items preset for each template parameter in the plurality of template parameters, wherein the first voucher template comprises description tags used for identifying the display positions of the template parameters and data sources corresponding to the template parameters.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory storing computer program instructions;
the processor when executing the computer program instructions implements the credential template generation method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a computer storage medium having stored thereon computer program instructions which, when executed by a processor, implement the credential template generation method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product, wherein instructions in the computer program product, when executed by a processor of an electronic device, cause the electronic device to perform a credential template generation method implementing the first aspect described above.
The method, the device, the equipment, the medium and the product for generating the credential template in the embodiment of the application, wherein the method comprises the following steps: receiving a first input of a user to a first template parameter in a preset template parameter source, wherein the first template parameter comprises a plurality of template parameters; displaying the plurality of template parameters in a front-end interface in response to the first input; generating a first voucher template according to data items preset for each template parameter in the plurality of template parameters, wherein the first voucher template comprises a description tag used for identifying a template parameter display position and a data source corresponding to the template parameter. In the above, a plurality of template parameters can be selected from the template parameter source through the first input, and the display position of the template parameters is set to generate the first credential template, so that the whole process is simple to operate, a user can select the template parameters according to actual requirements, and adjust the display position of the template parameters in the first credential template, the whole process can be completed through the first input without adjusting development codes, the efficiency of credential template generation is improved, in addition, under the condition that the user needs to change, a new credential template can be obtained by reselecting the template parameters, the development process of the credential template is simplified, the development period of the credential template is shortened, and the labor cost of credential template development is also reduced; a user can arrange and combine a plurality of template parameters through a first input to form a plurality of different credential templates, in the development process, a developer only needs to write the template parameters, and then the same template parameters can be reused in different credential templates, so that repeated development is avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described, and it is possible for a person skilled in the art to obtain other drawings according to these drawings without inventive effort.
FIG. 1 is one of the flow diagrams of the credential template generation method provided in one embodiment of the present application;
FIG. 2 is a second flow chart of a credential template generation method provided in one embodiment of the present application;
fig. 3 is a schematic structural diagram of a credential template generating device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, a further description of aspects of the present disclosure will be provided below. It should be noted that, without conflict, the embodiments of the present disclosure and features in the embodiments may be combined with each other. The data acquisition, storage, use, processing and the like in the technical scheme meet the relevant regulations of national laws and regulations.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced otherwise than as described herein; it will be apparent that the embodiments in the specification are only some, but not all, embodiments of the disclosure.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
In order to solve the problems in the prior art, the embodiment of the application provides a method, a device, equipment, a medium and a product for generating a credential template. The method for generating the credential template provided by the embodiment of the present application is first described below.
FIG. 1 illustrates a flow diagram of a credential template generation method provided by one embodiment of the present application. As shown in fig. 1, the method specifically may include the following steps:
step 101, receiving a first input of a user on a first template parameter in a preset template parameter source, wherein the first template parameter comprises a plurality of template parameters.
The template parameter source may be preset, and the template parameter source may include all preset template parameters for the user to select. The template parameters may include data items such as field names, field numbers, data sources, check rules, field lengths, field labels, label levels, field spacing, front field numbers, rear field numbers, and the like. The template parameter sources may be pre-stored in a database.
The first input may be a drag input or a click input, which is not limited herein, and is used to select the first template parameter.
Step 102, in response to the first input, displaying the plurality of template parameters in a front-end interface.
For example, the first input is a drag input, through which a plurality of template parameters in the template parameter source can be dragged into the front-end interface, and the user can adjust the display position of each template parameter through the drag. The front-end interface may be understood as a basic template interface, and the size and shape of the basic template interface may be set according to practical situations, which is not limited herein.
Step 103, generating a first voucher template according to data items preset for each template parameter in the plurality of template parameters, wherein the first voucher template comprises description tags for identifying the display positions of the template parameters and data sources corresponding to the template parameters.
After the position adjustment of the template parameters is completed, a first credential template may be generated by clicking a format function button. The first credential template includes a label describing a display location of the plurality of template parameters in the front-end interface and a data source corresponding to each template parameter. The description tag may also be used to describe the data item included in each template parameter in the first credential template, e.g., field name, field number, data source, check rule, field length, field tag, tag level, field spacing, front field number, back field number, etc.
The method in the embodiment includes the steps that first input of a first template parameter in a preset template parameter source is received by a user, wherein the first template parameter comprises a plurality of template parameters; displaying the plurality of template parameters in a front-end interface in response to the first input; generating a first voucher template according to data items preset for each template parameter in the plurality of template parameters, wherein the first voucher template comprises a description tag used for identifying a template parameter display position and a data source corresponding to the template parameter. In the above, a plurality of template parameters can be selected from the template parameter source through the first input, and the first credential template is generated after the display position of the template parameters is set, the whole process is simple to operate, the user can select the template parameters according to actual requirements, and adjust the display position of the template parameters in the first credential template, the whole process does not need to adjust development codes, the user can complete the process through drag operation, and the efficiency of credential template generation is improved.
FIG. 2 illustrates a flow diagram of a credential template generation method provided by one embodiment of the present application. As shown in fig. 2, the method specifically may include the following steps:
step 201, receiving a first input of a first template parameter from a user in a preset template parameter source, wherein the first template parameter comprises a plurality of template parameters.
Step 202, responding to the first input, and displaying the template parameters in a front-end interface.
Step 203, generating a first credential template according to data items preset for each of the plurality of template parameters, where the first credential template includes a description tag for identifying a template parameter display position and a data source corresponding to the template parameter.
The specific details of steps 201 to 203 can be seen from the descriptions of steps 101 to 103, and will not be described herein.
Step 204, displaying the template parameters in the front-end interface according to the display positions of the template parameters in the first credential template in the front-end interface;
step 205, receiving a second input of a user, wherein the second input is used for adjusting the position and/or the number of the template parameters displayed in the front-end interface;
specifically, if the user's needs change after the first credential template is generated, the first credential template may be adjusted. For example, each template parameter is displayed in the front-end interface according to the display position of each template parameter in the first credential template, that is, the display position of the plurality of template parameters in the first credential template is identical to the display position of the plurality of template parameters in the front-end interface.
The user can add new template parameters into the front-end interface through the second input, or delete one or more template parameters existing in the front-end interface, or both add new template parameters into the front-end interface and delete one or more template parameters existing in the front-end interface, so as to realize the adjustment of the number of template parameters in the front-end interface.
The user can also move the position of the template parameter in the front-end interface through the second input, so that the adjustment of the position of the template parameter in the front-end interface is realized.
The user can also adjust the number of the template parameters in the front-end interface and the positions of the template parameters in the front-end interface through the second input. It should be noted that the second input may include a plurality of sub-inputs.
Step 206, responding to the second input, hiding and displaying the template parameters in the front-end interface, and displaying the second template parameters obtained after adjustment;
step 207, generating a second certificate template according to the data items preset for each template parameter in the second template parameters, wherein the second certificate template comprises a description tag for identifying the display position of the template parameters and the data source corresponding to the template parameters.
After the user sets the template parameters on the front-end interface, a second credential template may be generated by clicking a format function button. The electronic device may generate a second credential template according to data items previously set for each of the second template parameters. The electronic device may be a device applying the credential template generation method provided herein.
In this embodiment, under the condition that the user needs to change, the position and/or the number of the template parameters in the first credential template can be adjusted through the second input, and a new credential template, namely the second credential template, is generated.
In one embodiment of the present application, the receiving the second input of the user specifically includes:
receiving a second input of at least one template parameter from the template parameter source by a user, wherein the second input is used for adding the at least one template parameter to the front-end interface;
correspondingly, responding to the second input, hiding and displaying the template parameters in the front-end interface, and displaying the second template parameters obtained after adjustment, wherein the method specifically comprises the following steps of:
obtaining a second template parameter in response to the second input, the second template parameter comprising the at least one template parameter and the plurality of template parameters;
and hiding and displaying the template parameters in the front-end interface, and displaying the second template parameters, wherein the second template parameters comprise the template parameters and the at least one template parameter.
Specifically, in the case where a plurality of template parameters are displayed in the front-end interface, the at least one template parameter is added to the front-end interface through a second input, the at least one template parameter being a template parameter selected from a template parameter source.
When the second template parameters are displayed, the at least one template parameter can be additionally displayed on the basis of displaying a plurality of template parameters, or the at least one template parameter can be refreshed, displayed in a hidden mode, and the second template parameters are displayed, so that the purpose that the plurality of template parameters are not displayed on a front-end interface finally and only the second template parameters are displayed is achieved.
After the user sets the second template parameters on the front-end interface, the second credential template may be generated by clicking the format function button. The electronic device may generate a second credential template according to data items previously set for each of the second template parameters.
In this embodiment, under the condition that the user needs to change, the template parameters can be newly added on the basis of the first credential template through the second input, and a new credential template, namely a second credential template, is generated, so that the whole process is simple to operate, development codes do not need to be changed, and the efficiency of updating the credential template is improved.
In one embodiment of the present application, the receiving the second input of the user specifically includes:
receiving a second input of a user to the plurality of template parameters displayed in the front-end interface, the second input for deleting a third template parameter, the third template parameter comprising at least one template parameter displayed in the front-end interface;
correspondingly, responding to the second input, hiding and displaying the template parameters in the front-end interface, and displaying the second template parameters obtained after adjustment, wherein the method specifically comprises the following steps of:
obtaining a second template parameter in response to the second input, the second template parameter comprising a template parameter of the plurality of template parameters other than the third template parameter;
and hiding and displaying the template parameters in the front-end interface, and displaying the second template parameters.
Specifically, in the case where a plurality of template parameters are displayed in the front-end interface, the third template parameters displayed in the front-end interface are deleted through the second input, and the third template parameters may include one template parameter or more than one template parameter. The second template parameter in this case includes template parameters other than the third template parameter of the plurality of template parameters.
When the second template parameters are displayed, the third template parameters can be hidden and displayed on the basis of displaying the plurality of template parameters, or the third template parameters are refreshed and displayed, the plurality of template parameters are hidden and displayed, and the second template parameters are displayed, so that the aim that the plurality of template parameters are not displayed on a front-end interface finally and only the second template parameters are displayed is fulfilled.
After the user sets the second template parameters on the front-end interface, the second credential template may be generated by clicking the format function button. The electronic device may generate a second credential template according to data items previously set for each of the second template parameters.
In this embodiment, under the condition that the user needs to change, the template parameters in the first credential template can be deleted through the second input, and a new credential template, namely the second credential template, is generated, so that the whole process is simple to operate, development codes do not need to be changed, and the efficiency of updating the credential template is improved.
In one embodiment of the present application, after the generating the first credential template, the method further comprises the steps of:
loading the first credential template into a cache;
under the condition of receiving a credential request, searching a database according to the credential request to obtain credential data;
writing the credential data into the first credential template to obtain a credential file;
and sending the credential file.
Specifically, after the first credential template is obtained, the first credential template is loaded into the cache, so that resource consumption caused by repeated reading in the use process of the first credential template can be reduced. When the electronic device receives the credential request, a database is searched according to the credential request, for example, the credential request carries an identification card number and a service identifier for identifying a service type, the database can be searched according to the identification card number and the service identifier to obtain credential data, the credential data comprises a plurality of data items, when the credential data is written in a first credential template, the credential file can be obtained according to the data items corresponding to each template parameter in the first credential template in a one-to-one correspondence manner, and the credential file is sent to a display screen.
In one embodiment of the present application, the writing the credential data into the first credential template, to obtain a credential file, includes:
acquiring corresponding data from the credential data according to data sources corresponding to template parameters in the first credential template, and writing the data into the first credential template to obtain the credential file;
storing the voucher file to a preset storage position;
accordingly, sending the credential file includes:
obtaining the credential file from the storage location;
and sending the voucher file to a display screen in a file stream mode, so that the display screen displays the voucher file and provides preview, downloading and printing functions.
Specifically, according to the data sources corresponding to the template parameters in the first credential template, the correspondence between each template parameter and a plurality of data in the credential data may be determined, where the plurality of data may correspond to the data sources corresponding to each template parameter in the first credential template one to one, or may be the data sources corresponding to each template parameter in the credential data more than the data sources corresponding to each template parameter in the first credential template, which is not limited herein.
After the data is written into the first voucher template, a voucher file is generated and stored in a preset storage position, the voucher file is sent to a display screen to be displayed in a file stream mode, and preview, downloading and printing functions are provided, so that the voucher file is convenient for a user to use.
Taking the accumulation business as an example, the credential template generation method provided by the application is illustrated as follows.
The method and the device can configure the credential templates of different services through the template parameters preset in the database. The template parameters include the field name, field number, data source, check rule, field length, field label, label hierarchy, field spacing, front field number, rear field number, etc. of the template.
The pre-written program firstly reads the template parameters, and generates a voucher template format file according to the data preset by the template parameters, namely the voucher file, and the positions of all fields in the voucher template and the sources of field data are marked in the format file by adopting labels. After the voucher template is called, the data is read into the template, the tag and the text are converted into a table and a title according to the template, and finally the word type file filled with the data is stored under the appointed directory.
When the user needs to adjust the credential template, only the field related items need to be modified in the template parameters according to the requirements. After finishing the modification, the hot loading of the voucher template is needed, so that the voucher template is refreshed into the cache, and the resources and the performances consumed by repeatedly reading the database in the subsequent voucher use process are reduced.
The method for generating the voucher template provides the user with the quick modification of the voucher template and the generated operation flow, simplifies the adjustment work of the voucher template, and realizes development-free voucher template through parameterized configuration of the template.
The method mainly comprises the steps of splicing the template parameters which are designed in advance into a complete certificate template, then brushing the business data into the template, and caching the business data under a designated catalogue.
The first step: the developer pre-stores the parameters of the accumulation fund module, such as field name, data source, field length, label level, field interval, field number, etc. into the database according to the accumulation fund related business.
And a second step of: and the business personnel formats the module parameters in a front-end interface after arranging the positions in a one-key mode through a dragging mode according to the required credential template to obtain a template file, and labeling the source and the checking rule of each data item by the template file through a label.
And a third step of: the template file is hot loaded into the cache, so that resource consumption caused by repeated reading in the using process of the certificate is reduced.
Fourth step: when the user needs to generate a credential, the application program reads the data of the client and forms a key value pair (KeyValue), and after the data is positioned according to the predefined data item label in the credential template, the data is written into the credential template.
Fifth step: after the data is written, the certificate file is pre-stored in a designated disk directory, and then the file is returned to the front-end user interface for previewing, downloading and printing in a file stream mode.
When the module is newly added to the certificate, the developer only needs to newly add the module parameter item to the front-end interface.
When the voucher template is changed or newly added, the business personnel only need to drag on the front-end interface to regenerate the template file, and the developer is not required to carry out iterative development.
The method provided by the application has the following beneficial effects:
1. template full collocation
By formulating a set of module parameters and data source parameter specifications, the generation of the voucher template is converted from one time to flexibility, so that business personnel can quickly generate the voucher template according to own requirements and release the voucher template by one key, and the efficiency of maintaining the voucher template is effectively improved.
2. Template credential hot loading
The generated voucher template is directly cached into the memory through the caching and hot loading technology, and the voucher can be immediately used without restarting an application program, so that the repetitive work of operation and maintenance personnel is reduced.
Fig. 3 shows a schematic structural diagram of a credential template generating device provided in an embodiment of the present application, and for convenience of explanation, only a portion relevant to the embodiment of the present application is shown.
Referring to fig. 3, the credential template generating device 300 may include:
a first receiving module 301, configured to receive a first input of a first template parameter from a preset template parameter source, where the first template parameter includes a plurality of template parameters;
a first response module 302, configured to display the plurality of template parameters in a front-end interface in response to the first input;
the first generating module 303 is configured to generate a first credential template according to a data item preset for each of the plurality of template parameters, where the first credential template includes a description tag for identifying a template parameter display location and a data source corresponding to the template parameter.
Optionally, the apparatus further comprises:
the first display module is used for displaying the template parameters in the front-end interface according to the display positions of the template parameters in the first credential template in the front-end interface;
the second receiving module is used for receiving a second input of a user, and the second input is used for adjusting the position and/or the number of the template parameters displayed in the front-end interface;
the second response module is used for responding to the second input, hiding and displaying the template parameters in the front-end interface and displaying the second template parameters obtained after adjustment;
the second generation module is used for generating a second certificate template according to the data items preset for each template parameter in the second template parameters, and the second certificate template comprises a description tag used for identifying the template parameter display position and a data source corresponding to the template parameter.
Optionally, the second receiving module is configured to receive a second input of at least one template parameter from the template parameter source, where the second input is used to add the at least one template parameter to the front-end interface;
a second response module comprising:
a first acquisition sub-module for obtaining a second template parameter in response to the second input, the second template parameter comprising the at least one template parameter and the plurality of template parameters;
the first display sub-module is configured to hide and display the plurality of template parameters in the front-end interface, and display the second template parameters, where the second template parameters include the plurality of template parameters and the at least one template parameter.
Optionally, the second receiving module is configured to receive a second input of the plurality of template parameters displayed in the front-end interface by a user, where the second input is used to delete a third template parameter, and the third template parameter includes at least one template parameter displayed in the front-end interface;
a second response module comprising:
a second obtaining sub-module, configured to obtain a second template parameter in response to the second input, where the second template parameter includes a template parameter other than the third template parameter in the plurality of template parameters;
and the second display sub-module is used for hiding and displaying the template parameters in the front-end interface and displaying the second template parameters.
Optionally, the apparatus 300 further includes:
the loading module is used for loading the first credential template into a cache;
the first acquisition module is used for searching a database according to the credential request under the condition of receiving the credential request to acquire credential data;
the second acquisition module is used for writing the credential data into the first credential template to acquire a credential file;
and the sending module is used for sending the certificate file.
Optionally, the second acquisition module includes:
a third obtaining sub-module, configured to obtain corresponding data from the credential data according to a data source corresponding to each template parameter in the first credential template;
the writing sub-module is used for writing into the first credential template to obtain the credential file;
a storage sub-module, configured to store the credential file to a preset storage location;
the sending module comprises:
a fourth obtaining sub-module, configured to obtain the credential file from the storage location;
and the sending sub-module is used for sending the voucher file to a display screen in a file stream mode, so that the display screen displays the voucher file and provides preview, downloading and printing functions.
The credential template generating device 300 provided in this embodiment of the present application can implement each process implemented by the foregoing method embodiment, and in order to avoid repetition, a description is omitted here.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
Fig. 4 shows a schematic hardware structure of an electronic device according to an embodiment of the present application.
The device may include a processor 401 and a memory 402 in which program instructions are stored.
The steps of any of the various method embodiments described above are implemented when the processor 401 executes a program.
For example, a program may be divided into one or more modules/units, which are stored in the memory 402 and executed by the processor 401 to complete the present application. One or more of the modules/units may be a series of program instruction segments capable of performing specific functions to describe the execution of the program in the device.
In particular, the processor 401 described above may include a Central Processing Unit (CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured to implement one or more integrated circuits of embodiments of the present application.
Memory 402 may include mass storage for data or instructions. By way of example, and not limitation, memory 402 may comprise a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, magnetic tape, or universal serial bus (Universal Serial Bus, USB) Drive, or a combination of two or more of the foregoing. Memory 402 may include removable or non-removable (or fixed) media, where appropriate. Memory 402 may be internal or external to the integrated gateway disaster recovery device, where appropriate. In a particular embodiment, the memory 402 is a non-volatile solid state memory.
The memory may include Read Only Memory (ROM), random Access Memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical, or other physical/tangible memory storage devices. Thus, in general, the memory includes one or more tangible (non-transitory) readable storage media (e.g., memory devices) encoded with software comprising computer-executable instructions and when the software is executed (e.g., by one or more processors) it is operable to perform the operations described with reference to methods in accordance with aspects of the present disclosure.
The processor 401 implements any of the methods of the above embodiments by reading and executing program instructions stored in the memory 402.
In one example, the electronic device may also include a communication interface 403 and a bus 410. The processor 401, the memory 402, and the communication interface 403 are connected to each other by a bus 410 and perform communication with each other.
The communication interface 403 is mainly used to implement communication between each module, device, unit and/or apparatus in the embodiments of the present application.
Bus 410 includes hardware, software, or both, coupling components of the online data flow billing device to each other. By way of example, and not limitation, the buses may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a micro channel architecture (MCa) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus, or a combination of two or more of the above. Bus 410 may include one or more buses, where appropriate. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.
In addition, in combination with the method in the above embodiment, the embodiment of the application may be implemented by providing a storage medium. The storage medium has program instructions stored thereon; the program instructions, when executed by a processor, implement any of the methods of the embodiments described above.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running a program or instructions, the processes of the above method embodiment are realized, the same technical effects can be achieved, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
The embodiments of the present application provide a computer program product, which is stored in a storage medium, and the program product is executed by at least one processor to implement the respective processes of the above method embodiments, and achieve the same technical effects, and are not repeated herein.
It should be clear that the present application is not limited to the particular arrangements and processes described above and illustrated in the drawings. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present application are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications, and additions, or change the order between steps, after appreciating the spirit of the present application.
The functional blocks shown in the above block diagrams may be implemented in hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, a plug-in, a function card, or the like. When implemented in software, the elements of the present application are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine readable medium or transmitted over transmission media or communication links by a data signal carried in a carrier wave. A "machine-readable medium" may include any medium that can store or transfer information. Examples of machine-readable media include electronic circuitry, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio Frequency (RF) links, and the like. The code segments may be downloaded via computer grids such as the internet, intranets, etc.
It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, the present application is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be different from the order in the embodiments, or several steps may be performed simultaneously.
Aspects of the present disclosure are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable credential template generating device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable credential template generating device, enable the implementation of the functions/acts specified in the flowchart and/or block diagram block or blocks. Such a processor may be, but is not limited to being, a general purpose processor, a special purpose processor, an application specific processor, or a field programmable logic circuit. It will also be understood that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware which performs the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In the foregoing, only the specific embodiments of the present application are described, and it will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the systems, modules and units described above may refer to the corresponding processes in the foregoing method embodiments, which are not repeated herein. It should be understood that the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present application, which are intended to be included in the scope of the present application.

Claims (10)

1. A method of credential template generation, the method comprising:
receiving a first input of a user to a first template parameter in a preset template parameter source, wherein the first template parameter comprises a plurality of template parameters;
displaying the plurality of template parameters in a front-end interface in response to the first input;
generating a first voucher template according to data items preset for each template parameter in the plurality of template parameters, wherein the first voucher template comprises a description tag used for identifying a template parameter display position and a data source corresponding to the template parameter.
2. The method of claim 1, wherein after the generating the first credential template, the method further comprises:
displaying the template parameters in the front-end interface according to the display positions of the template parameters in the first credential template in the front-end interface;
receiving a second input of a user, wherein the second input is used for adjusting the position and/or the number of template parameters displayed in the front-end interface;
in response to the second input, hiding and displaying the plurality of template parameters in the front-end interface, and displaying second template parameters obtained after adjustment;
and generating a second voucher template according to data items preset for each template parameter in the second template parameters, wherein the second voucher template comprises a description tag for identifying a template parameter display position and a data source corresponding to the template parameter.
3. The method of claim 2, wherein the receiving a second input from the user comprises:
receiving a second input of at least one template parameter from the template parameter source by a user, wherein the second input is used for adding the at least one template parameter to the front-end interface;
in response to the second input, hiding and displaying the plurality of template parameters in the front-end interface, and displaying the second template parameters obtained after adjustment, including:
obtaining a second template parameter in response to the second input, the second template parameter comprising the at least one template parameter and the plurality of template parameters;
and hiding and displaying the template parameters in the front-end interface, and displaying the second template parameters, wherein the second template parameters comprise the template parameters and the at least one template parameter.
4. The method of claim 2, wherein the receiving a second input from the user comprises:
receiving a second input of a user to the plurality of template parameters displayed in the front-end interface, the second input for deleting a third template parameter, the third template parameter comprising at least one template parameter displayed in the front-end interface;
in response to the second input, hiding and displaying the plurality of template parameters in the front-end interface, and displaying the second template parameters obtained after adjustment, including:
obtaining a second template parameter in response to the second input, the second template parameter comprising a template parameter of the plurality of template parameters other than the third template parameter;
and hiding and displaying the template parameters in the front-end interface, and displaying the second template parameters.
5. The method of claim 1, wherein after the generating the first credential template, the method further comprises:
loading the first credential template into a cache;
under the condition of receiving a credential request, searching a database according to the credential request to obtain credential data;
writing the credential data into the first credential template to obtain a credential file;
and sending the credential file.
6. The method of claim 5, wherein the writing the credential data into the first credential template to obtain a credential file comprises:
acquiring corresponding data from the credential data according to data sources corresponding to template parameters in the first credential template, and writing the data into the first credential template to obtain the credential file;
storing the voucher file to a preset storage position;
transmitting the credential file, comprising:
obtaining the credential file from the storage location;
and sending the voucher file to a display screen in a file stream mode, so that the display screen displays the voucher file and provides preview, downloading and printing functions.
7. A credential template generating device, the device comprising:
the receiving module is used for receiving a first input of a first template parameter in a preset template parameter source by a user, wherein the first template parameter comprises a plurality of template parameters;
a response module for displaying the plurality of template parameters in a front-end interface in response to the first input;
the generation module is used for generating a first voucher template according to data items preset for each template parameter in the plurality of template parameters, wherein the first voucher template comprises description tags used for identifying the display positions of the template parameters and data sources corresponding to the template parameters.
8. An electronic device, the device comprising: a processor and a memory storing computer program instructions;
the processor, when executing the computer program instructions, implements a credential template generation method as defined in any one of claims 1-6.
9. A computer readable storage medium having stored thereon computer program instructions which when executed by a processor implement the credential template generation method of any of claims 1-6.
10. A computer program product, characterized in that instructions in the computer program product, when executed by a processor of an electronic device, cause the electronic device to perform the credential template generation method of any of claims 1-6.
CN202310296938.1A 2023-03-23 2023-03-23 Credential template generation method, device, equipment, medium and product Pending CN116502616A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310296938.1A CN116502616A (en) 2023-03-23 2023-03-23 Credential template generation method, device, equipment, medium and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310296938.1A CN116502616A (en) 2023-03-23 2023-03-23 Credential template generation method, device, equipment, medium and product

Publications (1)

Publication Number Publication Date
CN116502616A true CN116502616A (en) 2023-07-28

Family

ID=87329344

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310296938.1A Pending CN116502616A (en) 2023-03-23 2023-03-23 Credential template generation method, device, equipment, medium and product

Country Status (1)

Country Link
CN (1) CN116502616A (en)

Similar Documents

Publication Publication Date Title
CN106919711B (en) Method and device for labeling information based on artificial intelligence
CN111428451B (en) Text online editing method and device, electronic equipment and storage medium
CN106921682A (en) File uploading method and device
CN111488995A (en) Method and apparatus for evaluating a joint training model
CN112258244B (en) Method, device, equipment and storage medium for determining task to which target object belongs
CN112685117A (en) System language internationalization maintenance method, device and computer readable storage medium
CN115222361A (en) Business process flow transfer method, device, equipment and computer storage medium
CN113434098B (en) Printing function realization method, device, electronic equipment, system and storage medium
CN111290961A (en) Interface test management method and device and terminal equipment
CN105468350A (en) Object tag processing method and apparatus
CN105260459A (en) Search method and apparatus
CN107291923B (en) Information processing method and device
CN113326095A (en) Commission data processing method and device
CN116502616A (en) Credential template generation method, device, equipment, medium and product
CN108628909B (en) Information pushing method and device
CN114118866A (en) Data processing method, device, equipment and computer storage medium
CN109472592B (en) Method and device for managing virtual assets
CN111414566A (en) Method and device for pushing information
CN111460339B (en) Method for adding free taxi resources to shopping carts and related equipment
CN113477548B (en) Article screening device and method
CN118427471A (en) Page data storage method, device and equipment based on data table
CN117785274B (en) Method for disassembling version based on gitlab and micro-service architecture
CN113778501B (en) Code task processing method and device
CN114911534B (en) Page information extraction method, setting method, device, electronic equipment and medium
CN115640290A (en) Data layering method, device and equipment and computer storage medium

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