DNA tag-based ai gateway account management method and system
Through the account management method based on DNA markers, the genetic hierarchical relationship between accounts is recorded, which solves the problems of unclear account relationships and difficult permission management in the AI gateway system, realizes accurate user management and data analysis, and is suitable for AI gateway scenarios with high security requirements.
Patent Information
- Application Number
- CN202511080300.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-04
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2045-08-04
AI Technical Summary
The existing AI gateway account system faces difficulties in managing multi-level relationships, user relationship analysis, product dissemination paths, and reward mechanisms. Especially in AI large-model services, account relationships are unclear and difficult to maintain, and there is a lack of dissemination path tracking and flexible reward mechanisms.
A DNA-based account management method is adopted. The DNA genetic hierarchical relationship between accounts is recorded through a character string in a specific format, and the DNA marker information of the user account is generated. The DNA marker information of the management account is used as a prefix to achieve permission inheritance and flexible management, supporting accurate data analysis and operation requests.
It achieves clear expression and flexible management of account relationships, improves system response efficiency, and reduces the complexity of permission verification. It is suitable for AI gateway scenarios with high security requirements, such as medical data sharing and financial model services.
Smart Images

Figure CN120582908B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet account management, and in particular to an AI gateway account management method and system based on DNA markers. Background Art
[0002] AI big model technology is experiencing rapid development and application. Large models are increasingly being leveraged in a growing number of application scenarios, significantly improving work efficiency. However, different AI big models currently excel in different functions and fields. Furthermore, using multiple AI big models is costly and requires constant switching. Consequently, some AI big model service providers have begun offering AI gateways to serve end users.
[0003] In internet products, account systems are a core infrastructure. Traditional account systems typically use simple independent identifiers or only record direct hierarchical relationships. As the application of AI big models is rapidly developing, if AI big model service providers provide AI gateway products that need to be rapidly disseminated or perform precise user relationship analysis, the following problems may arise: 1. It is difficult to clearly display the multi-level relationships between accounts; 2. When an intermediate account is deleted, its hierarchical relationships are difficult to maintain; 3. There is a lack of effective mechanisms to track the dissemination path of AI gateway products within the user community; 4. It is impossible to flexibly design reward mechanisms based on user relationship networks, resulting in weak user account management capabilities. Summary of the Invention
[0004] To solve the above problems, the purpose of the present invention is to provide an AI gateway account management method and system based on DNA markers, which records the DNA genetic hierarchical relationship between accounts through a character string in a specific format, thereby achieving clear expression of account relationships, flexible management and rapid product dissemination, thereby enabling accurate management and data analysis of users.
[0005] The technical solution provided by the present invention is: an AI gateway account management method based on DNA markers, comprising the following steps:
[0006] Receive a creation request for a management account, and obtain function attribute information, data permission information, account ID of the management account, and DNA flag information in the creation request;
[0007] Generate an account ID to create a user account, generate DNA marker information for the user account based on the account ID and DNA marker information of the management account, and configure the functional attribute information and data permission information of the user account based on the functional attribute information and data permission information in the creation request; wherein the DNA marker information of the management account is a prefix of the DNA marker information of the user account;
[0008] An operation request from the management account is received, target account information in the operation request is parsed, and the operation request is executed when it is determined that the management account has operation authority over the target account.
[0009] Preferably, receiving a creation request for a management account, and obtaining the functional attribute information, data permission information, the account ID of the management account, and DNA marker information in the creation request further includes:
[0010] Read the account level, role, model mapping, level mapping and gear information of the management account, copy the resources, IP whitelist, model whitelist and model restrictions of the management account through maps.Clone, and copy the allowed level of the management account through append;
[0011] The target character string value of the management account is obtained to obtain DNA mark information and the account ID of the management account is obtained.
[0012] Preferably, generating an account ID to create a user account, generating DNA marker information of the user account based on the account ID and DNA marker information of the management account, and configuring the functional attribute information and data permission information of the user account based on the functional attribute information and data permission information in the creation request further includes:
[0013] Generate the user account's DNA signature information based on the following rules: User account's DNA signature information = Management account's DNA signature information + Management account's account ID + ".";
[0014] Configure the user account: Inherit the account level and role in the creation request to ensure consistency of the permission hierarchy. Inherit the model mapping, level mapping, and gear information in the creation request to maintain unified business logic. Use maps.Clone to copy the resources, IP whitelist, model whitelist, and model restrictions in the creation request. Use append to copy the allowed level of the management account to avoid sharing the underlying array to achieve independence of sub-account permissions.
[0015] Decoupling the functional attributes and data permission configuration of the user account from the management account or the superior management account to support independent adjustment of permissions to meet flexible business needs;
[0016] The VirtualLevel configured for the user account is the same as the Level by default. The VirtualLevel is configured to allow individual adjustment to facilitate cross-level account management.
[0017] Preferably, receiving the operation request from the management account, parsing the target account information in the operation request, and executing the operation request when it is determined that the management account has the operation authority for the target account further includes:
[0018] The DNA identification information of the management account is the DNA identification information of the user account + the account ID of the management account + ".", then the management account and the user account are in a direct management relationship, and the management account has operation authority over the user account;
[0019] If the DNA flag information of the management account is greater than the DNA flag information of the user account + the account ID of the management account + ".", then the management account and the user account are in an indirect management relationship, and the management account has operation authority over the user account;
[0020] Execute the operation request.
[0021] Preferably, the method further comprises:
[0022] Receive access requests sent by management accounts or user accounts, parse the user modelMapper value in the access request to route to the corresponding AI big model API interface. If the user modelMapper value in the access request is empty, route to the AI big model API interface based on the multi-dimensional access rules preset in the AI gateway.
[0023] Preferably, the method further comprises:
[0024] An account deletion request for a target account is received from a management account or a superior management account, and upon verifying that the management account has operation authority over the target account, the account information of the target account is deleted from the database.
[0025] Preferably, the method further comprises:
[0026] Verify that the management account has operation authority over the target account;
[0027] Receive a credit limit management request from a management account or a superior management account for a target account, deduct the parent_balance from the management account or superior management account, and correspondingly increase the parent_balance balance of the target account, where the increase in the parent_balance of the target account is less than the original parent_balance of the management account or superior management account, and record audit information of the credit limit management operation;
[0028] Receive an authorization operation request from a management account or a superior management account for a target account, and modify a corresponding attribute value of the target account based on the authorization operation request.
[0029] Preferably, the method further comprises:
[0030] Obtain the account ID and DNA mark information of all management accounts or user accounts in the AI gateway;
[0031] Perform DNA genetic path analysis based on the account ID and DNA marker information of all management accounts or user accounts to obtain the user group transmission path; the DNA marker information of each account = the DNA marker information of its management account + the account ID of its management account + ".";
[0032] A reward mechanism is configured based on the DNA genetic pathway analysis results.
[0033] Based on the same concept, the present invention also provides an AI gateway account management system based on DNA markers, including:
[0034] A request receiving module, configured to receive a request to create a management account, and obtain the function attribute information, data permission information, account ID of the management account, and DNA flag information in the creation request;
[0035] An account generation module, configured to generate an account ID to create a user account, generate DNA identifier information for the user account based on the account ID and DNA identifier information of the management account, and configure the functional attribute information and data permission information of the user account based on the functional attribute information and data permission information in the creation request; wherein the DNA identifier information of the management account is a prefix of the DNA identifier information of the user account;
[0036] The management execution module is configured to receive an operation request from the management account, parse target account information in the operation request, and execute the operation request when it is determined that the management account has operation authority over the target account.
[0037] Based on the same concept, the present invention further provides an electronic device, comprising:
[0038] a memory for storing a processing program;
[0039] A processor, wherein when executing the processing program, the processor implements any one of the above-mentioned AI gateway account management methods based on DNA markers.
[0040] Based on the same concept, the present invention also provides a readable storage medium, on which a processing program is stored. When the processing program is executed by a processor, any one of the above-mentioned AI gateway account management methods based on DNA markers is implemented.
[0041] Due to the adoption of the above technical solution, the present invention has the following advantages and positive effects compared with the prior art:
[0042] The technical solution of this embodiment uses the DNA marker information of the management account as a prefix to the DNA marker information of the user account to record the DNA genetic hierarchical relationship between accounts, achieving clear expression of account relationships, flexible management, and rapid product dissemination, thereby further enabling precise user management and data analysis. The DNA marker information of the management account serves as a prefix to the DNA marker information of the user account, naturally forming a permission inheritance relationship. Furthermore, by independently configuring user account permissions, flexible permission allocation is supported. Before executing an operation request, the management account's jurisdiction is quickly determined by parsing the target account's DNA marker prefix. This embodiment, based on a hierarchical matching mechanism based on DNA marker prefixes, significantly reduces the complexity of permission verification and improves system response efficiency compared to traditional role / attribute tag matching. Combining biometric encoding with permission management, it not only strengthens identity authentication by leveraging the uniqueness of DNA, but also enables structured permission management through marker prefixes. This solves the problems of identity isolation, coarse-grained permissions, and difficult auditing in traditional account systems, making it suitable for AI gateway scenarios with high security requirements (such as medical data sharing and financial model services). BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The specific embodiments of the present invention are further described in detail below with reference to the accompanying drawings, wherein:
[0044] Figure 1 This is a flow chart of the AI gateway account management method based on DNA markers of the present invention;
[0045] Figure 2 This is a schematic diagram of the composition of the AI gateway system based on DNA markers of the present invention. DETAILED DESCRIPTION
[0046] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments. The advantages and features of the present invention will become more apparent from the following description and claims. It should be noted that the drawings are greatly simplified and not to exact ratios, and are intended solely to facilitate and clearly illustrate the embodiments of the present invention.
[0047] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the various components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0048] First embodiment
[0049] like Figure 1 As shown, this embodiment provides an AI gateway account management method based on DNA markers, including the following steps:
[0050] Receive a creation request for a management account, and obtain function attribute information, data permission information, account ID of the management account, and DNA flag information in the creation request;
[0051] Generate an account ID to create a user account, generate DNA marker information for the user account based on the account ID and DNA marker information of the management account, and configure the functional attribute information and data permission information of the user account based on the functional attribute information and data permission information in the creation request; wherein the DNA marker information of the management account is a prefix of the DNA marker information of the user account;
[0052] An operation request from the management account is received, target account information in the operation request is parsed, and the operation request is executed when it is determined that the management account has operation authority over the target account.
[0053] The technical solution of this embodiment records the DNA genetic hierarchical relationship between accounts by prefixing the DNA marker information of the management account with the DNA marker information of the user account. This enables clear expression of account relationships, flexible management, and rapid product dissemination, thereby further enabling precise user management and data analysis. The management account's DNA marker information, prefixed with the user account's DNA marker information, naturally forms a permission inheritance relationship. Furthermore, by independently configuring user account permissions, flexible permission allocation is supported. For example, the management account can grant basic permissions to user accounts in batches while customizing differentiated permissions for specific user accounts to meet the needs of complex organizational structures. It should be noted that, to facilitate the description of the relationship between parent accounts, child accounts, and ancestor accounts, in this embodiment, the account with account creation permission is referred to as the management account, and the account being created / operated is referred to as the user account. Once a user account is created, further user accounts can be created. At this point, the original user is referred to as the management account, and the original management account is referred to as the superior management account. For example, if account A creates account B, account A becomes the management account, and account B becomes the user account. When account B creates account C, account B becomes the management account, account C becomes the user account, and account A becomes the superior management account. Before executing an operation request, the jurisdiction of the management account is quickly determined by parsing the DNA signature prefix of the target account. This embodiment is based on a hierarchical matching mechanism based on DNA signature prefixes. Compared with traditional role / attribute tag matching, it greatly reduces the complexity of permission verification and improves system response efficiency. Combining biometric encoding with permission management not only utilizes the uniqueness of DNA to strengthen identity authentication, but also implements structured management of permissions through signature prefixes. This solves the problems of identity isolation, coarse-grained permissions, and audit difficulties in traditional account systems. It is suitable for AI gateway scenarios with high security requirements (such as medical data sharing, financial model services, etc.).
[0054] Preferably, receiving a creation request for a management account, and obtaining the functional attribute information, data permission information, the account ID of the management account, and DNA marker information in the creation request further includes:
[0055] Read the account level, role, model mapping, level mapping and gear information of the management account, copy the resources, IP whitelist, model whitelist and model restrictions of the management account through maps.Clone, and copy the allowed level of the management account through append;
[0056] The target character string value of the management account is obtained to obtain DNA mark information and the account ID of the management account is obtained.
[0057] The technical solution of the embodiment reads the core configurations of the account level, role, model mapping, etc. of the management account, and uses maps.Clone to deeply copy the data of resources, IP whitelist, model whitelist, etc. The user account can directly inherit the complete permission system of the management account, reducing repeated configuration. maps.Clone is used to deeply copy the key configurations of resources, whitelist, etc. to ensure that the configuration files of the user account and the management account are independent of each other. Modifying the user account configuration will not affect the management account, avoiding the risk of permission coupling. The model restriction and gear information are copied to clearly define the model usage range and resource quota of the user account, preventing resource abuse from causing system load abnormalities. The DNA tag inherits the prefix characteristics of the management account, combined with model mapping, level mapping, etc. to form a hierarchical identity chain, facilitating the tracking of account permission sources and operation responsibilities. By inheriting the model mapping (such as model ID and permission correspondence) and level mapping (such as role and operation level correspondence) of the management account, the user account can accurately match the models and operation permissions required by the business, achieving fine-grained control. Copying the gear information (such as resource usage priority or quota restriction), the user account can dynamically adjust the resource allocation strategy according to actual needs, balancing flexibility and resource utilization.
[0058] Preferably, the account ID is generated to create a user account, the DNA tag information of the user account is generated based on the account ID of the management account and the DNA tag information of the management account, and the function attribute information and data permission information of the user account are configured based on the function attribute information and data permission information in the creation request, further comprising:
[0059] The DNA tag information of the user account is generated based on the following rules: DNA tag information of the user account = DNA tag information of the management account + account ID of the management account + ".";
[0060] The user account is configured: inheriting the account level and role in the creation request to ensure the consistency of the permission hierarchy, inheriting the model mapping, level mapping, and gear information in the creation request to maintain the uniformity of business logic, copying the resources, IP whitelist, model whitelist, and model restriction in the creation request through maps.Clone, and using append to copy the allowed level of the management account to avoid sharing the underlying array to achieve the independence of the sub-account permissions;
[0061] The function attribute and data permission configuration of the user account are decoupled from the management account or the superior management account to support independent adjustment of permissions to adapt to flexible business needs;
[0062] The VirtualLevel of the user account is configured to be the same as the Level, and the VirtualLevel is configured to allow separate adjustment to facilitate cross-level account management.
[0063] DNA genetic hierarchy between account records of a specific format string
[0064] The DNA mark of the user account in this embodiment is composed of the DNA mark of the management account, the account ID, and the separator (.). It forms a tree-like hierarchical structure (such as ParentDNA.ParentID.), which not only preserves the blood relationship but also ensures global uniqueness, facilitating the tracing of permissions and the positioning of responsibilities. The generation rule of the DNA mark combines the account ID to avoid collision risks caused by random generation, and strengthens the credibility of the identifier through the inheritance mechanism to reduce the possibility of illegal account impersonation. By inheriting the account level and role of the management account, it ensures that the permission hierarchy of the child account is consistent with that of the parent account, avoiding permission chaos caused by manual configuration differences. The inheritance model mapping, level mapping, and gear information allow the user account to directly reuse the business rules of the management account (such as model permissions and resource quotas), reducing repeated configuration and ensuring business logic uniformity. Using maps.Clone to deep copy resources, IP white lists, and model white lists ensures that the configuration files of user accounts and management accounts do not interfere with each other, avoiding security risks caused by sharing underlying data. By allowing the level to be copied, it supports the extension of higher permissions for user accounts while preserving the base permissions of the management account, enabling incremental upgrades of permissions. Decoupling the functional attributes and data permissions of user accounts from the management account supports independent adjustment (such as individually modifying the data access range of user accounts) and adapts to dynamic business needs (such as temporary authorization or permission recovery).
[0065] One of the cores of this embodiment is the ability to implement cross-level management: VirtualLevel is consistent with Level by default but supports independent adjustment, allowing user accounts to obtain cross-level permissions without changing the actual level (Level) (such as emergency operation scenarios), enhancing management flexibility. It avoids the rigidification of permissions caused by fixed levels and enables traceability of permission adjustments through the VirtualLevel marker.
[0066] The system of the technical solution of this embodiment has good maintainability and scalability. The hierarchical design of the DNA mark provides a clear attribution path for the operation log (such as ParentDNA.ParentID.ChildID), facilitating the tracing of operation sources and enhancing security audit capabilities. It adapts to multiple business scenarios, supporting diverse needs from strict permission inheritance (such as the financial sector) to flexible independent adjustment (such as the research and development environment), and has wide business adaptability. Through hierarchical generation of DNA marks, structured inheritance of configurations, permission decoupling and independent adjustment, and the combination of deep copying and incremental copying, it realizes an identity-trustworthy, permission-precise, and flexible-controllable account management system.
[0067] Preferably, receiving the operation request from the management account, parsing the target account information in the operation request, and executing the operation request when it is determined that the management account has the operation authority for the target account further includes:
[0068] The DNA identification information of the management account is the DNA identification information of the user account + the account ID of the management account + ".", then the management account and the user account are in a direct management relationship, and the management account has operation authority over the user account;
[0069] If the DNA flag information of the management account is greater than the DNA flag information of the user account + the account ID of the management account + ".", then the management account and the user account are in an indirect management relationship, and the management account has operation authority over the user account;
[0070] Execute the operation request.
[0071] The technical solution of this embodiment enables precise distinction between direct and indirect management relationships. Direct management: When the management account's DNA flag is identical to the user account's DNA flag + management account ID + ".", it indicates a direct superior-subordinate relationship, and the management account has direct operational authority. Indirect management: When the management account's DNA flag is greater than the user account's DNA flag + management account ID + ".", it indicates that the user account is at a lower level (not directly connected) than the management account, but still falls under its jurisdiction. The management account can exercise authority through an indirect relationship. This clearly delineates authority boundaries and supports multi-level management structures (such as group-branch-department hierarchies). Indirect management relationships, on the other hand, only allow superior accounts to operate subordinate accounts, preventing cross-level lateral authority violations (such as accounts at the same level operating on each other) and improving system security. This embodiment uses string matching (such as prefix matching or length comparison) to quickly determine permissions, eliminating the need for frequent database queries or complex logic invocations, reducing system overhead, and achieving lightweight permission verification. This embodiment also separates VirtualLevel from Level to allow temporary adjustment of account permissions (such as cross-level operations) while preserving the actual hierarchical structure, adapting to emergency scenarios or special business needs. The functional attributes and data permissions of user accounts are decoupled from management accounts, supporting independent adjustments (such as modifying data permissions separately) to meet flexible business policy changes.
[0072] This implementation is scalable and audit-friendly, supporting large-scale organizational structures. The hierarchical design of the DNA identifier naturally adapts to complex organizational structures (such as multi-level branches and nested teams). New accounts automatically inherit the rules of their parent node, eliminating the need to restructure the permissions system. Changes and operations are traceable and auditable. The hierarchical structure of the DNA identifier (e.g., ParentDNA.ParentID.ChildID) clearly records account ownership, and operation logs can be traced back to specific management nodes, facilitating security audits and accountability.
[0073] In a preferred embodiment, the method further comprises:
[0074] Receive access requests sent by management accounts or user accounts, parse the user modelMapper value in the access request to route to the corresponding AI big model API interface. If the user modelMapper value in the access request is empty, route to the AI big model API interface based on the multi-dimensional access rules preset in the AI gateway.
[0075] The technical solution of this embodiment can provide flexible and precise routing capabilities. By parsing the user modelMapper value, the system can accurately route to the target AI large model API interface based on the custom identifiers in the request (such as model version, business scenario tags, etc.), supporting differentiated model call requirements (such as different algorithm branches and functional modules) and realizing dynamic model mapping. When the user modelMapper is empty, multi-dimensional access rules (such as load balancing, resource priority, user permission level, etc.) are automatically triggered to avoid request failures due to configuration errors and improve system fault tolerance. Multi-dimensional rules can comprehensively consider factors such as the real-time load of the API interface (such as QPS, response latency) and resource utilization (such as GPU / CPU utilization) to dynamically select the optimal node, prevent single point overload, and ensure service stability. Combined with the user account permission level (such as management account priority) or business priority (such as paid user privileges), hierarchical resource scheduling is realized, improving the response efficiency of high-value requests and implementing a hierarchical scheduling strategy.
[0076] In a preferred embodiment, the method further comprises:
[0077] An account deletion request for a target account is received from a management account or a superior management account, and upon verifying that the management account has operation authority over the target account, the account information of the target account is deleted from the database.
[0078] In this embodiment, only management accounts or superior management accounts are allowed to initiate deletion requests for target accounts. Operational permissions are verified through DNA tag matching or hierarchical relationships to prevent unauthorized operations (such as illegal deletion of peer or subordinate accounts). Account deletion involves data purging, requiring strict permission management. By verifying the hierarchical relationship between the management account's DNA prefix and the target account's tag (such as a parent account deleting a child account), the legitimacy of the operation is ensured, reducing the risk of accidental or malicious deletion. A key difference between this embodiment and the existing technology is that even if an intermediate-level management account is physically deleted, its user account (sub-account) can still exist in the AI gateway system and operate as a zero-level account. This is because the DNA tag information of the management account (parent account) of the account remains the prefix of the DNA tag information of the user account (sub-account) of the account, and the management account (parent account) still has operational permissions over its user account (sub-account). In other words, deleting any account in the system will not affect the normal operation of its superior and subordinate accounts.
[0079] In a preferred embodiment, the method further comprises:
[0080] Verify that the management account has operation authority over the target account;
[0081] Receive a credit limit management request from a management account or a superior management account for a target account, deduct the parent_balance from the management account or superior management account, and correspondingly increase the parent_balance balance of the target account, where the increase in the parent_balance of the target account is less than the original parent_balance of the management account or superior management account, and record audit information of the credit limit management operation;
[0082] Receive an authorization operation request from a management account or a superior management account for a target account, and modify a corresponding attribute value of the target account based on the authorization operation request.
[0083] The technical solution of this embodiment realizes the transfer of quota from the management account to the target account through the deduction and increment mechanism of parent_balance, and the increment of the target account is strictly less than the original value of the management account (such as avoiding resource abuse caused by full transfer), ensuring the controllability of resource allocation. The superior management account can allocate resources across levels and support dynamic quota management under a multi-level organizational structure (such as the group allocating budgets to subsidiaries, or the superior management account’s budget for user accounts). Limiting the increase in the parent_balance of the target account prevents the expansion of target account permissions or resource abuse caused by excessive quota tilt, thereby reducing security risks. Permission verification based on DNA marks ensures that only legitimate management accounts can operate the target account, avoiding unauthorized operations. The management account can achieve flexible configuration of permissions by modifying the attribute values of the target account (such as roles, data permissions, function switches, etc.), adapt to changes in business needs (such as temporary authorization or permission recovery), and realize dynamic permission adjustment.
[0084] In a preferred embodiment, the method further comprises:
[0085] Obtain the account ID and DNA mark information of all management accounts or user accounts in the AI gateway;
[0086] Perform DNA genetic path analysis based on the account ID and DNA marker information of all management accounts or user accounts to obtain the user group transmission path; the DNA marker information of each account = the DNA marker information of its management account + the account ID of its management account + ".";
[0087] A reward mechanism is configured based on the DNA genetic pathway analysis results.
[0088] In the technical solution of this embodiment, each account's DNA signature consists of the management account's DNA signature, the account ID, and a separator (.) (e.g., ParentDNA.ParentID.), forming a unique hierarchical path identifier. By analyzing the DNA signature, the hierarchical relationships and transmission chain of accounts can be clearly restored, enabling accurate tracing of the user group's transmission path, making hierarchical relationships transparent and thus accurately tracing user transmission paths. Based on the contribution of each level of the transmission path (e.g., number of new users attracted, resource consumption, active time, etc.), differentiated reward rules (e.g., tiered commissions, tiered rebates) are configured. For example, a management account can receive a 10% commission on the spending of its direct subordinates and a 5% commission on the spending of its indirect subordinates, incentivizing deep user fission. Based on the transmission path analysis results (e.g., the distribution of high-contribution management accounts and user fission efficiency), reward rules can be optimized (e.g., increasing the reward ratio for popular paths) and resource allocation can be adjusted (e.g., providing additional incentives to high-value management accounts) to improve user growth efficiency. This allows for targeted optimization of user growth strategies. Furthermore, the reward mechanism can be dynamically adjusted based on the DNA path and other dimensions (such as user level and consumption behavior). For example, subordinate users of high-level management accounts can receive higher reward coefficients, or reward rules can be temporarily adjusted for specific business scenarios (such as promotions). This embodiment supports complex organizational structures. The hierarchical design of the DNA mark is naturally adapted to complex models such as multi-level distribution and agency (such as headquarters, regions, branches, and individuals), and can be expanded to large-scale organizational structures without modifying the underlying logic.
[0089] Second embodiment
[0090] See also Figure 2 Based on the same concept, the present invention also provides an AI gateway account management system based on DNA markers, including:
[0091] A request receiving module, configured to receive a request to create a management account, and obtain the function attribute information, data permission information, account ID of the management account, and DNA flag information in the creation request;
[0092] An account generation module, configured to generate an account ID to create a user account, generate DNA identifier information for the user account based on the account ID and DNA identifier information of the management account, and configure the functional attribute information and data permission information of the user account based on the functional attribute information and data permission information in the creation request; wherein the DNA identifier information of the management account is a prefix of the DNA identifier information of the user account;
[0093] The management execution module is configured to receive an operation request from the management account, parse target account information in the operation request, and execute the operation request when it is determined that the management account has operation authority over the target account.
[0094] The technical solution of this embodiment uses the DNA marker information of the management account as a prefix to the DNA marker information of the user account to record the DNA genetic hierarchical relationship between accounts, achieving clear expression of account relationships, flexible management, and rapid product dissemination, thereby further enabling precise user management and data analysis. The DNA marker information of the management account serves as a prefix to the DNA marker information of the user account, naturally forming a permission inheritance relationship. Furthermore, by independently configuring user account permissions, flexible permission allocation is supported. Before executing an operation request, the management account's jurisdiction is quickly determined by parsing the target account's DNA marker prefix. This embodiment, based on a hierarchical matching mechanism based on DNA marker prefixes, significantly reduces the complexity of permission verification and improves system response efficiency compared to traditional role / attribute tag matching. Combining biometric encoding with permission management, it not only strengthens identity authentication by leveraging the uniqueness of DNA, but also enables structured permission management through marker prefixes. This solves the problems of identity isolation, coarse-grained permissions, and difficult auditing in traditional account systems, making it suitable for AI gateway scenarios with high security requirements (such as medical data sharing and financial model services).
[0095] Based on the same concept, the present invention also provides an electronic device, comprising: a memory, the memory being used to store a processing program; and a processor, the processor implementing any one of the above-mentioned AI gateway account management methods based on DNA markers when executing the processing program.
[0096] Based on the same concept, the present invention also provides a readable storage medium, on which a processing program is stored. When the processing program is executed by a processor, any one of the above-mentioned AI gateway account management methods based on DNA markers is implemented.
[0097] If the AI gateway account management method based on DNA markers is implemented in the form of program instructions and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of software. The computer software is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program code.
[0098] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the identification content specifically executed by the above-described system and device can refer to the corresponding process in the aforementioned method embodiment.
[0099] The embodiments of the present invention have been described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above embodiments. Even if various changes are made to the present invention, if these changes fall within the scope of the claims of the present invention and their equivalents, they still fall within the scope of protection of the present invention.
Claims
1. An AI gateway account management method based on DNA signature, characterized in that: The following steps are involved: Receive a creation request for a management account, and obtain function attribute information, data permission information, account ID of the management account, and DNA flag information in the creation request; Generate an account ID to create a user account, generate DNA marker information of the user account based on the account ID and DNA marker information of the management account, and configure the functional attribute information and data permission information of the user account based on the functional attribute information and data permission information in the creation request; The DNA marker information of the management account is the prefix of the DNA marker information of the user account, and the DNA marker information of the user account is generated based on the following rule: DNA marker information of the user account = DNA marker information of the management account + account ID of the management account + ".."; Receive an operation request from the management account, parse the target account information in the operation request, and execute the operation request when it is determined that the management account has operation authority over the target account, which includes: if the DNA mark information of the target account is the DNA mark information of the management account + the account ID of the management account + ". ", then the management account and the target account are in a direct management relationship, and the management account has operation authority over the target account; if the DNA mark information of the target account is greater than the DNA mark information of the management account + the account ID of the management account + ". ", then the management account and the target account are in an indirect management relationship, and the management account has operation authority over the user account; execute the operation request.
2. The AI gateway account management method based on DNA markers according to claim 1 is characterized in that: Receiving a creation request for a management account, and obtaining the function attribute information, data permission information, the account ID of the management account, and DNA marker information in the creation request further includes: Read the account level, role, model mapping, level mapping and gear information of the management account, copy the resources, IP whitelist, model whitelist and model restrictions of the management account through maps.Clone, and copy the allowed level of the management account through append; The target character string value of the management account is obtained to obtain DNA mark information and the account ID of the management account is obtained.
3. The AI gateway account management method based on DNA markers according to claim 1 is characterized in that: Generating an account ID to create a user account, generating DNA identifier information of the user account based on the account ID and DNA identifier information of the management account, and configuring the functional attribute information and data permission information of the user account based on the functional attribute information and data permission information in the creation request further includes: Configure the user account: Inherit the account level and role in the creation request to ensure consistency of the permission hierarchy. Inherit the model mapping, level mapping, and gear information in the creation request to maintain unified business logic. Use maps.Clone to copy the resources, IP whitelist, model whitelist, and model restrictions in the creation request. Use append to copy the allowed level of the management account to avoid sharing the underlying array to achieve independence of sub-account permissions. Decoupling the functional attributes and data permission configuration of the user account from the management account or the superior management account to support independent adjustment of permissions to meet flexible business needs; The VirtualLevel configured for the user account is the same as the Level by default. The VirtualLevel is configured to allow individual adjustment to facilitate cross-level account management.
4. The AI gateway account management method based on DNA markers according to claim 1 is characterized in that: The method further comprises: Receive access requests sent by management accounts or user accounts, parse the user modelMapper value in the access request to route to the corresponding AI big model API interface. If the user modelMapper value in the access request is empty, route to the AI big model API interface based on the multi-dimensional access rules preset in the AI gateway.
5. The AI gateway account management method based on DNA markers according to claim 1 is characterized in that: The method further comprises: An account deletion request for a target account is received from a management account or a superior management account, and upon verifying that the management account has operation authority over the target account, the account information of the target account is deleted from the database.
6. The AI gateway account management method based on DNA markers according to claim 1 is characterized in that: The method further comprises: Verify that the management account has operation authority over the target account; Receive a credit limit management request from a management account or a superior management account for a target account, deduct the parent_balance from the management account or superior management account, and correspondingly increase the parent_balance balance of the target account, where the increase in the parent_balance of the target account is less than the original parent_balance of the management account or superior management account, and record audit information of the credit limit management operation; Receive an authorization operation request from a management account or a superior management account for a target account, and modify a corresponding attribute value of the target account based on the authorization operation request.
7. The AI gateway account management method based on DNA markers according to claim 1 is characterized in that: The method further comprises: Obtain the account ID and DNA mark information of all management accounts or user accounts in the AI gateway; Perform DNA genetic path analysis based on the account ID and DNA marker information of all management accounts or user accounts to obtain the user group transmission path; the DNA marker information of each account = the DNA marker information of its management account + the account ID of its management account + ".."; A reward mechanism is configured based on the results of the DNA genetic pathway analysis.
8. An AI gateway account management system based on DNA signature, characterized in that: The system executes the AI gateway account management method based on DNA markers according to claim 1, comprising: A request receiving module, configured to receive a request to create a management account, and obtain the function attribute information, data permission information, account ID of the management account, and DNA flag information in the creation request; An account generation module, configured to generate an account ID to create a user account, generate DNA identifier information for the user account based on the account ID and DNA identifier information of the management account, and configure the functional attribute information and data permission information of the user account based on the functional attribute information and data permission information in the creation request; wherein the DNA identifier information of the management account is a prefix of the DNA identifier information of the user account; The management execution module is configured to receive an operation request from the management account, parse target account information in the operation request, and execute the operation request when it is determined that the management account has operation authority over the target account.
9. An electronic device, characterized in that: include: a memory for storing a processing program; A processor, wherein when executing the processing program, the processor implements the AI gateway account management method based on DNA markers as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Credit management method, device and system and computer equipment
CN110659932A
Control method and device over intelligent devices, equipment and storage medium
CN112307460A