[go: up one dir, main page]

CN114895953A - A serial number allocation method, device, equipment and storage medium - Google Patents

A serial number allocation method, device, equipment and storage medium Download PDF

Info

Publication number
CN114895953A
CN114895953A CN202210493575.6A CN202210493575A CN114895953A CN 114895953 A CN114895953 A CN 114895953A CN 202210493575 A CN202210493575 A CN 202210493575A CN 114895953 A CN114895953 A CN 114895953A
Authority
CN
China
Prior art keywords
serial number
user
sequence number
serial
sequence
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
CN202210493575.6A
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.)
Bank of China Ltd
Original Assignee
Bank 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202210493575.6A priority Critical patent/CN114895953A/en
Publication of CN114895953A publication Critical patent/CN114895953A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application discloses a sequence number distribution method, a device, equipment and a storage medium, which can be applied to the field of artificial intelligence, wherein the method comprises the following steps: according to a request sent by a user, configuring a serial number configuration parameter, namely configuring a condition of a serial number meeting the user requirement, and then generating a serial number according to the serial number configuration parameter, wherein the generated serial number can be a single serial number or a number segment of an interval. And finally, distributing the generated single serial number or number segment to the user. By the serial number distribution method provided by the embodiment of the application, the rule or the condition for generating the serial number can be configured according to the actual requirement of the user, and then the serial number meeting the requirement of the user is directly distributed to the user for use, so that the efficiency of acquiring the serial number by the user can be improved.

Description

一种序号分配方法、装置、设备及存储介质A serial number allocation method, device, equipment and storage medium

技术领域technical field

本申请涉及计算机技术领域,尤其涉及一种序号分配方法、装置、设备及存储介质。The present application relates to the field of computer technologies, and in particular, to a serial number allocation method, apparatus, device, and storage medium.

背景技术Background technique

在项目开发中,序号作为一种身份标识号码广泛应用于单体系统及分布式系统,是数据或消息的唯一标识。在高并发、高可用的应用场景下,对序号的分配有较高的要求,例如,要求产生的序号不仅要具有唯一性、自增性,而且要满足具体业务场景的规则,使用户可以高效获取序号。In project development, serial number is widely used in single system and distributed system as a kind of identification number, and it is the unique identification of data or message. In high-concurrency and high-availability application scenarios, there are high requirements for the allocation of serial numbers. For example, the serial numbers required to be generated must not only be unique and self-incrementing, but also meet the rules of specific business scenarios, so that users can efficiently Get the serial number.

但是目前的方案中只能产生递增的序号分配给用户,不能满足基于不同业务场景的序号规则,用户只能获取序号后根据自身需求重新整合组装序号,降低用户获取可用序号的效率。However, the current solution can only generate incremental serial numbers to assign to users, which cannot meet the serial number rules based on different business scenarios. Users can only obtain serial numbers and then re-assemble the assembly serial numbers according to their own needs, which reduces the efficiency of users in obtaining available serial numbers.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本申请实施例提供了一种序号分配方法、装置、设备及存储介质,以便根据用户需求分配序号,提高用户获取序号的效率。In view of this, the embodiments of the present application provide a serial number allocation method, apparatus, device, and storage medium, so as to allocate serial numbers according to user requirements and improve the efficiency of obtaining serial numbers by users.

第一方面,本申请实施例提供了一种序号分配方法,所述方法包括:In a first aspect, an embodiment of the present application provides a serial number allocation method, the method includes:

根据用户发送的请求配置序号配置参数,所述请求用于请求获取序号,所述序号配置参数表示满足所述用户的需求的序号条件;Configure the serial number configuration parameter according to the request sent by the user, the request is used to request to obtain the serial number, and the serial number configuration parameter represents the serial number condition that meets the needs of the user;

基于所述序号配置参数生成序号,所述序号包括单一序号或号段;generating a serial number based on the serial number configuration parameter, the serial number comprising a single serial number or a number segment;

将所述单一序号或号段分配给所述用户。The single sequence number or number segment is assigned to the user.

在一种可能的实现方式中,所述序号配置参数包括:序号规则;In a possible implementation manner, the sequence number configuration parameters include: sequence number rules;

当所述序号规则包括序号类型时,所述序号类型包括数字型序号、字母型序号或者混合型序号,所述基于所述序号配置参数生成序号包括:When the sequence number rule includes a sequence number type, the sequence number type includes a numerical sequence number, an alphabetic sequence number or a mixed type sequence number, and the generation of the sequence number based on the sequence number configuration parameter includes:

当所述序号类型为字母型序号时,基于所述序号类型生成数字型序号;When the serial number type is an alphabetic serial number, a numerical serial number is generated based on the serial number type;

将所述数字型序号根据进制规则转换为字母型序号;Converting the numerical serial number into an alphabetical serial number according to the hexadecimal rule;

当所述序号类型为混合型序号时,基于所述序号类型生成数字型序号;When the serial number type is a mixed serial number, a digital serial number is generated based on the serial number type;

将所述数字型序号根据所述进制规则转换为字母型序号;Converting the numerical serial number into an alphabetic serial number according to the hexadecimal rule;

将所述数字型序号和所述字母型序号组成混合型序号。The numerical serial number and the alphabetic serial number form a mixed serial number.

在一种可能的实现方式中,所述序号配置参数还包括:序号重置条件,所述序号重置条件包括时间周期或号段资源耗尽条件;In a possible implementation manner, the sequence number configuration parameter further includes: a sequence number reset condition, where the sequence number reset condition includes a time period or a number segment resource exhaustion condition;

在将所述单一序号或号段分配给所述用户之后,所述方法还包括:After allocating the single sequence number or number segment to the user, the method further includes:

根据所述时间周期或所述号段资源耗尽条件重置生成的序号。The generated sequence number is reset according to the time period or the number segment resource exhaustion condition.

在一种可能的实现方式中,当所述序号规则包括格式规范时,所述基于所述序号配置参数生成序号包括:In a possible implementation manner, when the sequence number rule includes a format specification, the generating the sequence number based on the sequence number configuration parameter includes:

基于所述序号配置参数生成第一序号;generating a first sequence number based on the sequence number configuration parameter;

根据所述格式规范对所述第一序号进行格式填充,生成第二序号,所述第二序号为满足所述格式规范的序号。The first sequence number is format-filled according to the format specification to generate a second sequence number, where the second sequence number is a sequence number that satisfies the format specification.

在一种可能的实现方式中,所述方法还包括:In a possible implementation, the method further includes:

响应于所述用户的剩余序号达到阈值,继续分配序号给所述用户。Responsive to the user's remaining sequence numbers reaching the threshold, the assignment of sequence numbers to the user continues.

第二方面,本申请实施例提供了一种序号分配装置,所述装置包括:配置模块、生成模块以及分配模块;In a second aspect, an embodiment of the present application provides a serial number allocation device, the device includes: a configuration module, a generation module, and an allocation module;

所述配置模块,用于根据用户发送的请求配置序号配置参数,所述请求用于请求获取序号,所述序号配置参数表示满足所述用户的需求的序号条件;The configuration module is configured to configure a serial number configuration parameter according to a request sent by a user, the request is used to request to obtain a serial number, and the serial number configuration parameter represents a serial number condition that meets the needs of the user;

所述生成模块,用于基于所述序号配置参数生成序号,所述序号包括单一序号或号段;The generating module is configured to generate a serial number based on the serial number configuration parameter, and the serial number includes a single serial number or a number segment;

所述分配模块,用于将所述单一序号或号段分配给所述用户。The assigning module is configured to assign the single serial number or number segment to the user.

在一种可能的实现方式中,所述装置还包括:序号重置模块;In a possible implementation manner, the apparatus further includes: a serial number reset module;

所述序号重置模块,用于根据所述序号配置参数中的序号重置条件,重置生成的序号。The serial number reset module is configured to reset the generated serial number according to the serial number reset condition in the serial number configuration parameter.

在一种可能的实现方式中,所述装置还包括:缓存配置组件,所述缓存配置组件应用于用户端;In a possible implementation manner, the apparatus further includes: a cache configuration component, where the cache configuration component is applied to the client;

所述缓存配置组件,用于响应于所述用户的剩余序号达到阈值,发起获取序号的请求。The cache configuration component is configured to initiate a request for obtaining a sequence number in response to the user's remaining sequence number reaching a threshold.

第三方面,本申请实施例提供了一种序号分配设备,所述设备包括:存储器以及处理器;In a third aspect, an embodiment of the present application provides a serial number allocation device, the device includes: a memory and a processor;

所述存储器用于存储相关的程序代码;The memory is used for storing relevant program codes;

所述处理器用于调用所述程序代码,执行上述第一方面任意一种实现方式所述的序号分配方法。The processor is configured to call the program code to execute the sequence number allocation method described in any one of the implementation manners of the first aspect.

第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质用于存储计算机程序,所述计算机程序用于执行上述第一方面任意一种实现方式所述的序号分配方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, and the computer program is used to execute any one of the implementation manners of the first aspect above. Serial number assignment method.

由此可见,本申请实施例具有如下有益效果:It can be seen that the embodiments of the present application have the following beneficial effects:

在本申请实施例的上述实现方式中,可以根据用户发送的请求,配置序号配置参数,即配置满足用户需求的序号的条件,然后根据该序号配置参数生成序号,所生成的序号可以为单一序号或者一段区间的号段。最后将生成的单一序号或号段分配给用户。通过本申请实施例所提供的序号分配方法,可以根据用户的实际需求,配置生成序号的规则或条件,然后将满足用户需求的序号直接分配给用户使用,可以提高用户获取序号的效率。In the above-mentioned implementation manner of the embodiment of the present application, the serial number configuration parameter can be configured according to the request sent by the user, that is, the condition of configuring the serial number that meets the user's needs, and then the serial number is generated according to the serial number configuration parameter, and the generated serial number can be a single serial number Or the number segment of a range. Finally, the generated single serial number or number segment is distributed to the user. With the serial number allocation method provided by the embodiment of the present application, the rules or conditions for generating serial numbers can be configured according to the actual needs of users, and then the serial numbers that meet the needs of users are directly allocated to users for use, which can improve the efficiency of obtaining serial numbers for users.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见,下面描述中的附图仅仅是本申请中提供的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments provided in the present application. , for those of ordinary skill in the art, other drawings can also be obtained according to these drawings.

图1为本申请实施例提供的一种序号分配方法的流程图;Fig. 1 is a flow chart of a serial number allocation method provided by an embodiment of the present application;

图2为本申请实施例提供的一种基于网关通信的原理图;FIG. 2 is a schematic diagram of a gateway-based communication provided by an embodiment of the present application;

图3为本申请实施例提供的一种序号分配装置的示意图;FIG. 3 is a schematic diagram of a serial number distribution device provided by an embodiment of the present application;

图4为本申请实施例提供的一种序号分配设备的示意图。FIG. 4 is a schematic diagram of a serial number allocation device provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整的描述,所描述的实施例仅为本申请示例性的实施方式,并非全部实现方式。本领域技术人员可以结合本申请的实施例,在不进行创造性劳动的情况下,获得其他的实施例,而这些实施例也在本申请的保护范围之内。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. The described embodiments are only exemplary implementations of the present application, not all implementations. Those skilled in the art can combine the embodiments of the present application to obtain other embodiments without creative work, and these embodiments are also within the protection scope of the present application.

在高并发、高可用的应用场景下,对序号的分配有较高的要求,例如,要求产生的序号不仅要具有唯一性、自增性,而且要满足具体业务场景的规则,使用户可以高效获取序号。但是目前的方案中只能产生递增的序号分配给用户,不能满足基于不同业务场景的序号规则,用户只能获取序号后根据自身需求重新整合组装序号,降低用户获取可用序号的效率。In high-concurrency and high-availability application scenarios, there are high requirements for the allocation of serial numbers. For example, the serial numbers required to be generated must not only be unique and self-incrementing, but also meet the rules of specific business scenarios, so that users can efficiently Get the serial number. However, the current solution can only generate incremental serial numbers to assign to users, which cannot meet the serial number rules based on different business scenarios. Users can only obtain serial numbers and then re-assemble the assembly serial numbers according to their own needs, which reduces the efficiency of users in obtaining available serial numbers.

基于此,本申请实施例提供了一种序号分配方法,以便根据用户需求分配序号,提高用户获取序号的效率。具体实现时,可以根据用户发送的请求,配置序号配置参数,即配置满足用户需求的生成序号的条件,然后根据该序号配置参数生成序号,所生成的序号可以为单一序号或者一段区间的号段。最后将生成的单一序号或号段分配给用户。通过本申请实施例所提供的序号分配方法,可以根据用户的实际需求,配置生成序号的规则或条件,然后将满足用户需求的序号直接分配给用户使用,可以提高用户获取序号的效率。Based on this, an embodiment of the present application provides a serial number allocation method, so as to allocate serial numbers according to user requirements and improve the efficiency of obtaining serial numbers by users. In the specific implementation, the serial number configuration parameter can be configured according to the request sent by the user, that is, the conditions for generating the serial number that meet the needs of the user are configured, and then the serial number is generated according to the serial number configuration parameter. The generated serial number can be a single serial number or a number segment of an interval. . Finally, the generated single serial number or number segment is distributed to the user. With the serial number allocation method provided by the embodiment of the present application, the rules or conditions for generating serial numbers can be configured according to the actual needs of users, and then the serial numbers that meet the needs of users are directly allocated to users for use, which can improve the efficiency of obtaining serial numbers for users.

下面将结合附图对本申请实施例所提供的序号分配方法进行说明。The sequence number allocation method provided by the embodiments of the present application will be described below with reference to the accompanying drawings.

参见图1,图1为本申请实施例提供的一种序号分配方法的流程图。Referring to FIG. 1, FIG. 1 is a flowchart of a serial number allocation method provided by an embodiment of the present application.

该方法主要包括以下步骤:The method mainly includes the following steps:

S101:根据用户发送的请求配置序号配置参数,所述请求用于请求获取序号,该序号配置参数表示满足用户需求的序号条件。S101: Configure a serial number configuration parameter according to a request sent by a user, where the request is used to request to obtain a serial number, and the serial number configuration parameter indicates a serial number condition that meets the user's requirement.

在本申请实施例所提供的序号分配装置中,可以根据用户发送的请求配置序号配置参数,该请求中可以包括用户所需序号的规则条件,例如序号名称、长度、类型等。因此,序号分配装置中所设置的序号配置参数可以包括:序号名称、序号长度、序号规则等,其中,序号名称可以用来表示序号的用途或功能,序号规则可以包括序号类型、格式规范等。然后序号分配装置根据用户的请求对序号配置参数进行修改、增加、删除等,从而配置满足用户请求的序号配置参数。In the serial number allocation device provided in the embodiment of the present application, serial number configuration parameters can be configured according to a request sent by a user, and the request can include rule conditions for serial numbers required by the user, such as serial number name, length, type, and the like. Therefore, the serial number configuration parameters set in the serial number allocation device may include: serial number name, serial number length, serial number rule, etc., wherein, the serial number name can be used to indicate the purpose or function of the serial number, and the serial number rule can include serial number type, format specification, etc. Then, the serial number allocation device modifies, adds, deletes, etc., the serial number configuration parameters according to the user's request, so as to configure the serial number configuration parameters that meet the user's request.

在一种可能的实现方式中,用户与序号分配装置可以通过网关实现通信,参见图2,为用户和序号分配装置基于网关通信的原理图。用户将获取序号的请求发送给网关,网关将用户的请求发送给序号分配装置,序号分配装置响应用户获取序号的请求,生成序号并通过网关返回给用户。例如,当用户需要获取序号时,可以发送RESTFUL请求给网关,其中,RESTFUL是一种网络应用程序的开发方式,使客户端可以使用GET、POST、PUT、DELETE 4个表示操作方式的动词对指定的服务端资源进行增删改查操作,GET用来获取资源,POST用来新建资源,PUT用来更新资源,DELETE用来删除资源。即网关可以根据用户的RESTFUL请求判断是新增、修改、删除序号配置参数,或者请求返回序号。然后根据请求的统一资源定位符(Uniform Resource Location,URL)对请求路由,其中,URL表示每个信息资源在网上唯一的标识,URL由三部分组成:资源类型、存放资源的主机域名、资源文件名,也可以认为由四部分组成:协议、主机、端口、路径。In a possible implementation manner, the user and the serial number distribution device can communicate through a gateway. Referring to FIG. 2 , it is a schematic diagram of the gateway-based communication between the user and the serial number distribution device. The user sends the request to obtain the serial number to the gateway, the gateway sends the user's request to the serial number distribution device, and the serial number distribution device responds to the user's request to obtain the serial number, generates the serial number and returns it to the user through the gateway. For example, when the user needs to obtain the serial number, he can send a RESTFUL request to the gateway, where RESTFUL is a development method of a network application, so that the client can use GET, POST, PUT, DELETE 4 verbs indicating the operation mode to specify GET is used to obtain resources, POST is used to create new resources, PUT is used to update resources, and DELETE is used to delete resources. That is, the gateway can determine whether to add, modify, or delete the serial number configuration parameter according to the RESTFUL request of the user, or request to return the serial number. Then the request is routed according to the requested Uniform Resource Location (URL), where the URL represents the unique identifier of each information resource on the Internet, and the URL consists of three parts: the resource type, the host domain name where the resource is stored, and the resource file. The name can also be considered to be composed of four parts: protocol, host, port, and path.

S102:基于序号配置参数生成序号。S102: Generate a serial number based on the serial number configuration parameter.

当序号分配装置根据用户的请求配置完成序号配置参数之后,可以根据序号配置参数生成序号。其中,所生成的序号可以为单一的序号或者一段区间的号段,即当用户请求获取单个序号时,可以生成单一序号返回给用户;当用户请求获取一段区间的号段时,可以生成号段返回给用户。After the serial number allocation device completes the configuration of the serial number configuration parameters according to the user's request, the serial number can be generated according to the serial number configuration parameters. The generated serial number can be a single serial number or a number segment of an interval, that is, when the user requests to obtain a single serial number, a single serial number can be generated and returned to the user; when the user requests to obtain a number segment of an interval, a number segment can be generated returned to the user.

在一种可能的实现方式中,序号分配装置可以根据配置的序号长度,利用数据库生成序列的功能,生成自增性的原始序号。当序号配置参数中包括不同的序号规则时,序号分配装置根据序号规则对原始序号进行转换,获得满足序号规则的序号。下面将结合不同的序号规则介绍序号分配装置生成序号的原理。In a possible implementation manner, the serial number allocation device may generate a self-incrementing original serial number by using the function of generating a sequence from a database according to the configured serial number length. When the serial number configuration parameter includes different serial number rules, the serial number allocation device converts the original serial number according to the serial number rule to obtain a serial number that satisfies the serial number rule. The principle of generating a serial number by the serial number assigning device will be described below in combination with different serial number rules.

在一种可能的实现方式中,序号规则可以包括序号类型,其中,该序号类型可以为数字型序号、字母型序号或者混合型序号,即由数字和字母共同组成的序号,其中,字母还可以区分大写字母和小写字母。当用户的请求中所需序号的类型为数字型序号时,序号配置模块利用数据库所生成的序号即为数字型序号,可以直接输出。当用户所需序号的类型为字母型序号时,需要将生成的原始数字型序号,按照进制规则转换为字母型序号。当将数字型序号转换为字母型序号时,一种可能的实现方式,可以按照ASCII码标准表将数字型序号转换为字母型序号,例如数字型序号65可以转换为字母型序号A,数字型序号66可以转换为字母型序号B,数字型序号97可以转换为字母型序号a。如果序号配置模块生成的数字型序号相比于ASCII码中字母所对应的数字来说过大或过小,可以将原始数字型序号统一减去或加上相同的数字后,再转换为相应的字母即可。当用户所需序号的类型为混合型序号时,可以将原始数字型序号按照进制规则转换为字母型序号后,将数字型序号和字母型序号组成混合型序号。In a possible implementation manner, the sequence number rule may include a sequence number type, where the sequence number type may be a numeric sequence number, an alphabetic sequence number, or a mixed sequence number, that is, a sequence number composed of numbers and letters, wherein the letters may also be Distinguish uppercase and lowercase letters. When the type of the serial number required in the user's request is a digital serial number, the serial number generated by the serial number configuration module using the database is the digital serial number, which can be output directly. When the type of the serial number required by the user is an alphabetic serial number, the generated original numerical serial number needs to be converted into an alphabetic serial number according to the hexadecimal rules. When converting a numeric serial number to an alphabetic serial number, a possible implementation method can convert the numeric serial number to an alphabetic serial number according to the ASCII code standard table. The serial number 66 can be converted into an alphabetic serial number B, and the numerical serial number 97 can be converted into an alphabetic serial number a. If the digital serial number generated by the serial number configuration module is too large or too small compared to the number corresponding to the letters in the ASCII code, the original digital serial number can be uniformly subtracted or added with the same number, and then converted to the corresponding number. Letters will do. When the type of serial number required by the user is a mixed serial number, the original numerical serial number can be converted into an alphabetic serial number according to the hexadecimal rules, and then the digital serial number and the alphabetic serial number can be combined into a mixed serial number.

需要说明的是,上述实施例中所提供的进制规则仅为示例性的说明,并非仅限于上述实现方式,其他可实现的形式也在本申请的保护范围。It should be noted that the hexadecimal rules provided in the above-mentioned embodiments are only exemplary descriptions, and are not limited to the above-mentioned implementation manners, and other achievable forms are also within the protection scope of the present application.

在另一种可能的实现方式中,序号规则可以包括格式规范,该格式规范表示用户所需的序号的格式。当序号分配装置生成第一序号后,可以根据格式规范对第一序号进行格式填充,生成满足用户格式规范的第二序号。其中,该第一序号可以为数据库生成的原始数字型序号,也可以为数字型序号根据进制规则转换成的字母型序号。In another possible implementation manner, the sequence number rule may include a format specification, where the format specification represents the format of the sequence number required by the user. After the serial number allocating apparatus generates the first serial number, the first serial number may be format-filled according to the format specification to generate a second serial number that satisfies the user's format specification. The first serial number may be an original numerical serial number generated by the database, or may be an alphabetical serial number converted from a numerical serial number according to a hexadecimal rule.

在一种可能的实现方式中,该格式规范中规定了序号的位数。当序号分配装置所生成的第一序号的位数小于格式规范所规定的位数时,序号分配装置可以根据补位规范填充第一序号未满的位数,例如,可以用前导零补充或者末位补零的方式,还可以根据用户的需求在第一序号的前导位或者末位补充固定值。该固定值的类型可以包括:日期、时间戳或者固定标识等,其中,时间戳是可以表示一份数据在一个特定时间点已经存在的完整的可验证的数据,固定标识可以为占位符。In a possible implementation, the format specification specifies the number of digits of the sequence number. When the number of digits of the first serial number generated by the serial number allocation device is less than the number of digits specified by the format specification, the serial number allocation device may fill the unfilled digits of the first serial number according to the complementation specification, for example, it may be supplemented with leading zeros or a trailing end. In the method of zero-filling, a fixed value can also be added to the leading or last digit of the first serial number according to the user's needs. The type of the fixed value may include: date, timestamp, or fixed identifier, etc., where the timestamp is complete verifiable data that can indicate that a piece of data already exists at a specific time point, and the fixed identifier can be a placeholder.

S103:将所生成的序号分配给用户。S103: Allocate the generated serial number to the user.

当序号分配装置根据序号配置参数生成满足用户需求的序号后,可以将序号分配给用户。其中,用户获取序号的请求可以为获取单个序号,也可以为获取一定长度的号段,以便用户可以将号段缓存下来使用,减少获取序号的请求次数。After the serial number allocation device generates a serial number that meets the user's needs according to the serial number configuration parameters, the serial number can be allocated to the user. The user's request for obtaining the serial number may be to obtain a single serial number, or may be to obtain a number segment of a certain length, so that the user can cache the number segment for use, thereby reducing the number of requests for obtaining the serial number.

为了减少用户等待序号分配装置生成序号的耗时,本申请实施例还提供一种可能的实现方式,序号分配装置可以向用户提供一种缓存配置组件,在缓存配置组件中可以根据用户需求设置监控剩余序号的阈值。当用户使用该缓存配置组件后,可以将获得的号段资源缓存在缓存配置组件中,方便调用。缓存配置组件可以监控用户所使用的序号,当用户所缓存的号段资源中,剩余的序号达到缓存配置组件所设置的阈值时,缓存配置组件可以自动向序号分配装置发送获取序号的请求,并且将重新获取的序号进行缓存,以便用户使用。其中,该缓存配置组件可以利用redis来缓存序号,redis是一种数据结构存储系统,它可以用作数据库、缓存和消息中间件。基于redis的单线程特性,可以保证缓存的序号的有序性。In order to reduce the time-consuming time for the user to wait for the serial number allocation device to generate the serial number, the embodiment of the present application also provides a possible implementation manner. The serial number allocation device can provide the user with a cache configuration component, in which the monitoring and control can be set according to the user's needs. Threshold for remaining sequence numbers. After the user uses the cache configuration component, the obtained number segment resources can be cached in the cache configuration component for easy invocation. The cache configuration component can monitor the serial numbers used by the user. When the remaining serial numbers in the number segment resources cached by the user reach the threshold set by the cache configuration component, the cache configuration component can automatically send a request to the serial number allocation device to obtain the serial number, and The re-acquired serial number is cached for the user to use. Among them, the cache configuration component can use redis to cache the serial number, and redis is a data structure storage system, which can be used as database, cache and message middleware. Based on the single-threaded feature of redis, the order of the cached serial numbers can be guaranteed.

通过该缓存配置组件,用户可以在序号资源耗尽之前,重新获取新的序号,减少了等待生成序号的时间,提高获取序号的效率。Through the cache configuration component, the user can re-obtain a new serial number before the serial number resource is exhausted, which reduces the time for waiting for the serial number to be generated, and improves the efficiency of obtaining the serial number.

在实际应用中,用户所获取的序号可以根据某些条件进行重置,例如,用户所需要的序号仅为1-30,则序号分配装置在生成序号时,由于所生成的序号满足自增性,所以当生成的序号达到30时,则需要重置生成的序号,即从初始值开始。基于此,序号配置参数中还可以包括序号重置条件,序号分配装置可以根据用户的需求设置序号重置条件。其中,该序号重置条件可以包括时间周期或序号剩余资源。具体地,序号分配装置可以按照每日/月/季/年的频率重置序号,或者按照固定的周期重置序号,另外还可以根据号段资源耗尽的条件重置序号,即当用户所获取的号段用完之后,序号分配装置重置序号,从初始值开始为用户重新生成序号,并不是在之前所生成的号段的基础上继续生成自增性序号。例如,用户所获取的号段为1-100,当用户的序号都使用完之后,序号分配装置可以根据用户的请求重置生成的序号,即重新从1开始生成序号,而不是从101开始生成序号。In practical applications, the serial number obtained by the user can be reset according to certain conditions. For example, if the serial number required by the user is only 1-30, when the serial number allocation device generates the serial number, the generated serial number satisfies the self-increasing property. , so when the generated serial number reaches 30, you need to reset the generated serial number, that is, start from the initial value. Based on this, the serial number configuration parameter may further include a serial number reset condition, and the serial number allocation device may set the serial number reset condition according to the user's needs. Wherein, the sequence number reset condition may include the time period or the remaining resources of the sequence number. Specifically, the serial number allocation device can reset the serial number according to the frequency of daily/month/quarter/year, or reset the serial number according to a fixed period, and can also reset the serial number according to the condition that the number segment resources are exhausted, that is, when the user After the acquired number segment is used up, the sequence number allocation device resets the sequence number, and regenerates the sequence number for the user from the initial value, instead of continuing to generate the self-incrementing sequence number on the basis of the previously generated number segment. For example, the number segment obtained by the user is 1-100. After the user's serial numbers are all used up, the serial number assigning device can reset the generated serial number according to the user's request, that is, generate the serial number from 1 again instead of starting from 101. serial number.

通过本申请实施例所提供的序号分配方法,可以根据用户的实际需求,配置生成序号的规则或重置序号的条件,然后将满足用户需求的序号分配给用户使用,可以提高用户获取序号的效率。With the serial number allocation method provided in the embodiment of the present application, the rules for generating serial numbers or the conditions for resetting serial numbers can be configured according to the actual needs of users, and then the serial numbers that meet the needs of users are allocated to users, which can improve the efficiency of obtaining serial numbers for users .

基于上述方法实施例,本申请实施例还提供一种序号分配装置。下面将结合附图介绍该序号分配装置的工作原理。Based on the foregoing method embodiments, the embodiments of the present application further provide a serial number allocation apparatus. The working principle of the serial number assignment device will be described below with reference to the accompanying drawings.

参见图3,图3为本申请实施例提供的一种序号分配装置的示意图。Referring to FIG. 3 , FIG. 3 is a schematic diagram of a serial number allocation apparatus provided by an embodiment of the present application.

该装置300包括:配置模块301、生成模块302以及分配模块303;The apparatus 300 includes: a configuration module 301, a generation module 302 and an allocation module 303;

所述配置模块301,用于根据用户发送的请求配置序号配置参数,所述序号配置参数表示满足所述用户的需求的序号条件;The configuration module 301 is configured to configure a sequence number configuration parameter according to a request sent by a user, where the sequence number configuration parameter represents a sequence number condition that meets the needs of the user;

所述生成模块302,用于基于所述序号配置参数生成序号,所述序号包括单一序号或号段;The generating module 302 is configured to generate a serial number based on the serial number configuration parameter, where the serial number includes a single serial number or a number segment;

所述分配模块303,用于将所述单一序号或号段分配给所述用户。The assigning module 303 is configured to assign the single serial number or number segment to the user.

在一种可能的实现方式中,所述装置300还包括:序号重置模块;所述序号重置模块,用于根据所述序号配置参数中的序号重置条件,重置生成的序号。In a possible implementation manner, the apparatus 300 further includes: a serial number reset module; the serial number reset module is configured to reset the generated serial number according to the serial number reset condition in the serial number configuration parameter.

在一种可能的实现方式中,所述装置300还包括:缓存配置组件;所述缓存配置组件应用于用户端,用于响应于所述用户的剩余序号达到阈值,发起获取序号的请求。In a possible implementation manner, the apparatus 300 further includes: a cache configuration component; the cache configuration component is applied to the user end, and is configured to initiate a request for obtaining a sequence number in response to the user's remaining sequence number reaching a threshold.

在一种可能的实现方式中,所述序号配置参数包括:序号规则;当所述序号规则包括序号类型时,所述序号类型包括数字型序号、字母型序号或者混合型序号,所述生成模块302,具体用于当所述序号类型为字母型序号时,基于所述序号类型生成数字型序号;将所述数字型序号根据进制规则转换为字母型序号;当所述序号类型为混合型序号时,基于所述序号类型生成数字型序号;将所述数字型序号根据所述进制规则转换为字母型序号;将所述数字型序号和所述字母型序号组成混合型序号。In a possible implementation manner, the serial number configuration parameter includes: a serial number rule; when the serial number rule includes a serial number type, the serial number type includes a numerical serial number, an alphabetic serial number or a mixed serial number, and the generating module 302, which is specifically used to generate a digital serial number based on the serial number type when the serial number type is an alphabetic serial number; convert the digital serial number into an alphabetic serial number according to the hexadecimal rule; when the serial number type is a mixed type When generating a serial number, a digital serial number is generated based on the serial number type; the digital serial number is converted into an alphabetic serial number according to the hexadecimal rule; and the numerical serial number and the alphabetic serial number form a mixed serial number.

在一种可能的实现方式中,所述序号配置参数还包括:序号重置条件,所述序号重置条件包括时间周期或号段资源耗尽条件;在将所述单一序号或号段分配给所述用户之后,所述装置300,还用于根据所述时间周期或所述号段资源耗尽条件重置生成的序号。In a possible implementation manner, the sequence number configuration parameter further includes: a sequence number reset condition, where the sequence number reset condition includes a time period or a number segment resource exhaustion condition; when the single sequence number or number segment is allocated to After the user, the apparatus 300 is further configured to reset the generated sequence number according to the time period or the resource exhaustion condition of the number segment.

在一种可能的实现方式中,当所述序号规则包括格式规范时,所述生成模块302,具体用于基于所述序号配置参数生成第一序号;根据所述格式规范对所述第一序号进行格式填充,生成第二序号,所述第二序号为满足所述格式规范的序号。In a possible implementation manner, when the sequence number rule includes a format specification, the generating module 302 is specifically configured to generate a first sequence number based on the sequence number configuration parameter; Format filling is performed to generate a second sequence number, where the second sequence number is a sequence number that satisfies the format specification.

在一种可能的实现方式中,所述装置300,还用于响应于所述用户的剩余序号达到阈值,继续分配序号给所述用户。In a possible implementation manner, the apparatus 300 is further configured to continue allocating sequence numbers to the users in response to the remaining sequence numbers of the users reaching a threshold.

本申请实施例提供的序号分配装置所具有的有益效果参见上述方法实施例,在此不再赘述。The beneficial effects of the serial number allocation device provided by the embodiments of the present application can be referred to the above method embodiments, and details are not described herein again.

基于上述方法实施例和装置实施例,本申请实施例还提供一种序号分配设备。参见图4,图4为本申请实施例提供的一种序号分配设备的示意图。Based on the foregoing method embodiments and apparatus embodiments, the embodiments of the present application further provide a serial number allocation device. Referring to FIG. 4 , FIG. 4 is a schematic diagram of a serial number allocation device provided by an embodiment of the present application.

该设备400包括:存储器401以及处理器402;The device 400 includes: a memory 401 and a processor 402;

所述存储器401用于存储相关的程序代码;The memory 401 is used to store related program codes;

所述处理器402用于调用所述程序代码,执行上述方法实施例所述的序号分配方法。The processor 402 is configured to call the program code to execute the serial number allocation method described in the above method embodiments.

此外,本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质用于存储计算机程序,所述计算机程序用于执行上述方法实施例所述的序号分配方法。In addition, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, and the computer program is used to execute the serial number allocation method described in the foregoing method embodiment.

需要说明的是,本发明提供的序号分配方法、装置、设备及存储介质可用于人工智能领域。上述仅为示例,并不对本发明提供的发明名称的应用领域进行限定。It should be noted that the serial number allocation method, device, device and storage medium provided by the present invention can be used in the field of artificial intelligence. The above are only examples, and do not limit the application fields of the invention names provided by the present invention.

需要说明的是,本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。尤其,对于系统或装置实施例而言,由于其基本类似于方法实施例,所以描述得比较简单,相关部分参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中作为分离部件说明的单元或模块可以是或者也可以不是物理上分开的,作为单元或模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络单元上,可以根据实际需要选择其中的部分或者全部单元或模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments may be referred to each other. In particular, for the system or device embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant parts. The apparatus embodiments described above are only illustrative, wherein the units or modules described as separate components may or may not be physically separated, and the components shown as units or modules may or may not be physical modules, that is, It may be located in one place, or may be distributed to multiple network units, and some or all of the units or modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.

应当理解,在本申请中,“至少一个(项)”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,用于描述关联对象的关联关系,表示可以存在三种关系,例如,“A和/或B”可以表示:只存在A,只存在B以及同时存在A和B三种情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b或c中的至少一项(个),可以表示:a,b,c,“a和b”,“a和c”,“b和c”,或“a和b和c”,其中a,b,c可以是单个,也可以是多个。It should be understood that, in this application, "at least one (item)" refers to one or more, and "a plurality" refers to two or more. "And/or" is used to describe the relationship between related objects, indicating that there can be three kinds of relationships, for example, "A and/or B" can mean: only A, only B, and both A and B exist , where A and B can be singular or plural. The character "/" generally indicates that the associated objects are an "or" relationship. "At least one item(s) below" or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (a) of a, b or c, can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c" ", where a, b, c can be single or multiple.

还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that in this document, relational terms such as first and second are used only to distinguish one entity or operation from another, and do not necessarily require or imply those entities or operations There is no such actual relationship or order between them. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of a method or algorithm described in conjunction with the embodiments disclosed herein may be directly implemented in hardware, a software module executed by a processor, or a combination of the two. A software module can be placed in random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other in the technical field. in any other known form of storage medium.

对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments enables any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, this application is not intended to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1.一种序号分配方法,其特征在于,所述方法包括:1. a serial number allocation method, is characterized in that, described method comprises: 根据用户发送的请求配置序号配置参数,所述请求用于请求获取序号,所述序号配置参数表示满足所述用户的需求的序号条件;Configure the serial number configuration parameter according to the request sent by the user, the request is used to request to obtain the serial number, and the serial number configuration parameter represents the serial number condition that meets the needs of the user; 基于所述序号配置参数生成序号,所述序号包括单一序号或号段;generating a serial number based on the serial number configuration parameter, the serial number comprising a single serial number or a number segment; 将所述单一序号或号段分配给所述用户。The single sequence number or number segment is assigned to the user. 2.根据权利要求1所述的方法,其特征在于,所述序号配置参数包括:序号规则;2. The method according to claim 1, wherein the sequence number configuration parameter comprises: sequence number rule; 当所述序号规则包括序号类型时,所述序号类型包括数字型序号、字母型序号或者混合型序号,所述基于所述序号配置参数生成序号包括:When the sequence number rule includes a sequence number type, the sequence number type includes a numerical sequence number, an alphabetic sequence number or a mixed type sequence number, and the generation of the sequence number based on the sequence number configuration parameter includes: 当所述序号类型为字母型序号时,基于所述序号类型生成数字型序号;When the serial number type is an alphabetic serial number, a numerical serial number is generated based on the serial number type; 将所述数字型序号根据进制规则转换为字母型序号;Converting the numerical serial number into an alphabetical serial number according to the hexadecimal rule; 当所述序号类型为混合型序号时,基于所述序号类型生成数字型序号;When the serial number type is a mixed serial number, a digital serial number is generated based on the serial number type; 将所述数字型序号根据所述进制规则转换为字母型序号;Converting the numerical serial number into an alphabetic serial number according to the hexadecimal rule; 将所述数字型序号和所述字母型序号组成混合型序号。The numerical serial number and the alphabetic serial number form a mixed serial number. 3.根据权利要求1所述的方法,其特征在于,所述序号配置参数还包括:序号重置条件,所述序号重置条件包括时间周期或号段资源耗尽条件;3. The method according to claim 1, wherein the sequence number configuration parameter further comprises: a sequence number reset condition, wherein the sequence number reset condition comprises a time period or a number segment resource exhaustion condition; 在将所述单一序号或号段分配给所述用户之后,所述方法还包括:After allocating the single sequence number or number segment to the user, the method further includes: 根据所述时间周期或所述号段资源耗尽条件重置生成的序号。The generated sequence number is reset according to the time period or the number segment resource exhaustion condition. 4.根据权利要求2所述的方法,其特征在于,当所述序号规则包括格式规范时,所述基于所述序号配置参数生成序号包括:4. The method according to claim 2, wherein when the sequence number rule includes a format specification, the generating a sequence number based on the sequence number configuration parameter comprises: 基于所述序号配置参数生成第一序号;generating a first sequence number based on the sequence number configuration parameter; 根据所述格式规范对所述第一序号进行格式填充,生成第二序号,所述第二序号为满足所述格式规范的序号。The first sequence number is format-filled according to the format specification to generate a second sequence number, where the second sequence number is a sequence number that satisfies the format specification. 5.根据权利要求1至4任一项所述的方法,其特征在于,所述方法还包括:5. The method according to any one of claims 1 to 4, wherein the method further comprises: 响应于所述用户的剩余序号达到阈值,继续分配序号给所述用户。Responsive to the user's remaining sequence numbers reaching the threshold, the assignment of sequence numbers to the user continues. 6.一种序号分配装置,其特征在于,所述装置包括:配置模块、生成模块以及分配模块;6. A serial number distribution device, characterized in that the device comprises: a configuration module, a generation module and a distribution module; 所述配置模块,用于根据用户发送的请求配置序号配置参数,所述请求用于请求获取序号,所述序号配置参数表示满足所述用户的需求的序号条件;The configuration module is configured to configure a serial number configuration parameter according to a request sent by a user, the request is used to request to obtain a serial number, and the serial number configuration parameter represents a serial number condition that meets the needs of the user; 所述生成模块,用于基于所述序号配置参数生成序号,所述序号包括单一序号或号段;The generating module is configured to generate a serial number based on the serial number configuration parameter, and the serial number includes a single serial number or a number segment; 所述分配模块,用于将所述单一序号或号段分配给所述用户。The assigning module is configured to assign the single serial number or number segment to the user. 7.根据权利要求6所述的装置,其特征在于,所述装置还包括:序号重置模块;7. The device according to claim 6, wherein the device further comprises: a serial number reset module; 所述序号重置模块,用于根据所述序号配置参数中的序号重置条件,重置生成的序号。The serial number reset module is configured to reset the generated serial number according to the serial number reset condition in the serial number configuration parameter. 8.根据权利要求6所述的装置,其特征在于,所述装置还包括:缓存配置组件,所述缓存配置组件应用于用户端;8 . The apparatus according to claim 6 , wherein the apparatus further comprises: a cache configuration component, the cache configuration component being applied to the client; 8 . 所述缓存配置组件,用于响应于所述用户的剩余序号达到阈值,发起获取序号的请求。The cache configuration component is configured to initiate a request for obtaining a sequence number in response to the user's remaining sequence number reaching a threshold. 9.一种序号分配设备,其特征在于,所述设备包括:存储器以及处理器;9. A serial number allocation device, characterized in that the device comprises: a memory and a processor; 所述存储器用于存储相关的程序代码;The memory is used for storing relevant program codes; 所述处理器用于调用所述程序代码,执行权利要求1至5任一项所述的序号分配方法。The processor is configured to call the program code to execute the serial number allocation method according to any one of claims 1 to 5. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质用于存储计算机程序,所述计算机程序用于执行权利要求1至5任一项所述的序号分配方法。10. A computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program is used to execute the serial number allocation method according to any one of claims 1 to 5.
CN202210493575.6A 2022-05-07 2022-05-07 A serial number allocation method, device, equipment and storage medium Pending CN114895953A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210493575.6A CN114895953A (en) 2022-05-07 2022-05-07 A serial number allocation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210493575.6A CN114895953A (en) 2022-05-07 2022-05-07 A serial number allocation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114895953A true CN114895953A (en) 2022-08-12

Family

ID=82722843

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210493575.6A Pending CN114895953A (en) 2022-05-07 2022-05-07 A serial number allocation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114895953A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119127349A (en) * 2024-09-09 2024-12-13 中电金信软件有限公司 Method and device for obtaining serial number

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019019384A1 (en) * 2017-07-27 2019-01-31 上海壹账通金融科技有限公司 Message push method, apparatus, computer device, and storage medium
CN110795604A (en) * 2019-10-29 2020-02-14 中国工商银行股份有限公司 Method, apparatus, computing device and medium for generating transaction serial number
CN113377427A (en) * 2021-06-30 2021-09-10 中国农业银行股份有限公司 Serial number generation method, device, equipment and storage medium
CN113408246A (en) * 2021-06-30 2021-09-17 商盟商务服务有限公司 Method, device and system for acquiring single number
CN114429319A (en) * 2020-10-29 2022-05-03 顺丰科技有限公司 Random verification code processing method and device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019019384A1 (en) * 2017-07-27 2019-01-31 上海壹账通金融科技有限公司 Message push method, apparatus, computer device, and storage medium
CN110795604A (en) * 2019-10-29 2020-02-14 中国工商银行股份有限公司 Method, apparatus, computing device and medium for generating transaction serial number
CN114429319A (en) * 2020-10-29 2022-05-03 顺丰科技有限公司 Random verification code processing method and device, computer equipment and storage medium
CN113377427A (en) * 2021-06-30 2021-09-10 中国农业银行股份有限公司 Serial number generation method, device, equipment and storage medium
CN113408246A (en) * 2021-06-30 2021-09-17 商盟商务服务有限公司 Method, device and system for acquiring single number

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119127349A (en) * 2024-09-09 2024-12-13 中电金信软件有限公司 Method and device for obtaining serial number
CN119127349B (en) * 2024-09-09 2026-01-23 中电金信软件有限公司 Sequence number acquisition method and device

Similar Documents

Publication Publication Date Title
CN111797091B (en) Method, device, electronic device and storage medium for querying data in database
CN103246659B (en) The method and apparatus of key assignments data query
CN104166628B (en) Method, device and system for managing memory
CN109032801A (en) A kind of request scheduling method, system and electronic equipment and storage medium
CN108243264A (en) Method and system for generating a serial number
CN104378452A (en) Method, device and system for domain name resolution
CN110413845A (en) Resource storage method and device based on internet of things operating system
CN116170403B (en) Method and device for decentralized domain name resolution based on Handle system
CN111541799A (en) Domain name resolution method, system, terminal and storage medium
CN115859261A (en) Password cloud service method, platform, equipment and storage medium
CN114895953A (en) A serial number allocation method, device, equipment and storage medium
CN112148925B (en) User identification association query method, device, equipment and readable storage medium
CN117407159A (en) Memory space management method and device, equipment and storage medium
CN104205730A (en) Network element data access method, device and network management system
CN107526530B (en) Data processing method and device
CN111970194A (en) Configuration and request processing method of API gateway
CN115801727B (en) Domain name resolution method, device, electronic device and storage medium
CN116069781A (en) Data management method, device and storage medium
CN116827940A (en) Data processing method, device, equipment and storage medium
JP2004363685A (en) Ubiquitous server system
CN104168290B (en) A kind of terminal registration method and registrar
CN109040311A (en) The push processing method and device of information on services
JP6076882B2 (en) Information processing system, management device, and key assignment program
CN110347751A (en) Manage the method and device of CDN system service attribute
JP5672893B2 (en) Thin client system, management server, client environment management method and program

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