CN110209377A - Interface packet processing method, device, equipment and storage medium based on factory class - Google Patents

Interface packet processing method, device, equipment and storage medium based on factory class Download PDF

Info

Publication number
CN110209377A
CN110209377A CN201910342342.4A CN201910342342A CN110209377A CN 110209377 A CN110209377 A CN 110209377A CN 201910342342 A CN201910342342 A CN 201910342342A CN 110209377 A CN110209377 A CN 110209377A
Authority
CN
China
Prior art keywords
class
interface
factory
specific information
scene type
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
CN201910342342.4A
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 CN201910342342.4A priority Critical patent/CN110209377A/en
Publication of CN110209377A publication Critical patent/CN110209377A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented

Abstract

The present invention relates to technical field of data processing more particularly to a kind of interface packet processing method based on factory class, device, equipment and storage mediums.This method comprises: receiving the interface packets that different breakpoint scenes are transmitted by interface, basic information and specific information in interface packets are obtained, scene type is obtained from specific information;Preset factory class is called, basic information is parsed by the parent in factory class, obtains basic data;Corresponding processing class in factory class is mapped by scene type, specific information is parsed by handling class, obtains individuation data.The present invention is to the basic information of interface packets in breakpoint scene as common part, the corresponding processing class of each breakpoint scene is transferred to handle specific information, generalization and individualized code are separated, are easily modified, increase and safeguard individualized code, and code is readable high.

Description

Interface packet processing method, device, equipment and storage medium based on factory class
Technical field
The present invention relates to technical field of data processing more particularly to a kind of interface packet processing method based on factory class, Device, equipment and storage medium.
Background technique
A big main business function of electricity pin retail trade system at present is exactly accepted up-stream system by interface and is passed over The interface packets of different breakpoint scenes, these interface packets are all customer datas.
It is that the customer data of all breakpoint scenes is all placed in a class in existing implementation Reason.One breakpoint scene of every increase, it is necessary to modify the code logic in such, readable very poor, the code coupling pole of code It is low, and code is modified every time, the change of code is it is also possible to influence the customer data processing of all breakpoint scenes, it is therefore necessary to To all breakpoint scrnario testing one time, test burden is increased.
Summary of the invention
In view of this, it is necessary to be handled, be made in a class for the corresponding customer data of multiple breakpoint scenes At frequent modification code logic, the problem of the readable difference of code provides a kind of interface packet processing method based on factory class, dress It sets, equipment and storage medium.
A kind of interface packet processing method based on factory class, comprising:
Receive the interface packets that different breakpoint scenes are transmitted by interface, obtain basic information in the interface packets and Specific information obtains scene type from the specific information;
Preset factory class is called, the basic information is parsed by the parent in the factory class, obtains base Plinth data;
Corresponding processing class in the factory class is mapped by the scene type, by the processing class to described specific Information is parsed, and individuation data is obtained.
In a kind of possible design, the interface packets for receiving different breakpoint scenes and being transmitted by interface, described in acquisition Basic information and specific information in interface packets, obtain scene type from the specific information, comprising:
It is inquired by regular expression with the presence or absence of basic information label and specific information label in the interface packets, if There are basic information labels, then extract the basic information and mark corresponding basic information, if it exists the specific information Label then extracts the specific information and marks corresponding specific information;
The mark of the scene type in the specific information is inquired by regular expression, extracts the scene type mark pair The scene type answered.
In a kind of possible design, preset factory class is called, the basis is believed by the parent in the factory class Breath is parsed, before obtaining basic data, comprising:
A factory class is defined, includes parent and multiple processing classes in the factory class, is equipped in the parent for locating The basic methods of basic information in interface packets are managed, are equipped with the pumping for handling specific information in the interface packets in the processing class As method, a processing class corresponds to a kind of scene type of interface packets.
In a kind of possible design, one factory class of the definition, comprising:
An abstract class is defined, a basic methods and an abstract method, the square foundation are set in the abstract class Method is instantiated as parent for parsing basic information, by the basic methods, and the abstract method is for parsing specific information, institute State the Similar integral to be processed such as abstract method;
One processing class is defined to each breakpoint scene, multiple processing classes is made to inherit the abstract method;
A factory class is defined, private variable is defined in the factory class, the key assignments in the private variable set is Scene type, the relating value in the private variable set are corresponding processing class, and a public side is defined in the factory class Method, for calling the parent.
It is described that corresponding processing class in the factory class is mapped by the scene type in a kind of possible design, lead to It crosses the processing class to parse the specific information, obtains individuation data, comprising:
The private variable in the factory class is called, the scene type is assigned to the key in the private variable Value, obtains corresponding processing class;
The specific information is parsed to obtain individuation data with preset data format by the processing class, it will be described Individuation data is saved by preset format.
In a kind of possible design, further includes:
By preset configuration interface, the scene type of user's input is obtained, the scene type is searched from database Corresponding processing category code is shown processing category code by the CodeWindow in the configuration interface, checks for user And modification;
The more fresh code that user confirms modification is received by the configuration interface, by the update code update to the field In the corresponding processing category code of scape type.
In a kind of possible design, further includes:
By preset configuration interface, the scene type of user's input and the scene code of upload are obtained, by the scene Type is added into the factory class, is the corresponding processing category code of the scene type by the scene code definition, by institute It states processing category code to be added into the factory class, realizes the mapping of scene type and corresponding processing class.
A kind of interface packets processing unit based on factory class, comprising:
Information module is obtained, the interface packets transmitted for receiving different breakpoint scenes by interface obtain the interface Basic information and specific information in message, obtain scene type from the specific information;
Basic data module is parsed, for calling preset factory class, by the parent in the factory class to the base Plinth information is parsed, and basic data is obtained;
Individuation data module is parsed, for mapping corresponding processing class in the factory class by the scene type, The specific information is parsed by the processing class, obtains individuation data.
A kind of computer equipment, including memory and processor are stored with computer-readable instruction in the memory, institute When stating computer-readable instruction and being executed by the processor, so that the processor executes the above-mentioned interface packets based on factory class The step of processing method.
A kind of storage medium being stored with computer-readable instruction, the computer-readable instruction are handled by one or more When device executes, so that the step of one or more processors execute the above-mentioned interface packet processing method based on factory class.
The above-mentioned interface packet processing method based on factory class, device, computer equipment and storage medium, including receive not With the interface packets that breakpoint scene is transmitted by interface, the basic information and specific information in the interface packets are obtained, from institute It states and obtains scene type in specific information;Preset factory class is called, the basis is believed by the parent in the factory class Breath is parsed, and basic data is obtained;Corresponding processing class in the factory class is mapped by the scene type, by described Processing class parses the specific information, obtains individuation data.Basis of the present invention to interface packets in breakpoint scene Information transfers to the corresponding processing class of each breakpoint scene to handle as common part, to specific information, by generalization and individual character Change code dehind, is easily modified, increases and safeguards individualized code, and code is readable high, increases or modify some breakpoint The interface packets of scene handle logic, as long as modification individualized code, does not interfere with the processing of other breakpoint scene, subtract Few test burden.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.
Fig. 1 is the flow chart of the interface packet processing method based on factory class in one embodiment of the invention;
Fig. 2 is a kind of flow chart of step S1 in one embodiment of the invention;
Fig. 3 is a kind of flow chart of step S2 in one embodiment of the invention;
Fig. 4 is a kind of flow chart of step S3 in one embodiment of the invention;
Fig. 5 is the structure chart of the interface packets processing unit based on factory class in one embodiment of the invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition Other one or more features, integer, step, operation, element, component and/or their group.
Fig. 1 is the flow chart of the interface packet processing method based on factory class in one embodiment of the invention, such as Fig. 1 institute Show, a kind of interface packet processing method based on factory class, comprising the following steps:
Step S1 obtains information: receiving the interface packets that different breakpoint scenes are transmitted by interface, obtains in interface packets Basic information and specific information, scene type is obtained from specific information.
The received interface packets of this step use the data format arranged with external breakpoint scene, different breakpoint scene transmitting Interface packets in include basic information and the corresponding specific information of breakpoint scene, basic information is obtained from interface packets When with specific information, in the following way:
In one embodiment, step S1, as shown in Figure 2, comprising:
Step S101 extracts basic information and specific information: by whether there is in regular expression query interface message Basic information label and specific information label, basic information marks if it exists, then extracts the corresponding basis letter of basic information label Breath, specific information marks if it exists, then extracts specific information and mark corresponding specific information.
Since interface packets are all made of the data format made an appointment, this step can using regular expression come The basic information and specific information in interface packets are parsed, such as receives following interface packets:
" baseInfo ": " acctMgrChannel ": " 86 ", " custName ": " Wang little Ming ", " mobileNo ": " 15899872888","owner":"WANGXIAOMING666","partyNo":"600052676186"},"breakInfo": {"assetLevelManage":"test","behaviorTime":"2018-06-07
17:03:49","breakScene":"19","breakpointType":"19","prdCode":" 120718ttfff ", " prdName ": " 83802074 ", " remark ": " 1234 ", " riskType ": " type of keeping forging ahead " } }
The data format of above-mentioned interface packets is json data format, and wherein baseInfo is basic information flag, BreakInfo is specific information label, is marked by the basic information that regular expression inquires baseInfo, then extracts basis All basic informations after information flag, including customer name, the fields such as cell-phone number, are inquired by regular expression The specific information of breakInfo marks, then all specific informations after extracting specific information label, including asset management rank, Execute the fields such as time, scene type.
Step S102 extracts scene type: being identified, is extracted by the scene type in regular expression queries for specific information Scene type identifies corresponding scene type.
The specific information of each breakpoint scene is different, as breakpoint scene 19 interface packets in breakInfo in Containing assetLevelManage field, and there is no this field in the interface packets of breakpoint scene 20.Therefore it needs to specific Information corresponds to respective processing class, is independently handled.And in each specific information, all contain breakpointType breakpoint The scene type of scene handles specific information by the subsequently selected corresponding processing class of this scene type.
The present embodiment utilizes regular expression connecing fixed data format by interface packets data format of making an appointment Basic information, specific information and scene type are parsed in mouth message, analysis mode is simple and convenient, and parsing result is clear and accurate.
Step S2 parses basic data: calling preset factory class, is carried out by the parent in factory class to basic information Parsing, obtains basic data.
In order to independently parse basic information and specific information, this step is pre-configured with factory class, passes through factory class Parent obtains basic data to parse basic information.The square foundation for basic information in Processing Interface message is provided in parent Method parses basic information by basic methods, obtains basic data, and basic data is saved by preset format. For example, when the data format of agreement is json data format, due to usually there is two kinds of structures, object in json data format And array, an object are terminated with " { " (left bracket) start, " } " (right parenthesis).Each " title " heel one ": " (colon); Separate between " ' name/value ' to " with ", " (comma).Title is bracketed with quotation marks;Value then must be with including if it is character string Number, numeric type then without having to.Array is the ordered set of value (value).One array is with " [" (left bracket) start, "] " (right bracket) terminates.Separate between value with ", " (comma).Therefore resolving is with the above-mentioned spy of json data format Point identifies each data in basic information, parses one by one to the data in basic information.Such as to step S101 interface The basic information that message obtains are as follows:
" acctMgrChannel ": " 86 ", " custName ": " Wang little Ming ", " mobileNo ": " 15899872888 ", " owner":"WANGXIAOMING666","partyNo":"600052676186"}
After parsing by parent to above-mentioned technical information, following basic data is obtained:
AcctMgrChannel:86;CustName: Wang little Ming;Mobile:No15899872888;Owner: WANGXIAOMING666;PartyNo:600052676186.
In one embodiment, step S2, as shown in Figure 3, comprising:
A factory class is defined, includes parent and multiple processing classes in factory class, is equipped in parent and is used for Processing Interface report The basic methods of basic information in text handle the abstract method that specific information in Processing Interface message is equipped in class, a processing Class corresponds to a kind of scene type of interface packets.
Since in the interface packets of all breakpoint scenes, the data field in basic information is all the same, therefore using unified Basic methods, for parsing the basic information in interface packets.And the data field of the specific information in interface packets is respectively not It is identical, therefore a processing class is defined to a kind of scene type, correspondence is parsed by specifically handling the abstract method in class Specific information.When defining factory class, factory class is configured using the template method design pattern of JAVA, concrete configuration Mode is as follows:
Step S201 defines abstract class: defining an abstract class, a basic methods are arranged in abstract class and one abstract Method, basic methods are instantiated as parent for parsing basic information, by basic methods, and abstract method is for parsing specific letter Breath, the Similar integral to be processed such as abstract method.
Such as an abstract class BreakSceneHandler is defined, a basic methods are contained in abstract class GetBaseInfo method and an abstract method getSpecialInfo method, getBaseInfo method is for parsing base Plinth information, getSpecialInfo method are realized for parsing specific information, the class to be processed such as getSpecialInfo.
Definition process class: step S202 defines a processing class to each breakpoint scene, multiple processing classes is made to inherit pumping As method.
This step defines an independent processing class to each breakpoint scene, it is made to inherit BreakSceneHandler, Realize getSpecialInfo method.Such as the processing class of breakpoint scene 1 may be defined as BreakSceneOneHandler, GetBaseInfo method inherits the realization of BreakSceneHandler abstract class, and getSpecialInfo is by the processing of oneself Class is realized.
Step S203 defines factory class: defining a factory class, private variable, private variable collection are defined in factory class Key assignments in conjunction is scene type, and the relating value in private variable set is corresponding processing class, and it is public that one is defined in factory class Method altogether, for calling parent.
This step defines a factory class BreakSceneHandlerFactory, define in factory class private variable Map < String, BreakSceneHandler >, the key of this Map set is breakpoint scene serial number, and value is corresponding processing class.Example If the key of breakpoint scene 1 is " 1 ", value BreakSceneOneHandler.In addition, definition one is public in factory class Method getBreakSceneHandler, for calling parent.
The present embodiment is corresponding specific to handle to the independent processing class of different breakpoint scene configurations by defining factory class Information, processing data are mutually indepedent between each breakpoint scene, and processing category code is mutually indepedent, convenient for subsequent modification, increase and Safeguard code.
Step S3 parses individuation data: corresponding processing class in factory class is mapped by scene type, by handling class Specific information is parsed, individuation data is obtained.
The mode of abstract method parsing specific information in this step process class, the side with basic methods parsing basic information Formula is similar, and difference is that the specific data content parsed is different.
In one embodiment, in step S3, as shown in Figure 4, comprising:
Step S301 obtains processing class: calling the private variable in factory class, scene type is assigned in private variable Key assignments, obtain corresponding processing class.
Definition has private variable in preset factory class, maps scene type by private variable, is corresponded to Processing class.For example, scene type is 1, the key for being assigned to Map set for 1, obtaining value is The processing class of BreakSceneOneHandler.
Step S302 parses data: parsing to obtain personalization with preset data format to specific information by handling class Data save individuation data by preset format.
After determining the corresponding processing class of scene type, specific information is solved by the abstract method in this processing class Analysis, in parsing, preset data format is preparatory to appoint that such as json data format is then led to from different breakpoint scenes Json data format parsing specific information is crossed, individuation data is finally obtained.Individuation data is saved by preset format to number According in library.Wherein preset format can be table format, text formatting etc..
The present embodiment determines the corresponding processing class of different breakpoint scenes by factory class, special by specifically handling class parsing Determine information, obtain the corresponding individuation data of breakpoint scene, specific information is separately parsed with basic information, in order to safeguard place When managing category code, the processing category code of test modifications is only needed, without testing the corresponding processing class of other breakpoint scenes, is mitigated significantly Maintenance cost.
In one embodiment, this method further includes step S4, maintenance processing class:
Step S401 shows code: by preset configuration interface, the scene type of user's input is obtained, from database The corresponding processing category code of middle lookup scene type is shown processing category code by the CodeWindow in configuration interface, It checks and modifies for user.
Configuration interface in this step includes scene type field, ACK button and cancel button, and user is to scene type After field input scene type, scene type is obtained, the corresponding processing category code of scene type is showed by CodeWindow User checks convenient for user and modifies code.After user presses ACK button, triggering updates code steps in next step.When with Cancel button is pressed at family, then terminates the operation of maintenance processing class.
Step S402, more fresh code: by configuration interface receive user confirm modification more fresh code, will more fresh code more Newly into the corresponding processing category code of scene type.
After user presses ACK button, this step is triggered, acquisition user, will in the modified more fresh code of CodeWindow More fresh code replacing source code realizes the maintenance of processing class.
Maintenance use can be carried out for different breakpoint scenes through this embodiment, when needing to safeguard breakpoint scene, only needed By configuration interface input scene type, code logic is modified, the maintenance of breakpoint scene can be completed.For example, breakpoint scene 1 Processing logic is changed, then inputs 1 in scene type field by configuration interface, and press ACK button.Then CodeWindow The code of display processing class BreakSceneOneHandler, user can directly modify this code content, press ACK button, complete At modification.When follow-up test, the interface packets of breakpoint scene 1 need to be only tested, maintenance and test job are significantly reduced.
In one embodiment, this method further includes step S5, newly-increased breakpoint scene: by preset configuration interface, is obtained The scene type of family input and the scene code of upload are taken, scene type is added into factory class, by scene code definition For the corresponding processing category code of scene type, processing category code is added into factory class, realizes scene type and corresponding place Manage the mapping of class.
Configuration interface in this step includes outside scene type field, ACK button and cancel button, further includes uploading to connect Mouthful, user is uploaded scene code by uploading interface.This step obtains scene type by scene type field, passes through It uploads interface and obtains scene code.After user presses ACK button, scene type a processing class can be increased newly thus, this processing The processing category code of class is scene code, is used for subsequent parsing specific information.In newly-increased processing class, this scene type is added It is added in the key of private variable Map set of factory class, scene code is added into the private variable Map set of factory class In value, cause the mapping relations for realizing newly-increased scene type and alignment processing class.
The present embodiment provides corresponding configuration by configuration interface for newly-increased breakpoint scene and handles, and user only needs input field Scape type field and corresponding scene code, can be completed configuration, and newly-increased breakpoint scene is simple and convenient, and subsequent need to be to this breakpoint Scene is tested, and without testing other existing breakpoint scenes, greatly reduces test burden.
Interface packet processing method of the present embodiment based on factory class is different from the interface packets of all breakpoint scenes all It is placed on the mode handled in the same processing class, by carrying out the specific information of different breakpoint scenes by corresponding processing class Parsing does not influence the data processing of other breakpoint scenes, code coupling after the resolution logic for modifying one of breakpoint scene Property it is high, greatly reduce maintenance and test burden.
In one embodiment it is proposed that a kind of interface packets processing unit based on factory class, as shown in figure 5, including Following module:
Information module is obtained, the interface packets transmitted for receiving different breakpoint scenes by interface obtain interface packets In basic information and specific information, scene type is obtained from specific information;
Parse basic data module, for calling preset factory class, by the parent in factory class to basic information into Row parsing, obtains basic data;
Individuation data module is parsed, for mapping corresponding processing class in factory class by scene type, passes through processing Class parses specific information, obtains individuation data.
In one embodiment it is proposed that a kind of computer equipment, including memory and processor, it is stored in memory Computer-readable instruction, when computer-readable instruction is executed by processor, so that reality when processor executes computer-readable instruction Step in the interface packet processing method based on factory class of existing the various embodiments described above.
In one embodiment it is proposed that a kind of storage medium for being stored with computer-readable instruction, computer-readable finger When order is executed by one or more processors so that one or more processors execute the various embodiments described above based on factory class Step in interface packet processing method.Wherein, storage medium can be non-volatile memory medium.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
Some exemplary embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but It cannot be construed as a limitation to the scope of the present invention.It should be pointed out that for the ordinary skill people of this field For member, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to of the invention Protection scope.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (10)

1. a kind of interface packet processing method based on factory class characterized by comprising
The interface packets that different breakpoint scenes are transmitted by interface are received, basic information in the interface packets and specific is obtained Information obtains scene type from the specific information;
Preset factory class is called, the basic information is parsed by the parent in the factory class, obtains basic number According to;
Corresponding processing class in the factory class is mapped by the scene type, by the processing class to the specific information It is parsed, obtains individuation data.
2. the interface packet processing method according to claim 1 based on factory class, which is characterized in that the reception is different The interface packets that breakpoint scene is transmitted by interface obtain basic information and specific information in the interface packets, from described Scene type is obtained in specific information, comprising:
It is inquired with the presence or absence of basic information label and specific information label in the interface packets, if it exists by regular expression The basic information label, then extract the basic information and mark corresponding basic information, if it exists the specific information label, It then extracts the specific information and marks corresponding specific information;
The mark of the scene type in the specific information is inquired by regular expression, it is corresponding to extract the scene type mark Scene type.
3. the interface packet processing method according to claim 1 based on factory class, which is characterized in that call preset work Factory's class parses the basic information by the parent in the factory class, before obtaining basic data, comprising:
A factory class is defined, includes parent and multiple processing classes in the factory class, is equipped in the parent and is connect for handling The basic methods of basic information, described to handle the abstract side for being equipped in class and handling specific information in the interface packets in mouth message Method, a processing class correspond to a kind of scene type of interface packets.
4. the interface packet processing method according to claim 3 based on factory class, which is characterized in that described to define one Factory class, comprising:
An abstract class is defined, a basic methods and an abstract method are set in the abstract class, the basic methods are used In parsing basic information, the basic methods are instantiated as parent, the abstract method is for parsing specific information, the pumping As the Similar integral to be processed such as method;
One processing class is defined to each breakpoint scene, multiple processing classes is made to inherit the abstract method;
A factory class is defined, private variable is defined in the factory class, the key assignments in the private variable set is scene Type, the relating value in the private variable set is corresponding processing class, and a public method is defined in the factory class, is used In the calling parent.
5. the interface packet processing method according to claim 4 based on factory class, which is characterized in that described by described Scene type maps corresponding processing class in the factory class, is parsed, is obtained to the specific information by the processing class To individuation data, comprising:
The private variable in the factory class is called, the scene type is assigned to the key assignments in the private variable, Obtain corresponding processing class;
The specific information is parsed to obtain individuation data with preset data format by the processing class, by the individual character Change data to be saved by preset format.
6. the interface packet processing method according to claim 1 based on factory class, which is characterized in that further include:
By preset configuration interface, the scene type of user's input is obtained, it is corresponding that the scene type is searched from database Processing category code, by the CodeWindow in the configuration interface to processing category code be shown, check and repair for user Change;
The more fresh code that user confirms modification is received by the configuration interface, by the update code update to the scene class In the corresponding processing category code of type.
7. the interface packet processing method according to claim 1 based on factory class, which is characterized in that further include:
By preset configuration interface, the scene type of user's input and the scene code of upload are obtained, by the scene type It is added into the factory class, is the corresponding processing category code of the scene type by the scene code definition, by the place Reason category code is added into the factory class, realizes the mapping of scene type and corresponding processing class.
8. a kind of interface packets processing unit based on factory class characterized by comprising
Information module is obtained, the interface packets transmitted for receiving different breakpoint scenes by interface obtain the interface packets In basic information and specific information, obtain scene type from the specific information;
Basic data module is parsed, for calling preset factory class, the basis is believed by the parent in the factory class Breath is parsed, and basic data is obtained;
Individuation data module is parsed, for mapping corresponding processing class in the factory class by the scene type, is passed through The processing class parses the specific information, obtains individuation data.
9. a kind of computer equipment, which is characterized in that including memory and processor, being stored with computer in the memory can Reading instruction, when the computer-readable instruction is executed by the processor, so that the processor executes such as claim 1 to 7 Any one of interface packet processing method described in claim based on factory class the step of.
10. a kind of storage medium for being stored with computer-readable instruction, which is characterized in that the computer-readable instruction is by one Or multiple processors are when executing, so that one or more processors are executed as described in any one of claims 1 to 7 claim The step of interface packet processing method based on factory class.
CN201910342342.4A 2019-04-26 2019-04-26 Interface packet processing method, device, equipment and storage medium based on factory class Pending CN110209377A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910342342.4A CN110209377A (en) 2019-04-26 2019-04-26 Interface packet processing method, device, equipment and storage medium based on factory class

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910342342.4A CN110209377A (en) 2019-04-26 2019-04-26 Interface packet processing method, device, equipment and storage medium based on factory class

Publications (1)

Publication Number Publication Date
CN110209377A true CN110209377A (en) 2019-09-06

Family

ID=67786377

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910342342.4A Pending CN110209377A (en) 2019-04-26 2019-04-26 Interface packet processing method, device, equipment and storage medium based on factory class

Country Status (1)

Country Link
CN (1) CN110209377A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110674110A (en) * 2019-09-09 2020-01-10 中国建设银行股份有限公司 Bank distributed database construction method and device
CN112051985A (en) * 2020-07-23 2020-12-08 北京奇艺世纪科技有限公司 Event triggering method and device, electronic equipment and readable storage medium
CN112272218A (en) * 2020-10-16 2021-01-26 苏州浪潮智能科技有限公司 Cloud platform instance resource operation method and device, computer equipment and storage medium
CN113947297A (en) * 2021-09-30 2022-01-18 广州市玄武无线科技股份有限公司 Formula conversion method and system based on template variables
CN114928663A (en) * 2022-06-02 2022-08-19 蜂助手股份有限公司 Method and device for recognizing callback message
CN115052054A (en) * 2022-08-15 2022-09-13 江西联创精密机电有限公司 Communication message configuration method, device, readable storage medium and equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105120002A (en) * 2015-09-09 2015-12-02 中国银行股份有限公司 Information processing method and information processing device
CN105426175A (en) * 2015-11-03 2016-03-23 用友网络科技股份有限公司 Device and method for providing scene characteristic-based dynamic components
CN105681346A (en) * 2016-03-15 2016-06-15 福建星海通信科技有限公司 Method for realizing message analysis based on factory class
CN105787057A (en) * 2016-02-29 2016-07-20 浪潮通用软件有限公司 Automatic synchronization achieving method for business data between heterogeneous systems
CN108400992A (en) * 2018-03-06 2018-08-14 电信科学技术第五研究所有限公司 A kind of streaming traffic data protocol analysis software frame realization system and method
CN108924141A (en) * 2018-07-10 2018-11-30 中国银行股份有限公司 A kind of message tissue and transmission method and device
CN109194495A (en) * 2018-06-29 2019-01-11 平安科技(深圳)有限公司 server, message processing method and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105120002A (en) * 2015-09-09 2015-12-02 中国银行股份有限公司 Information processing method and information processing device
CN105426175A (en) * 2015-11-03 2016-03-23 用友网络科技股份有限公司 Device and method for providing scene characteristic-based dynamic components
CN105787057A (en) * 2016-02-29 2016-07-20 浪潮通用软件有限公司 Automatic synchronization achieving method for business data between heterogeneous systems
CN105681346A (en) * 2016-03-15 2016-06-15 福建星海通信科技有限公司 Method for realizing message analysis based on factory class
CN108400992A (en) * 2018-03-06 2018-08-14 电信科学技术第五研究所有限公司 A kind of streaming traffic data protocol analysis software frame realization system and method
CN109194495A (en) * 2018-06-29 2019-01-11 平安科技(深圳)有限公司 server, message processing method and computer readable storage medium
CN108924141A (en) * 2018-07-10 2018-11-30 中国银行股份有限公司 A kind of message tissue and transmission method and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110674110A (en) * 2019-09-09 2020-01-10 中国建设银行股份有限公司 Bank distributed database construction method and device
CN112051985A (en) * 2020-07-23 2020-12-08 北京奇艺世纪科技有限公司 Event triggering method and device, electronic equipment and readable storage medium
CN112051985B (en) * 2020-07-23 2023-07-25 北京奇艺世纪科技有限公司 Event triggering method, device, electronic equipment and readable storage medium
CN112272218A (en) * 2020-10-16 2021-01-26 苏州浪潮智能科技有限公司 Cloud platform instance resource operation method and device, computer equipment and storage medium
CN112272218B (en) * 2020-10-16 2023-01-06 苏州浪潮智能科技有限公司 Cloud platform instance resource operation method and device, computer equipment and storage medium
CN113947297A (en) * 2021-09-30 2022-01-18 广州市玄武无线科技股份有限公司 Formula conversion method and system based on template variables
CN114928663A (en) * 2022-06-02 2022-08-19 蜂助手股份有限公司 Method and device for recognizing callback message
CN115052054A (en) * 2022-08-15 2022-09-13 江西联创精密机电有限公司 Communication message configuration method, device, readable storage medium and equipment

Similar Documents

Publication Publication Date Title
CN110209377A (en) Interface packet processing method, device, equipment and storage medium based on factory class
US20210182475A1 (en) Database model which provides management of custom fields and methods and apparatus therfor
CN107341206B (en) The method for constructing accurately user&#39;s portrait system based on multiple data sources
US20120158807A1 (en) Matching data based on numeric difference
CN110413288A (en) Using dispositions method, device, server and storage medium
CN109871289A (en) A kind of remote procedure call service creation method and device
CN106874325A (en) Data query method and device
CN111324740B (en) Dispute event identification method, identification device and identification system
EP2626830A1 (en) Server, information-management method, information-management program, and computer-readable recording medium with said program recorded thereon
US9274669B1 (en) Customizing user interfaces for multiple different clients
CN114036425A (en) Page access method, client, server and system
US20140280352A1 (en) Processing semi-structured data
CN114416075A (en) Service processing method and device
CN112287013A (en) Data conversion method and adapter
CN107515866A (en) A kind of data manipulation method, device and system
US9401846B2 (en) Information handling system configuration identification tool and method
CN109472473A (en) Management method, device and the computer readable storage medium of retail shop&#39;s information
CN108021629A (en) A kind of ad material data creation method, apparatus and system
CN109284452B (en) Electronic protocol online display method and device, electronic equipment and storage medium
CN105516269A (en) Application configuration method and application configuration device
CN111353874B (en) Intelligent service system of bank outlets
CN113094287A (en) Page compatibility detection method, device, equipment and storage medium
CN111061733B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN108196921B (en) Document development method and device, computer equipment and storage medium
CN107977459A (en) Report form generation method and device

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