Disclosure of Invention
The embodiment of the application provides a method, a device, electronic equipment and a storage medium for opening function rights, which can solve the problem that a user uses a function module improperly.
In a first aspect, an embodiment of the present application provides a method for opening a function right, including:
acquiring a user grade of a user;
determining a target function corresponding to the user grade;
And opening the use authority of the target function to the user.
Optionally, before the step of obtaining the user level of the user, the method includes:
acquiring the working years of the user and/or the times of vehicle diagnosis by the user and/or the diagnosis evaluation information of vehicle diagnosis by the user;
And determining the user grade of the user according to the service life of the user and/or the number of times the user performs vehicle diagnosis in the past and/or the diagnosis evaluation information of the user performing vehicle diagnosis.
Optionally, before the step of obtaining the user level of the user, the method further includes:
Binding at least one user grade with a corresponding target function with a use right to form binding information;
correspondingly, the determining the target function corresponding to the user grade comprises:
Acquiring the binding information;
and searching the target function with the use authority corresponding to the user grade from the binding information.
Optionally, after the opening of the usage right of the target function to the user, the method further includes:
acquiring a use request of a user for a first function;
Judging whether the first function is a target function corresponding to the user;
if not, obtaining the user grade corresponding to the first function;
comparing the user grade of the first function with the user grade of the user;
If the user grade of the first function is higher than the user grade of the user by one grade;
and rejecting the use request of the user for the first function if the user grade of the first function is higher than the user grade of the user by at least one level.
Optionally, the sending the purchase payment information of the first function to the user includes:
And determining the purchase expense of the first function according to the user grade of the user, wherein the purchase payment information comprises the purchase expense.
Optionally, after the sending the purchase payment information of the first function to the user, the method further includes:
and sending a usage learning package of the first function to the user.
Optionally, after the opening of the usage right of the target function to the user, the method further includes:
Acquiring a degradation request of a user, wherein the degradation request comprises the grade of the user request;
And closing the use permission of the target function which is not matched with the grade requested by the user to the user according to the grade requested by the user.
In a second aspect, an embodiment of the present application provides an apparatus for opening a function right, including:
The user grade acquisition module is used for acquiring the user grade of the user;
A function determining module, configured to determine a target function corresponding to the user level;
And the function opening module is used for opening the use authority of the target function to the user.
Optionally, the function authority opening device further includes:
the information acquisition module is used for acquiring the working years of the user and/or the times of vehicle diagnosis by the user and/or the diagnosis evaluation information of vehicle diagnosis by the user;
and the user grade determining module is used for determining the user grade of the user according to the service life of the user and/or the number of times the user performs vehicle diagnosis and/or the diagnosis evaluation information of the user performing vehicle diagnosis.
Optionally, the function authority opening device further includes:
The binding module is used for binding at least one user grade with a corresponding target function with a use right to form binding information;
Correspondingly, the function determining module comprises:
a binding information acquisition unit configured to acquire the binding information;
And the function searching unit is used for searching the target function with the use permission corresponding to the user grade from the binding information.
Optionally, the function authority opening device further includes:
the use request acquisition module is used for acquiring a use request of a user for a first function;
The first judging module is used for judging whether the first function is a target function corresponding to the user;
The grade acquisition module is used for acquiring the user grade corresponding to the first function if not;
a comparison module for comparing the user grade of the first function with the user grade of the user;
the second judging module is used for judging whether the user grade of the first function is higher than the user grade of the user by one grade;
And if the user grade of the first function is higher than the user grade of the user by at least one level, rejecting the use request of the user for the first function.
Optionally, the judging and processing module includes:
and the expense determining unit is used for determining the purchase expense of the first function according to the user grade of the user, and the purchase payment information comprises the purchase expense.
Optionally, the judging and processing module further includes:
And the learning packet sending unit is used for sending the usage learning packet of the first function to the user.
Optionally, the function authority opening device further includes:
A degradation request acquisition module for acquiring the degradation request of the user, the degradation request comprises the grade of the user request;
And the function closing module is used for closing the use permission of the target function which is not matched with the grade requested by the user to the user according to the grade requested by the user.
In a third aspect, an embodiment of the present application provides an electronic device, including:
a memory, a processor and a computer program stored in the memory and executable on the processor, which when executed by the processor, implements the steps of the method for opening functional rights as described in the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, including a computer program stored in the computer readable storage medium, where the computer program is executed by a processor to implement the steps of the method for opening a functional right according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a computer program product, which when run on an electronic device, causes the electronic device to perform the steps of the method for opening functional rights according to the first aspect.
Compared with the prior art, the method has the advantages that the target functions opened for the user correspond to the user grade of the user, and the user grade of the user can reflect the working capacity of the user, so that the target functions with different difficulty levels can be opened for the users with different user grades, the functions which cannot be understood and operated by a maintenance technician can be prevented from being opened, and the problem of high maintenance cost caused by improper operation can be solved.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in the present description and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
Fig. 1 is a flowchart illustrating a method for opening a function right according to an embodiment of the present application, which is applicable to a vehicle diagnosis device, as shown in fig. 1, and includes steps S110 to S130. The specific implementation principle of each step is as follows:
S110, obtaining the user grade of the user.
In some embodiments, users may be ranked according to their work capabilities. Wherein the user may be a service technician.
The service technician's ability to work, among other things, can be determined from the following three dimensions.
First, the service capability of the service technician is determined based on the service life of the service technician. The longer the service technician's service life, the more powerful the service technician's service capability is indicated.
And secondly, judging the working capacity of the maintenance technician according to the number of times the maintenance technician performs vehicle diagnosis. The more times a service technician makes a vehicle diagnosis, the more the service technician's work experience is, the more work capacity is.
Thirdly, the working ability of the maintenance technician is judged according to the diagnosis evaluation information of the vehicle diagnosis by the maintenance technician. Specifically, the lower the repair rate of the vehicle after diagnosis by the service technician, the higher the service rating of the service technician by the customer, indicating that the service technician has greater working capacity.
The service technician's ability to work can be determined specifically in one of the dimensions, in two of the dimensions, or in all three dimensions.
The user level of the service technician may be level a, level B, level C, level D, etc., without limitation.
S120, determining a target function corresponding to the user grade.
In some embodiments, the target device may determine a target function corresponding to a user level of the user.
Wherein the target device may be a vehicle diagnostic device and the target function may be one or more diagnostic function modules of the vehicle diagnostic device.
The user grades of the users are different, and the corresponding target functions with the use rights are different. For example, the target functions with the use authority corresponding to the service technician of the class a may be the function module 1, the function module 2, and the function module 3, while the target functions with the use authority corresponding to the service technician of the class D may be only the function module 1.
S130, opening the use authority of the target function to the user.
In some embodiments, the target device may open the usage rights of the corresponding target function to the user according to the user level of the user.
For example, the use authority of the function module 1, the function module 2, and the function module 3 is opened to the class a service technician, the class a service technician can use the function module 1, the function module 2, and the function module 3, the use authority of the function module 1 is opened to the class D service technician, and the class D service technician can use the function module 1.
It should be understood that, in steps S110 to S130, the user grade of the user is obtained first, and then the user is opened with the use authority of the target function corresponding to the grade, and since the use authority of the target function opened for the user corresponds to the user grade of the user, and the user grade of the user can reflect the working ability of the user, the target functions with different difficulty levels can be opened for the users with different user grades, and the users cannot use the target functions without opened modules, so that the target functions which cannot be understood and can not be operated by the maintenance technician can be prevented from being opened, and further the problem of high maintenance cost caused by improper operation can be solved.
In some embodiments, on the basis of the embodiment of the method for opening the function rights shown in fig. 1, before the step S110 of obtaining the user level of the user, the following steps may be further implemented:
step 11, acquiring the working years of the user and/or the number of times of vehicle diagnosis by the user and/or diagnosis evaluation information of vehicle diagnosis by the user;
and step 12, determining the user grade of the user according to the service life of the user and/or the number of times the user performs vehicle diagnosis and/or the diagnosis evaluation information of the user performing vehicle diagnosis.
It should be understood that, in the steps 11 to 12, the user grade of the user may be determined according to the service life of the user and/or the number of times the user performs the vehicle diagnosis and/or the diagnosis evaluation information of the user performing the vehicle diagnosis, and the user grade may reflect the service ability of the user.
In some embodiments, on the basis of the embodiment of the method for opening a function right shown in fig. 1, before determining the target function corresponding to the user level in step S120, the method may further include the following steps:
And step 21, binding the user grade with the corresponding target function with the use authority to form binding information.
In some embodiments, the user level may be bound in advance with the corresponding target function with usage rights.
For example, the class a may be bound to the function module 1, the function module 2, and the function module 3, and after the binding is successful, the user of the class a has the use rights of the function module 1, the function module 2, and the function module 3.
For example, the class a may be bound to the function module 1, and after the binding is successful, the user of the class a has the use authority of the function module 1.
Correspondingly, the step S120 of determining the target function corresponding to the user level may be implemented by the following steps:
step 22, obtaining the binding information.
Step 23, searching the target function with the use authority corresponding to the user grade from the binding information.
Specifically, if the user class of the user is class a, pre-established binding information may be acquired, and a target function corresponding to class a may be found from the binding information.
For example, in the binding information, the target functions corresponding to the class a are the function module 1, the function module 2 and the function module 3, and then the class a can be found from the binding information, and then the function module 1, the function module 2 and the function module 3 bound to the class a are obtained.
In some embodiments, on the basis of the embodiment of the method for opening the function rights shown in fig. 1, after the opening the use rights of the target function to the user in step S130, the use rights of the target function of a higher level may be further opened to the user according to the needs of the user. Specifically, the method can be realized by the following steps:
Step 31, obtaining a use request of a user for the first function.
Step 32, judging whether the first function is a target function corresponding to the user.
Step 33, if not, obtaining the user grade corresponding to the first function.
Step 34, comparing the user grade of the first function with the user grade of the user.
Step 35, if the user level of the first function is higher than the user level of the user by one step.
And step 36, sending purchase payment information of the first function to the user, and rejecting the user to use the first function if the user level of the first function is higher than the user level of the user by at least one step.
Specifically, the target device may acquire a request for use of the first function by the service technician, determine whether the request for use of the service technician is a cross-level request or a cross-level request, for the cross-level request, considering the working ability of the service technician, it is not allowed to perform the function operation with high difficulty, the target device may directly reject, and if the cross-level request is a cross-level request, for example, the service technician of level D requests the first function that the service technician of level C can use, the service technician of level D may be opened with the use authority of the first function, the service technician of level D is allowed to purchase the function and then use the function, and the target device may transmit purchase payment information of the first function to the service technician of level D.
Further, in the embodiment of the present application, the technician needs to have the use authority of the function module before purchasing and using the function module. The target device may determine a purchase price of the first function according to a user level of the user, and the purchase payment information includes the purchase price. That is, in the present application, even if the same functional module is used, the purchase costs of technicians of different grades are different.
Preferably, the target device may further send a usage learning packet of the first function to the user. Specifically, when the technician for the class D uses the function module for the class C, in order to avoid the improper operation of the technician, after the technician pays the purchase fee of the function module, the technician is also issued with the use learning package of the function module, thereby improving the operation ability of the technician for the function module.
It should be understood that, in the steps 31 to 36, the function module with a suitable difficulty level may be properly opened for the user according to the cross-level requirement of the user, so as to further improve the use experience of the user.
In some embodiments, on the basis of the embodiment of the method for opening the function rights shown in fig. 1, after the opening of the use rights of the target functions to the user in step S130, if not too many function modules are needed when the user of a high level actually operates, the target device may be requested to close the target function corresponding to the high level as required, which may be specifically implemented by the following steps:
Step 41, obtaining a degradation request of a user, wherein the degradation request comprises the grade of the user request.
And step 42, closing the use permission of the target function which is not matched with the grade requested by the user to the user according to the grade requested by the user.
Specifically, the target device may obtain a degraded use request from a service technician and close the use authority of the target function that does not match the requested level according to the level requested by the service technician.
For example, if the user of the level a does not want to use the function module 2 and the function module 3, a degradation request may be sent to the target device to request to reduce the level to the level D, and after the level is reduced to the level D, the target device may close the use rights of the function module 2 and the function module 3 for the user of the level a.
Corresponding to the above method for opening the functional rights shown in fig. 1, fig. 2 shows an apparatus M100 for opening the functional rights provided in an embodiment of the present application, where the apparatus M100 for opening the functional rights may be loaded in a vehicle diagnostic device, and includes:
a user grade obtaining module M110, configured to obtain a user grade of a user;
A function determining module M120, configured to determine a target function corresponding to the user level;
And the function opening module M130 is configured to open the usage rights of the target function to the user.
Optionally, the above-mentioned function authority opening device M100 further includes:
the information acquisition module is used for acquiring the working years of the user and/or the times of vehicle diagnosis by the user and/or the diagnosis evaluation information of vehicle diagnosis by the user;
and the user grade determining module is used for determining the user grade of the user according to the service life of the user and/or the number of times the user performs vehicle diagnosis and/or the diagnosis evaluation information of the user performing vehicle diagnosis.
Optionally, the function authority opening device M100 further includes:
The binding module is used for binding at least one user grade with a corresponding target function with a use right to form binding information;
correspondingly, the function determining module M120 includes:
a binding information acquisition unit configured to acquire the binding information;
And the function searching unit is used for searching the target function with the use permission corresponding to the user grade from the binding information.
Optionally, the function authority opening device M100 further includes:
the use request acquisition module is used for acquiring a use request of a user for a first function;
The first judging module is used for judging whether the first function is a target function corresponding to the user;
The grade acquisition module is used for acquiring the user grade corresponding to the first function if not;
a comparison module for comparing the user grade of the first function with the user grade of the user;
the second judging module is used for judging whether the user grade of the first function is higher than the user grade of the user by one grade;
And if the user grade of the first function is higher than the user grade of the user by at least one level, rejecting the use request of the user for the first function.
Optionally, the judging and processing module includes:
and the expense determining unit is used for determining the purchase expense of the first function according to the user grade of the user, and the purchase payment information comprises the purchase expense.
Optionally, the judging and processing module further includes:
And the learning packet sending unit is used for sending the usage learning packet of the first function to the user.
Optionally, the function authority opening device M100 further includes:
A degradation request acquisition module for acquiring the degradation request of the user, the degradation request comprises the grade of the user request;
And the function closing module is used for closing the use permission of the target function which is not matched with the grade requested by the user to the user according to the grade requested by the user.
It will be appreciated that various implementations and combinations of implementations and advantageous effects thereof in the above embodiments are equally applicable to this embodiment, and will not be described here again.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the application. As shown in fig. 3, the electronic device D10 of this embodiment comprises at least one processor D100 (only one is shown in fig. 3), a memory D101 and a computer program D102 stored in said memory D101 and executable on said at least one processor D100, said processor D100 implementing the steps of any of the various method embodiments described above when executing said computer program D102. Or the processor D100 may perform the functions of the modules/units of the apparatus embodiments described above, such as the functions of the modules M110 to M130 shown in fig. 2, when executing the computer program D102.
In some embodiments, the processor D100, when executing the computer program D102, implements the following steps:
acquiring a user grade of a user;
determining a target function corresponding to the user grade;
And opening the use authority of the target function to the user.
Specifically, before the processor D100 executes the computer program D102 to implement the user class of the acquired user, the following steps may be implemented:
acquiring the working years of the user and/or the times of vehicle diagnosis by the user and/or the diagnosis evaluation information of vehicle diagnosis by the user;
and determining the user grade of the user according to the service life of the user and/or the number of times the user performs vehicle diagnosis and/or the diagnosis evaluation information of the user performing vehicle diagnosis.
When the processor D100 executes the computer program D102, before implementing the obtaining the user level of the user, the following steps are further implemented:
Binding at least one user grade with a corresponding target function with a use right to form binding information;
correspondingly, when the target function corresponding to the user grade is determined, the method may include the following steps:
Acquiring the binding information;
and searching the target function with the use authority corresponding to the user grade from the binding information.
When the processor D100 executes the computer program D102, after implementing the usage rights for opening the target function to the user, the following steps are further implemented:
acquiring a use request of a user for a first function;
Judging whether the first function is a target function corresponding to the user;
if not, obtaining the user grade corresponding to the first function;
comparing the user grade of the first function with the user grade of the user;
If the user grade of the first function is higher than the user grade of the user by one grade;
and rejecting the use request of the user for the first function if the user grade of the first function is higher than the user grade of the user by at least one level.
The processor D100, when executing the computer program D102, may include the following steps when implementing the sending of the purchase payment information of the first function to the user:
And determining the purchase expense of the first function according to the user grade of the user, wherein the purchase payment information comprises the purchase expense.
When the processor D100 executes the computer program D102, after implementing the sending of the purchase payment information of the first function to the user, the following steps may be further implemented:
and sending a usage learning package of the first function to the user.
When the processor D100 executes the computer program D102, after implementing the usage rights for opening the target function to the user, the following steps are further implemented:
Acquiring a degradation request of a user, wherein the degradation request comprises the grade of the user request;
And closing the use permission of the target function which is not matched with the grade requested by the user to the user according to the grade requested by the user.
The electronic device D10 may be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server, etc. The electronic device may include, but is not limited to, a processor D100, a memory D101. It will be appreciated by those skilled in the art that fig. 3 is merely an example of the electronic device D10 and is not meant to be limiting of the electronic device D10, and may include more or fewer components than shown, or may combine certain components, or different components, such as may also include input-output devices, network access devices, etc.
The Processor D100 may be a central processing unit (Central Processing Unit, CPU), the Processor D100 may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL processors, DSPs), application SPECIFIC INTEGRATED Circuits (ASICs), off-the-shelf Programmable gate arrays (fieldprogrammable GATE ARRAY, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory D101 may in some embodiments be an internal storage unit of the electronic device D10, such as a hard disk or a memory of the electronic device D10. The memory D101 may also be an external storage device of the electronic device D10 in other embodiments, for example, a plug-in hard disk, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD) or the like, which are provided on the electronic device D10. Further, the memory D101 may also include both an internal storage unit and an external storage device of the electronic device D10. The memory D101 is used for storing an operating system, an application program, a boot loader (BootLoader), data, other programs, etc., such as program codes of the computer program. The memory D101 may also be used to temporarily store data that has been output or is to be output.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, performs the steps of the respective method embodiments described above.
Embodiments of the present application provide a computer program product which, when run on an electronic device, causes the electronic device to perform the steps of the method embodiments described above.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least any entity or device capable of carrying computer program code to a camera device/terminal equipment, a recording medium, a computer Memory, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other manners. For example, the apparatus/network device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The foregoing embodiments are merely illustrative of the technical solutions of the present application, and not restrictive, and although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those skilled in the art that modifications may still be made to the technical solutions described in the foregoing embodiments or equivalent substitutions of some technical features thereof, and that such modifications or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.