CN109783162A - Method function management method, device, computer equipment and storage medium - Google Patents

Method function management method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN109783162A
CN109783162A CN201811527224.2A CN201811527224A CN109783162A CN 109783162 A CN109783162 A CN 109783162A CN 201811527224 A CN201811527224 A CN 201811527224A CN 109783162 A CN109783162 A CN 109783162A
Authority
CN
China
Prior art keywords
function
information
newly
increased
service time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811527224.2A
Other languages
Chinese (zh)
Other versions
CN109783162B (en
Inventor
苏渊博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811527224.2A priority Critical patent/CN109783162B/en
Publication of CN109783162A publication Critical patent/CN109783162A/en
Application granted granted Critical
Publication of CN109783162B publication Critical patent/CN109783162B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses method function management method, device, computer equipment and storage mediums.This method comprises: according to preset parameter type information generating function database and basic information database;If receiving the newly-increased function information that user is inputted, the method function in newly-increased function information is stored according to the newly-increased function information;If receiving the function name and parameter value that user is inputted, the target component type to obtain matching with the parameter value is matched to parameter value according to parameter type information;It is matched according to obtained target component type and the function name with the basic information in basic information database to acquire the goal approach function in respective function database.The present invention is based on classification memory technologies, realize and carry out classification storage to method function, user can be facilitated to store and call method function, and greatly improve the efficiency carried out maintenance management to the method function stored.

Description

Method function management method, device, computer equipment and storage medium
Technical field
The present invention relates to field of computer technology more particularly to a kind of method function management methods, device, computer equipment And storage medium.
Background technique
For convenience of being managed to the method function stored, Redis storage system can be used and stored.However, When the method function stored needed for enterprise is more, need to store a large amount of method function in Redis storage system, carry out using Searching in the process a large amount of method function need to take considerable time, and the accumulation of the method function by being stored occupies A large amount of memory spaces cause enterprise to decline the efficiency of management of the method function that is stored.Thus, it is deposited in art methods In the lower problem of the efficiency of management to method function.
Summary of the invention
The embodiment of the invention provides a kind of method function management method, device, computer equipment and storage mediums, it is intended to It is lower to solve the problems, such as to exist in the prior art efficiency when being managed to method function.
In a first aspect, the embodiment of the invention provides a kind of method function management methods comprising:
According to preset parameter type information generating function database and basic information database;
If the newly-increased function information that user is inputted is received, according to the newly-increased function information in newly-increased function information Method function stored;
If receiving the function name and parameter value that user is inputted, parameter value is matched according to parameter type information To obtain the target component type to match with the parameter value;
According to the basic information in obtained target component type and the function name and basic information database into Row matching is to acquire the goal approach function in respective function database.
Second aspect, the embodiment of the invention provides a kind of method function managing devices comprising:
Database generation unit, for according to preset parameter type information generating function database and basic information data Library;
Method function storage unit, if the newly-increased function information inputted for receiving user, according to the newly-increased letter Number information stores the method function in newly-increased function information;
Parameter type match unit, if for receiving the function name and parameter value that user is inputted, according to parameter class The target component type that type information matches parameter value to obtain matching with the parameter value;
Goal approach function unit, for according to obtained target component type and the function name and basic information Basic information in database is matched to acquire the goal approach function in respective function database.
The third aspect, the embodiment of the present invention provide a kind of computer equipment again comprising memory, processor and storage On the memory and the computer program that can run on the processor, the processor execute the computer program Method function management method described in the above-mentioned first aspect of Shi Shixian.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, wherein the computer can It reads storage medium and is stored with computer program, it is above-mentioned that the computer program when being executed by a processor executes the processor Method function management method described in first aspect.
The embodiment of the invention provides a kind of method function management method, device, computer equipment and storage mediums.Pass through The basic information that basic information database is used for storage method function is generated, is used for the side of storage by generating multiple function data libraries Method function, the function name and parameter value inputted by user match to obtain target component type and further obtain corresponding letter Goal approach function in number database, realizes and carries out classification storage to method function, user can be facilitated to method function It is stored and is called, and greatly improve the efficiency carried out maintenance management to the method function stored.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow diagram of method function management method provided in an embodiment of the present invention;
Fig. 2 is the sub-process schematic diagram of method function management method provided in an embodiment of the present invention;
Fig. 3 is another sub-process schematic diagram of method function management method provided in an embodiment of the present invention;
Fig. 4 is another sub-process schematic diagram of method function management method provided in an embodiment of the present invention;
Fig. 5 is another flow diagram of method function management method provided in an embodiment of the present invention;
Fig. 6 is the schematic block diagram of method function managing device provided in an embodiment of the present invention;
Fig. 7 is the subelement schematic block diagram of method function managing device provided in an embodiment of the present invention;
Fig. 8 is another subelement schematic block diagram of method function managing device provided in an embodiment of the present invention;
Fig. 9 is another subelement schematic block diagram of method function managing device provided in an embodiment of the present invention;
Figure 10 is another schematic block diagram of method function managing device provided in an embodiment of the present invention;
Figure 11 is the schematic block diagram of computer equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
Referring to Fig. 1, Fig. 1 is the flow diagram of method function management method provided in an embodiment of the present invention.This method Function management method is applied in management server, and this method is held by the application software being installed in management server Row, management server is the enterprise terminal for executing method function management method to be managed to method function.
As shown in Figure 1, the method comprising the steps of S110~S140.
S110, according to preset parameter type information generating function database and basic information database.
Multiple function data libraries are generated according to the parameter type in parameter preset type information, and generate basic information data Library.Wherein, function data library and be database for deposit method function, the method function storage of different parameters type with not In same function data library, the quantity in function data library is greater than one;Basic information database is for deposit method function Basic information and database that the method function in function data library is managed, the quantity of basic information database be only One.Since the quantity of the method function of required storage is larger, and calculating logic included in Part Methods function is very multiple It is miscellaneous, magnanimity method function is managed for convenience, the basic information of method function and method function need to be stored to difference Database in.Generating function database is that the quantity of the parameter type according to included in parameter type information generates respective counts The function data library of amount, basic information database generated only have one.
Method function is that the parameter value for being inputted to user (user of management server) carries out calculation processing Function information, the specific calculating logic in method function comprising being calculated parameter value.Parameter type information is to be used for To the information that the concrete type of parameter value is classified, different types of parameter value has different parameter types, parameter type It include all parameter types in information.It can not be calculated between the parameter value of different parameters type, therefore Same Way letter The parameter type of parameter value used in number is all the same.
For example, parameter type information includes five parameters altogether when being stored using Redis storage system to data information Type is respectively as follows: character string (String), hash (Hash), list (List), set (Set) and ordered set (Sorted Set), then corresponding generate can not function data library and a basic information database.
If S120, the newly-increased function information that user is inputted is received, according to the newly-increased function information to new increasing function Method function in information is stored.
If the newly-increased function information that user is inputted is received, according to the newly-increased function information in newly-increased function information Method function stored.Wherein, newly-increased function information is that the need that are inputted of user increase newly to the method in function data library The information of function includes method function, parameter type, function name in the newly-increased function information.Specifically, method function is The function information for carrying out calculation processing to design parameter value, in method function comprising parameter value that user is inputted into The specific calculating logic that row calculates, parameter type is the type information of all parameter values in this method function, and function name is It is the name information of this method function.
For example, a certain newly-increased function information is as shown in table 1.
Method function Parameter type Function name
X=a+b String add
Table 1
In one embodiment, as shown in Fig. 2, step S120 includes sub-step S121, S122 and S123.
Parameter type in the newly-increased function information of S121, basis increases this newly method function in function information and stores to phase It answers function data library and records the function location information that this method function is stored.
This is increased newly method function in function information according to the parameter type in newly-increased function information to store to corresponding letter Number database simultaneously records the function location information that this method function is stored.Since multiple function data libraries generated are right respectively Different parameter types is answered, therefore can be increased this included in function information newly according to the parameter type in newly-increased function information Method function is stored into respective function database, and records the function location information of this method function.Wherein, function position is believed Breath is the more specific location information for the storage of recording method function.
For example, as shown in table 1, the parameter type in the corresponding newly-increased function information of this method function is character string (String) type then stores this method function into character string function database corresponding with character string type, if should Method function is added 12nd method function in function data library, then the function location information of this method function is character String function database -12.
S122, the function name according in obtained function location information and newly-increased function information, parameter type life At this method function basic information and store into basic information database.
According to function name, the parameter type in obtained function location information and newly-increased function information, generating should The basic information of method function is simultaneously stored into basic information database.Wherein, basic information only includes the function of method function Location information, function name and parameter type, and do not include the specific calculating logic information of this method function.By by method letter Several basic informations are stored into basic information database, carry out pipe to method function specific in function data library to facilitate Reason improves the retrieval rate carried out to specific method function, and the efficiency for obtaining specific method function greatly improved.
S123, it generates the out-of-service time according to default out-of-service time information and the newly-increased function information and is added to and stored Method function in.
The out-of-service time is generated according to default out-of-service time information and the newly-increased function information, and when by failure generated Between be added in stored method function.It wherein, further include out-of-service time information, the failure in the newly-increased function information Temporal information be it is non-must defeated information can still pass through default when user is to input out-of-service time information in newly-increased function information Out-of-service time information generates the corresponding out-of-service time.Out-of-service time information is pair that user is inputted in newly-increased function information The temporal information that the state of method function is controlled, default out-of-service time information is the preset shape to method function The default time information that state is controlled, the out-of-service time be in method function added by the state of method function is controlled The temporal information of system.If this method function stored time is more than the out-of-service time, this method is deleted from function data library Function simultaneously deletes the basic information of this method function from basic information database, to ensure that database occupies as few as possible Memory space, the quantity for controlling stored method function are also able to ascend the retrieval rate carried out to specific method function, energy Enough greatly improve the efficiency for obtaining specific method function.
In one embodiment, as shown in figure 3, step S123 includes sub-step S1231, S1232 and S1233.
S1231, whether judge comprising out-of-service time information in newly-increased function information.
Whether judge comprising out-of-service time information in newly-increased function information.It is lost specifically, being added to method function The method of effect time is, if user has input out-of-service time information in newly-increased function information, to be lost using increasing newly in function information Temporal information is imitated as the out-of-service time;If user does not input out-of-service time information in newly-increased function information, uses and preset , out-of-service time information is defaulted as the out-of-service time.
If including out-of-service time information in S1232, newly-increased function information, using the out-of-service time information as the out-of-service time And it is added in the newly-increased corresponding method function of function information.
If including out-of-service time information in newly-increased function information, the out-of-service time information as the out-of-service time and is added It is increased newly in the corresponding method function of function information to this.For example, the out-of-service time information of user's input is 5 in newly-increased function information 5 days, then be added in stored this method function by it as the out-of-service time.
If not including out-of-service time information in S1233, newly-increased function information, default out-of-service time information is set as failing Time is simultaneously added in the newly-increased corresponding method function of function information.
If not including out-of-service time information in newly-increased function information, the out-of-service time is set simultaneously for default out-of-service time information It is added in the newly-increased corresponding method function of function information.For example, default out-of-service time information is 10 days, user is not newly-increased Out-of-service time information is inputted in function information, then is added to 10 days in stored this method function as the out-of-service time.
If S130, receiving function name and parameter value that user is inputted, according to parameter type information to parameter value into Target component type of the row matching to obtain matching with the parameter value.
If receiving the function name and parameter value that user is inputted, parameter value is matched according to parameter type information To obtain the target component type to match with the parameter value.There are many different parameter types for parameter value, therefore can basis The parameter value that parameter type information inputs user is matched to obtain matching in parameter type information with the parameter value Target component type.Wherein, target component type is matches according to user's institute's input parameter value to parameter type information Obtained parameter type information afterwards, the parameter type of the parameter value as used in Same Way function is all the same, Obtained target component type one and only one.
For example, the function name of user's input is add, parameter value is " hello ", " world ", and parameter type information is wrapped altogether Containing five parameter types, it is respectively as follows: character string (String), hash (Hash), list (List), set (Set) and ordered set It closes (Sorted Set), then parameter value is matched to obtain target component type to be character string according to parameter type information (String)。
S140, believed according to the basis in obtained target component type and the function name and basic information database Breath is matched to acquire the goal approach function in respective function database.
According to the basic information in obtained target component type and the function name and basic information database into Row matching is to acquire the goal approach function in respective function database.Goal approach function is obtained and to target to realize Method function is called, and needs the function name and basic information inputted according to the target component type and user that acquire Basic information in database is matched, and to obtain the function location information of respective function method, and is further obtained corresponding Goal approach function in function data library.Goal approach function is target component type and function name and function database In the method function that matches, the goal approach function matched one and only one.
In one embodiment, as shown in figure 4, step S140 includes sub-step S141 and S142.
S141, matched according to target component type and function name with the basic information in basic information database with Obtain the function location information to match with target component type and function name.
It is matched according to target component type and function name with the basic information in basic information database to obtain The function location information to match with target component type and function name.It include multiple function datas in basic information database The basic information of all method functions stored in library, include in basic information the function name of method function, parameter type, Function location information, therefore by carrying out the basic information in target component type and function name and basic information database Matching, can acquire the function location information to match with objective function type and function name.
Specifically, Same Function title can correspond to multiple method functions applied to different parameters type, therefore need to pass through Function name retrieves corresponding method function, and by parameter type to be applied to design parameter type, have it is same Multiple method functions of one function name are further retrieved, and obtain goal approach in basic information database with final determination The function location information of function.
S142, the method function in corresponding respective function database is obtained as target side letter of law according to function location information Number is exported.
According to function location information obtain the method function in corresponding respective function database as goal approach function into Row output.Since method function one corresponding in the function location information and function database in basic information database is a pair of It answers, therefore the position that goal approach function is stored can determine by acquired function location information, and then acquire Method function in respective function database is exported as goal approach function.
In one embodiment, as shown in figure 5, further including step S150 after step S140.
S150, the parameter value that user is inputted is inputted into obtained goal approach function to realize to goal approach function It is called.
The parameter value that user is inputted is inputted obtained goal approach function to carry out goal approach function to realize It calls.After acquiring goal approach function, goal approach function is called in order to realize, user can be inputted Parameter value input obtained goal approach function, to realize the parameter value exported by the goal approach function to user Carry out logical operation, that is to say to goal approach function carry out using.
The basic information for being used for storage method function by generating basic information database, by generating multiple function datas Library is used for storage method function, and the function name and parameter value inputted by user matches to obtain target component type and go forward side by side one Step obtains the goal approach function in respective function database, realizes and carries out classification storage to method function, can facilitate use Family is stored and is called to method function, and greatly improves the efficiency carried out maintenance management to the method function stored.
The embodiment of the present invention also provides a kind of method function managing device, and this method function managing device is aforementioned for executing Any embodiment of method function management method.Specifically, referring to Fig. 6, Fig. 6 is method function provided in an embodiment of the present invention The schematic block diagram of managing device.This method function managing device 100 can be configured in management server.
As shown in fig. 6, method function managing device 100 includes database generation unit 110, method function storage unit 120, parameter type match unit 130 and goal approach function acquiring unit 140.
Database generation unit 110, for according to preset parameter type information generating function database and basic information Database.
Multiple function data libraries are generated according to the parameter type in parameter preset type information, and generate basic information data Library.Wherein, function data library and be database for deposit method function, the method function storage of different parameters type with not In same function data library, the quantity in function data library is greater than one;Basic information database is for deposit method function Basic information and database that the method function in function data library is managed, the quantity of basic information database be only One.Since the quantity of the method function of required storage is larger, and calculating logic included in Part Methods function is very multiple It is miscellaneous, magnanimity method function is managed for convenience, the basic information of method function and method function need to be stored to difference Database in.Generating function database is that the quantity of the parameter type according to included in parameter type information generates respective counts The function data library of amount, basic information database generated only have one.
Method function is that the parameter value for being inputted to user (user of management server) carries out calculation processing Function information, the specific calculating logic in method function comprising being calculated parameter value.Parameter type information is to be used for To the information that the concrete type of parameter value is classified, different types of parameter value has different parameter types, parameter type It include all parameter types in information.It can not be calculated between the parameter value of different parameters type, therefore Same Way letter The parameter type of parameter value used in number is all the same.
Method function storage unit 120, if the newly-increased function information inputted for receiving user, according to described newly-increased Function information stores the method function in newly-increased function information.
If the newly-increased function information that user is inputted is received, according to the newly-increased function information in newly-increased function information Method function stored.Wherein, newly-increased function information is that the need that are inputted of user increase newly to the method in function data library The information of function includes method function, parameter type, function name in the newly-increased function information.Specifically, method function is The function information for carrying out calculation processing to design parameter value, in method function comprising parameter value that user is inputted into The specific calculating logic that row calculates, parameter type is the type information of all parameter values in this method function, and function name is It is the name information of this method function.
In other inventive embodiments, as shown in fig. 7, the method function storaging unit 120 includes subelement: function storage Unit 121, basic information storage unit 122 and out-of-service time adding unit 123.
Function storaging unit 121, for being increased this in function information newly according to the parameter type increased newly in function information Method function stores to respective function database and records the function location information that this method function stored.
This is increased newly method function in function information according to the parameter type in newly-increased function information to store to corresponding letter Number database simultaneously records the function location information that this method function is stored.Since multiple function data libraries generated are right respectively Different parameter types is answered, therefore can be increased this included in function information newly according to the parameter type in newly-increased function information Method function is stored into respective function database, and records the function location information of this method function.Wherein, function position is believed Breath is the more specific location information for the storage of recording method function.
Basic information storage unit 122, for according in obtained function location information and newly-increased function information Function name, parameter type generate the basic information of this method function and store into basic information database.
According to function name, the parameter type in obtained function location information and newly-increased function information, generating should The basic information of method function is simultaneously stored into basic information database.Wherein, basic information only includes the function of method function Location information, function name and parameter type, and do not include the specific calculating logic information of this method function.By by method letter Several basic informations are stored into basic information database, carry out pipe to method function specific in function data library to facilitate Reason improves the retrieval rate carried out to specific method function, and the efficiency for obtaining specific method function greatly improved.
Out-of-service time adding unit 123, for generating and losing according to default out-of-service time information and the newly-increased function information The effect time is simultaneously added in stored method function.
The out-of-service time is generated according to default out-of-service time information and the newly-increased function information, and when by failure generated Between be added in stored method function.It wherein, further include out-of-service time information, the failure in the newly-increased function information Temporal information be it is non-must defeated information can still pass through default when user is to input out-of-service time information in newly-increased function information Out-of-service time information generates the corresponding out-of-service time.Out-of-service time information is pair that user is inputted in newly-increased function information The temporal information that the state of method function is controlled, default out-of-service time information is the preset shape to method function The default time information that state is controlled, the out-of-service time be in method function added by the state of method function is controlled The temporal information of system.If this method function stored time is more than the out-of-service time, this method is deleted from function data library Function simultaneously deletes the basic information of this method function from basic information database, to ensure that database occupies as few as possible Memory space, the quantity for controlling stored method function are also able to ascend the retrieval rate carried out to specific method function, energy Enough greatly improve the efficiency for obtaining specific method function.
In other inventive embodiments, as shown in figure 8, the out-of-service time adding unit 123 includes subelement: out-of-service time Information judging unit 1231, the first out-of-service time adding unit 1232 and the second out-of-service time adding unit 1233.
Out-of-service time information judging unit 1231, for whether including the progress of out-of-service time information in newly-increased function information Judgement.
Whether judge comprising out-of-service time information in newly-increased function information.It is lost specifically, being added to method function The method of effect time is, if user has input out-of-service time information in newly-increased function information, to be lost using increasing newly in function information Temporal information is imitated as the out-of-service time;If user does not input out-of-service time information in newly-increased function information, uses and preset , out-of-service time information is defaulted as the out-of-service time.
First out-of-service time adding unit 1232, if for including out-of-service time information in newly-increased function information, it will be described Out-of-service time information is as the out-of-service time and is added in the newly-increased corresponding method function of function information.
If including out-of-service time information in newly-increased function information, the out-of-service time information as the out-of-service time and is added It is increased newly in the corresponding method function of function information to this.
Second out-of-service time adding unit 1233, if will write from memory for not including out-of-service time information in newly-increased function information Recognize out-of-service time information to be set as the out-of-service time and be added in the newly-increased corresponding method function of function information.
If not including out-of-service time information in newly-increased function information, the out-of-service time is set simultaneously for default out-of-service time information It is added in the newly-increased corresponding method function of function information.
Parameter type match unit 130, if for receiving the function name and parameter value that user is inputted, according to parameter The target component type that type information matches parameter value to obtain matching with the parameter value.
If receiving the function name and parameter value that user is inputted, parameter value is matched according to parameter type information To obtain the target component type to match with the parameter value.There are many different parameter types for parameter value, therefore can basis The parameter value that parameter type information inputs user is matched to obtain matching in parameter type information with the parameter value Target component type.Wherein, target component type is matches according to user's institute's input parameter value to parameter type information Obtained parameter type information afterwards, the parameter type of the parameter value as used in Same Way function is all the same, Obtained target component type one and only one.
Goal approach function acquiring unit 140, for according to obtained target component type and the function name with Basic information in basic information database is matched to acquire the goal approach function in respective function database.
According to the basic information in obtained target component type and the function name and basic information database into Row matching is to acquire the goal approach function in respective function database.Goal approach function is obtained and to target to realize Method function is called, and needs the function name and basic information inputted according to the target component type and user that acquire Basic information in database is matched, and to obtain the function location information of respective function method, and is further obtained corresponding Goal approach function in function data library.Goal approach function is target component type and function name and function database In the method function that matches, the goal approach function matched one and only one.
In other inventive embodiments, as shown in figure 9, the goal approach function acquiring unit 140 includes subelement: function Location information acquiring unit 141 and goal approach function output unit 142.
Function location information acquiring unit 141, for according to target component type and function name and basic information data Basic information in library is matched to obtain the function location information to match with target component type and function name.
It is matched according to target component type and function name with the basic information in basic information database to obtain The function location information to match with target component type and function name.It include multiple function datas in basic information database The basic information of all method functions stored in library, include in basic information the function name of method function, parameter type, Function location information, therefore by carrying out the basic information in target component type and function name and basic information database Matching, can acquire the function location information to match with objective function type and function name.
Specifically, Same Function title can correspond to multiple method functions applied to different parameters type, therefore need to pass through Function name retrieves corresponding method function, and by parameter type to be applied to design parameter type, have it is same Multiple method functions of one function name are further retrieved, and obtain goal approach in basic information database with final determination The function location information of function.
Goal approach function output unit 142, for being obtained in corresponding respective function database according to function location information Method function exported as goal approach function.
According to function location information obtain the method function in corresponding respective function database as goal approach function into Row output.Since method function one corresponding in the function location information and function database in basic information database is a pair of It answers, therefore the position that goal approach function is stored can determine by acquired function location information, and then acquire Method function in respective function database is exported as goal approach function.
In other inventive embodiments, as shown in Figure 10, the method function managing device 100 further includes subelement: method Function calling cell 150.
Method function call unit 150, the parameter value for being inputted user input obtained goal approach function Goal approach function is called with realizing.
The parameter value that user is inputted is inputted obtained goal approach function to carry out goal approach function to realize It calls.After acquiring goal approach function, goal approach function is called in order to realize, user can be inputted Parameter value input obtained goal approach function, to realize the parameter value exported by the goal approach function to user Carry out logical operation, that is to say to goal approach function carry out using.
The basic information for being used for storage method function by generating basic information database, by generating multiple function datas Library is used for storage method function, and the function name and parameter value inputted by user matches to obtain target component type and go forward side by side one Step obtains the goal approach function in respective function database, realizes and carries out classification storage to method function, can facilitate use Family is stored and is called to method function, and greatly improves the efficiency carried out maintenance management to the method function stored.
Above method function managing device can be implemented as the form of computer program, which can such as scheme It is run in computer equipment shown in 11.
Figure 11 is please referred to, Figure 11 is the schematic block diagram of computer equipment provided in an embodiment of the present invention.
Refering to fig. 11, which includes processor 502, memory and the net connected by system bus 501 Network interface 505, wherein memory may include non-volatile memory medium 503 and built-in storage 504.
The non-volatile memory medium 503 can storage program area 5031 and computer program 5032.The computer program 5032 are performed, and processor 502 may make to execute method function management method.
The processor 502 supports the operation of entire computer equipment 500 for providing calculating and control ability.
The built-in storage 504 provides environment for the operation of the computer program 5032 in non-volatile memory medium 503, should When computer program 5032 is executed by processor 502, processor 502 may make to execute method function management method.
The network interface 505 is for carrying out network communication, such as the transmission of offer data information.Those skilled in the art can To understand, structure shown in Figure 11, only the block diagram of part-structure relevant to the present invention program, is not constituted to this hair The restriction for the computer equipment 500 that bright scheme is applied thereon, specific computer equipment 500 may include than as shown in the figure More or fewer components perhaps combine certain components or with different component layouts.
Wherein, the processor 502 is for running computer program 5032 stored in memory, to realize following function Can: according to preset parameter type information generating function database and basic information database;If receiving what user was inputted Newly-increased function information, stores the method function in newly-increased function information according to the newly-increased function information;If receiving The function name and parameter value that user is inputted match parameter value according to parameter type information to obtain and the parameter value The target component type to match;According in obtained target component type and the function name and basic information database Basic information matched to acquire the goal approach function in respective function database.
In one embodiment, if processor 502 is executing the newly-increased function information for receiving user and being inputted, according to described It when the step that newly-increased function information stores the method function in newly-increased function information, performs the following operations: according to newly-increased This is increased newly the method function in function information is stored to respective function database and record should by parameter type in function information The function location information that method function is stored;According to the function in obtained function location information and newly-increased function information Title, parameter type generate the basic information of this method function and store into basic information database;When according to default failure Between information and the newly-increased function information generate the out-of-service time and be added in stored method function.
In one embodiment, processor 502 is being executed according to default out-of-service time information and the newly-increased function information life At the out-of-service time and be added in stored method function step when, perform the following operations: to being in newly-increased function information It is no to be judged comprising out-of-service time information;If including out-of-service time information in newly-increased function information, the out-of-service time is believed Breath is as the out-of-service time and is added in the newly-increased corresponding method function of function information;It is lost if not including in newly-increased function information Temporal information is imitated, set the out-of-service time for default out-of-service time information and is added to the newly-increased corresponding method letter of function information In number.
In one embodiment, processor 502 execute according to obtained target component type and the function name with Basic information in basic information database is matched to acquire the goal approach function in respective function database When step, perform the following operations: according to the basic information in target component type and function name and basic information database into Row matching is to obtain the function location information to match with target component type and function name;It is obtained according to function location information Method function in corresponding respective function database is exported as goal approach function.
In one embodiment, processor 502 execute according to obtained target component type and the function name with Basic information in basic information database is matched to acquire the goal approach function in respective function database It after step, also performs the following operations: parameter value that user is inputted being inputted into obtained goal approach function to realize pair Goal approach function is called.
It will be understood by those skilled in the art that the embodiment of computer equipment shown in Figure 11 is not constituted to computer The restriction of equipment specific composition, in other embodiments, computer equipment may include components more more or fewer than diagram, or Person combines certain components or different component layouts.For example, in some embodiments, computer equipment can only include depositing Reservoir and processor, in such embodiments, the structure and function of memory and processor are consistent with embodiment illustrated in fig. 11, Details are not described herein.
It should be appreciated that in embodiments of the present invention, processor 502 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable GateArray, FPGA) or other programmable logic devices Part, discrete gate or transistor logic, discrete hardware components etc..Wherein, general processor can be microprocessor or The processor is also possible to any conventional processor etc..
Computer readable storage medium is provided in another embodiment of the invention.The computer readable storage medium can be with For non-volatile computer readable storage medium.The computer-readable recording medium storage has computer program, wherein calculating Machine program is performed the steps of when being executed by processor according to preset parameter type information generating function database and basis letter Cease database;If the newly-increased function information that user is inputted is received, according to the newly-increased function information to newly-increased function information In method function stored;If the function name and parameter value that user is inputted are received, according to parameter type information pair The target component type that parameter value is matched to obtain matching with the parameter value;According to obtained target component type and The function name is matched with the basic information in basic information database to acquire in respective function database Goal approach function.
In one embodiment, if the newly-increased function information for receiving user and being inputted, believed according to the new increasing function The step of breath stores the method function in newly-increased function information, comprising: according to the parameter type in newly-increased function information This is increased newly method function in function information to store to respective function database and record the function that this method function stored Location information;Being generated according to function name, the parameter type in obtained function location information and newly-increased function information should The basic information of method function is simultaneously stored into basic information database;According to default out-of-service time information and the new increasing function Information generates the out-of-service time and is added in stored method function.
In one embodiment, described that the out-of-service time is generated simultaneously according to default out-of-service time information and the newly-increased function information The step being added in stored method function, comprising: whether include the progress of out-of-service time information in newly-increased function information Judgement;If including out-of-service time information in newly-increased function information, the out-of-service time information as the out-of-service time and is added to In the newly-increased corresponding method function of function information;If not including out-of-service time information in newly-increased function information, default is failed Temporal information is set as the out-of-service time and is added in the newly-increased corresponding method function of function information.
In one embodiment, described according to obtained target component type and the function name and basic information data Basic information in library is matched the step of to acquire the goal approach function in respective function database, comprising: root It is matched according to target component type and function name with the basic information in basic information database with acquisition and target component The function location information that type and function name match;It is obtained in corresponding respective function database according to function location information Method function is exported as goal approach function.
In one embodiment, described according to obtained target component type and the function name and basic information data After basic information in library is matched the step of to acquire the goal approach function in respective function database, also wrap It includes: the parameter value that user is inputted being inputted into obtained goal approach function, goal approach function is called with realizing.
It is apparent to those skilled in the art that for convenience of description and succinctly, foregoing description is set The specific work process of standby, device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein. Those of ordinary skill in the art may be aware that unit described in conjunction with the examples disclosed in the embodiments of the present disclosure and algorithm Step can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and software Interchangeability generally describes each exemplary composition and step according to function in the above description.These functions are studied carefully Unexpectedly the specific application and design constraint depending on technical solution are implemented in hardware or software.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
In several embodiments provided by the present invention, it should be understood that disclosed unit and method, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only logical function partition, there may be another division manner in actual implementation, can also will be with the same function Unit set is at a unit, such as multiple units or components can be combined or can be integrated into another system or some Feature can be ignored, or not execute.In addition, shown or discussed mutual coupling, direct-coupling or communication connection can Be through some interfaces, the indirect coupling or communication connection of device or unit, be also possible to electricity, mechanical or other shapes Formula connection.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.Some or all of unit therein can be selected to realize the embodiment of the present invention according to the actual needs Purpose.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, is also possible to two or more units and is integrated in one unit.It is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, which is stored in a computer readable storage medium, including some instructions are used so that one Platform computer equipment (can be personal computer, server or the network equipment etc.) executes described in each embodiment of the present invention The all or part of the steps of method.And computer readable storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory The various media that can store program code such as (ROM, Read-Only Memory), magnetic or disk.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection scope subject to.

Claims (10)

1. a kind of method function management method characterized by comprising
According to preset parameter type information generating function database and basic information database;
If the newly-increased function information that user is inputted is received, according to the newly-increased function information to the side in newly-increased function information Letter of law number is stored;
If receiving the function name and parameter value that user is inputted, parameter value is matched to obtain according to parameter type information To the target component type to match with the parameter value;
According to the basic information progress in obtained target component type and the function name and basic information database It is equipped with the goal approach function acquired in respective function database.
2. method according to claim 11 function management method, which is characterized in that described according to the newly-increased function information Method function in newly-increased function information is stored, comprising:
This is increased newly method function in function information according to the parameter type in newly-increased function information to store to respective function number According to library and record the function location information that this method function stored;
Party's letter of law is generated according to function name, the parameter type in obtained function location information and newly-increased function information Several basic informations is simultaneously stored into basic information database;
The out-of-service time is generated according to default out-of-service time information and the newly-increased function information and is added to stored method letter In number.
3. method according to claim 11 function management method, which is characterized in that described according to default out-of-service time information And the newly-increased function information generates the out-of-service time and is added in stored method function, comprising:
Whether judge comprising out-of-service time information in newly-increased function information;
If including out-of-service time information in newly-increased function information, the out-of-service time information as the out-of-service time and is added to this In the newly-increased corresponding method function of function information;
If not including out-of-service time information in newly-increased function information, setting the out-of-service time for default out-of-service time information and adding It is increased newly in the corresponding method function of function information to this.
4. method according to claim 11 function management method, which is characterized in that described according to obtained target component Type and the function name are matched with the basic information in basic information database to acquire respective function data Goal approach function in library, comprising:
It is matched according to target component type and function name with the basic information in basic information database with acquisition and mesh The function location information that mark parameter type and function name match;
It is defeated as the progress of goal approach function that the method function in corresponding respective function database is obtained according to function location information Out.
5. method according to claim 11 function management method, which is characterized in that described according to obtained target component Type and the function name are matched with the basic information in basic information database to acquire respective function data After goal approach function in library, further includes:
The parameter value that user is inputted is inputted obtained goal approach function to be called goal approach function to realize.
6. a kind of method function managing device characterized by comprising
Database generation unit, for according to preset parameter type information generating function database and basic information database;
Method function storage unit is believed if the newly-increased function information inputted for receiving user according to the new increasing function Breath stores the method function in newly-increased function information;
Parameter type match unit, if being believed for receiving the function name and parameter value that user is inputted according to parameter type Breath is matched the target component type to obtain matching with the parameter value to parameter value;
Goal approach function acquiring unit, for according to obtained target component type and the function name and basic information Basic information in database is matched to acquire the goal approach function in respective function database.
7. method according to claim 11 function managing device, which is characterized in that the method function storaging unit, packet It includes:
Function storaging unit, for this to be increased newly to the method function in function information according to the parameter type increased newly in function information It stores to respective function database and records the function location information that this method function stored;
Basic information storage unit, for according to the function name in obtained function location information and newly-increased function information Claim, parameter type generates the basic information of this method function and stores into basic information database;
Out-of-service time adding unit, for generating the out-of-service time simultaneously according to default out-of-service time information and the newly-increased function information It is added in stored method function.
8. method according to claim 11 function managing device, which is characterized in that the out-of-service time adding unit, packet It includes:
Out-of-service time information judging unit, for whether judging comprising out-of-service time information in newly-increased function information;
First out-of-service time adding unit, if for including out-of-service time information in newly-increased function information, by the out-of-service time Information is as the out-of-service time and is added in the newly-increased corresponding method function of function information;
Second out-of-service time adding unit, if for not including out-of-service time information in newly-increased function information, when default is failed Between information be set as the out-of-service time and be added in the newly-increased corresponding method function of function information.
9. a kind of computer equipment, including memory, processor and it is stored on the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 5 when executing the computer program Any one of described in method function management method.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence, the computer program make the processor execute such as side described in any one of claim 1 to 5 when being executed by a processor Letter of law number management method.
CN201811527224.2A 2018-12-13 2018-12-13 Method function management method, device, computer equipment and storage medium Active CN109783162B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811527224.2A CN109783162B (en) 2018-12-13 2018-12-13 Method function management method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811527224.2A CN109783162B (en) 2018-12-13 2018-12-13 Method function management method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109783162A true CN109783162A (en) 2019-05-21
CN109783162B CN109783162B (en) 2024-04-16

Family

ID=66496184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811527224.2A Active CN109783162B (en) 2018-12-13 2018-12-13 Method function management method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109783162B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101299862A (en) * 2008-06-11 2008-11-05 中国电信股份有限公司 Telecommunication service generation environmental system
CN102023861A (en) * 2010-12-08 2011-04-20 中兴通讯股份有限公司 Method and system for generating test script and test suite
ES2554278A1 (en) * 2014-12-10 2015-12-17 Universidad De Málaga Methods of obtaining and selecting adsorbent materials for water purification (Machine-translation by Google Translate, not legally binding)
CN105653720A (en) * 2016-01-07 2016-06-08 北京人大金仓信息技术股份有限公司 Database hierarchical storage optimization method capable of achieving flexible configuration
CN106502745A (en) * 2016-10-26 2017-03-15 腾讯科技(深圳)有限公司 A kind of function calling method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101299862A (en) * 2008-06-11 2008-11-05 中国电信股份有限公司 Telecommunication service generation environmental system
CN102023861A (en) * 2010-12-08 2011-04-20 中兴通讯股份有限公司 Method and system for generating test script and test suite
ES2554278A1 (en) * 2014-12-10 2015-12-17 Universidad De Málaga Methods of obtaining and selecting adsorbent materials for water purification (Machine-translation by Google Translate, not legally binding)
CN105653720A (en) * 2016-01-07 2016-06-08 北京人大金仓信息技术股份有限公司 Database hierarchical storage optimization method capable of achieving flexible configuration
CN106502745A (en) * 2016-10-26 2017-03-15 腾讯科技(深圳)有限公司 A kind of function calling method and device

Also Published As

Publication number Publication date
CN109783162B (en) 2024-04-16

Similar Documents

Publication Publication Date Title
CN109213854A (en) Knowledge mapping approaches to IM, device, computer equipment and storage medium
CN103631933B (en) Distributed duplication elimination system-oriented data routing method
JP4736713B2 (en) Systems and methods to support the selection of project members
CN109254966A (en) Tables of data querying method, device, computer equipment and storage medium
CN105242983B (en) A kind of date storage method and a kind of data storage management service device
CN109960587A (en) The storage resource distribution method and device of super fusion cloud computing system
CN105094811B (en) A kind of method and apparatus of event handling
CN109685336A (en) Collection task distribution method, device, computer equipment and storage medium
CN109783802A (en) A kind of business rule processing method, server and computer readable storage medium
CN108810125A (en) The service discovery method and system of physical node
CN108897525A (en) Test data generating method, device, computer equipment and storage medium
CN108259195A (en) The determining method and system of the coverage of anomalous event
CN108694672A (en) Order processing method, apparatus, computer equipment and storage medium
CN105763608B (en) A kind of message treatment method and device for cloud storage system
CN109783162A (en) Method function management method, device, computer equipment and storage medium
CN105049475B (en) The data efficient storage optimization method and system of extensive community
CN110399095A (en) A kind of statistical method and device of memory space
EP2213066A2 (en) Acquisition and expansion of storage area network interoperation relationships
CN108881646A (en) Task tracking, device, equipment and the storage medium of call center
CN109815227A (en) Data lock management method, device, computer equipment and storage medium
CN111694814B (en) Batch expansion method and device for date partition table, computer equipment and storage medium
CN110084467A (en) Mobile standard inspection method, apparatus, computer equipment and storage medium
CN109359799A (en) Declaration form tune form processing method, device, computer equipment and storage medium
CN108647936A (en) Commission distribution method, device, computer equipment and storage medium
CN107562842A (en) The guard method of resource data and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant