CN-121598410-B - Centralized management method and device for authority codes
Abstract
The application discloses a centralized management method and equipment for authority codes, which relate to the field of platform development and comprise the steps of carrying out centralized maintenance on the authority code data of all versions of artificial intelligent platforms through a maintenance interface provided by an authority code server, avoiding the separation maintenance of the authority codes, improving the maintenance efficiency of the authority codes, automatically submitting the authority code data to a distributed version control system by automatically determining the target environment where the target artificial intelligent platform is positioned when the target environment is a development environment, and automatically refreshing the authority code data in the distributed version control system to the target artificial intelligent platform when the target environment is the development environment or an incremental test environment so as to refresh the authority code data which is intensively maintained by the authority code server to the target artificial intelligent platform, keeping the authority code data of the target artificial intelligent platform consistent in the development environment and the incremental test environment, realizing the automatic submission and refreshing of the authority code data, and improving the development efficiency of the artificial intelligent platform.
Inventors
- XU RUQING
Assignees
- 苏州元脑智能科技有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260129
Claims (8)
- 1. The authority code centralized management method is characterized by comprising the following steps of: determining a target environment in which a target artificial intelligent platform is located; The method comprises the steps of executing a first authority code operation when the target environment is a development environment, wherein the first authority code operation is to submit an authority code file downloaded from an authority code server to a first branch, and the first branch is a branch serving an artificial intelligent platform in a distributed version control system; Executing a second permission code operation when the target environment is a development environment or an incremental test environment, wherein the second permission code operation is used for refreshing permission code data in a target permission code file to the target artificial intelligent platform, and the target permission code file is a permission code file on the first branch, and the permission code data is intensively maintained through a maintenance interface provided by a permission code server and is used for controlling the access permission of platform resources of all versions of the artificial intelligent platform; responding to a data packaging instruction, and packaging the codes of the target artificial intelligent platform and the target authority code file so as to deploy the target artificial intelligent platform to a client environment by using packaged data, wherein the data packaging instruction is an instruction triggered after the target artificial intelligent platform passes a full test; the authority code centralized management method further comprises the following steps: When the target environment is a development environment, modifying assignment of authority code submitting parameters in a configuration file into preset permission submitting assignment so as to trigger execution of the first authority code operation, wherein the configuration file is a file for managing the authority code operation; When the target environment is an incremental test environment or a full test environment, modifying the assignment of the authority code submission parameters in the configuration file into a preset prohibition submission assignment so as to prohibit triggering the execution of the first authority code operation; the authority code centralized management method further comprises the following steps: When the target environment is a development environment or an incremental test environment, modifying the assignment of the permission code refreshing parameter in the configuration file into a preset permission refreshing assignment so as to trigger the execution of the second permission code operation; and when the target environment is a full test environment, modifying the assignment of the permission code refreshing parameter in the configuration file into a preset refreshing prohibition assignment so as to prohibit the execution of triggering the second permission code operation.
- 2. The rights code centralized management method of claim 1, wherein determining a target environment in which a target artificial intelligence platform is located comprises: acquiring a software package of a target artificial intelligent platform, and analyzing an environment variable from the software package; And determining the target environment in which the target artificial intelligent platform is positioned based on the environment variable.
- 3. The rights code centralized management method of claim 1, wherein the platform resources comprise any one or a combination of several of platform interfaces, interface elements, and data resources; When the platform resource comprises the platform interface, the permission code file is used for binding and storing interface attributes and permission code data corresponding to the same platform interface, and the interface attributes are intensively maintained through a maintenance interface provided by the permission code server.
- 4. The rights code centralized management method of claim 1, further comprising: in the execution process of a preset timing task, accessing the authority code server at fixed time, downloading an authority code file from the authority code server, and submitting the downloaded authority code file to a second branch in the distributed version control system for backup at fixed time; wherein the second branch is a branch in the distributed version control system that serves the rights code server.
- 5. The rights code centralized management method of claim 4, further comprising: Transmitting a backup authority code file to the authority code server when abnormal authority code data in the authority code server is monitored, so that the authority code server can recover the abnormal authority code data by using the backup authority code file; wherein the backup permission code file is a permission code file on the second branch.
- 6. The method according to any one of claims 1 to 5, wherein the rights code file is a file generated by the rights code server based on encrypted rights code data, and the encrypted rights code data is data obtained by encrypting rights code data read from a local first database by the rights code server.
- 7. The rights code centralized management method of claim 6, wherein the performing a second rights code operation comprises: and sending an authority code refreshing command to the target artificial intelligent platform so that the target artificial intelligent platform can empty a local second database, and decrypting the encrypted authority code data read from the target authority code file to write the authority code data obtained after decryption into the second database.
- 8. An electronic device, comprising: A memory for storing a computer program; a processor for implementing the steps of the rights code centralized management method according to any one of claims 1 to 7 when executing the computer program.
Description
Centralized management method and device for authority codes Technical Field The application relates to the field of platform development, in particular to a centralized management method and device for authority codes. Background In the development process of the artificial intelligent platform, the function of the permission code is often required to be used, wherein the permission code is mainly used for managing the permission of the artificial intelligent platform, and particularly relates to the permission of interface menus, buttons, tab pages hiding and displaying, interfaces and the like of the artificial intelligent platform. And, different roles have different rights, for example, a super administrator has the rights of all right codes, a system administrator has the rights of less than the super administrator, a group administrator has the rights of less than the system administrator, a common user has the rights of less than the group administrator, etc. In the actual development process, the development of multi-version artificial intelligent platforms, such as domestic version and overseas version, mainline version and branch line version, etc., is often involved. At present, for the development of different versions of artificial intelligent platforms, a set of authority codes needs to be maintained for each version of artificial intelligent platform respectively, and the refreshing and maintenance of the authority codes are manually operated, so that the efficiency is low, and finally after the development of the artificial intelligent platform is finished, the research and development personnel are required to combine the separately maintained multi-version authority codes together, so that the workload is very large and very complex, and finally the development efficiency of the artificial intelligent platform is low. Therefore, how to solve the rights code separation maintenance and manual maintenance of the multi-version artificial intelligent platform so as to improve the development efficiency of the artificial intelligent platform is a technical problem to be solved urgently by those skilled in the art. Disclosure of Invention The application provides a centralized management method and equipment for authority codes, which at least solve the problems of authority code separation maintenance and manual maintenance in the related technology and improve the development efficiency of an artificial intelligent platform. The application provides a centralized management method of authority codes, which comprises the following steps: determining a target environment in which a target artificial intelligent platform is located; the first authority code operation is used for submitting the authority code file downloaded from the authority code server to a first branch, wherein the first branch is a branch serving an artificial intelligent platform in the distributed version control system; Executing a second authority code operation when the target environment is a development environment or an incremental test environment, wherein the second authority code operation is used for refreshing the authority code data in the target authority code file to the target artificial intelligent platform, and the target authority code file is the authority code file on the first branch, and the authority code data is intensively maintained through a maintenance interface provided by an authority code server and is used for controlling the access authority of platform resources of all versions of the artificial intelligent platform; And responding to a data packaging instruction, and packaging the codes of the target artificial intelligent platform and the target authority code file so as to deploy the target artificial intelligent platform to a client environment by using the packaged data, wherein the data packaging instruction is an instruction triggered after the target artificial intelligent platform passes the full test. The application also provides an electronic device, comprising: A memory for storing a computer program; And the processor is used for realizing the steps of any one of the authority code centralized management methods when executing the computer program. The method has the advantages that the authority code server is introduced, the maintenance interface is provided through the authority code server, the authority code data of all versions of artificial intelligent platforms are intensively maintained by using the maintenance interface, the problem that the authority codes of all versions of artificial intelligent platforms are separated, maintained and unified and combined in the related technology is solved, workload of the authority code maintenance and unnecessary complicated operation steps are reduced, the maintenance efficiency of the authority codes is improved, the maintenance of the authority codes is more convenient and efficient, the authority code data are automatically