CN109582303A - General purpose module call method, device, computer equipment and storage medium - Google Patents

General purpose module call method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN109582303A
CN109582303A CN201811285630.2A CN201811285630A CN109582303A CN 109582303 A CN109582303 A CN 109582303A CN 201811285630 A CN201811285630 A CN 201811285630A CN 109582303 A CN109582303 A CN 109582303A
Authority
CN
China
Prior art keywords
general purpose
purpose module
module
target
storage
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.)
Pending
Application number
CN201811285630.2A
Other languages
Chinese (zh)
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 CN201811285630.2A priority Critical patent/CN109582303A/en
Publication of CN109582303A publication Critical patent/CN109582303A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Abstract

The invention discloses a kind of general purpose module call method, device, computer equipment and storage mediums, this method comprises: obtaining call request, call request includes target service type and the corresponding service parameter of target service type;Based on target service type queries class libraries component table, general purpose module name corresponding with target service type and storage ID are obtained;Based on general purpose module name and storage ID, target general purpose module corresponding with target service type is obtained from storage repository;Service parameter is sent in target general purpose module by the interface of target general purpose module;Performance objective general purpose module generates file destination based on service parameter, and the present invention generates file destination by quick calling target general purpose module, improves the reusability of class libraries component, improve development efficiency.

Description

General purpose module call method, device, computer equipment and storage medium
Technical field
The present invention relates to field of computer technology more particularly to a kind of general purpose module call methods, device, computer equipment And storage medium.
Background technique
During webpage development, it is often necessary to realize that certain functions, such as webpage are asked using various patterns component Ask, the functions such as interface UI or interaction, realized in disparity items its general frame of the component of similar functions be it is similar, as Front end exploitation when using certain similar assemblies, requires to rewrite one time, the reusability of class libraries component is low, both increases developer Work, and waste time, drag the development progress of slow entirety.And the not no clearly same rule of similar component in disparity items Model, it is subsequent to need to optimize and safeguard respectively for each project when optimizing and safeguarding, it is maintainable low.
Summary of the invention
The embodiment of the present invention provides a kind of general purpose module call method, device, computer equipment and storage medium, can be fast Velocity modulation generates file destination with general purpose module, to improve the reusability of class libraries component, promotes development efficiency.
A kind of general purpose module call method, comprising:
Call request is obtained, the call request includes target service type and the corresponding business of the target service type Parameter;
Based on the target service type queries class libraries component table, common group corresponding with the target service type is obtained Part name and storage ID;
Based on the general purpose module name and the storage ID, obtained and the target service type from general pattern class libraries Corresponding target general purpose module;
The service parameter is sent in the target general purpose module by the interface of target general purpose module;
The target general purpose module is executed, file destination is generated based on the service parameter.
A kind of general purpose module calling device, comprising:
Call request obtains module, and for obtaining call request, the call request includes target service type and described The corresponding service parameter of target service type;
Target service type queries module, for being based on the target service type queries class libraries component table, acquisition and institute State the corresponding general purpose module name of target service type and storage ID;
Target general purpose module obtains module, for being based on the general purpose module name and the storage ID, from general pattern class Target general purpose module corresponding with the target service type is obtained in library;
The service parameter is sent to the mesh for the interface by target general purpose module by service parameter sending module It marks in general purpose module;
File destination generation module generates target text based on the service parameter for executing the target general purpose module Part.
A kind of computer equipment, including memory, processor and storage are in the memory and can be in the processing The computer program run on device, the processor realize above-mentioned general purpose module call method when executing the computer program Step.
A kind of computer readable storage medium, the computer-readable recording medium storage have computer program, the meter The step of calculation machine program realizes above-mentioned general purpose module call method when being executed by processor.
Above-mentioned general purpose module call method, device, computer equipment and storage medium, by being got according to call request The corresponding general purpose module name of the target service type that call request is included and storage ID, so that the calling of general styling component Journey is more succinct and convenient for operation;Then it is directly got from general pattern class libraries according to general purpose module name and storage ID corresponding Target general purpose module, can quick invocation target general purpose module, the workload of component script is write when reducing each calling; The service parameter for including in call request is sent to target general purpose module and generates file destination, so that target general purpose module can To meet the individual demand of user, and file destination can be generated with quick calling general purpose module, improve answering for general purpose module With rate, development efficiency is improved.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is an application environment schematic diagram of general purpose module call method in one embodiment of the invention;
Fig. 2 is an implementation flow chart of the general purpose module call method provided in one embodiment of the invention;
Fig. 3 is another implementation flow chart of the general purpose module call method provided in the embodiment of the present invention;
Fig. 4 is another implementation flow chart of the general purpose module call method provided in the embodiment of the present invention;
Fig. 5 is another implementation flow chart of the general purpose module call method provided in the embodiment of the present invention;
Fig. 6 is a schematic diagram of general purpose module calling device in one embodiment of the invention;
Fig. 7 is a schematic diagram of computer equipment in one embodiment of the 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.
General purpose module call method provided by the present application, can be applicable in the application environment such as Fig. 1, wherein client is logical It crosses network to be communicated with server-side, user initiates call request by client, and call request is sent to service by client End, server-side obtains target general purpose module from general pattern class libraries, and generates file destination.Wherein, client can with but not It is limited to be various personal computers, laptop, smart phone, tablet computer and portable wearable device.Server-side can To be realized with the independent server either server cluster that forms of multiple servers.
Fig. 2 shows the flow charts of general purpose module call method in the present embodiment.The general purpose module call method, which is applied, to be taken It is engaged in end, generates file destination for quick calling general purpose module, to improve the reusability of class libraries component, promote development efficiency. As shown in Fig. 2, the general purpose module call method includes the following steps:
S10: obtaining call request, and call request includes target service type and the corresponding business ginseng of target service type Number.
Wherein, call request refers to the trigger request of request call general purpose module.It include target service class in call request The information of the user configurations such as type and the corresponding service parameter of target service type.Target service type refers to that user's request call is held Capable type of service.For example, the web interface that target service type can be in webpage front-end design designs or webpage dynamic is aobvious Show the designs business such as design.
Service parameter refers to specific parameter in this performance objective type of service, for configuring the general purpose module called. Service parameter contains the supplemental characteristic configured needed for performance objective type of service, for example, target service type is web interface Design, which is exactly when executing the web interface business, to need the displaying of loaded and displayed File path that data or exhibiting pictures and web interface need to upload, the local hardware that need to be called, the local file that need to be checked The supplemental characteristics such as path.
Specifically, server-side obtains the call request that user is inputted by client, and call request can be passed through a little by user The config option for hitting client end interface is selected, or input text carries out configuration target service type and corresponding business Parameter.The type of the general purpose module to be used when target service type executes the target service type for determining.
Further, service parameter corresponding to target service type is configured according to the demand of target service type 's.For example, the ejection layer design that the target service type of user's request call designs for webpage front-end, then need to configure ejection layer The type type of component;When the target service type of user's request call is the banner design of Website page, then need to match Set Advertising Copy or the tag line text etc. of interface display.
S20: being based on target service type queries class libraries component table, obtains general purpose module name corresponding with target service type With storage ID.
Wherein, class libraries component table is the general purpose module of all types of service of storage and the corresponding general purpose module of type of service The table of the storage ID of name and general purpose module.General purpose module is the webpage design component suitable for a certain type packaged in advance Source program code function library, general purpose module includes general purpose module name type of service corresponding with its.General purpose module name refers to The title of general purpose module.Type of service refers to the type of the applicable webpage development design of the general purpose module, and storage ID refers to general The storage address of component.
The general purpose module name of type of service, general purpose module in class libraries component table and storage ID three are interrelated, can be with Corresponding type of service is inquired in class libraries component table by target service type, is searched and the industry further according to the type of service The corresponding general purpose module name of service type and storage ID.
Specifically, according to the service code of target service type, ergodic classes library component table searches the mesh in class libraries component table Mark the corresponding general purpose module name of type of service and storage ID.If being matched in class libraries component table in the presence of identical as target service type Type of service, then obtain the corresponding general purpose module name of the type of service and storage ID.
S30: it based on general purpose module name and storage ID, is obtained from general pattern class libraries corresponding with target service type Target general purpose module.
Wherein, general pattern class libraries refers to the database comprising general purpose module and class libraries component table.Target general purpose module Refer to general purpose module corresponding with target service type, i.e., currently needs to be implemented the general purpose module of calling.
Specifically, general purpose module is stored in general pattern class libraries based on its general purpose module name, and general purpose module name is deposited with it It is associated to store up ID, type of service.It is logical that target corresponding with general purpose module name in class libraries component table is searched according to general purpose module name With component, the storage location of target general purpose module in general pattern class libraries is linked to based on storage ID, from general pattern class libraries Target general purpose module corresponding with target service type is obtained, to be called.
S40: service parameter is sent in target general purpose module by the interface of target general purpose module.
Wherein, the interface of target general purpose module refers to application programming interface predetermined in target general purpose module, For carrying out data transmission with target general purpose module.
Specifically, service parameter is sent to target by the interface API of target general purpose module by invocation target general purpose module General purpose module configures incoming service parameter into the source program code template of target general purpose module.
S50: performance objective general purpose module generates file destination based on service parameter.
Wherein, file destination, which refers to, meets target service type and contains the corresponding service parameter of target service type Design document.
Specifically, service parameter configuration target general purpose module meets its primary condition, by configured target general purpose module It is introduced to the position for currently needing to create file destination, the method program of performance objective general purpose module is carried out single thread and is executed, and one Row reads by line and executes the corresponding source program of target general purpose module, and service parameter is configured to the source of target general purpose module Program generates file destination in designated position.
It further, can be general by target using import method or script mode in webpage front-end design Component is introduced to designated position.For example, the css of front end pattern can be introduced successfully by direct link in webpage front-end design. Wherein, import method is a kind of method for introducing mature function library, can be by the path for the function library that is cited, by target General purpose module is introduced directly into corresponding reference position.Script mode is that setting<script>label is general for defining target The source program script of component is introduced and the corresponding target general purpose module of load and execution by<script>label in designated position.
In the present embodiment, it is logical that target corresponding with target service type is obtained from general pattern class libraries according to call request With component, corresponding service parameter is then sent to target general purpose module, the method program of performance objective general purpose module, with The position for currently needing to create file destination generates file destination, allows to according to user demand quick calling target common group Part executes corresponding Front-end Design method program, generates file destination, and component pattern modularization duplicate in project is omitted A large amount of repeated works promote development efficiency, improve the reusability of general purpose module.
In one embodiment, as shown in figure 3, before step S10, i.e., before the step of obtaining call request, common group Part call method further includes following steps:
S11: obtaining preconfigured general style script, general style script be packaged, general purpose module is obtained, and leads to It include general purpose module name and type of service with component.
Wherein, general style script refers to the source program code foot of common a certain type styling component in development process This.General purpose module includes general purpose module name and type of service.General purpose module name refers to that the title of general purpose module, type of service refer to The type of the applicable webpage development design of the general purpose module.
Specifically, during programming development, the general style script commonly write is collected, will acquire General style script be packaged according to its corresponding type of service, obtain general purpose module, general purpose module is based on general purpose module Name is stored and is inquired, and the type of the applicable webpage development design of the general purpose module is distinguished based on type of service.
S12: general purpose module is stored to storage repository, the storage ID of general purpose module is obtained, by the general of general purpose module Component name, type of service and storage ID are stored to class libraries component table.
Wherein, storage repository is the database of the general purpose module good for storage enclosure.Class libraries component table is storage institute There is the table of the general purpose module name of type of service and the corresponding general purpose module of type of service and the storage ID of general purpose module.Storage ID refers to the storage address of general purpose module, and particularly, storage ID refers to general purpose module in the storage address of storage repository.
Specifically, packaged general purpose module is based on general purpose module name to store to storage repository, obtains general purpose module It is stored in storage ID of the storage address in storage repository as general purpose module, by general purpose module name, the industry of the general purpose module Service type and storage ID are stored to class libraries component table.Class libraries component table provides the general purpose module stored in storage repository Query directory, convenient for searching general purpose module and its corresponding type of service.
S13: it is based on storage repository and class libraries component table, establishes general pattern class libraries.
Wherein, general pattern class libraries refers to the database comprising general purpose module and class libraries component table.Specifically, set of class libraries Part table links to storage repository by the storage ID of general purpose module, establishes being associated with for storage repository and class libraries component table System, to establish general pattern class libraries.Directly storage can be provided by the storage ID in class libraries component table in general pattern class libraries General purpose module in the library of source is called, or according in the general purpose module name Query class libraries component table in storage repository The type of service of the general purpose module.
In the present embodiment, by the way that preconfigured general style script is packaged into general purpose module, and by general purpose module It stores to storage repository, improves the reusability of general purpose module;By general purpose module name, type of service and the storage of general purpose module ID is stored to class libraries component table, can very easily inquire the attribute information of general purpose module, improves convenience;It is provided based on storage Source library and class libraries component table, establish general pattern class libraries, so that storage repository and class libraries component table are interrelated, improve logical With the calling efficiency of component.
In one embodiment, as shown in figure 4, in step S11, i.e., general style script is packaged, obtains common group Part specifically comprises the following steps:
S111: obtaining existing component script, and the frequency of use of each existing component script is counted based on existing component script.
Wherein, existing component script refers to the source program code foot for the component having been used in the exploitation of product front end This.
Specifically, the existing component script by each used webpage development design carries out sorting-out in statistics, with Each existing component script frequency for being used in webpage development design out, can be through in order to understand which existing component script It is often used.The usage history of each existing component script is traversed, is carried out according to the usage history of existing component script Statistics finds what phase was used compared with component script, then its access times adds 1, counts making for each existing component script Use frequency.
S112: it obtains frequency of use and is greater than the existing component script of preset threshold as general style script.
Wherein, general style script refers to the source program code foot of common a certain kind class component pattern in development process This, is the existing component script that can be commonly used in webpage development design.Preset threshold is to judge existing component script Whether frequency of use reaches a numerical value of general style script standard, for according to preset threshold distinguish existing component script and General style script.
Specifically, it obtains frequency of use and is greater than the existing component script of preset threshold as general style script, Ke Yigen Preset threshold is set according to actual demand, such as sets preset threshold as 80%, then the frequency of use of existing component script reaches When 80%, which can serve as general style script.Preset threshold is bigger, then general style script is used Frequency it is higher.
S113: obtaining the primary attribute of general styling component, is packaged general style script based on primary attribute, builds Found corresponding general purpose module.
Wherein, the primary attribute of general styling component includes general purpose module name, the type of service of support, is applicable in programming language Speech monitors the attribute information that event and response events etc. determine general styling component property.
Specifically, obtain the attribute information of general styling component, the attribute information of general styling component can be according to The configuration of family demand, include general purpose module name, the type of service of support, be applicable in programming language, monitoring event and response thing Part etc. is used to determine the attribute information of general styling component property.Using the source program code script of general style script as mould Plate, the attribute information based on general purpose module are arranged<script>label, general style script are packaged, is established corresponding General purpose module.General purpose module refers to the source program code template of the webpage design component suitable for a certain type packaged in advance Function library, can be invoked directly thereby executing corresponding method flow.
Further, when being packaged to general purpose module, general purpose module is named by the title of general style script Interface, can be associated with by general purpose module name to the general purpose module in order to call its component interface.For different patterns General purpose module can be set different skin and be managed, in order to be identified and distinguished between.
In the present embodiment, by counting the frequency of use of existing component script, it can accurately know each existing group The frequent degree that part script is used;The big general style script of frequency of use is filtered out based on preset threshold, so that filtering out General style script meet the use habit of user, realize personal settings for different user;It will be led to based on attribute information It is packaged with style script and establishes general purpose module, so that general purpose module can improve the multiplexing of general purpose module with recursive call Rate.
In one embodiment, as shown in figure 5, in step S12, the step of general purpose module is stored to storage repository it Afterwards, the general purpose module call method further include:
S121: recording the called number of general purpose module, calculates the calling frequency of general purpose module.
Wherein, the called number of general purpose module refers to the number that general purpose module is called in use.Common group The calling frequency of part refers to the called number of general purpose module ratio shared in the total called number of all general purpose modules.
Specifically, by the calling historical information of general purpose module, the called number of general purpose module is recorded, calculates and calls frequency Rate, the total called number of the called number of the calling frequency=general purpose module/all general purpose modules of a certain general purpose module. It calls frequency intuitively to reflect the degree that the general purpose module is used, whether reflects in certain time period a certain general purpose module It is frequently used.
S122: the calling frequency based on general purpose module, according to the height adjustment general purpose module of calling frequency in storage resource Storage location in library.
Specifically, it when general purpose module is stored to storage repository, is carried out according to its sequencing for being stored in storage repository Sequence storage, in use, records and counts the calling frequency of each general purpose module, according to the height dynamic of called frequency General purpose module is adjusted in the position of storage repository, the general purpose module for calling frequency high is stored in forward position of sorting, is made The frequent degree that obtaining can be called according to general purpose module in certain time period stores general purpose module, convenient for quickly lookup and dimension Shield.
It is possible to further adjust sort order of the general purpose module name of general purpose module in class libraries component table simultaneously, press According to call frequency height, the general purpose module name of the high general purpose module of frequency of use is stored in class libraries component table sort it is forward Position, convenient for search and call, promoted search efficiency.
In the present embodiment, by the calling frequency according to general purpose module, dynamic adjusts general purpose module in storage repository In storage location conveniently looked into so that the high general purpose module often used of frequency is called to be stored in forward position of sorting It looks for, is bonded the frequency of use of user, promote search efficiency.
In another embodiment, such as step S12, after the step of storing general purpose module to storage repository, this is logical With component call method further include:
The called time for recording general purpose module adjusts general purpose module in storage resource according to the sequence of called time Storage location in library.
Specifically, by the calling historical information of general purpose module, the general purpose module newest called time is recorded, according to logical It is called the sequencing of time with component, adjusts storage location of the general purpose module in storage repository.For example, a certain general After component is called, storage location of the general purpose module in storage repository is adjusted according to its nearest called time to depositing The first storage location of resources bank is stored up, if another general purpose module is called after this, called time-sequencing is located further forward, then The general purpose module is stored to the first storage location, and previous general purpose module, which prolongs, retreats to the second storage location, and synchronous adjustment is logical With position of the general purpose module name of component in class libraries component table.
In embodiments of the present invention, general purpose module is adjusted in storage repository according to the called time of general purpose module Storage location, the sequence storage mode, before the last used general purpose module storage location can be made to be maintained at most, just In same period class to the calling of same general purpose module, query time is reduced, improves and calls efficiency.
In general purpose module call method provided in an embodiment of the present invention, by the way that frequency of use is greater than showing for preset threshold There is module foot to establish general purpose module, general purpose module is stored to and established general pattern class libraries, then can be asked according to calling It asks and calls directly corresponding target general purpose module, service parameter is configured to target general purpose module, target general purpose module is introduced To the position for currently needing to create file destination, corresponding method program is executed by target general purpose module and generates file destination, is increased The reusability for having added general purpose module, improves development efficiency, is also convenient for the maintenance and subsequent optimization of general purpose module;By according to logical Calling frequency or called time with component, dynamic adjust general purpose module in storage repository and general purpose module name in set of class libraries The high or called recently general purpose module of frequency of use is stored in front, patch by storage location and sort order in part table The frequency of use at family is shared, convenient for searching, promotes the efficiency that general purpose module calls.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
In one embodiment, a kind of general purpose module calling device is provided, the general purpose module calling device and above-described embodiment Middle general purpose module call method corresponds.As shown in fig. 6, the general purpose module calling device includes that call request obtains module 10, target service type queries module 20, target general purpose module obtain module 30, service parameter sending module 40 and file destination Generation module 50.Detailed description are as follows for each functional module:
Call request obtains module 10, and for obtaining call request, call request includes target service type and target industry The corresponding service parameter of service type;
Target service type queries module 20, for being based on target service type queries class libraries component table, acquisition and target The corresponding general purpose module name of type of service and storage ID;
Target general purpose module obtains module 30, for being obtained from general pattern class libraries based on general purpose module name and storage ID Take target general purpose module corresponding with target service type;
It is general to be sent to target for the interface by target general purpose module by service parameter sending module 40 for service parameter In component;
File destination generation module 50 is used for performance objective general purpose module, generates file destination based on service parameter.
Preferably, general purpose module calling device further include: general purpose module obtains module 11, component storage module 12 and class Module 13 is established in library.
General purpose module obtains module 11 and carries out general style script for obtaining preconfigured general style script Encapsulation, obtains general purpose module, general purpose module includes general purpose module name and type of service;
Component storage module 12 obtains the storage ID of general purpose module, incites somebody to action for storing general purpose module to storage repository General purpose module name, type of service and the storage ID of general purpose module are stored to class libraries component table;
Class libraries establishes module 13, for being based on storage repository and class libraries component table, establishes general pattern class libraries.
Preferably, it includes: statistic unit 111, screening unit 112 and encapsulation unit 113 that general purpose module, which obtains module 11,.
Statistic unit 111 counts each existing component script based on existing component script for obtaining existing component script Frequency of use;
Screening unit 112, for obtaining existing component script of the frequency of use greater than preset threshold as general pattern foot This;
Encapsulation unit 113 is based on primary attribute for general style script for obtaining the primary attribute of general style script It is packaged, establishes corresponding general purpose module.
Preferably, general purpose module calling device further include: call frequency computing module 121 and the first storage adjustment module 122。
Frequency computing module 121 is called, for recording the called number of general purpose module, calculates the calling frequency of general purpose module Rate;
First storage adjustment module 122, for the calling frequency based on general purpose module, according to the height adjustment for calling frequency Storage location of the general purpose module in storage repository.
Preferably, general purpose module calling device further include: the second storage adjustment module 123.
Second storage adjustment module 123, it is suitable according to the called time for recording the called time of general purpose module Sequence adjusts storage location of the general purpose module in storage repository.
Specific about general purpose module calling device limits the limit that may refer to above for general purpose module call method Fixed, details are not described herein.Modules in above-mentioned general purpose module calling device can fully or partially through software, hardware and its Combination is to realize.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be with It is stored in the memory in computer equipment in a software form, in order to which processor calls the above modules of execution corresponding Operation.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction Composition can be as shown in Figure 7.The computer equipment includes processor, memory and the network interface connected by system bus. Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory of the computer equipment includes non-easy The property lost storage medium, built-in storage.The non-volatile memory medium is stored with operating system and computer program.The built-in storage Operation for operating system and computer program in non-volatile memory medium provides environment.The network of the computer equipment connects Mouth with external terminal by network connection for being communicated.To realize a kind of common group when the computer program is executed by processor Part call method.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory And the computer program that can be run on a processor, processor perform the steps of when executing computer program
Call request is obtained, call request includes target service type and the corresponding service parameter of target service type;
Based on target service type queries class libraries component table, obtains general purpose module name corresponding with target service type and deposit Store up ID;
Based on general purpose module name and storage ID, target corresponding with target service type is obtained from general pattern class libraries General purpose module;
Service parameter is sent in target general purpose module by component interface;
Performance objective general purpose module generates file destination based on service parameter.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of when being executed by processor
Call request is obtained, call request includes target service type and the corresponding service parameter of target service type;
Based on target service type queries class libraries component table, obtains general purpose module name corresponding with target service type and deposit Store up ID;
Based on general purpose module name and storage ID, target corresponding with target service type is obtained from general pattern class libraries General purpose module;
Service parameter is sent in target general purpose module by component interface;
Performance objective general purpose module generates file destination based on service parameter.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Instruct relevant hardware to complete by computer program, computer program to can be stored in a non-volatile computer readable It takes in storage medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, this Shen Please provided by any reference used in each embodiment to memory, storage, database or other media, may each comprise Non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of general purpose module call method characterized by comprising
Call request is obtained, the call request includes target service type and the corresponding business ginseng of the target service type Number;
Based on the target service type queries class libraries component table, general purpose module name corresponding with the target service type is obtained With storage ID;
Based on the general purpose module name and the storage ID, obtained from general pattern class libraries opposite with the target service type The target general purpose module answered;
The service parameter is sent in the target general purpose module by the interface of target general purpose module;
The target general purpose module is executed, file destination is generated based on the service parameter.
2. general purpose module call method as described in claim 1, which is characterized in that the acquisition call request the step of it Before, the general purpose module call method further include:
Preconfigured general style script is obtained, the general style script is packaged, obtains general purpose module, it is described logical It include general purpose module name and type of service with component;
The general purpose module is stored to the storage ID that the general purpose module is obtained to the storage repository, by the common group General purpose module name, type of service and the storage ID of part are stored to the class libraries component table;
Based on the storage repository and the class libraries component table, general pattern class libraries is established.
3. general purpose module call method as claimed in claim 2, which is characterized in that described to carry out the general style script Encapsulation, obtains general purpose module, specifically includes the following steps:
Existing component script is obtained, the frequency of use of each existing component script is counted based on the existing component script;
It obtains frequency of use and is greater than the existing component script of preset threshold as general style script;
The primary attribute for obtaining the general style script is sealed the general style script based on the primary attribute Dress, establishes corresponding general purpose module.
4. general purpose module call method as claimed in claim 2, which is characterized in that it is described by the general purpose module store to After the step of storage repository, the general purpose module call method further include:
The called number for recording the general purpose module calculates the calling frequency of the general purpose module;
Calling frequency based on the general purpose module adjusts the general purpose module according to the height for calling frequency and provides in storage Storage location in the library of source.
5. general purpose module call method as claimed in claim 2, which is characterized in that it is described by the general purpose module store to After the step of storage repository, the general purpose module call method further include:
The called time for recording the general purpose module adjusts the general purpose module and exists according to the sequence of the called time Storage location in storage repository.
6. a kind of general purpose module calling device characterized by comprising
Call request obtains module, and for obtaining call request, the call request includes target service type and the target The corresponding service parameter of type of service;
Target service type queries module obtains and the mesh for being based on the target service type queries class libraries component table Mark the corresponding general purpose module name of type of service and storage ID;
Target general purpose module obtains module, for being based on the general purpose module name and the storage ID, from general pattern class libraries Obtain target general purpose module corresponding with the target service type;
The service parameter is sent to the target for the interface by target general purpose module and led to by service parameter sending module With in component;
File destination generation module generates file destination based on the service parameter for executing the target general purpose module.
7. general purpose module calling device as claimed in claim 6, which is characterized in that further include:
General purpose module obtains module and seals the general style script for obtaining preconfigured general style script Dress, obtains general purpose module, the general purpose module includes general purpose module name and type of service;
Component storage module obtains depositing for the general purpose module for storing the general purpose module to the storage repository ID is stored up, the general purpose module name of the general purpose module, type of service and storage ID are stored to the class libraries component table;
Class libraries establishes module, for being based on the storage repository and the class libraries component table, establishes general pattern class libraries.
8. general purpose module calling device as claimed in claim 6, which is characterized in that the general purpose module obtains module and includes:
Statistic unit counts each existing component script based on the existing component script for obtaining existing component script Frequency of use;
Screening unit, for obtaining the existing component script of the frequency of use greater than preset threshold as general style script;
Encapsulation unit is based on the primary attribute for the general sample for obtaining the primary attribute of the general style script Formula script is packaged, and establishes corresponding general purpose module.
9. a kind of computer equipment, including memory, processor and storage are in the memory and can be in the processor The computer program of upper operation, which is characterized in that the processor realized when executing the computer program as claim 1 to The step of any one of 5 general purpose module call method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In realizing the general purpose module call method as described in any one of claim 1 to 5 when the computer program is executed by processor Step.
CN201811285630.2A 2018-10-31 2018-10-31 General purpose module call method, device, computer equipment and storage medium Pending CN109582303A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811285630.2A CN109582303A (en) 2018-10-31 2018-10-31 General purpose module call method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811285630.2A CN109582303A (en) 2018-10-31 2018-10-31 General purpose module call method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109582303A true CN109582303A (en) 2019-04-05

Family

ID=65920947

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811285630.2A Pending CN109582303A (en) 2018-10-31 2018-10-31 General purpose module call method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109582303A (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110221824A (en) * 2019-06-03 2019-09-10 精硕科技(北京)股份有限公司 The generation method and device of component
CN110489109A (en) * 2019-08-13 2019-11-22 上海乂学教育科技有限公司 The method and device of code reuse
CN110543327A (en) * 2019-09-06 2019-12-06 深圳前海环融联易信息科技服务有限公司 Service component multiplexing method and device, computer equipment and storage medium
CN110727716A (en) * 2019-10-24 2020-01-24 北京智游网安科技有限公司 Identification method for integrated SDK in application, intelligent terminal and storage medium
CN111198676A (en) * 2019-12-27 2020-05-26 北京健康之家科技有限公司 Resource data display method and device, storage medium and terminal
CN111381864A (en) * 2020-04-01 2020-07-07 中国铁塔股份有限公司 Configuration method and device of software system
CN111831352A (en) * 2020-06-24 2020-10-27 平安普惠企业管理有限公司 Operation method and device based on function preloading environment and computer equipment
CN111857799A (en) * 2020-06-30 2020-10-30 海尔优家智能科技(北京)有限公司 Method and device for transmitting component information, storage medium and electronic device
CN112306461A (en) * 2019-07-30 2021-02-02 中科云谷科技有限公司 Universal front-end component implementation method, device and storage medium
CN112635034A (en) * 2020-12-30 2021-04-09 微医云(杭州)控股有限公司 Service authority system, authority distribution method, electronic device and storage medium
CN112631653A (en) * 2021-03-09 2021-04-09 广州欧赛斯信息科技有限公司 Teaching evaluation index library code adaptation method and system
CN112988409A (en) * 2019-12-18 2021-06-18 腾讯科技(深圳)有限公司 Interface calling method and device, computer equipment and storage medium
CN113485681A (en) * 2021-09-07 2021-10-08 迅管(深圳)科技有限公司 Activi-based patrol service process query method
CN113703753A (en) * 2021-07-19 2021-11-26 青岛海尔科技有限公司 Method and device for product development and product development system
CN113778397A (en) * 2021-09-01 2021-12-10 粒子文化科技集团(杭州)股份有限公司 Page generation method and device, electronic device and storage medium
CN114090128A (en) * 2021-11-24 2022-02-25 支付宝(杭州)信息技术有限公司 Program running method, device, equipment and readable medium
CN114528045A (en) * 2022-02-17 2022-05-24 武汉联影智融医疗科技有限公司 Plug-in operation method and device, computer equipment and storage medium
CN115080026A (en) * 2022-08-23 2022-09-20 湖南云畅网络科技有限公司 Plug-in control integration method and system based on low codes

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739254A (en) * 2009-12-31 2010-06-16 山东中创软件商用中间件股份有限公司 Method and device for realizing multiplexing of multi-platform communication assemblies
CN104572091A (en) * 2014-12-25 2015-04-29 百度在线网络技术(北京)有限公司 Application software realization method and device as well as computer equipment
CN106412072A (en) * 2016-10-08 2017-02-15 腾讯科技(深圳)有限公司 Service processing method and apparatus
CN107643952A (en) * 2016-07-20 2018-01-30 平安科技(深圳)有限公司 Local class libraries call method and device
CN108255478A (en) * 2018-01-19 2018-07-06 上海锐垚科技有限公司 A kind of label type template development method
CN108491205A (en) * 2018-03-22 2018-09-04 北京焦点新干线信息技术有限公司 A kind of front end web development methods and system based on component tree
CN108572916A (en) * 2018-03-22 2018-09-25 平安科技(深圳)有限公司 Method for testing pressure, device, equipment based on Jmeter and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739254A (en) * 2009-12-31 2010-06-16 山东中创软件商用中间件股份有限公司 Method and device for realizing multiplexing of multi-platform communication assemblies
CN104572091A (en) * 2014-12-25 2015-04-29 百度在线网络技术(北京)有限公司 Application software realization method and device as well as computer equipment
CN107643952A (en) * 2016-07-20 2018-01-30 平安科技(深圳)有限公司 Local class libraries call method and device
CN106412072A (en) * 2016-10-08 2017-02-15 腾讯科技(深圳)有限公司 Service processing method and apparatus
CN108255478A (en) * 2018-01-19 2018-07-06 上海锐垚科技有限公司 A kind of label type template development method
CN108491205A (en) * 2018-03-22 2018-09-04 北京焦点新干线信息技术有限公司 A kind of front end web development methods and system based on component tree
CN108572916A (en) * 2018-03-22 2018-09-25 平安科技(深圳)有限公司 Method for testing pressure, device, equipment based on Jmeter and storage medium

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110221824B (en) * 2019-06-03 2024-03-22 北京秒针人工智能科技有限公司 Method and device for generating component
CN110221824A (en) * 2019-06-03 2019-09-10 精硕科技(北京)股份有限公司 The generation method and device of component
CN112306461A (en) * 2019-07-30 2021-02-02 中科云谷科技有限公司 Universal front-end component implementation method, device and storage medium
CN110489109A (en) * 2019-08-13 2019-11-22 上海乂学教育科技有限公司 The method and device of code reuse
CN110543327A (en) * 2019-09-06 2019-12-06 深圳前海环融联易信息科技服务有限公司 Service component multiplexing method and device, computer equipment and storage medium
CN110727716A (en) * 2019-10-24 2020-01-24 北京智游网安科技有限公司 Identification method for integrated SDK in application, intelligent terminal and storage medium
CN110727716B (en) * 2019-10-24 2022-04-22 北京智游网安科技有限公司 Identification method for integrated SDK in application, intelligent terminal and storage medium
CN112988409B (en) * 2019-12-18 2024-01-30 腾讯科技(深圳)有限公司 Interface calling method and device, computer equipment and storage medium
CN112988409A (en) * 2019-12-18 2021-06-18 腾讯科技(深圳)有限公司 Interface calling method and device, computer equipment and storage medium
CN111198676A (en) * 2019-12-27 2020-05-26 北京健康之家科技有限公司 Resource data display method and device, storage medium and terminal
CN111198676B (en) * 2019-12-27 2023-10-03 北京水滴科技集团有限公司 Method and device for displaying resource data, storage medium and terminal
CN111381864A (en) * 2020-04-01 2020-07-07 中国铁塔股份有限公司 Configuration method and device of software system
CN111831352A (en) * 2020-06-24 2020-10-27 平安普惠企业管理有限公司 Operation method and device based on function preloading environment and computer equipment
CN111857799A (en) * 2020-06-30 2020-10-30 海尔优家智能科技(北京)有限公司 Method and device for transmitting component information, storage medium and electronic device
CN112635034A (en) * 2020-12-30 2021-04-09 微医云(杭州)控股有限公司 Service authority system, authority distribution method, electronic device and storage medium
CN112631653A (en) * 2021-03-09 2021-04-09 广州欧赛斯信息科技有限公司 Teaching evaluation index library code adaptation method and system
CN113703753B (en) * 2021-07-19 2023-06-09 青岛海尔科技有限公司 Method and device for product development and product development system
CN113703753A (en) * 2021-07-19 2021-11-26 青岛海尔科技有限公司 Method and device for product development and product development system
CN113778397A (en) * 2021-09-01 2021-12-10 粒子文化科技集团(杭州)股份有限公司 Page generation method and device, electronic device and storage medium
CN113485681A (en) * 2021-09-07 2021-10-08 迅管(深圳)科技有限公司 Activi-based patrol service process query method
CN114090128A (en) * 2021-11-24 2022-02-25 支付宝(杭州)信息技术有限公司 Program running method, device, equipment and readable medium
CN114528045A (en) * 2022-02-17 2022-05-24 武汉联影智融医疗科技有限公司 Plug-in operation method and device, computer equipment and storage medium
CN115080026A (en) * 2022-08-23 2022-09-20 湖南云畅网络科技有限公司 Plug-in control integration method and system based on low codes

Similar Documents

Publication Publication Date Title
CN109582303A (en) General purpose module call method, device, computer equipment and storage medium
US11366686B1 (en) Managing user data in a multitenant deployment
US11044179B1 (en) Service monitoring interface controlling by-service mode operation
US11741396B1 (en) Efficient command execution using aggregated compute units
US10942946B2 (en) Automatic triage model execution in machine data driven monitoring automation apparatus
US11934408B1 (en) Interactive development environment for visualization of query result information
US10942960B2 (en) Automatic triage model execution in machine data driven monitoring automation apparatus with visualization
US11200130B2 (en) Automatic entity control in a machine data driven service monitoring system
US10505825B1 (en) Automatic creation of related event groups for IT service monitoring
US11782987B1 (en) Using an augmented process model to track process instances
US11061918B2 (en) Locating and categorizing data using inverted indexes
US20210049150A1 (en) Generating and distributing delta files associated with mutable events in a distributed system
US11403333B2 (en) User interface search tool for identifying and summarizing data
US11086974B2 (en) Customizing a user behavior analytics deployment
US11003682B2 (en) Metrics analysis workflow
US11768776B1 (en) Evicting data associated with a data intake and query system from a local storage
WO2020215324A1 (en) Two-tier capacity planning
US20190098068A1 (en) Customizable load balancing in a user behavior analytics deployment
US11106713B2 (en) Sampling data using inverted indexes in response to grouping selection
US11436116B1 (en) Recovering pre-indexed data from a shared storage system following a failed indexer
WO2021072742A1 (en) Assessing an impact of an upgrade to computer software
US11625254B1 (en) Interface for customizing dashboards based on parallel edges
CN110266555A (en) Method for analyzing web site service request
CN107330031A (en) A kind of method of data storage, device and electronic equipment
CN110046319A (en) Social media information acquisition method, device, system, equipment and storage medium

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