CN111352742B - APP-based componentization information transmission method and apparatus - Google Patents

APP-based componentization information transmission method and apparatus Download PDF

Info

Publication number
CN111352742B
CN111352742B CN201811575132.1A CN201811575132A CN111352742B CN 111352742 B CN111352742 B CN 111352742B CN 201811575132 A CN201811575132 A CN 201811575132A CN 111352742 B CN111352742 B CN 111352742B
Authority
CN
China
Prior art keywords
information
information body
annotation
module
transmission direction
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.)
Active
Application number
CN201811575132.1A
Other languages
Chinese (zh)
Other versions
CN111352742A (en
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.)
3600 Technology Group Co ltd
Original Assignee
3600 Technology Group 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 3600 Technology Group Co ltd filed Critical 3600 Technology Group Co ltd
Priority to CN201811575132.1A priority Critical patent/CN111352742B/en
Publication of CN111352742A publication Critical patent/CN111352742A/en
Application granted granted Critical
Publication of CN111352742B publication Critical patent/CN111352742B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/545Interprogram communication where tasks reside in different layers, e.g. user- and kernel-space
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues

Abstract

The invention provides an information transmission method and device based on APP assembly, wherein the method comprises the following steps: determining any two business modules with mutual value transmission requirements from a designated APP, and analyzing an information body to be transmitted based on the value transmission requirements; adding notes for the information body, wherein the notes comprise the transmission direction of the information body between any two business modules and relevant information of the information body; identifying annotation by adopting a preset code generator, and generating entity class containing an information body and the transmission direction according to the identification result; caching the entity class to a preset bottom layer module, and receiving the information acquisition operation of the information acquirer in any two service modules on the corresponding information body from the entity class of the preset bottom layer module according to the transmission direction of the information body. According to the embodiment of the invention, the annotation is added for the information body transferred by the generation, so that the annotation can be identified by adopting the preset code generator, the information body to be transferred is automatically generated at the bottom layer module, and the workload of manually generating the information body at the bottom layer is reduced.

Description

APP-based componentization information transmission method and apparatus
Technical Field
The invention relates to the technical field of data processing, in particular to an APP-based componentization information transmission method and device.
Background
For common APP software, with the continuous expansion of APP services, the programming paradigm of the APP software is also changed continuously, so that in order to realize rapid iterative development of APP software, a set of componentization development schemes are generally adopted, and referring to fig. 1a, componentization is actually a parallel series of service modules without direct interdependence. Although there are many solutions for modular development in the industry, there are various problems in the whole, particularly in terms of the number transfer between the individual modules. Because the direct dependency relationship among the modules does not exist, the data of the transmitted value is required to be downloaded to the bottom layer, the modules depend on the bottom layer module, and the manual value transmission and maintenance mode is generally adopted in the industry, but obviously causes the problem of higher working cost.
As shown in fig. 1b, APP software may include n service modules, with 1-2 communication in the bottom Common layer representing communication from service module 1 to service module 2, 1-3 communication representing communication from service module 1 to service module 3, other communication, and so on, base Platform representing the infrastructure Platform. If the value is manually downloaded, the information used for communication between the storage modules in the Common layer at the bottom layer increases exponentially with the increase of the modules, which not only has great workload, but also has great cost for later maintenance. In addition, the prior mode has single value transmission type among the modules, and only can transmit a plurality of basic types of values.
Disclosure of Invention
The present invention has been made in view of the above problems, and it is an object of the present invention to provide an APP-based componentized information delivery method and apparatus which overcomes or at least partially solves the above problems.
According to one aspect of the present invention, there is provided an information transfer method based on APP componentization, including:
determining any two business modules with mutual value transmission requirements from a designated APP, and analyzing an information body to be transmitted based on the value transmission requirements;
adding an annotation for the information body, wherein the annotation comprises the transmission direction of the information body between any two business modules and relevant information of the information body;
identifying the annotation by adopting a preset code generator, and generating entity class containing the information body and the transmission direction thereof according to the identification result;
and caching the entity class to a preset bottom layer module, and receiving the information acquisition operation of the information acquirer in any two business modules on the corresponding information body from the entity class of the preset bottom layer module according to the transmission direction of the information body.
Optionally, adding annotations to the information body includes:
analyzing the content of the information body, and adding information related information to the information body according to an analysis result;
determining the transmission direction of the information body between any two business modules according to the value transmission requirement;
and adding notes to the information body according to the description information and the transmission direction of the information body.
Optionally, the information related information includes: at least one of content description information and function description information of the information body.
Optionally, the annotation is identified by a preset code generator, and an entity class including the information body and the transmission direction thereof is generated according to the identification result, including:
identifying the annotation by adopting a preset code generator to obtain an identification result;
generating an entity class containing a setsetetr mode and a getsetetr mode of the information body based on the identification result, and receiving a sending operation that an information provider in any two service modules sends the information body to the entity class through the setetr mode;
and determining the transmission direction of the information body based on the identification result, and adding the transmission direction into the entity class.
Optionally, the receiving operation of the information acquirer in any two service modules on the corresponding information body from the entity class of the preset bottom layer module according to the transmission direction of the information body includes:
and receiving the call of the information acquisition party in any two business modules to the getsetr mode, and adopting the called getsetr mode to acquire corresponding information bodies from the entity class of the preset bottom layer module according to the transmission direction of the information bodies.
Optionally, the method further comprises:
monitoring whether a delete request for the annotation is received;
if yes, executing deleting operation on the annotation, and synchronously deleting entity class generated based on the annotation from the preset bottom layer module;
reconstructing the preset bottom layer module based on the service module with the current value transmission requirement in the appointed APP.
According to another aspect of the present invention, there is also provided an APP-based information delivery apparatus, including:
the analysis module is suitable for determining any two business modules with the mutual value transmission requirements from the appointed APP, and analyzing an information body to be transmitted based on the value transmission requirements;
the adding module is suitable for adding notes for the information body, wherein the notes comprise the transmission direction of the information body between any two business modules and relevant information of the information body;
the generation module is suitable for identifying the annotation by adopting a preset code generator and generating entity class containing the information body and the transmission direction thereof according to the identification result;
and the caching module is suitable for caching the entity class to a preset bottom layer module and receiving the information acquisition operation of the information acquirer in any two business modules on the corresponding information body from the entity class of the preset bottom layer module according to the transmission direction of the information body.
Optionally, the adding module is further adapted to:
analyzing the content of the information body, and adding information related information to the information body according to an analysis result;
determining the transmission direction of the information body between any two business modules according to the value transmission requirement;
and adding notes to the information body according to the description information and the transmission direction of the information body.
Optionally, the information related information includes: at least one of content description information and function description information of the information body.
Optionally, the generating module is further adapted to:
identifying the annotation by adopting a preset code generator to obtain an identification result;
generating an entity class containing a setsetetr mode and a getsetetr mode of the information body based on the identification result, and receiving a sending operation that an information provider in any two service modules sends the information body to the entity class through the setetr mode;
and determining the transmission direction of the information body based on the identification result, and adding the transmission direction into the entity class.
Optionally, the cache module is further adapted to:
and receiving the call of the information acquisition party in any two business modules to the getsetr mode, and adopting the called getsetr mode to acquire corresponding information bodies from the entity class of the preset bottom layer module according to the transmission direction of the information bodies.
Optionally, the apparatus further comprises:
a monitoring module adapted to monitor whether a delete request for the annotation is received;
the deleting module is suitable for executing deleting operation on the annotation if a deleting request on the annotation is monitored, and synchronously deleting entity class generated based on the annotation from the preset bottom layer module;
the construction module is suitable for reconstructing the preset bottom layer module based on the service module with the current value transmission requirement in the appointed APP.
According to yet another aspect of the present invention, there is also provided a computer storage medium storing computer program code which, when run on a computing device, causes the computing device to perform the APP-based componentized information transfer method as described in any of the embodiments above.
According to yet another aspect of the present invention, there is also provided a computing device including: a processor; a memory storing computer program code; the computer program code, when executed by the processor, causes the computing device to perform the APP-based componentized information delivery method described in any of the embodiments above.
In the embodiment of the invention, in the information transmission process aiming at APP assembly, any two business modules with mutual value transmission requirements are determined from a designated APP, an information body to be transmitted is analyzed based on the value transmission requirements, then notes are added to the information body, the notes contain the transmission direction of the information body between any two business modules and relevant information of the information body, further a preset code generator is adopted to identify the notes, an entity class containing the information body and the transmission direction thereof is generated according to the identification result, finally the entity class is cached to a preset bottom layer module, and the information acquirer in any two business modules receives the corresponding information body acquisition operation from the entity class of the preset bottom layer module according to the transmission direction of the information body. Therefore, the embodiment of the invention adds the annotation to the information body transferred by the generation, so that the annotation can be identified by adopting the preset code generator, the information body to be transferred is automatically generated at the bottom layer module, the workload of manually generating the information body at the bottom layer is reduced, the maintenance cost is greatly simplified, meanwhile, any type of numerical value transfer among service modules can be supported by the mode, such as a user-defined data type, and the type range of the transfer numerical value is enlarged. Further, if communication is not required between the service modules, the automatically generated information body can be deleted by deleting the annotation.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
The above, as well as additional objectives, advantages, and features of the present invention will become apparent to those skilled in the art from the following detailed description of a specific embodiment of the present invention when read in conjunction with the accompanying drawings.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1a shows a schematic diagram of the architecture of prior art APP-componentized business modules;
FIG. 1b is a schematic diagram of the business modules and underlying framework of an APP of the prior art;
FIG. 2 shows a flow diagram of an APP-based componentization-based information delivery method in accordance with one embodiment of the present invention;
FIG. 3 illustrates a schematic diagram of an information delivery framework implementing APP componentization in accordance with one embodiment of the invention;
FIG. 4 shows a schematic structural diagram of an APP-based componentized information delivery device according to one embodiment of the present invention;
fig. 5 shows a schematic structural diagram of an APP-based componentized information delivery device according to another embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In order to solve the technical problems, the embodiment of the invention provides an APP-based componentization information transmission method. Fig. 2 shows a flow diagram of an APP-based componentized information delivery method according to one embodiment of the invention. Referring to fig. 2, the method includes at least steps S102 to S108.
Step S102, any two business modules with mutual value transmission requirements are determined from a designated APP, and information bodies to be transmitted are analyzed based on the value transmission requirements.
Step S104, adding notes for the information body, wherein the notes comprise the transmission direction of the information body between any two business modules and relevant information of the information body.
And S106, identifying the annotation by adopting a preset code generator, and generating entity class containing the information body and the transmission direction according to the identification result.
Step S108, caching the entity class to a preset bottom layer module, and receiving the information acquisition operation of the information acquirer in any two service modules on the corresponding information body from the entity class of the preset bottom layer module according to the transmission direction of the information body.
The embodiment of the invention adds the annotation to the information body transferred by the generation, thereby adopting the preset code generator to identify the annotation so as to automatically generate the information body to be transferred at the bottom layer module, thereby not only reducing the workload of manually generating the information body at the bottom layer, but also greatly simplifying the maintenance cost, simultaneously, the mode can also support any type of numerical value transfer among service modules, such as the self-defined data type, and enlarging the type range of the transfer numerical value. Further, if communication is not required between the service modules, the automatically generated information body can be deleted by deleting the annotation.
Referring to step S104, in an embodiment of the present invention, when adding an annotation to an information body, the content of the information body may be analyzed first, then relevant information is added to the information body according to the analysis result, the transmission direction of the information body between any two service modules is determined according to the value requirement, and finally the annotation is added to the information body according to the description information and the transmission direction of the information body. Wherein the information related information may include content description information, function description information, and the like of the information body.
In this embodiment, when adding an annotation to an information body, a transmission direction of the information body needs to be added, for example, the news module needs to transmit part of its own information to the notification module, and then part of the information of the news module is the information body to be transmitted, and the transmission direction of the information body is from the news module to the notification module. This makes it clear and unambiguously known in the following from which service module the information body needs to be transferred to which service module. In this embodiment, the transmission direction of the information body may be represented by a custom specific identifier, which is not specifically limited in the embodiment of the present invention.
For example, the following code is part of the annotation code of an embodiment of the present invention. In the following code, "News" means a News module and "Notification" means a Notification module.
Referring to step S106, in an embodiment of the present invention, the information transmission method based on APP componentization is mainly implemented by using a newly designed Router framework, and referring to fig. 3, a code generator is preset in the Router framework, where the code generator may identify parameters (such as a transmission direction of an information body between any two service modules and information related information) in an annotation (in fig. 3, the annotation is denoted by @ RouterValue) added to the information body, and generate an entity class including the information body and a transmission direction thereof according to the identification result.
For example, in fig. 3, it is determined from the designated APP that the a service Module (a_module), the B service Module (b_module), and the C service Module (c_module) have a mutual value transmission requirement, and the specific value transmission direction is that the a_module transmits the information body to the b_module, the a_module transmits the information body to the c_module, and the c_module transmits the information body to the b_module, i.e., the a_b_info, the a_c_info, and the c_b_info. In the process of transmitting information bodies by each module, depending on a Router framework, a code generator is adopted to identify notes added for each information body, and then corresponding entity classes can be automatically generated respectively.
The entity class generated according to the annotation of the information body of the a_b_info stores the information body of the a_b_info with the transfer direction (i.e., the value of a→b shown in fig. 3), the entity class generated according to the annotation of the information body of the a_c_info stores the information body of the a_c_info with the transfer direction (i.e., the value of a→c shown in fig. 3), and the entity class generated according to the annotation of the information body of the c_b_info stores the information body of the c_b_info with the transfer direction (i.e., the value of c→b shown in fig. 3).
In one embodiment of the present invention, the process of generating the entity class by the code generator is as follows. First, a preset code generator recognizes annotations added for an information body to obtain a recognition result. And then, generating entity classes containing the setsetr mode and the getsetr mode of the information body based on the identification result, and receiving a sending operation that the information provider in any two service modules sends the information body to the entity classes through the setsetsetr mode. Finally, determining the transmission direction of the information body based on the identification result, and adding the transmission direction into the entity class.
The getsetr mode in this embodiment is used for acquiring information bodies by the information acquirer in any two service modules in the subsequent getsetr mode.
Referring to step S108, in an embodiment of the present invention, the entity class generated above may be cached in a preset bottom module. Because the entity class also contains the getsetr mode of the information body, when the information body of one service module is transferred to another service module, the other service module (i.e. the information acquisition party in any two service modules) can call the getsetr mode, and acquire the corresponding information body from the entity class of the preset bottom layer module according to the transfer direction of the information body by adopting the called getsetr mode. Correspondingly, the bottom layer module receives the call of the information acquisition party to the getsetr mode, and the information acquisition party adopts the called getsetr mode to acquire the corresponding information body from the entity class of the preset bottom layer module.
The information transfer process based on APP assembly of the present invention is described in the following in a specific embodiment.
Assuming that the APP is designated as the mobile phone guard APP, the requirement of mutual value transmission between the news module and the notification module is determined from the mobile phone guard APP, and the news module needs to display and notify part of the news information through the notification module. And then, generating entity classes containing information bodies in setsetetr mode and getsetetr mode based on the identification result, storing the transmission directions of partial news information in the entity classes, and caching the entity classes in a preset bottom layer module. And the news module calls a setsetter mode in the entity class, and partial news information is sent to the generated entity class by adopting the setter mode. And the notification module calls a getsetr mode in the entity class, acquires partial news information in the entity class by adopting the getsetr mode, and performs notification and display.
Therefore, according to the embodiment of the invention, the information body required to be transmitted between different service modules is automatically stored in the preset bottom layer module, and the preset bottom layer module is used as a transfer station of the information body, so that information transmission between different service modules without coupling relation can be realized, the workload of manually generating the information body at the bottom layer is reduced, and the maintenance cost is greatly reduced.
In an embodiment of the present invention, it may also be monitored in real time whether a deletion request for an annotation of an information body is received, and if so, not only deletion operation is performed on the annotation, but also synchronous deletion is performed on entity classes generated based on the annotation in a preset bottom layer module.
In general, the content generated by the code generator is stored in the temporary directory, so that when the code generator cannot recognize the deleted annotation after deleting the annotation, the entity class corresponding to the deleted annotation is not generated. The code generator can recognize the existing annotation, and generates entity class containing the information body and the transmission direction according to the recognition result, namely, at the moment, the preset bottom layer module is reconstructed based on the service module with the transmission value requirement in the appointed APP.
Based on the same inventive concept, the embodiment of the present invention further provides an information transfer device based on APP componentization, fig. 4 is a schematic structural diagram of the information transfer device based on APP componentization according to one embodiment of the present invention, and referring to fig. 4, the information transfer device 400 based on APP componentization includes an analysis module 410, an addition module 420, a generation module 430, and a cache module 440.
The functions of the components or devices of the information transmission apparatus 400 based on APP componentization according to the embodiment of the present invention will be described, and the connection relationship between the components:
the analysis module 410 is adapted to determine any two service modules with mutual value transmission requirements from the appointed APP, and analyze an information body to be transmitted based on the value transmission requirements;
the adding module 420 is coupled with the analyzing module 410 and is suitable for adding notes for the information body, wherein the notes comprise the transmission direction of the information body between any two service modules and relevant information of the information body;
the generating module 430 is coupled with the adding module 420, and is suitable for identifying notes by adopting a preset code generator, and generating entity classes containing information bodies and the transmission directions thereof according to the identification results;
the caching module 440, coupled to the generating module 430, is adapted to cache the entity class to the preset bottom module, and receives an operation of the information acquirer in any two service modules for acquiring the corresponding information body from the entity class of the preset bottom module according to the transmission direction of the information body.
In an embodiment of the present invention, the adding module 420 is further adapted to analyze the content of the information body and add information related to the information body according to the analysis result. And determining the transmission direction of the information body between any two business modules according to the value demand. And adding notes to the information body according to the transmission directions of the description information and the information body.
In this implementation, the information-related information may include at least one of content description information, function description information, and the like of the information body.
In an embodiment of the invention, the generating module 430 is further adapted to identify the annotation by using a preset code generator, and obtain an identification result. And generating entity classes containing the setsetter mode and the getsetter mode of the information body based on the identification result, and receiving a sending operation that the information provider in any two service modules sends the information body to the entity classes through the setsetter mode. And determining the transmission direction of the information body based on the identification result, and adding the transmission direction into the entity class.
In an embodiment of the present invention, the buffer module 440 is further adapted to receive a call of the getsetr mode from the information acquisition party in any two service modules, and use the called getsetr mode to perform an operation of acquiring the corresponding information body from the entity class of the preset bottom layer module according to the transmission direction of the information body.
The embodiment of the invention also provides another information transmission device based on APP assembly, fig. 5 shows a schematic structural diagram of the information transmission device based on APP assembly according to one embodiment of the invention, referring to fig. 5, the information transmission device 400 based on APP assembly includes an analysis module 410, an adding module 420, a generating module 430, a buffering module 440, a monitoring module 450, a deleting module 460 and a constructing module 470.
A monitoring module 450, coupled to the adding module 420, is adapted to monitor whether a deletion request for annotations is received.
A deletion module 460, coupled to the monitoring module 450, adapted to perform a deletion operation on the annotation if a deletion request for the annotation is detected, and to synchronously delete entity classes generated based on the annotation from the preset floor module.
The construction module 470, coupled to the deletion module 460, is adapted to reconstruct the preset bottom module based on the service module currently having the value transmission requirement in the designated APP.
Embodiments of the present invention also provide a computer storage medium storing computer program code which, when run on a computing device, causes the computing device to perform the APP-based componentized information delivery method of any of the embodiments above.
The embodiment of the invention also provides a computing device, which comprises: a processor; a memory storing computer program code; the computer program code, when executed by a processor, causes the computing device to perform the APP-based componentized information delivery method of any of the embodiments above.
According to any one of the above preferred embodiments or a combination of the preferred embodiments, the following advantageous effects can be achieved according to the embodiments of the present invention:
in the embodiment of the invention, in the information transmission process aiming at APP assembly, any two business modules with mutual value transmission requirements are determined from a designated APP, an information body to be transmitted is analyzed based on the value transmission requirements, then notes are added to the information body, the notes contain the transmission direction of the information body between any two business modules and relevant information of the information body, further a preset code generator is adopted to identify the notes, an entity class containing the information body and the transmission direction thereof is generated according to the identification result, finally the entity class is cached to a preset bottom layer module, and the information acquirer in any two business modules receives the corresponding information body acquisition operation from the entity class of the preset bottom layer module according to the transmission direction of the information body. Therefore, the embodiment of the invention adds the annotation to the information body transferred by the generation, so that the annotation can be identified by adopting the preset code generator, the information body to be transferred is automatically generated at the bottom layer module, the workload of manually generating the information body at the bottom layer is reduced, the maintenance cost is greatly simplified, meanwhile, any type of numerical value transfer among service modules can be supported by the mode, such as a user-defined data type, and the type range of the transfer numerical value is enlarged. Further, if communication is not required between the service modules, the automatically generated information body can be deleted by deleting the annotation.
It will be clear to those skilled in the art that the specific working procedures of the above-described systems, devices and units may refer to the corresponding procedures in the foregoing method embodiments, and are not repeated herein for brevity.
In addition, each functional unit in the embodiments of the present invention may be physically independent, two or more functional units may be integrated together, or all functional units may be integrated in one processing unit. The integrated functional units may be implemented in hardware or in software or firmware.
Those of ordinary skill in the art will appreciate that: the integrated functional units, if implemented in software and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in essence or in whole or in part in the form of a software product stored in a storage medium, comprising instructions for causing a computing device (e.g., a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present invention when the instructions are executed. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a read-only memory (ROM), a random-access memory (RAM), a magnetic disk, or an optical disk, etc.
Alternatively, all or part of the steps of implementing the foregoing method embodiments may be implemented by hardware (such as a personal computer, a server, or a computing device such as a network device) associated with program instructions, where the program instructions may be stored on a computer-readable storage medium, and where the program instructions, when executed by a processor of the computing device, perform all or part of the steps of the method according to the embodiments of the present invention.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all technical features thereof can be replaced by others within the spirit and principle of the present invention; such modifications and substitutions do not depart from the scope of the invention.

Claims (14)

1. An information transfer method based on APP assembly, comprising:
determining any two business modules with mutual value transmission requirements from a designated APP, and analyzing an information body to be transmitted based on the value transmission requirements;
adding an annotation for the information body, wherein the annotation comprises the transmission direction of the information body between any two business modules and relevant information of the information body;
identifying the annotation by adopting a preset code generator, and generating entity class containing the information body and the transmission direction thereof according to the identification result;
caching entity classes to a preset bottom layer module, and receiving the information acquisition operation of the information acquirer in any two service modules on corresponding information bodies from the entity classes of the preset bottom layer module according to the transmission direction of the information bodies;
the method for identifying the annotation by using a preset code generator, generating an entity class containing the information body and the transmission direction thereof according to the identification result, comprises the following steps:
identifying the annotation by adopting a preset code generator to obtain an identification result;
generating an entity class containing the information body based on the identification result;
receiving a sending operation that an information provider in any two service modules sends the information body to the entity class;
and determining the transmission direction of the information body based on the identification result, and adding the transmission direction into the entity class.
2. The method of claim 1, wherein adding annotations to the information body comprises:
analyzing the content of the information body, and adding information related information to the information body according to an analysis result;
determining the transmission direction of the information body between any two business modules according to the value transmission requirement;
and adding notes to the information body according to the description information and the transmission direction of the information body.
3. The method of claim 1 or 2, wherein the information-related information comprises: at least one of content description information and function description information of the information body.
4. A method according to claim 1 or 2, wherein the annotation is identified by a preset code generator, and generating an entity class comprising the information body and its direction of delivery from the identification result comprises:
identifying the annotation by adopting a preset code generator to obtain an identification result;
generating an entity class containing a setsetetr mode and a getsetetr mode of the information body based on the identification result, and receiving a sending operation that an information provider in any two service modules sends the information body to the entity class through the setetr mode;
and determining the transmission direction of the information body based on the identification result, and adding the transmission direction into the entity class.
5. The method of claim 4, wherein the receiving the operation of the information acquirer in any two service modules to acquire the corresponding information body from the entity class of the preset bottom layer module according to the transfer direction of the information body includes:
and receiving the call of the information acquisition party in any two business modules to the getsetr mode, and adopting the called getsetr mode to acquire corresponding information bodies from the entity class of the preset bottom layer module according to the transmission direction of the information bodies.
6. The method according to claim 1 or 2, further comprising:
monitoring whether a delete request for the annotation is received;
if yes, executing deleting operation on the annotation, and synchronously deleting entity class generated based on the annotation from the preset bottom layer module;
reconstructing the preset bottom layer module based on the service module with the current value transmission requirement in the appointed APP.
7. An APP-based componentized information delivery device comprising:
the analysis module is suitable for determining any two business modules with the mutual value transmission requirements from the appointed APP, and analyzing an information body to be transmitted based on the value transmission requirements;
the adding module is suitable for adding notes for the information body, wherein the notes comprise the transmission direction of the information body between any two business modules and relevant information of the information body;
the generation module is suitable for identifying the annotation by adopting a preset code generator and generating entity class containing the information body and the transmission direction thereof according to the identification result;
the caching module is suitable for caching entity classes to a preset bottom layer module and receiving the information acquisition operation of the information acquirer in any two business modules on corresponding information bodies from the entity classes of the preset bottom layer module according to the transmission direction of the information bodies;
the generation module is further adapted to identify the annotation by adopting a preset code generator to obtain an identification result; generating an entity class containing the information body based on the identification result; receiving a sending operation that an information provider in any two service modules sends the information body to the entity class; and determining the transmission direction of the information body based on the identification result, and adding the transmission direction into the entity class.
8. The apparatus of claim 7, wherein the adding module is further adapted to:
analyzing the content of the information body, and adding information related information to the information body according to an analysis result;
determining the transmission direction of the information body between any two business modules according to the value transmission requirement;
and adding notes to the information body according to the description information and the transmission direction of the information body.
9. The device according to claim 7 or 8, wherein,
the information related information includes: at least one of content description information and function description information of the information body.
10. The apparatus of claim 7 or 8, wherein the generation module is further adapted to:
identifying the annotation by adopting a preset code generator to obtain an identification result;
generating an entity class containing a setsetetr mode and a getsetetr mode of the information body based on the identification result, and receiving a sending operation that an information provider in any two service modules sends the information body to the entity class through the setetr mode;
and determining the transmission direction of the information body based on the identification result, and adding the transmission direction into the entity class.
11. The apparatus of claim 10, wherein the caching module is further adapted to:
and receiving the call of the information acquisition party in any two business modules to the getsetr mode, and adopting the called getsetr mode to acquire corresponding information bodies from the entity class of the preset bottom layer module according to the transmission direction of the information bodies.
12. The apparatus of claim 7 or 8, further comprising:
a monitoring module adapted to monitor whether a delete request for the annotation is received;
the deleting module is suitable for executing deleting operation on the annotation if a deleting request on the annotation is monitored, and synchronously deleting entity class generated based on the annotation from the preset bottom layer module;
the construction module is suitable for reconstructing the preset bottom layer module based on the service module with the current value transmission requirement in the appointed APP.
13. A computer storage medium storing computer program code which, when run on a computing device, causes the computing device to perform the APP-based componentized information transfer method of any one of claims 1-6.
14. A computing device, comprising: a processor; a memory storing computer program code; the computer program code, when executed by the processor, causes the computing device to perform the APP-based componentized information delivery method of any one of claims 1-6.
CN201811575132.1A 2018-12-21 2018-12-21 APP-based componentization information transmission method and apparatus Active CN111352742B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811575132.1A CN111352742B (en) 2018-12-21 2018-12-21 APP-based componentization information transmission method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811575132.1A CN111352742B (en) 2018-12-21 2018-12-21 APP-based componentization information transmission method and apparatus

Publications (2)

Publication Number Publication Date
CN111352742A CN111352742A (en) 2020-06-30
CN111352742B true CN111352742B (en) 2024-02-09

Family

ID=71196435

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811575132.1A Active CN111352742B (en) 2018-12-21 2018-12-21 APP-based componentization information transmission method and apparatus

Country Status (1)

Country Link
CN (1) CN111352742B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112579061A (en) * 2020-12-17 2021-03-30 青岛以萨数据技术有限公司 Method, device, system and storage medium for data transmission between android components

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101876943A (en) * 2009-04-30 2010-11-03 埃森哲环球服务有限公司 The system and method for the relation in the identification mainframe environment between a plurality of related application
CN102520927A (en) * 2011-11-23 2012-06-27 中兴通讯股份有限公司 Method, device and terminal for generation logic business of embedded terminal
CN103399746A (en) * 2013-08-01 2013-11-20 浙江网新恩普软件有限公司 Information management system convenient to develop secondarily and development method
CN103559118A (en) * 2013-10-12 2014-02-05 福建亿榕信息技术有限公司 Security auditing method based on aspect oriented programming (AOP) and annotation information system
CN104915245A (en) * 2015-07-01 2015-09-16 四川航天系统工程研究所 Integration system and method for realizing uniform operation of emulation system and practical function system
CN106550005A (en) * 2015-09-23 2017-03-29 伊姆西公司 Method and apparatus for processing the medium type in REST software architectures
CN106557351A (en) * 2016-11-21 2017-04-05 广东高标电子科技有限公司 The data processing method and device of built-in application program
CN106648690A (en) * 2016-12-29 2017-05-10 北京恒华伟业科技股份有限公司 Code automatic generation method and apparatus
CN106648587A (en) * 2016-09-28 2017-05-10 福州宇嘉软件科技有限公司 Annotation-based Web application code generation method
CN106681727A (en) * 2016-12-30 2017-05-17 苏州同元软控信息技术有限公司 Modelica external function graphical editing system and implementation method thereof
CN107066341A (en) * 2017-04-12 2017-08-18 武汉斗鱼网络科技有限公司 Event Routing Framework and method between a kind of software module
WO2018001040A1 (en) * 2016-06-27 2018-01-04 中兴通讯股份有限公司 Method and device for providing service data, and computer storage medium
CN107646186A (en) * 2015-05-22 2018-01-30 微软技术许可有限责任公司 For providing the unified message delivery platform and interface of inline reply
WO2018099311A1 (en) * 2016-12-02 2018-06-07 中兴通讯股份有限公司 Resource allocation method, apparatus, system and computer storage medium
CN108229183A (en) * 2017-12-06 2018-06-29 链家网(北京)科技有限公司 A kind of business datum monitoring method and its monitoring device

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101876943A (en) * 2009-04-30 2010-11-03 埃森哲环球服务有限公司 The system and method for the relation in the identification mainframe environment between a plurality of related application
CN102520927A (en) * 2011-11-23 2012-06-27 中兴通讯股份有限公司 Method, device and terminal for generation logic business of embedded terminal
CN103399746A (en) * 2013-08-01 2013-11-20 浙江网新恩普软件有限公司 Information management system convenient to develop secondarily and development method
CN103559118A (en) * 2013-10-12 2014-02-05 福建亿榕信息技术有限公司 Security auditing method based on aspect oriented programming (AOP) and annotation information system
CN107646186A (en) * 2015-05-22 2018-01-30 微软技术许可有限责任公司 For providing the unified message delivery platform and interface of inline reply
CN104915245A (en) * 2015-07-01 2015-09-16 四川航天系统工程研究所 Integration system and method for realizing uniform operation of emulation system and practical function system
CN106550005A (en) * 2015-09-23 2017-03-29 伊姆西公司 Method and apparatus for processing the medium type in REST software architectures
WO2018001040A1 (en) * 2016-06-27 2018-01-04 中兴通讯股份有限公司 Method and device for providing service data, and computer storage medium
CN106648587A (en) * 2016-09-28 2017-05-10 福州宇嘉软件科技有限公司 Annotation-based Web application code generation method
CN106557351A (en) * 2016-11-21 2017-04-05 广东高标电子科技有限公司 The data processing method and device of built-in application program
WO2018099311A1 (en) * 2016-12-02 2018-06-07 中兴通讯股份有限公司 Resource allocation method, apparatus, system and computer storage medium
CN106648690A (en) * 2016-12-29 2017-05-10 北京恒华伟业科技股份有限公司 Code automatic generation method and apparatus
CN106681727A (en) * 2016-12-30 2017-05-17 苏州同元软控信息技术有限公司 Modelica external function graphical editing system and implementation method thereof
CN107066341A (en) * 2017-04-12 2017-08-18 武汉斗鱼网络科技有限公司 Event Routing Framework and method between a kind of software module
CN108229183A (en) * 2017-12-06 2018-06-29 链家网(北京)科技有限公司 A kind of business datum monitoring method and its monitoring device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
苟虹雨.基于Android平台的组件化即时通信系统的设计与实现.中国优秀硕士学位论文全文数据库 信息科技辑.2018,I138-885. *

Also Published As

Publication number Publication date
CN111352742A (en) 2020-06-30

Similar Documents

Publication Publication Date Title
CN105718540B (en) Data loading method and device
CN111683066B (en) Heterogeneous system integration method, heterogeneous system integration device, computer equipment and storage medium
KR20180038539A (en) A method and system for implementing data tracking with a software development kit
US20170109371A1 (en) Method and Apparatus for Processing File in a Distributed System
CN110851209B (en) Data processing method and device, electronic equipment and storage medium
US20070287482A1 (en) Framework for agile mobile applications
US20200322570A1 (en) Method and apparatus for aligning paragraph and video
CN110659206A (en) Simulation architecture establishing method, device, medium and electronic equipment based on microservice
CN101184123B (en) Method for obtaining linkman information in address list, system and communication terminal
CN109325056A (en) A kind of big data processing method and processing device, communication equipment
CN109218041B (en) Request processing method and device for server system
CN110333851B (en) Code decoupling method and related equipment
CN109254954B (en) File processing method and device, computing equipment and storage medium
CN111352742B (en) APP-based componentization information transmission method and apparatus
CN114443905A (en) Interface document updating method and device, electronic equipment and readable storage medium
CN111757282B (en) Short message sending method and device
CN110505289B (en) File downloading method and device, computer readable medium and wireless communication equipment
CN110708238A (en) Method and apparatus for processing information
US8615744B2 (en) Methods and system for managing assets in programming code translation
CN113722589B (en) Information generation method, device, server and storage medium
CN102110144A (en) Document access method and terminal equipment
CN111367592B (en) Information processing method and device
CN111767486A (en) Method, device, electronic equipment and computer readable medium for displaying page
CN113821750B (en) Page data processing method and system, electronic equipment and readable storage medium
CN116867109A (en) Connection code generation method, analysis method, bluetooth connection method, device and system

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
TA01 Transfer of patent application right

Effective date of registration: 20240115

Address after: Room 03, 2nd Floor, Building A, No. 20 Haitai Avenue, Huayuan Industrial Zone (Huanwai), Binhai New Area, Tianjin, 300450

Applicant after: 3600 Technology Group Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Applicant before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant