Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a unified file coding management method and a unified file coding management system, which are used for solving the problems of high labor cost, high time cost and low working efficiency in the conventional file coding management.
In a first aspect, the present invention provides a unified file coding management method, including:
acquiring a coding application request provided by any user from a uniform coding service interface accessed by the user;
analyzing the coding application request and determining the coding application request as a regular coding application or a irregular coding application;
when the rule coding application is determined, generating a corresponding rule file code according to the coding rule and the file type extracted from the coding application request, and storing the corresponding rule file code in a main database;
and when the random code application is determined, generating a corresponding random file code according to the self-defined coding rule and the file type extracted from the code application request, and storing the corresponding random file code in a main database.
Specifically, the method further comprises:
acquiring a code query request provided by any user from a uniform code service interface accessed by the user;
analyzing the coding query request, searching all slave databases, and determining a globally unique code, a file type, a coding rule or a coding code corresponding to the coding query request.
Specifically, the method further comprises:
acquiring a code canceling request from a unified code service interface accessed by a user, wherein the code canceling request is provided by any user;
analyzing the code canceling request, searching all slave databases, determining a globally unique code, a file type, a coding rule or a coding code corresponding to the code canceling request, and resetting other information corresponding to the globally unique code to be null in the slave databases; or
Searching a master database, determining the file type, the encoding rule or the encoding code corresponding to the global unique code, resetting other information corresponding to the global unique code to be null in the master database, and modifying the global unique code into an applicable state.
Specifically, the method further comprises:
acquiring coding feedback information provided by any user from a uniform coding service interface accessed by the user;
analyzing the coding feedback information, and determining the coding feedback information as feedback aiming at a coding rule or feedback aiming at a coding code or feedback aiming at a coding business process;
when the feedback for the coding rule is determined, recording the feedback for the coding rule;
modifying the corresponding encoding code in the master database or in all slave databases when the feedback for the encoding code is determined;
and when the feedback for the coding business process is determined, recording the feedback for the coding business process.
Specifically, the method further comprises:
accessing a main database at a preset time interval, and determining a file coding generation record;
accessing a slave database, and determining a file coding query record;
determining an access log of the uniform coding service interface according to the access record of the uniform coding service interface;
and generating a record according to the file code, the file code query record and/or an access log of the unified coding service interface, auditing the coding service, and screening out possible malicious accesses.
In a second aspect, the present invention provides a unified file coding management system, including:
a plurality of user code management subsystems for managing the code,
the unified file coding management platform provides a unified coding service interface;
the user code management subsystem acquires a code application request, a code inquiry request, a code cancellation request or code feedback information provided by any user through the unified code service interface, and responds to the code application request, the code inquiry request, the code cancellation request or the code feedback information.
Specifically, the system further includes:
a master database, and a plurality of slave databases;
the unified file code management platform responds to the code application request, generates regular file codes or irregular file codes and stores the regular file codes or the irregular file codes in a main database;
and the unified file coding management platform responds to the coding query request, searches all the slave databases, and determines the globally unique code, the file type, the coding rule or the coding code corresponding to the coding query request.
In particular, the system as described,
the unified file coding management platform responds to the coding cancellation request, searches all slave databases, determines a global unique code, a file type, a coding rule or a coding code corresponding to the coding cancellation request, and resets other information corresponding to the global unique code to be null in the slave databases; or
Searching a master database, determining the file type, the encoding rule or the encoding code corresponding to the global unique code, resetting other information corresponding to the global unique code to be null in the master database, and modifying the global unique code into an applicable state.
In particular, the system as described,
the unified file code management platform accesses a main database at a preset time interval to determine a file code generation record;
accessing a slave database, and determining a file coding query record;
determining an access log of the uniform coding service interface according to the access record of the uniform coding service interface;
and generating a record according to the file code, the file code query record and/or an access log of the unified coding service interface, auditing the coding service, and screening out possible malicious accesses.
In particular, the system as described,
the unified file coding management platform comprises a page layer;
the page layer is based on a plurality of user interfaces of a JavaScript Web UI library;
the page layer provides a uniform coding Service interface for a plurality of user coding management subsystems by using Web Service.
The file coding management method and the file coding management system provided by the invention adopt a distributed deployment architecture to provide a uniform external coding interface for the existing coding management subsystem (namely a third-party application system) of each user, and the existing coding management subsystem of each user can carry out coding application, coding query and operation of cancelling coding or code application after integrating the interface. The method and the system can uniformly manage the coding rule, the coding standard and the generated code of each using unit, and can avoid the situations of artificial coding error, discontinuous coding, repeated coding and the like; the unified file code management method and the system replace the work of manual code proofreading, and improve the working efficiency of code processing.
Detailed Description
The exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, however, the present invention may be embodied in many different forms and is not limited to the embodiments described herein, which are provided for complete and complete disclosure of the present invention and to fully convey the scope of the present invention to those skilled in the art. The terminology used in the exemplary embodiments illustrated in the accompanying drawings is not intended to be limiting of the invention. In the drawings, the same units/elements are denoted by the same reference numerals.
Unless otherwise defined, terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. Further, it will be understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense.
Large software project Development may involve multiple program Development units, multiple applications, multiple Integrated Development Environments (IDE), and multiple programming languages (e.g., java, C/C + + or. net).
When the software development work of multi-unit cooperation is carried out in the field of information technology application innovation, as shown in fig. 3, due to the fact that a unified coding management mechanism is not available, the existing computer file coding system with relatively independent units easily generates the situations of repeated coding, discontinuous coding, incapability of recycling waste coding, disordered coding rules and nonstandard coding during file coding. The existence of the situations brings great difficulty to file coding management, and the codes need to be checked manually, so that the labor cost is increased, and the working efficiency is reduced.
On the basis of deep research aiming at the problems, the invention scientifically solves the problems by means of technologies such as computer communication technology, coding science, computer networks, databases and the like.
The file coding management method of the embodiment of the invention provides a unified file coding method for multiple users, can provide unified file coding management for multiple units using the file coding management system, and solves one or more of the following problems: unified coding management; managing a unified coding rule; a unified coding standard; human coding errors and human damage are avoided; coding discontinuity is avoided; code repetition is avoided, and unique codes are ensured; an external interface is opened to a plurality of users, and the coding systems of other users can acquire codes in a mode of accessing a uniform interface; thereby improving the working efficiency of the encoding process.
As shown in fig. 1, the unified file coding management method according to the embodiment of the present invention includes:
step S110: acquiring a coding application request provided by any user from a uniform coding service interface accessed by the user;
step S120: analyzing the coding application request and determining the coding application request as a regular coding application or a irregular coding application;
step S130: when the rule coding application is determined, generating a corresponding rule file code according to the coding rule and the file type extracted from the coding application request, and storing the corresponding rule file code in a main database;
step S140: and when the random code application is determined, generating a corresponding random file code according to the self-defined coding rule and the file type extracted from the code application request, and storing the corresponding random file code in a main database.
Specifically, the method further comprises:
acquiring a code query request provided by any user from a uniform code service interface accessed by the user;
analyzing the coding query request, searching all slave databases, and determining a globally unique code, a file type, a coding rule or a coding code corresponding to the coding query request.
Specifically, the method further comprises:
acquiring a code canceling request from a unified code service interface accessed by a user, wherein the code canceling request is provided by any user;
analyzing the code canceling request, searching all slave databases, determining a globally unique code, a file type, a coding rule or a coding code corresponding to the code canceling request, and resetting other information corresponding to the globally unique code to be null in the slave databases; or
Searching a master database, determining the file type, the encoding rule or the encoding code corresponding to the global unique code, resetting other information corresponding to the global unique code to be null in the master database, and modifying the global unique code into an applicable state.
Specifically, the method further comprises:
acquiring coding feedback information provided by any user from a uniform coding service interface accessed by the user;
analyzing the coding feedback information, and determining the coding feedback information as feedback aiming at a coding rule or feedback aiming at a coding code or feedback aiming at a coding business process;
when the feedback for the coding rule is determined, recording the feedback for the coding rule;
modifying the corresponding encoding code in the master database or in all slave databases when the feedback for the encoding code is determined;
and when the feedback for the coding business process is determined, recording the feedback for the coding business process.
Specifically, the method further comprises:
accessing a main database at a preset time interval, and determining a file coding generation record;
accessing a slave database, and determining a file coding query record;
determining an access log of the uniform coding service interface according to the access record of the uniform coding service interface;
and generating a record according to the file code, the file code query record and/or an access log of the unified coding service interface, auditing the coding service, and screening out possible malicious accesses.
As shown in fig. 2, the unified file coding management system according to the embodiment of the present invention includes:
a plurality of usercode management subsystems 210,
a unified documentcoding management platform 220 providing a unified coding service interface;
the user code management subsystem acquires a code application request, a code inquiry request, a code cancellation request or code feedback information provided by any user through the unified code service interface, and responds to the code application request, the code inquiry request, the code cancellation request or the code feedback information.
Specifically, the system further includes:
a master database, and a plurality of slave databases;
the unified file code management platform responds to the code application request, generates regular file codes or irregular file codes and stores the regular file codes or the irregular file codes in a main database;
and the unified file coding management platform responds to the coding query request, searches all the slave databases, and determines the globally unique code, the file type, the coding rule or the coding code corresponding to the coding query request.
In particular, the system as described,
the unified file coding management platform responds to the coding cancellation request, searches all slave databases, determines a global unique code, a file type, a coding rule or a coding code corresponding to the coding cancellation request, and resets other information corresponding to the global unique code to be null in the slave databases; or
Searching a master database, determining the file type, the encoding rule or the encoding code corresponding to the global unique code, resetting other information corresponding to the global unique code to be null in the master database, and modifying the global unique code into an applicable state.
In particular, the system as described,
the unified file code management platform accesses a main database at a preset time interval to determine a file code generation record;
accessing a slave database, and determining a file coding query record;
determining an access log of the uniform coding service interface according to the access record of the uniform coding service interface;
and generating a record according to the file code, the file code query record and/or an access log of the unified coding service interface, auditing the coding service, and screening out possible malicious accesses.
In particular, the system as described,
the unified file coding management platform comprises a page layer;
the page layer is based on a plurality of user interfaces of a JavaScript Web UI library;
the page layer provides a uniform coding Service interface for a plurality of user coding management subsystems by using Web Service.
The unified file coding management method of the embodiment of the invention provides 3 core functions: providing an encoding service interface, providing an encoding management platform and providing a log auditing function.
It should be understood that the codes applied and generated by each user code system by accessing the unified code service interface are stored in a unified database. Each user encoding system performs a respective file encoding operation through an interface to the unified file encoding management system.
Specifically, the encoding service interface provides a unified interface specification, data standard, and data format. Services such as data coding application and the like are provided by adopting a uniform data format of XML and/or JSON aiming at a homogeneous system and/or a heterogeneous system; and generating a universal coding service model aiming at different service systems, and coding different types of files.
Json (javascript Object notification) is a lightweight data exchange format, and adopts a text format completely independent of language, which is an ideal data exchange format. Meanwhile, JSON is a JavaScript native format, which means that no special API or toolkit is required to process JSON data in JavaScript.
The Extensible Markup Language (XML) is used for marking electronic documents to have a structural Markup Language, can be used for marking data and defining data types, and is a source Language allowing a user to define own Markup Language. XML uses Document Type Definition (DTD) to organize data, and has uniform format and can cross platforms and languages.
Specifically, as shown in fig. 4, the unified document coding management platform includes a login interface at the front end thereof, which is used for ordinary user login and/or system administrator login. Preferably, at the front end, a user data synchronization interface and a user authentication interface are also provided.
Specifically, in the user authentication, the code management platform is integrated with the existing code management system of each user, and the existing user authentication mode of each user code management system is maintained, so that the use habit of the user is respected. Meanwhile, the external reminding function attached to the code management platform, such as mail reminding, is also realized by calling the existing interface of each user code management system.
The code management platform provides a user center for a common user through a code service interface, and comprises the following business modules: the system comprises an information feedback module, a code application module, an applied code query module and an irregular code application module.
The code management platform is provided with a background management system on a background, and the background management system comprises the following service modules: the system comprises an external system access control module, a coding application log tracking/auditing module, an external system access log tracking module, a background login management module, a rule auditing module, a coding rule maintenance module, a coding rule creating module, a coding maintenance module, a coding application processing module, a file type data maintenance module, a positioning code maintenance module, a feedback opinion type maintenance module, a irregular coding generation module, an irregular coding maintenance module and a system administrator maintenance module.
The log auditing function provided by the unified file coding management system of the embodiment of the invention is to audit the coding application service by using the coding application log in order to cope with the influence of man-made subjective malicious operation in the coding process.
The system architecture of the unified file coding management system according to the embodiment of the present invention is shown in fig. 5. The system is divided into a page layer, a logic layer and a data access layer by adopting a layered structure.
It should be understood that in a system to which a hierarchical structure is applied, the entire system is organized in the form of a hierarchy, each layer hiding details of its lower layers from its own upper layer, the upper layers using various services of the lower layers, and the lower layers having no knowledge of the upper layers.
In particular, the page layer provides rich Web applications using Web Service. Web Service is a platform-independent, low-coupling, self-contained, programmable Web-based application that can be described, published, discovered, coordinated and configured using the open XML standard for developing distributed, interoperating applications. Web Service enables different applications running on different machines to exchange data or integrate with each other without the aid of additional, specialized third-party software or hardware. Applications implemented according to the Web Service specification may exchange data with each other regardless of the language, platform, or internal protocol used by them. Web Service provides a general mechanism for the integration of business processes between the whole enterprise and even a plurality of units.
Correspondingly, the page layer provides a consistent, reliable and highly interactive user interface based on a JavaScript Web UI library, and the development process is greatly simplified.
Specifically, the page layer provides a plurality of user interfaces for acquiring, confirming and displaying interactive information in services such as user management, user data synchronization, applied code query, irregular code application, code information feedback and the like.
Specifically, the service logic layer provides service support and data statistics query, and mainly includes services such as existing code query, code generation, service/file type code data query, external system access control and the like.
Specifically, the data access layer adopts a big data analysis architecture to update data and support big data query, and mainly comprises services such as existing coded data query, standard code generation, irregular code application, regular code application, coded file type and data dictionary query.
Since large-scale historical data query may be involved in the file coding management system, specifically, as shown in fig. 6, the database adopts a deployment structure of "one master-multiple slaves", and the master database is responsible for real-time data update, and the slave database performs historical data query, so as to ensure stability and high efficiency of the unified file coding management system.
Specifically, the unified file coding management system of the embodiment of the present invention provides the following specific functions:
1) general user function
As shown in fig. 7, the functions opened to the general user include code application, applied code query, and code information feedback, wherein the code application can be divided into two options, namely regular code application and irregular code application.
1.1), code applications
The basic flow of the encoding application is shown in fig. 8. The coding applications opened to the ordinary users are classified into regular coding applications and irregular coding applications. And when the user selects to apply the regular coding, automatically generating an application code according to the coding rule selected by the user. When the user selects to apply for the irregular codes, the user is required to fill in related application information, the information is submitted to a system administrator for examination after the filling is completed, and the generated codes are directly issued or new codes are generated after a new code rule is created after the examination of the system administrator.
1.2) information feedback
And the common user puts forward a feedback opinion of the coding management system or the coding management method to a system administrator in a mode of newly establishing the feedback opinion. The functions opened to the ordinary user include information feedback history inquiry and new feedback information creation.
1.3), irregular code application
Aiming at the code rule which can not be inquired, an irregular code task is created for the code request in the background, and the irregular code task comprises the steps of generating a global unique code, formulating the code rule, checking the file type, auditing the code rule and the like.
The globally Unique code, that is, the universal Unique Identifier, is abbreviated as UUID. Such as generating a globally unique code based on the current date and time, the network adapter card address (for machines without a network card, the machine itself is used for encoding to maintain uniqueness), the hour hand program, and an auto-increment counter.
1.4) application of regular code
When the applied code is subjected to 'regular code application', one of preset coding rules is selected, and a corresponding regular code application result is generated according to the file type.
1.5), applied code query and cancellation
The applied code can be inquired to obtain a global unique code, a file type, a coding rule, a coding code and the like. Specifically, the query results may be exported to an Excel file.
After the applied code is inquired, the applied code can be subjected to 'cancel application'. The code after the "de-apply" operation may be reapplied at a later time when the code is applied.
2) System administrator function
As shown in fig. 9, the functions open to the system administrator include: code application auditing, file type data maintenance, code application, information feedback maintenance, code rule creation and code maintenance. The code maintenance comprises regular code maintenance and irregular code maintenance.
2.1) System administrators handle coding applications
The code application operation processed by the system administrator is basically the same as the code application operation processed by the common user. However, the system administrator's code application operation also includes a batch application function. In addition, the system administrator also executes a random code application step.
The flow of processing for a regular code application is shown in FIG. 10.
2.2), System Administrator Process code Auditing
The code checking of the system administrator is corresponding to the code application function of the common user. FIG. 11 illustrates a code review flow that is processed by a system administrator. When the ordinary user applies for the irregular codes, the application information is submitted to a system administrator; the system administrator decides whether to allocate an irregular code or create a new code rule according to the application request information submitted by the ordinary user, and opens the ordinary user to apply for the code.
The unified file coding management system of the embodiment of the invention scientifically uses a computer technology, a computer network technology, a coding science and a database technology to solve the difficulty in coding management work, establishes a unified file coding management system and provides a unified file coding management method for each use unit.
The unified file coding management system of the embodiment of the invention can uniformly manage the coding rule, the coding standard and the generated code of each using unit, and can avoid the situations of artificial coding error, discontinuous coding, repeated coding and the like.
Specifically, the unified file coding management system of the embodiment of the present invention adopts a distributed deployment architecture to provide a unified external coding interface for the existing coding management system (also referred to as a third-party application system, also referred to as a coding management subsystem) of each user, and after the existing coding management system of each user integrates the interface, the existing coding management system of each user can perform operations of coding application, coding query, and coding cancellation or coding application cancellation in the existing coding management system of each user.
The unified file coding management system of the embodiment of the invention replaces the work of manual coding proofreading, and improves the working efficiency of coding processing.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The invention has been described above by reference to a few embodiments. However, other embodiments of the invention than the one disclosed above are equally possible within the scope of the invention, as would be apparent to a person skilled in the art from the appended patent claims.
Generally, all terms used in the claims are to be interpreted according to their ordinary meaning in the technical field, unless explicitly defined otherwise herein. All references to "a// the [ device, component, etc ]" are to be interpreted openly as at least one instance of a device, component, etc., unless explicitly stated otherwise. The steps of any method disclosed herein do not have to be performed in the exact order disclosed, unless explicitly stated.