CN110704102A - Page jump protocol interface document generation method, system, medium and electronic device - Google Patents

Page jump protocol interface document generation method, system, medium and electronic device Download PDF

Info

Publication number
CN110704102A
CN110704102A CN201910862404.4A CN201910862404A CN110704102A CN 110704102 A CN110704102 A CN 110704102A CN 201910862404 A CN201910862404 A CN 201910862404A CN 110704102 A CN110704102 A CN 110704102A
Authority
CN
China
Prior art keywords
page
data structure
application program
jump protocol
protocol interface
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
CN201910862404.4A
Other languages
Chinese (zh)
Inventor
赵岘
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910862404.4A priority Critical patent/CN110704102A/en
Publication of CN110704102A publication Critical patent/CN110704102A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Library & Information Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a page jump protocol interface document generation method, a system, a medium and electronic equipment. The method comprises the following steps: receiving a first data structure uploaded by a client, wherein the first data structure comprises mapping relations between all current page classes and page information of an application program; the page information comprises page capability, a page jump protocol, parameters required when a page is used, a current application program version and a contact way of a page principal; matching and merging the first data structure with a stored second data structure to generate an updated second data structure; the second data structure comprises page information of different page classes in different application program versions; and responding to the document access request of the client, analyzing the updated second data structure, and generating a page jump protocol interface document. The method can avoid communication among research and development personnel, improve the working efficiency and further reduce the communication error rate.

Description

Page jump protocol interface document generation method, system, medium and electronic device
Technical Field
The invention relates to the technical field of computers, in particular to a method, a system, a medium and electronic equipment for generating a page jump protocol interface document under an android platform.
Background
With the development of computer technology, more and more users open web pages in an application program to browse information, and with the increase of services, the number of pages is increasing, and mutual skipping between different pages needs to be realized, so that page skipping in an application and page skipping between applications need to determine a skipping protocol for each page.
However, with the deepening of the componentization parallel development, the research and development personnel have no knowledge about the components responsible for other people, and when the page jump requirement occurs, in order to clarify the jump protocol, the research and development personnel often need to find the relevant responsible people and communicate the jump protocol on the spot, which not only is inefficient, but also may cause the jump protocol to be obtained wrongly due to communication errors.
Therefore, in the long-term research and development, the inventor has conducted a great deal of research on the determination of the jump protocol, and has proposed a page jump protocol interface document generation method to solve one of the above technical problems.
Disclosure of Invention
An object of the present invention is to provide a page jump protocol interface document generating method, system, medium, and electronic device, which can solve at least one of the above-mentioned technical problems. The specific scheme is as follows:
according to the specific implementation manner of the present invention, in a first aspect, the present invention provides a method for generating a page jump protocol interface document, including: receiving a first data structure uploaded by a client, wherein the first data structure comprises mapping relations between all current page classes and page information of an application program; the page information comprises page capability, a page jump protocol, parameters required when a page is used, a current application program version and a contact way of a page principal; matching and merging the first data structure with a stored second data structure to generate an updated second data structure; the second data structure comprises page information of different page classes in different application program versions; and responding to the document access request of the client, analyzing the updated second data structure, and generating a page jump protocol interface document.
According to a second aspect of the present invention, there is provided a page jump protocol interface document generating system, including: the receiving module is used for receiving a first data structure uploaded by a client, wherein the first data structure comprises mapping relations between all current page classes of an application program and page information; the page information comprises page capability, a page jump protocol, parameters required when a page is used, a current application program version and a contact way of a page principal; the processing module is used for matching and combining the first data structure with a stored second data structure to generate an updated second data structure; the second data structure comprises page information of different page classes in different application program versions; and the analysis module is used for responding to the document access request of the client, analyzing the updated second data structure and generating a page jump protocol interface document.
According to a third aspect, the present invention provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the page jump protocol interface document generating method according to any one of the above.
According to a fourth aspect of the present invention, there is provided an electronic apparatus including: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the page jump protocol interface document generation method as described in any one of the above.
Compared with the prior art, the scheme of the embodiment of the invention at least has the following beneficial effects:
the page jump protocols of all pages in the application program are obtained and the document is generated so that a plurality of users such as research personnel can check the page jump protocols, the users are prevented from communicating with each other on the spot, the working efficiency is improved, and the communication error rate is reduced.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
FIG. 1 is a flow chart illustrating an implementation of a page jump protocol interface document generation method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for matching and merging the first data structure with a stored second data structure to generate an updated second data structure according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a matching and merging process of two mapping tables when both the first data structure and the second data structure are a mapping table according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a method for parsing the updated second data structure to generate a page jump protocol interface document in response to a document access request from the client according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating an implementation of a page jump protocol interface document generation method according to another embodiment of the present invention;
FIG. 6 shows a flow diagram of a method of collecting a first data structure according to another embodiment provided in FIG. 5;
FIG. 7 is a diagram illustrating a page jump protocol interface document generation system architecture according to an embodiment of the present invention;
fig. 8 shows a schematic diagram of an electronic device connection structure according to an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, and "a plurality" typically includes at least two.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
It should be understood that although the terms first, second, third, etc. may be used to describe … … in embodiments of the present invention, these … … should not be limited to these terms. These terms are used only to distinguish … …. For example, the first … … can also be referred to as the second … … and similarly the second … … can also be referred to as the first … … without departing from the scope of embodiments of the present invention.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that an article or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such article or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in the article or device in which the element is included.
Alternative embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Example 1
FIG. 1 illustrates a page jump protocol interface document generation method in one embodiment. The method is suitable for the android system, the execution main body is a server side, and the server side refers to a computer system capable of providing certain services for other machines in a network. Specifically, the method comprises the following steps:
s11, receiving a first data structure uploaded by a client, wherein the first data structure comprises mapping relations between all current page (Activity) classes and page information in an application program; the page information comprises page capability, a page jump protocol, parameters required when a page is used, a current application program version and a contact way of a page principal;
in this step, the client calls an upload interface provided by the server to upload the first data structure to the upload interface, so that the server receives the first data structure. The specific form of the first data structure is not limited, and any data structure may be used as long as it can describe the mapping between a series of page classes and page information, such as a mapping table, a hash table, a database, and the like. It should be noted that, since the server receives the data in a format, that is, the first data structure needs to conform to the upload interface protocol, the server needs to receive the data structure conforming to the upload interface protocol. In an embodiment of the present invention, the first data structure is a mapping table, which is specifically as follows:
splishInteractive > splishInteractive information ("Start Page", "schema:// launch", { }, "xxx @ yyyyy. com", "102") PayActivity ═ PayActivity information ("Payment Page", "schema:// Pay", { "key 1": String type order number "," key2 ": Long type Total amount" }, "zzz @ y. com", "102").
The page capability is used to describe what the page can do, such as a start page (initialize application data), a payment page (call payment), a consultation page (call chat software), and the like. The page jump protocol is a rule for page jump inside an application program (APP), for example, a head page of the APP has title buttons corresponding to a plurality of subclass pages, after a user clicks the title button corresponding to a certain subclass page, page jump is performed, and the jump protocol is 'jump to a first page'. The parameters required when the page is used refer to information required by the function of completing the jump target page, such as order information and payment amount required by the user at this time by a payment plane. The current application version refers to the version number of the release market of the application after the application is packaged. The contact information of the page principal refers to the contact information of research and development personnel responsible for each page, such as a mailbox, a mobile phone number, a fixed telephone and the like.
S12, matching and merging the first data structure with the stored second data structure to generate an updated second data structure; the second data structure comprises page information of different page classes in different application program versions;
the second data structure represents a set of the first data structure uploaded by the client each time before, and the version of the application program in the first data structure uploaded by the client each time is different, that is, the second data structure comprises page information of different page classes in different versions.
In this step, after the server receives a series of page classes and mapping information of the page information collected by the client, the first data structure is compared with the stored second data structure and is merged, so that the second data structure is updated to include data information of all current versions. Specifically, as shown in fig. 2, the matching and merging the first data structure with the stored second data structure to generate an updated second data structure includes:
s121, searching whether the first data structure has an application program version number which is not stored in the second data structure or not according to the application program version number;
s122, if the first data structure has an application version number that is not included in the stored second data structure, adding the application version number and other page information to a corresponding page class in the stored second data structure. In an embodiment of the present invention, when the first data structure is a mapping table a and the second data structure is a mapping table B, fig. 3 shows a process of matching and merging the mapping table a and the mapping table B; activity1, Activity2, and Activity3 are used to identify different page classes in FIG. 3; the information a1, a2, A3, B11, B21 and B31 are used to summarize page information of different page classes.
In another embodiment of the present invention, S123 is further included, if the application version number in the first data structure already exists in the stored second data structure, replacing the corresponding application version number and other page information in the stored second data structure with the application version number and other page information in the first data structure.
S13, responding to the document access request of the client, analyzing the updated second data structure, and generating a page jump protocol interface document.
In this step, the server side provides an online document viewing interface, and after deployment, the routing address corresponding to this interface is a URL (uniform resource locator) access address. Here, the generated page jump protocol interface document is a document having a presentation frame, and the style of the presentation frame is not limited, and may be a chart or a list. Specifically, referring to fig. 4, the analyzing the updated second data structure in response to the document access request of the client to generate the page jump protocol interface document includes:
s131, receiving the document access request sent by the client, and acquiring the updated second data structure. Specifically, the user inputs the URL access address through the browser, so as to access the online document, and the server finds the updated second data structure.
S132, converting the updated second data structure into a data structure required by a web chart library;
s133, injecting the converted data structure into the web chart library to generate a page jump protocol interface chart. In the embodiment of the invention, the page jump protocol interface chart is of a tree structure and comprises a first-level index, a second-level index and a third-level index, wherein the first-level index is a version number, the second-level index can appear by expanding the version number, and the second-level index is a page type; and expanding the page class to generate a third-level index, wherein the third-level index is page information.
Further, the method includes S14, sending the page jump protocol interface document to the client, so that the client performs online presentation through web page rendering. Specifically, the server side takes the generated page jump protocol interface chart as a response of URL access, returns the response to the browser of the client side, and the browser of the client side renders the chart after receiving the chart and finally displays the chart to the user on line. In the embodiment of the invention, the page jump protocol interface document is displayed on line through a browser, so that service personnel can conveniently acquire the page jump protocol.
Finally, the method for generating the page jump protocol interface document provided by the embodiment of the invention has the following beneficial effects: firstly, page jump protocols of all pages in an application program are obtained and documents are generated so that a plurality of users such as research and development personnel can check the documents, the research and development personnel are prevented from communicating with each other, the working efficiency is improved, and the occurrence rate of communication errors is reduced; secondly, the page jump protocol interface document summarizes the page jump capability of the application program, provides a global view of cross-component jump for product designers, and can promote business decision and business model combing; and thirdly, the page jump protocol adopts automatic acquisition and is matched with historical jump protocol data of a cloud server to store complete interface documents of all versions.
Example 2
Referring to fig. 5, a second embodiment of the present invention provides a page jump protocol interface document generating method, which is applicable to an android system, where an execution subject is a client, and the client is a program that receives some services provided by a server. Specifically, the method comprises the following steps:
s21, acquiring a first data structure, wherein the first data structure comprises the mapping relation between all current page classes and page information in an application program; the page information comprises page capability, a page jump protocol, parameters required when a page is used, a current application program version and a contact way of a page principal;
in this step, the method for the client to acquire the first data structure is not limited, as long as the mapping relationship between all page types and page information in the application program can be obtained. In an embodiment of the present invention, referring to fig. 6, the acquiring the first data structure specifically includes the following steps:
s211, receiving an application program source code sent by a user, wherein each page class in the source code is added with an annotation, and the annotation information comprises page capability, a page jump protocol, parameters required when the page is used and a contact way of a page principal.
Specifically, the user adds comments to each page class in the project source code, and the comments have the functions of declaring page capability provided by the page, page jump protocols, parameters required when the page is used and contact ways of a page principal. Here, the source code includes all page classes in the application.
S212, in the process of compiling the source code, processing each annotated page class to generate a mapping table, wherein the mapping table comprises the mapping relation between all page classes and page information currently in the application program. In one embodiment of the invention, an annotation processor may be developed to perform this step.
S213, simultaneously reading and analyzing an application configuration file (Android Manifest) in the source code, and acquiring all page lists of the application program;
specifically, in the process of executing the compilation, the application program may have a plurality of modules, and finally an application configuration file is generated, which may be regarded as a standard file; all page classes in the application configuration file are obtained by analyzing the application configuration file, and a page list is generated, wherein the page list can only include the page classes, such as page 1, page 2, page 3, and the like.
S214, matching the mapping table with the page list, and collecting the mapping table if all the pages in the page list appear in the mapping table.
Specifically, since the page list is a list of all pages, the page list may be compared with the mapping table generated in step S212, so as to ensure that all page classes appearing in the page list appear in the mapping table. If the comparison is successful, acquiring the mapping table and uploading the mapping table to a server side; if the comparison is unsuccessful, the page jump protocol acquisition interface is judged to be abnormal in the collection work, and the exception processing is needed, and then the page jump protocol acquisition interface is ended.
The specific form of the first data structure is not limited, and any data structure may be used as long as it can describe the mapping between a series of page classes and page information, such as a mapping table, a hash table, a database, and the like. It should be noted that, since the server receives the data in a format, that is, the first data structure needs to conform to the upload interface protocol, the server needs to receive the data structure conforming to the upload interface protocol. In an embodiment of the present invention, the first data structure is a mapping table, which is specifically as follows:
splishInteractive > splishInteractive information ("Start Page", "schema:// launch", { }, "xxx @ yyyyy. com", "102") PayActivity ═ PayActivity information ("Payment Page", "schema:// Pay", { "key 1": String type order number "," key2 ": Long type Total amount" }, "zzz @ y. com", "102").
The page capability is used to describe what the page can do, such as a start page (initialize application data), a payment page (call payment), a consultation page (call chat software), and the like. The page jump protocol is a rule for page jump inside an application program (APP), for example, a head page of the APP has title buttons corresponding to a plurality of subclass pages, after a user clicks the title button corresponding to a certain subclass page, page jump is performed, and the jump protocol is 'jump to a first page'. The parameters required when the page is used refer to information required by the function of completing the jump target page, such as order information and payment amount required by the user at this time by a payment plane. The current application version refers to the version number of the release market of the application after the application is packaged. The contact information of the page principal refers to the contact information of research and development personnel responsible for each page, such as a mailbox, a mobile phone number, a fixed telephone and the like.
S22, sending the first data structure to a server end, so that the server end generates a page jump protocol interface document according to the first data structure;
in this step, the client uploads the first data structure collected in the above step to the server, and for how the server generates the page jump protocol interface document, detailed description is not provided here, and refer to embodiment 1 specifically.
S23, receiving the page jump protocol interface document sent by the server, and displaying the page jump protocol interface document on line through web page rendering.
In an embodiment of the present invention, after receiving the page jump protocol interface chart, the browser of the client renders the browser, and finally displays the browser to the user on line. The page jump protocol interface document is displayed on line through a browser, so that service personnel can conveniently acquire the page jump protocol.
It should be noted that embodiment 2 of the present invention is different from embodiment 1 of the present invention mainly in the implementation subject, and the content in embodiment 2 can be understood with reference to the content in embodiment 1.
Finally, the method for generating the page jump protocol interface document provided by the embodiment of the invention has the following beneficial effects: firstly, page jump protocols of all pages in an application program are obtained and documents are generated so that a plurality of users such as research and development personnel can check the documents, the research and development personnel are prevented from communicating with each other, the working efficiency is improved, and the occurrence rate of communication errors is reduced; secondly, the page jump protocol interface document summarizes the page jump capability of the application program, provides a global view of cross-component jump for product designers, and can promote business decision and business model combing; and thirdly, the page jump protocol adopts automatic acquisition and is matched with historical jump protocol data of a cloud server to store complete interface documents of all versions.
Example 3
Referring to fig. 7, an embodiment of the present invention provides a page jump protocol interface document generating system 700, where the system 700 is applicable to an android platform. The system 700 includes: a receiving module 710, a processing module 720 and a parsing module 730.
The receiving module 710 is configured to receive a first data structure uploaded by a client, where the first data structure includes mapping relationships between all current page classes and page information in an application; the page information comprises page capability, a page jump protocol, parameters required when the page is used, a current application program version and a contact way of a page principal.
Specifically, the client calls an upload interface provided by the server to upload the first data structure to the upload interface, so that the receiving module 710 receives the first data structure. The specific form of the first data structure is not limited, and any data structure may be used as long as it can describe the mapping between a series of page classes and page information, such as a mapping table, a hash table, a database, and the like. It should be noted that, since the server receives data in a format, that is, the first data structure is required to conform to the upload interface protocol, the receiving module 710 is required to receive a data structure conforming to the upload interface protocol. In an embodiment of the present invention, the first data structure is a mapping table, which is specifically as follows:
splishInteractive > splishInteractive information ("Start Page", "schema:// launch", { }, "xxx @ yyyyy. com", "102") PayActivity ═ PayActivity information ("Payment Page", "schema:// Pay", { "key 1": String type order number "," key2 ": Long type Total amount" }, "zzz @ y. com", "102").
The page capability is used to describe what the page can do, such as a start page (initialize application data), a payment page (call payment), a consultation page (call chat software), and the like. The page jump protocol is a rule for page jump inside an application program (APP), for example, a head page of the APP has title buttons corresponding to a plurality of subclass pages, after a user clicks the title button corresponding to a certain subclass page, page jump is performed, and the jump protocol is 'jump to a first page'. The parameters required when the page is used refer to information required by the function of completing the jump target page, such as order information and payment amount required by the user at this time by a payment plane. The current application version refers to the version number of the release market of the application after the application is packaged. The contact information of the page principal refers to the contact information of research and development personnel responsible for each page, such as a mailbox, a mobile phone number, a fixed telephone and the like.
The processing module 720 is configured to match and merge the first data structure with a stored second data structure, and generate an updated second data structure; wherein the second data structure includes page information for different page classes in different application versions. The second data structure represents a set of the first data structure uploaded by the client each time before, and the version of the application program in the first data structure uploaded by the client each time is different, that is, the second data structure comprises page information of different page classes in different versions.
After the server receives a series of mapping information of page classes and page information collected by the client, the processing module 720 compares and merges the first data structure with the stored second data structure, so as to update the second data structure to include data information of all current versions. Specifically, the processing module 720 may search, according to the application version number, whether an application version number that is not present in the stored second data structure exists in the first data structure; if the first data structure has an application version number that is not in the stored second data structure, the processing module 720 may further add the application version number and other page information to a corresponding page class in the stored second data structure. In an embodiment of the present invention, the first data structure and the second data structure are both a mapping table.
In another embodiment of the present invention, if the application version number in the first data structure already exists in the stored second data structure, the processing module 720 replaces the corresponding application version number and other page information in the stored second data structure with the application version number and other page information in the first data structure.
The parsing module 730 is configured to parse the updated second data structure in response to the document access request of the client, and generate a page jump protocol interface document. The server side provides an online document viewing interface, and after deployment, a routing address corresponding to the interface is a URL (uniform resource locator) access address. Here, the format of the page jump protocol interface document generated by the parsing module 730 is not limited, and may be a chart or a list.
Specifically, the parsing module 730 may receive a document access request sent by the client, and obtain the updated second data structure. Specifically, the user inputs the URL access address through the browser, and the server finds the updated second data structure.
The parsing module 730 may further convert the updated second data structure into a data structure required by the web chart library; the parsing module 730 may further inject the converted data structure into the web graph library to generate a page jump protocol interface graph. In the embodiment of the invention, the page jump protocol interface chart is of a tree structure and comprises a first-level index, a second-level index and a third-level index, wherein the first-level index is a version number, the second-level index can appear by expanding the version number, and the second-level index is a page type; and expanding the page class to generate a third-level index, wherein the third-level index is page information.
Further, the system 700 further includes a sending module 740, configured to send the page jump protocol interface document to the client, so that the client performs online presentation through web page rendering. Specifically, the sending module 740 uses the generated page jump protocol interface chart as a response of URL access, returns the generated page jump protocol interface chart to the browser of the client, and renders the browser after the browser of the client receives the chart, and finally displays the generated page jump protocol interface chart to the user on line. In the embodiment of the invention, the page jump protocol interface document is displayed on line through a browser, so that service personnel can conveniently acquire the page jump protocol.
Finally, the page jump protocol interface document generating system 700 provided by the embodiment of the present invention has the following beneficial effects: firstly, page jump protocols of all pages in an application program are obtained and documents are generated so that a plurality of users such as research and development personnel can check the documents, the research and development personnel are prevented from communicating with each other, the working efficiency is improved, and the occurrence rate of communication errors is reduced; secondly, the page jump protocol interface document summarizes the page jump capability of the application program, provides a global view of cross-component jump for product designers, and can promote business decision and business model combing; and thirdly, the page jump protocol adopts automatic acquisition and is matched with historical jump protocol data of a cloud server to store complete interface documents of all versions.
Example 4
The embodiment of the disclosure provides a non-volatile computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the page jump protocol interface document generation method in any method embodiment.
Example 5
The embodiment provides an electronic device, which is used for a page jump protocol interface document generation method, and the electronic device includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the one processor to cause the at least one processor to:
receiving a first data structure uploaded by a client, wherein the first data structure comprises the mapping relation between all current page classes and page information in an application program; the page information comprises page capability, a page jump protocol, parameters required when a page is used, a current application program version and a contact way of a page principal;
matching and merging the first data structure with a stored second data structure to generate an updated second data structure; the second data structure comprises page information of different page classes in different application program versions;
and responding to the document access request of the client, analyzing the updated second data structure, and generating a page jump protocol interface document.
Example 6
Referring now to FIG. 8, shown is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 8, an electronic device may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 801 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing apparatus 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage 808 including, for example, magnetic tape, hard disk, etc.; and a communication device 809. The communication means 809 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While fig. 8 illustrates an electronic device having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the 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 computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 809, or installed from the storage means 808, or installed from the ROM 802. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination 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 present 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 contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. 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, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including 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 type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart 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 units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.

Claims (11)

1. A page jump protocol interface document generation method is characterized by comprising the following steps:
receiving a first data structure uploaded by a client, wherein the first data structure comprises mapping relations between all current page classes and page information of an application program; the page information comprises page capability, a page jump protocol, parameters required when a page is used, a current application program version and a contact way of a page principal;
matching and merging the first data structure with a stored second data structure to generate an updated second data structure; the second data structure comprises page information of different page classes in different application program versions;
and responding to the document access request of the client, analyzing the updated second data structure, and generating a page jump protocol interface document.
2. The method of claim 1, wherein matching and merging the first data structure with the stored second data structure to generate an updated second data structure comprises:
searching whether the first data structure has an application program version number which is not stored in the second data structure or not according to the application program version number;
and if the first data structure has an application program version number which is not in the stored second data structure, adding the application program version number and other page information to the corresponding page class in the stored second data structure.
3. The method of claim 2, further comprising: and if the application program version number in the first data structure already exists in the stored second data structure, replacing the corresponding application program version number and other page information in the stored second data structure with the application program version number and other page information in the first data structure.
4. The method of claim 1, wherein parsing the updated second data structure in response to the document access request from the client to generate a page jump protocol interface document comprises:
receiving a document access request sent by the client, and acquiring the updated second data structure;
converting the updated second data structure into a data structure required by a web chart library; and injecting the converted data structure into the web chart library to generate a page jump protocol interface chart.
5. The method of claim 1, further comprising:
and sending the page jump protocol interface document to the client so that the client can perform online display through web page rendering.
6. A page jump protocol interface document generation method is characterized by comprising the following steps:
acquiring a first data structure, wherein the first data structure comprises mapping relations between all current page classes of an application program and page information; the page information comprises page capability, a page jump protocol, parameters required when a page is used, a current application program version and a contact way of a page principal;
sending the first data structure to a server side so that the server side generates a page jump protocol interface document according to the first data structure;
and receiving a page jump protocol interface document sent by the server side, and displaying the page jump protocol interface document on line through web page rendering.
7. The method of claim 6, wherein said acquiring a first data structure comprises:
receiving an application program source code sent by a user, wherein each page class in the application program source code is added with an annotation, and the annotation information comprises page capacity, a page jump protocol, parameters required when a page is used and a contact way of a page principal;
in the process of compiling the source code, processing each annotated page class to generate a mapping table, wherein the mapping table comprises the mapping relation between all page classes and page information currently in an application program; simultaneously reading and analyzing an application configuration file in the source code of the application program to obtain all page lists of the application program;
and matching the mapping table with the page list, and acquiring the mapping table if all the pages in the page list exist in the mapping table.
8. A page jump protocol interface document generation system, comprising:
the receiving module is used for receiving a first data structure uploaded by a client, wherein the first data structure comprises mapping relations between all current page classes of an application program and page information; the page information comprises page capability, a page jump protocol, parameters required when a page is used, a current application program version and a contact way of a page principal;
the processing module is used for matching and combining the first data structure with a stored second data structure to generate an updated second data structure; the second data structure comprises page information of different page classes in different application program versions;
and the analysis module is used for responding to the document access request of the client, analyzing the updated second data structure and generating a page jump protocol interface document.
9. The system of claim 8, further comprising:
and the sending module is used for sending the page jump protocol interface document to the client so as to enable the client to perform online display through web page rendering.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
11. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to carry out the method of any one of claims 1 to 7.
CN201910862404.4A 2019-09-12 2019-09-12 Page jump protocol interface document generation method, system, medium and electronic device Pending CN110704102A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910862404.4A CN110704102A (en) 2019-09-12 2019-09-12 Page jump protocol interface document generation method, system, medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910862404.4A CN110704102A (en) 2019-09-12 2019-09-12 Page jump protocol interface document generation method, system, medium and electronic device

Publications (1)

Publication Number Publication Date
CN110704102A true CN110704102A (en) 2020-01-17

Family

ID=69194909

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910862404.4A Pending CN110704102A (en) 2019-09-12 2019-09-12 Page jump protocol interface document generation method, system, medium and electronic device

Country Status (1)

Country Link
CN (1) CN110704102A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111309323A (en) * 2020-01-19 2020-06-19 北京无限光场科技有限公司 Parameter initialization method and device and electronic equipment
CN111367590A (en) * 2020-02-27 2020-07-03 北京字节跳动网络技术有限公司 Interrupt event processing method and device
CN111414161A (en) * 2020-03-27 2020-07-14 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for generating ID L file
CN112068879A (en) * 2020-09-10 2020-12-11 工银科技有限公司 Method and device for constructing client application development framework based on configuration
CN112926290A (en) * 2021-03-09 2021-06-08 上海万向区块链股份公司 System, method and medium for generating presentation interface document

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101763423A (en) * 2010-01-21 2010-06-30 中兴通讯股份有限公司 Method for realizing presentation of tree-structure data in World Wide Web page as well as system and device therefor
WO2014114127A1 (en) * 2013-01-24 2014-07-31 Tencent Technology (Shenzhen) Company Limited Method, apparatus and system for webpage access control
CN107766040A (en) * 2017-09-19 2018-03-06 深圳市买买提乐购金融服务有限公司 A kind of method, apparatus and computer-readable recording medium for generating interface document
CN108984641A (en) * 2018-06-22 2018-12-11 福建南威软件有限公司 A kind of method for page jump based on WEB terminal
CN109669716A (en) * 2018-09-25 2019-04-23 深圳壹账通智能科技有限公司 Page control method, device, equipment and readable storage medium storing program for executing
CN109710328A (en) * 2018-08-20 2019-05-03 深圳壹账通智能科技有限公司 Page configuration method, apparatus, equipment and readable storage medium storing program for executing
US20190173881A1 (en) * 2016-08-12 2019-06-06 Alibaba Group Holding Limited Authentication method, device and authentication client

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101763423A (en) * 2010-01-21 2010-06-30 中兴通讯股份有限公司 Method for realizing presentation of tree-structure data in World Wide Web page as well as system and device therefor
WO2014114127A1 (en) * 2013-01-24 2014-07-31 Tencent Technology (Shenzhen) Company Limited Method, apparatus and system for webpage access control
US20190173881A1 (en) * 2016-08-12 2019-06-06 Alibaba Group Holding Limited Authentication method, device and authentication client
CN107766040A (en) * 2017-09-19 2018-03-06 深圳市买买提乐购金融服务有限公司 A kind of method, apparatus and computer-readable recording medium for generating interface document
CN108984641A (en) * 2018-06-22 2018-12-11 福建南威软件有限公司 A kind of method for page jump based on WEB terminal
CN109710328A (en) * 2018-08-20 2019-05-03 深圳壹账通智能科技有限公司 Page configuration method, apparatus, equipment and readable storage medium storing program for executing
CN109669716A (en) * 2018-09-25 2019-04-23 深圳壹账通智能科技有限公司 Page control method, device, equipment and readable storage medium storing program for executing

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111309323A (en) * 2020-01-19 2020-06-19 北京无限光场科技有限公司 Parameter initialization method and device and electronic equipment
CN111309323B (en) * 2020-01-19 2023-12-12 北京有竹居网络技术有限公司 Parameter initialization method and device and electronic equipment
CN111367590A (en) * 2020-02-27 2020-07-03 北京字节跳动网络技术有限公司 Interrupt event processing method and device
CN111414161A (en) * 2020-03-27 2020-07-14 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for generating ID L file
CN111414161B (en) * 2020-03-27 2023-05-12 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for generating IDL file
CN112068879A (en) * 2020-09-10 2020-12-11 工银科技有限公司 Method and device for constructing client application development framework based on configuration
CN112068879B (en) * 2020-09-10 2023-10-13 中国工商银行股份有限公司 Method and device for constructing client application program development framework based on configuration
CN112926290A (en) * 2021-03-09 2021-06-08 上海万向区块链股份公司 System, method and medium for generating presentation interface document

Similar Documents

Publication Publication Date Title
CN110704102A (en) Page jump protocol interface document generation method, system, medium and electronic device
CN107679211B (en) Method and device for pushing information
CN110309005B (en) Function calling method and device, terminal equipment and storage medium
US8046436B2 (en) System and method of providing context information for client application data stored on the web
WO2014160107A2 (en) Systems and methods for creating or updating an application using a pre-existing application
US20150106723A1 (en) Tools for locating, curating, editing, and using content of an online library
CN110309006B (en) Function calling method and device, terminal equipment and storage medium
KR20130065802A (en) System and method for recommending application by using keword
CA3061623C (en) File sending in instant messaging applications
CN110780874B (en) Method and device for generating information
CN110543297A (en) method and apparatus for generating source code
US20240004917A1 (en) Data processing method and device, terminal, and storage medium
CN111191171A (en) Multi-Fragment loading method and device based on android and electronic equipment
CN109902726B (en) Resume information processing method and device
CN114443905A (en) Interface document updating method and device, electronic equipment and readable storage medium
US8046437B2 (en) System and method of storing data and context of client application on the web
CN111414331B (en) Document importing method, device, storage medium and equipment of online collaborative knowledge base
CN112307386A (en) Information monitoring method, system, electronic device and computer readable storage medium
WO2015056816A1 (en) Method and system for conversion of smart phone applications to basic phone applications
CN111813685A (en) Automatic testing method and device
CN115237528A (en) Information display method and device, electronic equipment and computer readable medium
CN111767111B (en) Page data processing method and device, electronic equipment and storage medium
CN113282285A (en) Code compiling method and device, electronic equipment and storage medium
CN114239501A (en) Contract generation method, apparatus, device and medium
CN111767447A (en) Method and device for determining user traffic path

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