Interface field input method and device, equipment, storage medium and product
By automatically obtaining and entering the definition information of interface fields, the problem of low manual entry efficiency when adding a large number of new interfaces is solved, and automatic entry is realized and efficiency is improved.
Patent Information
- Application Number
- CN202411403606.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-09
- Publication Date
- 2025-02-07
AI Technical Summary
When adding a large number of new interfaces, the information of each interface field needs to be manually filled in one by one, which reduces the efficiency of interface field entry.
In response to the user's paste operation in the text area, the user automatically obtains the definition information copied by the interface field of the clipboard in the cloud document, and automatically obtains the information to be entered based on the definition information and enters the information to be entered.
There is no need to manually enter information on interface fields, which improves the efficiency of inputting interface fields and avoids the problem of reducing efficiency due to manually filling in the information of each interface field one by one.
Smart Images

Figure CN119396603A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an interface field entry method, device, equipment, storage medium and product. Background Art
[0002] With the rapid development and deployment of traditional interfaces on the cloud, more and more traditional interface functions have been accessed through cloud architecture. Some interfaces used by existing clients also need to be connected to cloud services and use X86 interfaces to provide related functions. Currently, the number of these existing client systems is considerable, and there are also quite a lot of interface fields involved. Some single menus have as many as 500 to 600 interface fields.
[0003] In the related art, information such as name, description, type and length is usually entered into the interface fields manually. However, when a large number of new interfaces are added, the information of each interface field needs to be filled in manually one by one, which reduces the efficiency of interface field entry. Summary of the invention
[0004] The main purpose of this application is to provide an interface field entry method, device, equipment, storage medium and product, aiming to solve the technical problem that when adding a large number of new interfaces, the information of each field needs to be filled in manually one by one, which reduces the efficiency of interface field entry.
[0005] To achieve the above purpose, the present application proposes an interface field entry method, the interface field entry method comprising:
[0006] In response to a paste operation on the text area, displaying definition information of the interface field saved in the clipboard;
[0007] Based on the definition information, information to be entered is determined, and the information to be entered is entered.
[0008] In one embodiment, the step of determining the information to be entered based on the definition information and entering the information to be entered includes:
[0009] Parsing the definition information to obtain the parsed definition information, wherein the definition information includes definition information of different field types;
[0010] Based on preset conversion rules, the definition information of the different field types is format converted to obtain information to be entered.
[0011] In one embodiment, the step of converting the format of the definition information of the different field types based on a preset conversion rule to obtain the information to be entered includes:
[0012] Performing field type judgment on the definition information to obtain first definition information whose field type is a string type, second definition information whose field type is a date and time type, and third definition information whose field type is a numeric type;
[0013] Perform keyword detection on the first definition information, if the first definition information contains keywords, replace the identifier of the first definition information with the first type to obtain a first subfield, if the first definition information does not contain keywords, replace the identifier of the first definition information with the second type to obtain a second subfield;
[0014] Using the first subfield and / or the second subfield as a first field to be entered;
[0015] Performing identifier replacement on the second definition information to obtain a replaced second field to be entered;
[0016] Replacing the identifier of the third definition information with the third type to obtain a replaced third field to be entered;
[0017] The first field to be entered, the second field to be entered, and the third field to be entered are used as information to be entered.
[0018] In one embodiment, the step of replacing the identifier of the second definition information to obtain the replaced second field to be entered includes:
[0019] If it is determined that the original field length of the second definition information is less than or equal to the preset length, the identifier of the second definition information is replaced with the third type to obtain a replaced third subfield;
[0020] If it is determined that the original field length is greater than the preset length, the identifier of the second definition information is replaced with the second type to obtain a replaced fourth subfield;
[0021] The third subfield and / or the fourth subfield is used as the second field to be entered.
[0022] In one embodiment, before the step of parsing the definition information to obtain the parsed definition information, the following steps are included:
[0023] Get the rule text uploaded by the user on the configuration page;
[0024] By using a preset rule analysis model, the rule text is converted into a preset conversion rule;
[0025] The step of converting the rule text by using a preset rule analysis model to obtain a preset conversion rule includes:
[0026] Obtaining sample text data and sample labels corresponding to the sample text data;
[0027] Based on the sample text data, determining the attention weight of the regular text;
[0028] Obtaining an initial rule analysis model;
[0029] Based on the sample text data, the sample labels and the attention weights, the initial rule analysis model is iteratively trained to obtain a preset rule analysis model that meets the accuracy requirements.
[0030] In one embodiment, the step of entering the information to be entered includes:
[0031] Scan the information to be entered in each interface field word by word, control the hardware device to enter the scanned characters word by word in the entry area, and record the number of entries in each interface field when entering the information;
[0032] The step of entering the information to be entered includes:
[0033] Obtain the number of interfaces in the interface field corresponding to the definition information;
[0034] Compare the input quantity with the interface quantity to obtain a comparison result;
[0035] Based on the comparison result, a quantity prompt message is generated to prompt the user that the input is complete.
[0036] In addition, to achieve the above purpose, the present application also proposes an interface field entry device, the interface field entry device comprising:
[0037] An acquisition module, for displaying definition information of the interface field stored in the clipboard in response to a paste operation on the text area;
[0038] The input module is used to determine the information to be input based on the definition information, and input the information to be input.
[0039] In addition, to achieve the above-mentioned purpose, the present application also proposes an interface field entry device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the interface field entry method described above.
[0040] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the interface field entry method described above are implemented.
[0041] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the interface field entry method described above are implemented.
[0042] One or more technical solutions proposed in this application have at least the following technical effects:
[0043] Compared with the related art, when adding a large number of new interfaces, it is necessary to manually fill in the information of each interface field one by one, which reduces the efficiency of interface field entry, the present application obtains the definition information of the interface field in response to the user's paste operation in the text area; based on the definition information, determines the information to be entered, and enters the information to be entered. It can be understood that the present application automatically obtains the definition information of the interface field copied by the user in the clipboard in the cloud document in response to the user's paste operation in the text area, and automatically obtains the information to be entered based on the definition information, and enters the information to be entered. There is no need for manual information entry into the interface field, and thus, the problem of manually filling in the information of each interface field one by one, which reduces the efficiency of interface field entry, can be avoided. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0045] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0046] Figure 1 A flowchart of the first embodiment of the method for inputting interface fields of this application is provided;
[0047] Figure 2 This is the system core logic diagram of the method for entering interface fields in this application;
[0048] Figure 3 A brief flowchart diagram of the second embodiment of the interface field input method of this application;
[0049] Figure 4This is a schematic diagram of the module structure of the interface field entry device according to an embodiment of the present application;
[0050] Figure 5 This is a schematic diagram of the device structure of the hardware operating environment involved in the interface field entry method in the embodiment of the present application.
[0051] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0052] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0053] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0054] The main solution of the embodiment of the present application is: in response to the user's paste operation in the text area, the definition information of the interface field is obtained; based on the definition information, the information to be entered is determined, and the information to be entered is entered.
[0055] In the related art, information such as name, description, type and length is usually entered into the interface fields manually. However, when a large number of new interfaces are added, the information of each interface field needs to be filled in manually one by one, which reduces the efficiency of interface field entry.
[0056] In response to the user's paste operation in the text area, the present application automatically obtains the definition information of the interface field copied by the user in the clipboard in the cloud document, and based on the definition information, automatically obtains the information to be entered, and enters the information to be entered. Manual entry of information into the interface field is not required, thereby avoiding the problem of manually filling in the information of each interface field one by one, which reduces the efficiency of interface field entry.
[0057] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, etc. The following takes the interface field entry device as an example to illustrate this embodiment and the following embodiments.
[0058] Based on this, the embodiment of the present application provides an interface field entry method, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the interface field entry method of the present application.
[0059] In this embodiment, please refer to Figure 2 , Figure 2The core logic diagram of the system, the interface field entry method includes steps S100 to S200:
[0060] Step S100, in response to a paste operation on the text area, displaying definition information of the interface field saved in the clipboard;
[0061] It should be noted that the execution subject of this embodiment is an interface field entry device. The interface field entry device is provided with a cloud platform and a text area, and the cloud platform stores a cloud document for saving interface field definitions. The user can search for the interface field definition to be configured on the cloud document of the cloud platform, and then copy all the definition lists. After copying, all the field definition information will be saved in the clipboard cache for use in the next step.
[0062] It is understandable that definition information refers to detailed information used to describe each field in the interface, usually including: field name, field type, field description, etc. When the user double-clicks the text area of the interface field entry device and pastes the data in the clipboard cache into the text area, the text area can obtain the definition information of the interface field stored in the clipboard.
[0063] Step S200: determining information to be entered based on the definition information, and entering the information to be entered.
[0064] It should be noted that the interface field entry device is provided with an application programming interface Windows API, which can accurately perform single and double click movements of the mouse and simulate input control of the keyboard to achieve the effect of manual entry and realize the purpose of seamless entry. The information to be entered is the newly added interface information. The interface field entry device converts the obtained definition information into information to be entered that can be directly entered, and then uses Windows API to simulate the operation of the mouse and keyboard to enter the information to be entered. After the interface field is entered, the interface field entry device can configure the entered interface field.
[0065] In a feasible implementation manner, step S200 includes the following steps:
[0066] Parsing the definition information to obtain the parsed definition information, wherein the definition information includes definition information of different field types;
[0067] It is understandable that the definition information includes string type, date type, time type, integer type and floating point type. The interface field input device removes redundant spaces, tabs and line breaks from the acquired definition information, and after removing them, parses the field definition information by line, and extracts information such as field name, type, length and description, thereby obtaining definition information including different field types.
[0068] Based on preset conversion rules, the definition information of the different field types is format converted to obtain information to be entered.
[0069] It should be noted that the definition information can be converted into three types: O, A and S types through the preset conversion rules, and the fields of the above three types can be directly entered. The interface field entry device converts the definition information into the information to be entered that can be directly entered according to the preset conversion rules.
[0070] In a feasible implementation manner, based on a preset conversion rule, the step of converting the format of the definition information of the different field types to obtain the information to be entered includes the following steps:
[0071] Performing field type judgment on the definition information to obtain first definition information whose field type is a string type, second definition information whose field type is a date and time type, and third definition information whose field type is a numeric type;
[0072] It is understandable that the string type is the string type. The date and time types are the date and time types. The numerical types are the integer and float types. The interface field entry device classifies the obtained definition information according to different field types, and uses the definition information of the string type as the first definition information, the definition information of the date and time types as the second definition information, and the definition information of the integer and float types as the third definition information.
[0073] Perform keyword detection on the first definition information, if the first definition information contains keywords, replace the identifier of the first definition information with the first type to obtain a first subfield, if the first definition information does not contain keywords, replace the identifier of the first definition information with the second type to obtain a second subfield;
[0074] It should be noted that the keywords include keywords such as "name" and "information" of string type definition information. The first type is type O. The second type is type A. The interface field entry device performs a field check on the first definition information to check whether the field name contains keywords such as "name", "name", "description" and "information". If the first definition information contains the above keywords, based on the preset conversion rules, the first definition information is converted into a first subfield with a field format of the first type (type O). If the first definition information does not contain the above keywords, based on the preset conversion rules, the first definition information is converted into a second subfield with a field format of the second type (type A).
[0075] Using the first subfield and / or the second subfield as a first field to be entered;
[0076] It is understandable that the first definition information may contain keywords or may not contain keywords, or both situations may exist at the same time, so the interface field entry device uses the first subfield and / or the second subfield as the first field to be entered.
[0077] Performing identifier replacement on the second definition information to obtain a replaced second field to be entered;
[0078] It should be noted that the interface field entry device performs format conversion on the definition information of the date and time types according to a preset conversion rule to obtain the second field to be entered.
[0079] Replacing the identifier of the third definition information with the third type to obtain a replaced third field to be entered;
[0080] It is understandable that the third type is type S. The interface field entry device performs format conversion on the definition information of integer and float types according to a preset conversion rule, and converts the format into a field to be entered whose format type is the third type (type S).
[0081] The first field to be entered, the second field to be entered, and the third field to be entered are used as information to be entered.
[0082] It should be noted that the interface field entry device treats the first field to be entered, the second field to be entered and the third field to be entered as a whole as the information to be entered. After the format conversion, the above information to be entered will be echoed in the text area. The user can modify and delete the information to be entered in the text area to meet the user's specific needs.
[0083] In a feasible implementation manner, the step of replacing the identifier of the second definition information to obtain the replaced second field to be entered includes the following steps:
[0084] If it is determined that the original field length of the second definition information is less than or equal to the preset length, the identifier of the second definition information is replaced with the third type to obtain a replaced third subfield;
[0085] It is understandable that the preset length can be set to 8. The interface field entry device determines the original field length of the definition information of the date and time types, and if the original field length is less than or equal to 8, based on the preset conversion rule, converts the second definition information into a third subfield of the S type in the field format.
[0086] If it is determined that the original field length is greater than the preset length, the identifier of the second definition information is replaced with the second type to obtain a replaced fourth subfield;
[0087] It should be noted that if the interface field entry device determines that the original field length is greater than 8, the second definition information is converted into a fourth subfield of type A in field format based on a preset conversion rule.
[0088] The third subfield and / or the fourth subfield is used as the second field to be entered.
[0089] It is understandable that the original field length of the second definition information may be less than or equal to 8, or greater than 8, or both of the above situations exist at the same time, so the interface field entry device uses the third subfield and / or the fourth subfield as the second field to be entered.
[0090] In this embodiment, after the user pastes the definition information from the clipboard into the text area, the interface field entry device obtains the definition information of the interface field, converts the definition information into different types of information to be entered based on preset conversion rules, and controls the hardware device to input the information to be entered to complete the interface field entry, thereby improving the efficiency of interface field entry.
[0091] The present application embodiment provides an interface field entry method, referring to Figure 3 , Figure 3 This is a flow chart of the second embodiment of the interface field entry method of the present application.
[0092] In a feasible implementation manner, step S200 includes step A10:
[0093] Step A10, scanning the information to be entered in each interface field word by word, entering the scanned characters word by word in the entry area, and recording the number of entries in each interface field when entering the information in each interface field;
[0094] It should be noted that the Windows API of the interface field entry device can simulate mouse and keyboard input operations. The Windows API uses the SendInput function to send key messages. The SendInput function allows you to send a series of input events, including pressing and releasing keyboard keys. The SendInput function is also used to simulate mouse operations, but this time it sends mouse events. Mouse events can include operations such as moving and clicking.
[0095] It is understandable that when the interface field entry device scans the information to be entered, each time a character is scanned, the Windows API will input a character to realize the real-time entry of the information to be entered. After completing the entry of an interface field, the number of interfaces that have been entered will be recorded, where the number of interfaces starts to accumulate from 0.
[0096] In particular, to ensure the accuracy of keyboard input, it is necessary to add appropriate delays between key presses to avoid misoperations caused by rapid and continuous key presses and to ensure that the key codes used correspond correctly to the target keys.
[0097] In one possible implementation, refer to Figure 3 , after step A10, steps A11 to A13 are included:
[0098] Step A11, obtaining the number of interfaces in the interface field corresponding to the definition information;
[0099] It should be noted that the number of interfaces refers to the number of interfaces that the user has copied in the cloud document. The interface field entry device obtains the number of interfaces that the user has copied in the cloud document on the cloud platform.
[0100] Step A12, comparing the input quantity with the interface quantity to obtain a comparison result;
[0101] It is understandable that the comparison result is used to indicate whether all interfaces are entered. The interface field entry device compares the number of copied interfaces with the number of entered interfaces to obtain a comparison result.
[0102] Step A13: Based on the comparison result, generate quantity prompt information to prompt the user to complete the input.
[0103] It should be noted that after all fields are entered, the interface field entry device generates a quantity prompt message and prompts the user through a pop-up window that all entries have been completed.
[0104] In particular, the interface field entry device generates a log after the interface information is entered, which can help users understand the conversion process of each interface field and facilitate tracking and debugging when problems occur.
[0105] In a feasible implementation manner, before the step of parsing the definition information to obtain the parsed definition information, the following steps are included:
[0106] Get the rule text uploaded by the user on the configuration page;
[0107] It is understandable that the interface field entry device is provided with a personalized configuration page, on which the user can enter the rule description text in natural language. After the user uploads the personalized information to the personalized configuration page, the interface field entry device obtains the rule text uploaded by the user.
[0108] The user can define format conversion rules for different types of fields on the personalized page. Specifically, the user divides different types of fields into three types: O, A, and S. Among them, the specific types of O, A, and S can be set according to user needs.
[0109] The rule text is converted into a rule by using a preset rule analysis model to obtain a preset conversion rule.
[0110] It should be noted that the preset rule analysis model is predefined and is used to parse the uploaded rule text. The interface field entry device performs rule analysis on the rule text uploaded by the user and determines the preset conversion rule.
[0111] The step of converting the rule text by using a preset rule analysis model to obtain a preset conversion rule includes the following steps:
[0112] Obtaining sample text data and sample labels corresponding to the sample text data;
[0113] It is understandable that sample text data refers to a collection of annotated texts that contain rules that need to be recognized and converted by the model. Sample labels are standard answers or expected results provided for each sample text, which are used to tell the model what kind of conversion is correct. The interface field entry device obtains the annotated text collection and the sample labels that characterize the standard answers or expected results provided by each sample text.
[0114] Based on the sample text data, determining the attention weight of the regular text;
[0115] It should be noted that the attention weight determines which parts are more critical to the recognition rules by analyzing the sample text data and assigning higher weights to these parts. This mechanism can help the model better capture the important features in the rules. In order to enable the model to focus more on the more important parts of the text, the interface field entry device analyzes the sample text data to determine which parts are more critical to the recognition rules and assigns higher weights to these parts to obtain the attention weights.
[0116] Obtaining an initial rule analysis model;
[0117] It is understandable that the initial rule analysis model is a pre-trained model. The interface field entry device obtains the pre-trained initial rule analysis model.
[0118] Based on the sample text data, the sample labels and the attention weights, the initial rule analysis model is iteratively trained to obtain a preset rule analysis model that meets the accuracy requirements.
[0119] It should be noted that the interface field entry device uses sample text data and corresponding labels to train the initial model, and uses attention weights to enable the model to focus more on the more important parts of the text. During the training process, the model will continuously adjust its parameters to minimize the difference between the predicted results and the actual labels. The training cycle will continue until the model reaches the predetermined accuracy requirements, and then the preset rule analysis model is obtained.
[0120] In this embodiment, the interface field entry device will control the hardware device to enter the interface information and monitor the number of interfaces after entry to avoid missing information. The interface field entry device is also provided with a personalized configuration page. Users can upload rule text and accurately convert the rule text into preset rules through the preset rule analysis model, thereby improving the efficiency of interface field entry.
[0121] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the interface field entry method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0122] This application also provides an interface field entry device, please refer to Figure 4 , the interface field entry device comprises:
[0123] The acquisition module 10 is used to display the definition information of the interface field stored in the clipboard in response to the paste operation on the text area;
[0124] The input module 20 is used to determine the information to be input based on the definition information, and input the information to be input.
[0125] Optionally, the input module includes:
[0126] A parsing module is used to parse the definition information to obtain the parsed definition information, wherein the definition information includes definition information of different field types; based on a preset conversion rule, the definition information of the different field types is format converted to obtain information to be entered.
[0127] A comparison module is used to scan the information to be entered in each interface field word by word, enter the scanned characters word by word in the entry area, and record the number of entries in each interface field when entering; obtain the number of interfaces of the interface field corresponding to the definition information; compare the entry number with the interface number to obtain a comparison result; and based on the comparison result, generate a quantity prompt message to prompt the user that the entry is complete.
[0128] Optionally, the parsing module includes:
[0129] A conversion module is used to perform field type judgment on the definition information to obtain first definition information with a string type, second definition information with a date and time type, and third definition information with a numeric type; perform keyword detection on the first definition information, if the first definition information has a keyword, replace the identifier of the first definition information with the first type to obtain a first subfield, if the first definition information does not have a keyword, replace the identifier of the first definition information with the second type to obtain a second subfield; use the first subfield and / or the second subfield as the first field to be entered; replace the identifier of the second definition information to obtain the replaced second field to be entered; replace the identifier of the third definition information with the third type to obtain the replaced third field to be entered; use the first field to be entered, the second field to be entered, and the third field to be entered as information to be entered.
[0130] A configuration module is used to obtain the rule text uploaded by the user on the configuration page; perform rule conversion on the rule text through a preset rule analysis model to obtain preset conversion rules; obtain sample text data and sample labels corresponding to the sample text data; determine the attention weight of the rule text based on the sample text data; obtain an initial rule analysis model; iteratively train the initial rule analysis model based on the sample text data, the sample labels and the sample labels to obtain preset conversion rules that meet accuracy requirements.
[0131] Optionally, the conversion module includes:
[0132] A judgment module, used for replacing the identifier of the second definition information with the third type to obtain a replaced third subfield if it is determined that the original field length of the second definition information is less than or equal to a preset length; if it is determined that the original field length is greater than the preset length, replacing the identifier of the second definition information with the second type to obtain a replaced fourth subfield; and using the third subfield and / or the fourth subfield as the second field to be entered.
[0133] The interface field entry device provided by the present application adopts the interface field entry method in the above embodiment, which can solve the technical problem of interface field entry. Compared with the prior art, the beneficial effects of the interface field entry device provided by the present application are the same as the beneficial effects of the interface field entry method provided by the above embodiment, and other technical features in the interface field entry device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0134] The present application provides an interface field entry device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the interface field entry method in the above-mentioned embodiment one.
[0135] Reference below Figure 5 , which shows a schematic diagram of the structure of an interface field entry device suitable for implementing the embodiment of the present application. The interface field entry device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, tablet computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The interface field entry device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0136] like Figure 5As shown, the interface field entry device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the interface field entry device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the interface field entry device to communicate wirelessly or wired with other devices to exchange data. Although the interface field entry device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0137] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0138] The interface field entry device provided by the present application adopts the interface field entry method in the above embodiment, which can solve the technical problem of interface field entry. Compared with the prior art, the beneficial effects of the interface field entry device provided by the present application are the same as the beneficial effects of the interface field entry method provided by the above embodiment, and other technical features in the interface field entry device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0139] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0140] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0141] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the interface field entry method in the above-mentioned embodiment.
[0142] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0143] The computer-readable storage medium may be included in the interface field entry device; or may exist independently without being assembled into the interface field entry device.
[0144] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the interface field entry device, the interface field entry device: in response to a paste operation on the text area, displays the definition information of the interface field saved in the clipboard; based on the definition information, determines the information to be entered, and enters the information to be entered.
[0145] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0146] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0147] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0148] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned interface field entry method, and can solve the technical problem of interface field entry. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the interface field entry method provided in the above-mentioned embodiment, and will not be repeated here.
[0149] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned interface field entry method when executed by a processor.
[0150] The computer program product provided by this application can solve the technical problem of interface field entry. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the interface field entry method provided by the above embodiment, which will not be repeated here.
[0151] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for entering interface fields, characterized in that: The interface field entry method comprises: In response to a paste operation on the text area, displaying definition information of the interface field saved in the clipboard; Based on the definition information, information to be entered is determined, and the information to be entered is entered.
2. The interface field entry method according to claim 1, characterized in that: The step of determining the information to be entered based on the definition information and entering the information to be entered includes: Parsing the definition information to obtain the parsed definition information, wherein the definition information includes definition information of different field types; Based on preset conversion rules, the definition information of the different field types is format converted to obtain information to be entered.
3. The interface field entry method according to claim 2, characterized in that: The step of converting the format of the definition information of the different field types based on the preset conversion rules to obtain the information to be entered includes: Performing field type judgment on the definition information to obtain first definition information whose field type is a string type, second definition information whose field type is a date and time type, and third definition information whose field type is a numeric type; Perform keyword detection on the first definition information, if the first definition information contains keywords, replace the identifier of the first definition information with the first type to obtain a first subfield, if the first definition information does not contain keywords, replace the identifier of the first definition information with the second type to obtain a second subfield; Using the first subfield and / or the second subfield as a first field to be entered; Performing identifier replacement on the second definition information to obtain a replaced second field to be entered; Replacing the identifier of the third definition information with the third type to obtain a replaced third field to be entered; The first field to be entered, the second field to be entered, and the third field to be entered are used as information to be entered.
4. The interface field entry method according to claim 3, characterized in that: The step of replacing the identifier of the second definition information to obtain the replaced second field to be entered comprises: Determine the original field length of the second definition information, If the original field length is less than or equal to the preset length, replacing the identifier of the second definition information with the third type to obtain a replaced third subfield; If the original field length is greater than the preset length, the identifier of the second definition information is replaced with the second type to obtain a replaced fourth subfield; The third subfield and / or the fourth subfield is used as the second field to be entered.
5. The interface field entry method according to claim 2, characterized in that: The step of parsing the definition information to obtain the parsed definition information includes: Get the rule text uploaded by the user on the configuration page; By using a preset rule analysis model, the rule text is converted into a preset conversion rule; The step of converting the rule text by using a preset rule analysis model to obtain a preset conversion rule includes: Obtaining sample text data and sample labels corresponding to the sample text data; Based on the sample text data, determining the attention weight of the regular text; Obtaining an initial rule analysis model; Based on the sample text data, the sample labels and the attention weights, the initial rule analysis model is iteratively trained to obtain a preset rule analysis model that meets the accuracy requirements.
6. The interface field entry method according to claim 1, characterized in that: The step of entering the information to be entered comprises: Scan the information to be entered in each interface field word by word, enter the scanned characters word by word in the entry area, and record the number of entries in each interface field when entering the information; The step of entering the information to be entered includes: Obtain the number of interfaces in the interface field corresponding to the definition information; Compare the input quantity with the interface quantity to obtain a comparison result; Based on the comparison result, a quantity prompt message is generated to prompt the user that the input is complete.
7. An interface field entry device, characterized in that: The device comprises: An acquisition module, used for acquiring definition information of an interface field in response to a user's pasting operation in the text area; The input module is used to determine the information to be input based on the definition information, and input the information to be input.
8. An interface field entry device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the interface field entry method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the interface field entry method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the interface field entry method according to any one of claims 1 to 6 are implemented.