CN117311684A - Information circulation method, device, medium and electronic equipment - Google Patents

Information circulation method, device, medium and electronic equipment Download PDF

Info

Publication number
CN117311684A
CN117311684A CN202310876892.0A CN202310876892A CN117311684A CN 117311684 A CN117311684 A CN 117311684A CN 202310876892 A CN202310876892 A CN 202310876892A CN 117311684 A CN117311684 A CN 117311684A
Authority
CN
China
Prior art keywords
layer
structures
description language
data
interface description
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
CN202310876892.0A
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.)
Douyin Vision Co Ltd
Original Assignee
Douyin Vision 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 Douyin Vision Co Ltd filed Critical Douyin Vision Co Ltd
Priority to CN202310876892.0A priority Critical patent/CN117311684A/en
Publication of CN117311684A publication Critical patent/CN117311684A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/3332Query translation
    • G06F16/3334Selection or weighting of terms from queries, including natural language queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/36Creation of semantic tools, e.g. ontology or thesauri
    • G06F16/367Ontology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/10Requirements analysis; Specification techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Animal Behavior & Ethology (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The disclosure relates to an information circulation method, an information circulation device, a medium and electronic equipment, belongs to the technical field of electronics, and can automatically connect global data in series to construct a relation model of an entire system. An information transfer method, comprising: importing the PRD into a PRD layer, importing IDL information into an IDL method layer and an IDL structure layer, and importing a library table structure into a data layer; searching by using the names of the structures in the IDL structure layer and the names of the fields in the structures as keywords, and matching the data structures in the data layer with the structures in the IDL structure layer to obtain a first matching result; searching by using the names of the matched structures and the names of the fields in the structures in the first matching result as keywords, and matching the matched structures in the IDL structure layer with the entities in the PRD layer to obtain a second matching result; based on the first and second matching results, primary key and unique key information in the data layer is transferred to the front end code layer.

Description

Information circulation method, device, medium and electronic equipment
Technical Field
The disclosure relates to the technical field of electronics, and in particular relates to an information circulation method, an information circulation device, a medium and electronic equipment.
Background
For front-end product development, the efficiency is usually improved in the process of building a new platform by means of low-code development, wherein the low-code development refers to a development mode which can rapidly develop a system with little or no code. However, this development method can only improve the efficiency of front-end development, and cannot realize the overall efficiency improvement.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In a first aspect, the present disclosure provides an information circulation method, including: importing the product demand document into a product demand document layer, importing interface description language information into an interface description language method layer and an interface description language structure layer, and importing a library table structure into a data layer; searching by using names of structures in an interface description language structure layer and names of fields in the structures as keywords, and matching the data structures in the data layer with the structures in the interface description language structure layer to obtain a first matching result; searching by using the names of the structures matched in the first matching result and the names of the fields in the structures as keywords, and matching the structures matched in the interface description language structure layer with the entities in the product demand document layer to obtain a second matching result; and transmitting primary key and unique key information in the data layer to a front end code layer based on the first matching result and the second matching result.
In a second aspect, the present disclosure provides an information circulation apparatus, including: the importing module is used for importing the product demand document into the product demand document layer, importing the interface description language information into the interface description language method layer and the interface description language structure layer, and importing the library table structure into the data layer; the first matching module is used for searching by using names of structures in an interface description language structure layer and names of fields in the structures as keywords, and matching the data structures in the data layer with the structures in the interface description language structure layer to obtain a first matching result; the second matching module is used for searching by using the names of the structures matched in the first matching result and the names of the fields in the structures as keywords, and matching the structures matched in the interface description language structure layer with the entities in the product demand document layer to obtain a second matching result; and a transfer module for transferring the primary key and the unique key information in the data layer to a front end code layer based on the first matching result and the second matching result.
In a third aspect, the present disclosure provides a computer readable medium having stored thereon a computer program which, when executed by a processing device, implements the steps of the method of any of the first aspects.
In a fourth aspect, the present disclosure provides an electronic device comprising: a storage device having a computer program stored thereon; processing means for executing said computer program in said storage means to carry out the steps of the method according to any one of the first aspects.
By adopting the technical scheme, the data structure in the data layer can be matched with the structure in the interface description language (Interface description language, IDL) structure layer according to the keywords, the matched structure in the IDL structure layer is matched with the entity in the PRD layer, and then the main key and the unique key information in the data layer are transmitted to the front-end code layer based on the matching result, so that the global data can be automatically connected in series to construct a relation model of the whole system, the dragging capability is displayed only by the independent view of the front end, the corresponding relation between fields is not needed to be confirmed manually, and the whole research and development cost is greatly reduced. By the method, the panoramic view of the whole description system, namely, the whole data map relation and the associated information in the interaction process of the front end and the rear end of the business storage can be obtained, and the method is greatly helpful for error diagnosis; as an information integration tool, an upstream system and a downstream system can be associated, one-key generation page capability is provided, data associated information of content required by a front-end view is supported to be derived, views are connected in series, and at an application level, internal data information collection and association can be serviced. In addition, the system has strong expandability, can process the business incrementally, for example, each new entity is added, or the system is old, and can directly input and use the needed partial information without changing the whole system.
Additional features and advantages of the present disclosure will be set forth in the detailed description which follows.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale. In the drawings:
fig. 1 is a hierarchical framework diagram of a business system according to one embodiment of the present disclosure.
Fig. 2 is a flow chart of an information flow method according to one embodiment of the present disclosure.
Fig. 3 is yet another flow chart of an information flow method according to one embodiment of the present disclosure.
Fig. 4 is a schematic block diagram of an information circulation apparatus according to one embodiment of the present disclosure.
Fig. 5 is yet another schematic block diagram of an information flow apparatus according to an embodiment of the present disclosure.
Fig. 6 shows a schematic structural diagram of an electronic device suitable for use in implementing embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
It will be appreciated that prior to using the technical solutions disclosed in the embodiments of the present disclosure, the user should be informed and authorized of the type, usage range, usage scenario, etc. of the personal information related to the present disclosure in an appropriate manner according to the relevant legal regulations.
For example, in response to receiving an active request from a user, a prompt is sent to the user to explicitly prompt the user that the operation it is requesting to perform will require personal information to be obtained and used with the user. Thus, the user can autonomously select whether to provide personal information to software or hardware such as an electronic device, an application program, a server or a storage medium for executing the operation of the technical scheme of the present disclosure according to the prompt information.
As an alternative but non-limiting implementation, in response to receiving an active request from a user, the manner in which the prompt information is sent to the user may be, for example, a popup, in which the prompt information may be presented in a text manner. In addition, a selection control for the user to select to provide personal information to the electronic device in a 'consent' or 'disagreement' manner can be carried in the popup window.
It will be appreciated that the above-described notification and user authorization process is merely illustrative and not limiting of the implementations of the present disclosure, and that other ways of satisfying relevant legal regulations may be applied to the implementations of the present disclosure.
Meanwhile, it can be understood that the data (including but not limited to the data itself, the acquisition or the use of the data) related to the technical scheme should conform to the requirements of the corresponding laws and regulations and related regulations.
Fig. 1 is a hierarchical framework diagram of a business system according to one embodiment of the present disclosure. As shown in fig. 1, a general service can be generally divided into a front-end code layer, a product requirement document (Product Requirement Document, PRD) layer, an interface description language (Interface description language, IDL) method layer, an interface description language structure layer, and a data layer. In addition, fig. 1 is an illustration of an order service, and the disclosure is not limited to a specific type of service.
Front end code layer: that is, the code actually touched is developed as the front end, and a part of the content presented to the user after the final processing is performed, for example, the front end code can be presented to the user after being rendered by a rendering tool.
PRD layer: the PRD is a description of the requirements of a Product Manager (PM) for each platform, and the content of the document written according to a standard document can be parsed from the information that the product wants to show.
IDL method layer: to distinguish requests from structures, the present disclosure abstracts the strongly methodology-related content into a layer that describes the interfaces that are actually used.
IDL structure layer: IDL is written by the server, and the general file content is threft, and for a general structure, it can be considered to represent different business meanings.
Data layer: the "data" of the data layer does not actually refer to the stored content, but rather a description of the data structure. By parsing the library table information, a corresponding data structure can be obtained.
After the hierarchical structure shown in fig. 1 is obtained, contents layer by layer are actually obtained, and an association relationship between contents inside each layer, for example, an association relationship between CreateOrder and CreateOrderRequest in an IDL method layer, an association relationship between Order and OrderResponse, createOrRequest in an IDL structure layer, and the like is obtained.
In Order to build the whole system, the association relationship between layers is also needed, for example, the association relationship between Order in the IDL structure layer and table_order in the data layer. How to establish the association between layers to establish the whole system is a problem to be solved by the present disclosure.
Fig. 2 is a flow chart of an information flow method according to one embodiment of the present disclosure. As shown in fig. 2, the information circulation method includes the following steps S21 to S24.
In step S21, the product demand document is imported into the PRD layer, the IDL information is imported into the IDL method layer and the IDL structure layer, and the library table structure is imported into the data layer.
In step S22, the data structure in the data layer is matched with the structure in the IDL structure layer by searching using the names of the structures in the IDL structure layer and the names of the fields in the structures as keywords, to obtain a first matching result.
Taking the Order service of fig. 1 as an example, by searching using Order as a keyword, it is possible to match table_order in the data layer with Order in the IDL structure layer, and match table_order_product in the data layer with Order product item in the IDL structure layer. The data structure in the data layer is matched with the structure in the IDL structure layer firstly, because the data structure and the structure in the IDL structure layer are designed by the server, and through investigation, the designs of the data structure and the structure in the IDL structure layer are very similar in most scenes, so that the correct association relation can be quickly positioned.
In step S23, the second matching result is obtained by searching using the names of the structures matched in the first matching result and the names of the fields in the structures as keywords, and matching the structures matched in the IDL structure layer with the entities in the PRD layer.
Taking the Order service of fig. 1 as an example, by searching using Order as a keyword, order in the IDL structure layer can be matched with entity "Order" in the PRD layer.
In step S24, the primary key and unique key information in the data layer are transferred to the front-end code layer based on the first matching result and the second matching result.
That is, through the matching operation in steps S22 and S23, the basic association relationship between the data in the data layer, the data in the IDL structure layer and the data in the PRD layer is obtained, and by means of these association relationships, the relationships such as the primary key and the unique key in the data layer can be directly transferred to the front end code layer, so that the unique entry can be determined when the page rendering operation is performed subsequently, and the user is prevented from inputting when creating.
By adopting the technical scheme, the data structure in the data layer can be matched with the structure in the IDL structure layer according to the keywords, the matched structure in the IDL structure layer is matched with the entity in the PRD layer, and the main key and the unique key information in the data layer are transmitted to the front end code layer based on the matching result, so that the global data can be automatically connected in series to construct a relation model of the whole system, the dragging capability is displayed in a view with independent front end, the corresponding relation between fields is not required to be confirmed manually, and the whole research and development cost is greatly reduced. By the method, a panoramic view (namely, an overall data map relation) of the whole description system can be obtained, the method is helpful to error diagnosis, and as an information integration tool, an upstream system and a downstream system can be associated, one-key page generation capability is provided, data association information of content required by a front-end visual angle is supported to be derived, views are connected in series, and at an application level, internal data information collection and association can be serviced. In addition, the system has strong expandability, can process the business incrementally, for example, each new entity is added, or the system is old, and can directly input and use the needed partial information without changing the whole system.
Fig. 3 is yet another flow chart of an information flow method according to one embodiment of the present disclosure.
As shown in fig. 3, in step S31, the product demand document is imported to the PRD layer, the IDL information is imported to the IDL method layer and the IDL structure layer, and the library table structure is imported to the data layer.
In step S32, synonyms are entered and keywords are unified into the same language. This step is optional.
By configuring synonyms, the accuracy of data information association can be improved in a subsequent matching step. For example, "tomato", "persimmon", "mat", etc. may be regarded as the same word. Certain transliterated, unrelated words in a business scenario may have the same business meaning, e.g., "agent," "provider," "partner," etc., may be considered synonyms.
Furthermore, IDL information may be English, while PRD content may be Chinese. In order to improve the search matching effect of the subsequent matching step, the information such as field names and structures can be translated, so that the information is unified into the same language, for example, unified into English or unified into Chinese, and the translated result is stored for improving the matching degree in the query.
In step S33, the data structure in the data layer is matched with the structure in the IDL structure layer by searching using the names of the structures in the IDL structure layer and the names of the fields in the structures as keywords, to obtain a first matching result. The implementation of this step has been described in the foregoing and will not be described in detail here.
In step S34, the second matching result is obtained by searching using the names of the structures matched in the first matching result and the names of the fields in the structures as keywords, and matching the structures matched in the IDL structure layer with the entities in the PRD layer. The implementation of this step has been described in the foregoing and will not be described in detail here.
In step S35, the primary key and unique key information in the data layer are transferred to the front-end code layer based on the first matching result and the second matching result. The implementation of this step has been described in the foregoing and will not be described in detail here.
In step S36, the foreign key is marked according to the reference relationship in the IDL structure layer.
Since there may be a severe limitation on the type processing in the matching process of step S33 and step S34, for example, the int type of the data layer can only match the I32key type of the IDL structure layer, which may result in some complex type of relationship loss. These complex types of relationships can be marked by step S36, for example, for a row of fields of the order_id of i32, the field can be considered to be not just an id field but associated to the order_id as a primary key from the Order by step S36, thereby establishing an association.
In step S37, the action type of the method in the IDL method layer is determined.
The method in the IDL layer refers to operating a certain entity for a certain specific content. The naming of the method generally satisfies the following rules: [ action ] [ entity ] [ Unit ], [ action ] will typically be placed in the first place. With this feature, the action type of a method in the IDL method layer (i.e., the data operation that the method will perform) can be identified and marked. For example, the method of getsupplelinlist refers to obtaining a list of suppliers, and the method of DeleteUserRecord refers to deleting some records.
In step S38, the page field is marked according to the action type.
In addition to the association between the primary fields, there is also a need to focus on the association of the functional fields of interest. For example, for the paging field, the contents containing paging related keywords may be queried in subfields in all request bodies marked as query lists, so as to be able to learn how to manage paging operations in the request process and to perform automated processing in the front-end component development.
In step S39, the entity associated with the method among the entities is determined according to the action type. I.e. find the entity affected by the method in the IDL method layer.
Since the action type of the method is already known in step S37, there will be different features for different action types. For example, the return of the method of obtaining the list may contain a list < Entity > structure, where Entity is the influencing Entity associated with the method. In addition, features such as keywords in the names of the methods may also be used as parameters to assist in inferring the entities affected by the methods. By step S39, it can be determined which of the entities matched in step S34 are affected by the method in the IDL method layer.
In step S40, the information lost in the data stream process is supplemented in the IDL method layer and the IDL structure layer based on the association relationship between the method and its associated entity. This step may also be referred to as type diffusion.
During data streaming, some information is very likely to be lost. For example, the timestamp field is of the type timestamp in the data layer, can be directly identified as the timestamp type, and it is very clear how the formatting presentation is to be performed. However, in the IDL method layer and the IDL structure layer, the structure type of the throft is used, but in the structure type of the throft, the time stamp information is lost, so that in step S40, the part of the data in the data layer can be transferred up to the IDL method layer and the IDL structure layer based on the association relationship between the method and the entity associated therewith, so that the part of the data can be supplemented in the IDL method layer and the IDL structure layer.
In step S41, the entity is associated with the requester in the PRD layer and its derivatives based on the association between the method and its associated entity.
For PM, under the condition of screening and creating, the query and creation of the same field are consistent, but often different fields are implemented, for example, name only allows filling in one when creating, and multiple-choice query is supported when querying. Thus, a new round of matching operations needs to be performed on the query body in order to correlate with the configuration in the PRD layer. The front end can multiplex some of the checksum configuration that was done when the form was created. Since the method in the IDL method layer links the entity affected by the method and the specific request structure in the middle, that is, the method plays a role of a bridge between the entity affected by the method and the specific request structure, the association relationship between the entity and the request structure can be established through step S41.
By adopting the technical scheme, the global data can be automatically connected in series to construct the relation model of the whole system, instead of only the independent view display dragging capability of the front end, the corresponding relation among the fields is not required to be confirmed manually, and the whole research and development cost is greatly reduced. By the method, the panoramic view of the whole description system, namely, the whole data map relation and the associated information in the interaction process of the front end and the rear end of the business storage can be obtained, and the method is greatly helpful for error diagnosis; as an information integration tool, an upstream system and a downstream system can be associated, one-key generation page capability is provided, data associated information of content required by a front-end view is supported to be derived, views are connected in series, and at an application level, internal data information collection and association can be serviced. In addition, the system has strong expandability, can process the business incrementally, for example, each new entity is added, or the system is old, and can directly input and use the needed partial information without changing the whole system.
Fig. 4 is a schematic block diagram of an information circulation apparatus according to one embodiment of the present disclosure. As shown in fig. 4, the information circulation apparatus includes: an import module 41 for importing the PRD into the PRD layer, importing the IDL information into the IDL method layer and the IDL structure layer, and importing the library table structure into the data layer; a first matching module 42, configured to obtain a first matching result by searching using the names of the structures in the IDL structure layer and the names of the fields in the structures as keywords, and matching the data structures in the data layer with the structures in the IDL structure layer; a second matching module 43, configured to perform a search by using the names of the structures matched in the first matching result and the names of the fields in the structures as keywords, and match the structures matched in the IDL structure layer with the entities in the PRD layer, so as to obtain a second matching result; and a transfer module 44 for transferring the primary key and unique key information in the data layer to the front end code layer based on the first matching result and the second matching result.
By adopting the technical scheme, the data structure in the data layer can be matched with the structure in the IDL structure layer according to the keywords, the matched structure in the IDL structure layer is matched with the entity in the PRD layer, and the main key and the unique key information in the data layer are transmitted to the front end code layer based on the matching result, so that the global data can be automatically connected in series to construct a relation model of the whole system, the dragging capability is displayed in a view with independent front end, the corresponding relation between fields is not required to be confirmed manually, and the whole research and development cost is greatly reduced. By the method, the panoramic view of the whole description system, namely, the whole data map relation and the associated information in the interaction process of the front end and the rear end of the business storage can be obtained, and the method is greatly helpful for error diagnosis; as an information integration tool, an upstream system and a downstream system can be associated, one-key generation page capability is provided, data associated information of content required by a front-end view is supported to be derived, views are connected in series, and at an application level, internal data information collection and association can be serviced. In addition, the system has strong expandability, can process the business incrementally, for example, each new entity is added, or the system is old, and can directly input and use the needed partial information without changing the whole system.
Fig. 5 is yet another schematic block diagram of an information flow apparatus according to an embodiment of the present disclosure. As shown in fig. 5, the information circulation device further includes an external key marking module 45, configured to mark external keys according to the reference relationship in the interface description language structure layer.
As shown in fig. 5, the information flow apparatus further includes an action type determining module 46 for determining an action type of a method in the interface description language method layer.
As shown in fig. 5, the information circulation apparatus further includes a page marking module 47 for marking the page fields according to the action type.
As shown in fig. 5, the information circulation apparatus further includes a first determining module 48, configured to determine, according to the action type, an entity associated with the method from the entities.
As shown in fig. 5, the information circulation device further includes a supplementing module 49, configured to supplement, in the interface description language method layer and the interface description language structure layer, information lost in the data circulation process based on an association relationship between the method and an entity associated therewith.
As shown in fig. 5, the information circulation apparatus further includes an association module 50, configured to associate the entity with the request body and its derivative in the product requirement document layer based on an association relationship between the method and the entity associated with the method.
As shown in fig. 5, the information circulation apparatus further includes a preprocessing module 51, configured to enter synonyms and unify the keywords into the same language before performing the matching operation.
Specific implementation manners of operations performed by each module in the information circulation apparatus according to the present disclosure have been described in detail in the related methods, and are not described herein again.
The present disclosure also provides a computer readable medium having stored thereon a computer program which when executed by a processing device performs the steps of any of the methods of the present disclosure.
The present disclosure also provides an electronic device, including: a storage device having a computer program stored thereon; processing means for executing the computer program in the storage means to carry out the steps of any of the methods of the present disclosure.
Referring now to fig. 6, a schematic diagram of an electronic device 600 suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 6 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 6, the electronic device 600 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
In general, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, magnetic tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 shows an electronic device 600 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communication means 609, or from storage means 608, or from ROM 602. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 601.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: importing the product demand document into a product demand document layer, importing interface description language information into an interface description language method layer and an interface description language structure layer, and importing a library table structure into a data layer; searching by using names of structures in an interface description language structure layer and names of fields in the structures as keywords, and matching the data structures in the data layer with the structures in the interface description language structure layer to obtain a first matching result; searching by using the names of the structures matched in the first matching result and the names of the fields in the structures as keywords, and matching the structures matched in the interface description language structure layer with the entities in the product demand document layer to obtain a second matching result; and transmitting primary key and unique key information in the data layer to a front end code layer based on the first matching result and the second matching result.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented in software or hardware. The name of the module is not limited to the module itself in some cases, for example, the import module may also be described as "a module for importing a product requirement document into a product requirement document layer, importing interface description language information into an interface description language method layer and an interface description language structure layer, and importing a library table structure into a data layer".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, example 1 provides an information circulation method, including: importing the product demand document into a product demand document layer, importing interface description language information into an interface description language method layer and an interface description language structure layer, and importing a library table structure into a data layer; searching by using names of structures in an interface description language structure layer and names of fields in the structures as keywords, and matching the data structures in the data layer with the structures in the interface description language structure layer to obtain a first matching result; searching by using the names of the structures matched in the first matching result and the names of the fields in the structures as keywords, and matching the structures matched in the interface description language structure layer with the entities in the product demand document layer to obtain a second matching result; and transmitting primary key and unique key information in the data layer to a front end code layer based on the first matching result and the second matching result.
According to one or more embodiments of the present disclosure, example 2 provides the method of example 1, wherein the method further comprises: and marking the external keys according to the reference relation in the interface description language structure layer.
According to one or more embodiments of the present disclosure, example 3 provides the method of example 1, wherein the method further comprises: determining the action type of a method in the interface description language method layer.
According to one or more embodiments of the present disclosure, example 4 provides the method of example 3, wherein the method further comprises: and marking the page dividing field according to the action type.
Example 5 provides the method of example 1, according to one or more embodiments of the present disclosure, wherein the method further comprises: and determining the entity associated with the method in the entities according to the action type.
Example 6 provides the method of example 5, wherein the method further comprises: and supplementing information lost in the data circulation process in the interface description language method layer and the interface description language structure layer based on the association relation between the method and the associated entity.
According to one or more embodiments of the present disclosure, example 7 provides the method of example 5, wherein the method further comprises: and based on the association relation between the method and the associated entity, associating the entity with the request body and the derivative thereof in the product demand document layer.
According to one or more embodiments of the present disclosure, example 8 provides the method of any one of examples 1 to 7, wherein the method further comprises: before the matching operation is executed, synonyms are input, and the keywords are unified into the same language.
According to one or more embodiments of the present disclosure, example 9 provides an information circulation apparatus, including: the importing module is used for importing the product demand document into the product demand document layer, importing the interface description language information into the interface description language method layer and the interface description language structure layer, and importing the library table structure into the data layer; the first matching module is used for searching by using names of structures in an interface description language structure layer and names of fields in the structures as keywords, and matching the data structures in the data layer with the structures in the interface description language structure layer to obtain a first matching result; the second matching module is used for searching by using the names of the structures matched in the first matching result and the names of the fields in the structures as keywords, and matching the structures matched in the interface description language structure layer with the entities in the product demand document layer to obtain a second matching result; and a transfer module for transferring the primary key and the unique key information in the data layer to a front end code layer based on the first matching result and the second matching result.
According to one or more embodiments of the present disclosure, example 10 provides a computer-readable medium having stored thereon a computer program which, when executed by a processing device, implements the steps of the method of any of examples 1-8.
Example 11 provides an electronic device according to one or more embodiments of the present disclosure, comprising: a storage device having a computer program stored thereon; processing means for executing the computer program in the storage means to implement the steps of the method of any one of examples 1-8.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims. The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.

Claims (11)

1. An information transfer method, comprising:
importing the product demand document into a product demand document layer, importing interface description language information into an interface description language method layer and an interface description language structure layer, and importing a library table structure into a data layer;
searching by using names of structures in an interface description language structure layer and names of fields in the structures as keywords, and matching the data structures in the data layer with the structures in the interface description language structure layer to obtain a first matching result;
searching by using the names of the structures matched in the first matching result and the names of the fields in the structures as keywords, and matching the structures matched in the interface description language structure layer with the entities in the product demand document layer to obtain a second matching result; and
And transmitting the primary key and the unique key information in the data layer to a front-end code layer based on the first matching result and the second matching result.
2. The method according to claim 1, wherein the method further comprises:
and marking the external keys according to the reference relation in the interface description language structure layer.
3. The method according to claim 1, wherein the method further comprises:
determining the action type of a method in the interface description language method layer.
4. A method according to claim 3, characterized in that the method further comprises:
and marking the page dividing field according to the action type.
5. A method according to claim 3, characterized in that the method further comprises:
and determining the entity associated with the method in the entities according to the action type.
6. The method of claim 5, wherein the method further comprises:
and supplementing information lost in the data circulation process in the interface description language method layer and the interface description language structure layer based on the association relation between the method and the associated entity.
7. The method of claim 5, wherein the method further comprises:
and based on the association relation between the method and the associated entity, associating the entity with the request body and the derivative thereof in the product demand document layer.
8. The method according to any one of claims 1 to 7, further comprising:
before the matching operation is executed, synonyms are input, and the keywords are unified into the same language.
9. An information circulation apparatus, comprising:
the importing module is used for importing the product demand document into the product demand document layer, importing the interface description language information into the interface description language method layer and the interface description language structure layer, and importing the library table structure into the data layer;
the first matching module is used for searching by using names of structures in an interface description language structure layer and names of fields in the structures as keywords, and matching the data structures in the data layer with the structures in the interface description language structure layer to obtain a first matching result;
the second matching module is used for searching by using the names of the structures matched in the first matching result and the names of the fields in the structures as keywords, and matching the structures matched in the interface description language structure layer with the entities in the product demand document layer to obtain a second matching result; and
And the transmission module is used for transmitting the primary key and the unique key information in the data layer to a front-end code layer based on the first matching result and the second matching result.
10. A computer readable medium on which a computer program is stored, characterized in that the program, when being executed by a processing device, carries out the steps of the method according to any one of claims 1-8.
11. An electronic device, comprising:
a storage device having a computer program stored thereon;
processing means for executing said computer program in said storage means to carry out the steps of the method according to any one of claims 1-8.
CN202310876892.0A 2023-07-17 2023-07-17 Information circulation method, device, medium and electronic equipment Pending CN117311684A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310876892.0A CN117311684A (en) 2023-07-17 2023-07-17 Information circulation method, device, medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310876892.0A CN117311684A (en) 2023-07-17 2023-07-17 Information circulation method, device, medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117311684A true CN117311684A (en) 2023-12-29

Family

ID=89254217

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310876892.0A Pending CN117311684A (en) 2023-07-17 2023-07-17 Information circulation method, device, medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117311684A (en)

Similar Documents

Publication Publication Date Title
CN111581563B (en) Page response method and device, storage medium and electronic equipment
CN111400625B (en) Page processing method and device, electronic equipment and computer readable storage medium
US20240012641A1 (en) Model construction method and apparatus, and medium and electronic device
CN112684968A (en) Page display method and device, electronic equipment and computer readable medium
CN112597047A (en) Test method, test device, electronic equipment and computer readable medium
CN115757400B (en) Data table processing method, device, electronic equipment and computer readable medium
CN111857720B (en) User interface state information generation method and device, electronic equipment and medium
CN111596991A (en) Interactive operation execution method and device and electronic equipment
CN110597602B (en) Transaction processing method and device, computer equipment and storage medium
CN110852720A (en) Document processing method, device, equipment and storage medium
CN111596992B (en) Navigation bar display method and device and electronic equipment
CN112035092A (en) Form processing method, device, equipment and readable medium
CN111949746A (en) Data processing method and device, electronic equipment and computer readable medium
CN113807056B (en) Document name sequence error correction method, device and equipment
CN111143355B (en) Data processing method and device
CN110941683B (en) Method, device, medium and electronic equipment for acquiring object attribute information in space
CN117311684A (en) Information circulation method, device, medium and electronic equipment
CN114428925A (en) Page rendering method and device, electronic equipment and computer readable medium
CN112115154A (en) Data processing and data query method, device, equipment and computer readable medium
CN111857879B (en) Data processing method, device, electronic equipment and computer readable medium
CN115374320B (en) Text matching method and device, electronic equipment and computer medium
CN114040014B (en) Content pushing method, device, electronic equipment and computer readable storage medium
WO2022184037A1 (en) Document processing method, apparatus and device, and medium
CN116795339A (en) Service interface generation method, device, equipment and storage medium
CN116886531A (en) Service processing method, device, medium and electronic equipment

Legal Events

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