CN109597947A - Interface sharing method, device, electronic equipment and storage medium based on big data - Google Patents
Interface sharing method, device, electronic equipment and storage medium based on big data Download PDFInfo
- Publication number
- CN109597947A CN109597947A CN201811180759.7A CN201811180759A CN109597947A CN 109597947 A CN109597947 A CN 109597947A CN 201811180759 A CN201811180759 A CN 201811180759A CN 109597947 A CN109597947 A CN 109597947A
- Authority
- CN
- China
- Prior art keywords
- sharing
- interface
- mode
- contents
- shares
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 230000002452 interceptive effect Effects 0.000 claims description 6
- 230000005540 biological transmission Effects 0.000 claims description 3
- 238000004590 computer program Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 13
- 238000011161 development Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 241000406668 Loxodonta cyclotis Species 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
A kind of interface sharing method based on big data, which comprises receiving interface sharing files are requested, and include the information to sharing interface file and the information for sharing object in the interface document sharing request;It is determined according to the interface document sharing request by sharing interface sharing files, to the sharing mode for sharing object, the sharing mode includes that pdf shares, html shares or json shares;The content in platform current page is obtained according to the sharing mode;Sharing contents are generated according to the sharing mode and the content;The sharing contents are sent to the sharing object.The present invention also provides a kind of interface sharing apparatus, electronic equipment and storage medium based on big data, carrys out simply and easily sharing interface file.
Description
Technical field
The present invention relates to mobile internet technical fields, and in particular to a kind of interface sharing method based on big data, dress
It sets, electronic equipment and storage medium.
Background technique
It is needed in project development by front and back end engineer's common definition interface, and writes interface document, it is subsequent to facilitate
Exploitation.Therefore, interface document is often increased with certain speed, and with the exploitation of subsequent project, it will is generated more
Interface document.Tradition is that interface document information is being shared with sharing pair with excel come management interface file by excel
As when, it is high to be easy maintenance cost.
Summary of the invention
In view of the foregoing, it is necessary to propose a kind of interface sharing method based on big data, device, electronic equipment and deposit
Storage media carrys out simply and easily sharing interface file.
The first aspect of the present invention provides a kind of interface sharing method based on big data, which comprises
The request of receiving interface sharing files, include in the interface document sharing request to sharing interface file information and
Share the information of object;
It is determined according to the interface document sharing request by the sharing mode to sharing interface sharing files to sharing object,
The sharing mode includes that pdf shares, html shares or json shares;
The content in platform current page is obtained according to the sharing mode;
Sharing contents are generated according to the sharing mode and the content;
The sharing contents are sent to the sharing object.
Further, in the interface document sharing request further include sharing mode to sharing interface file, according to institute
Stating interface document sharing request and determining will include: to the sharing mode for sharing object to sharing interface sharing files
It is determining to give the sharing mode for sharing object in the interface document sharing request to sharing interface sharing files
The sharing mode to sharing interface file.
Further, object is shared according to determining will give to sharing interface sharing files of the interface document sharing request
Sharing mode includes:
The sharing mode for sharing object is determined with the corresponding relationship for mode of sharing according to preset sharing object;
It determines the sharing mode to sharing interface sharing files to the sharing mode for sharing object for the sharing object.
Further, object is shared according to determining will give to sharing interface sharing files of the interface document sharing request
Sharing mode includes:
The permission for sharing object is determined with the corresponding relationship of permission according to preset sharing object;
Determine that the sharing permission of object is corresponding with the corresponding relationship of the mode of sharing according to the preset permission for sharing object
Sharing mode;
Determining will be corresponding to the permission that the sharing mode for sharing object is the sharing object to sharing interface sharing files
Sharing mode.
Further, obtaining the content in platform current page according to the sharing mode includes:
When the sharing mode is that pdf shares, platform current display page is obtained;
When the sharing mode is that html shares, platform current display page is obtained;
When the sharing mode is that json shares, the interface document in platform current display page is obtained.
Further, generating sharing contents according to the sharing mode and the content includes:
When the sharing mode is that pdf shares, the platform current display page is printed, point of pdf file is generated as
Content is enjoyed, or platform current display page is printed into pdf file, and be chained address according to the pdf file generated
Sharing contents;
When the sharing mode is that html shares, determines the chained address of the platform current display page, be generated as
The sharing contents of the chained address;It wherein, include interface message in the chained address;
When the sharing mode is that json shares, interface document is converted by the interface for calling the platform to provide
Json data, to be generated as the sharing contents of json data.
Further, sending the sharing contents to sharing object includes:
When the sharing contents are pdf file, the sharing contents are sent to object is shared by interactive software;
When the sharing contents are chained address, the sharing contents are sent to object is shared by the platform;
When the sharing contents are json data, the sharing contents are sent to object is shared by the platform.
The second aspect of the present invention provides a kind of interface sharing apparatus based on big data, and described device includes:
Receiving module is requested for receiving interface sharing files, includes connecing wait share in the interface document sharing request
The information of mouth file and the information for sharing object;
Sharing mode determining module, being used for will be to sharing interface sharing files according to the interface document sharing request determination
To the sharing mode for sharing object, the sharing mode includes that pdf shares, html shares or json shares;
Module is obtained, for obtaining the content in platform current page according to the sharing mode;
Generation module, for generating sharing contents according to the sharing mode and the content;
Sharing module, for sending the sharing contents to the sharing object.
The third aspect of the present invention provides a kind of electronic equipment, and the electronic equipment includes processor and memory, described
Processor is realized described in any one as above when being used to execute at least one instruction stored in the memory based on big number
According to interface sharing method.
The fourth aspect of the present invention provides a kind of computer readable storage medium, the computer-readable recording medium storage
There is at least one instruction, at least one described instruction is executed by processor to realize described in any one as above based on big data
Interface sharing method.
Interface sharing method, device, electronic equipment and storage medium based on big data of the invention, is shared by platform
Interface, can simply and easily sharing interface file;Platform is provided with sharing option, user is facilitated to carry out interface document
Share;Make the demand for sharing properer user by a variety of sharing modes.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is the flow chart for the interface sharing method based on big data that the embodiment of the present invention one provides.
Fig. 2 is the functional block diagram of the interface sharing apparatus provided by Embodiment 2 of the present invention based on big data.
Fig. 3 is the schematic diagram for the electronic equipment that the embodiment of the present invention three provides.
The present invention that the following detailed description will be further explained with reference to the above drawings.
Specific embodiment
To better understand the objects, features and advantages of the present invention, with reference to the accompanying drawing and specific real
Applying example, the present invention will be described in detail.It should be noted that in the absence of conflict, the embodiment of the present invention and embodiment
In feature can be combined with each other.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, described embodiment is only
It is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill
Personnel's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Unless otherwise defined, all technical and scientific terms used herein and belong to technical field of the invention
The normally understood meaning of technical staff is identical.Term as used herein in the specification of the present invention is intended merely to description tool
The purpose of the embodiment of body, it is not intended that in the limitation present invention.
Embodiment one
Fig. 1 is the schematic flow diagram for the interface sharing method based on big data that the embodiment of the present invention one provides.According to not
With demand, the sequence of step can change in the flow chart, and certain steps can be omitted.The method is applied to electronic equipment
In, the electronic equipment can be any electronic product, for example, personal computer, tablet computer, smart phone, individual
Digital assistants (Personal Digital Assistant, PDA) etc..As shown in Figure 1, the interface based on big data is shared
Method may comprise steps of:
Step 11, receiving interface sharing files are requested, and include to sharing interface file in the interface document sharing request
Information and share object information.
The interface document sharing request is that user selects request caused by preset sharing option on platform.It is described flat
Platform is used for management interface file, and provides a user man-machine interactive interface by customer terminal webpage or web page.The client
Including multiple preset options in the page or web page, such as increases option, modification option newly, delete option, search option, divide
Enjoy option, test option etc..User can be connected on the platform by terminal devices such as mobile phone or computers and select to correspond to
Option, to send corresponding request to the platform, the platform can receive the request.For example, when user needs to divide
It enjoys when sharing interface file, preset sharing can be selected to select by terminal device or the input unit connecting with terminal device
, to request to platform transmission interface sharing files, the platform can receive the interface document sharing request at this time.It is described
Input unit can be, such as touch screen, key, touch tablet, keyboard or fixed-point apparatus etc..
It is described to sharing interface file be display on the platform one or more to sharing interface file.Described point
Object is enjoyed to be one or more personal or be one or more groups.The sharing object can be to directly input institute on platform
The information of sharing object is stated to set, such as input Zhang San, beautiful program member etc., or the sharing object is selected to pass through
Information set, such as be shown in information such as member, entire program member or good friends that user is same project described
On customer terminal webpage or web page, user can directly select sharing object by the information that object is shared in selection.
Step 12, it is determined according to the interface document sharing request by point to sharing interface sharing files to sharing object
Mode is enjoyed, the sharing mode includes that pdf shares, html shares or json shares.
The pdf shares to be shared with the chained address that the content of sharing object is pdf file or pdf file generated,
It can only be by pdf file described in pdf Fileview pointed by the pdf file or the chained address to share object
In content, and cannot see other contents that do not share of interface document, the content in the pdf file can not be repaired
Change or edits.It is chained address that the html, which shares to be shared with the content of sharing object, and sharing object can be by described
Interface message in chained address accesses the corresponding interface file in the platform.Wherein, when being shared by html, due to
Share for chained address, the data in the page are dynamic generation, the page and data separating, so that sharing object can pass through
Html shares to check all information of the interface document, but share object cannot modify to the interface document or
Person edits.Wherein, the interface message is the information of interface document described in the energy unique identification such as interface ID, interface name.It is described
It is json data that json, which shares to be shared with the content of sharing object, thus, json data can be switched to project and opened by sharing object
Exploitation code required for the engineer of front and back end in hair, and directly subsequent exploitation or right is carried out using the exploitation code
The exploitation code carries out subsequent exploitation after modifying or editing.
It further include the sharing mode to sharing interface file in the interface document sharing request.It is described literary to sharing interface
The sharing mode of part can be set by directly operating on platform, for example, setting some or multiple interfaces text on platform
The sharing mode of part is pdf sharing, and the sharing mode for setting some or multiple interface documents is shared as html, sets some
Or the sharing mode of multiple interface documents is json sharing.It is determined according to the interface document sharing request to sharing interface file
Sharing mode may include determine by sharing interface sharing files to share object sharing mode be the interface document divide
Enjoy the sharing mode to sharing interface file in request.For example, in the interface document sharing request to sharing interface
When the sharing mode of file Q is that pdf shares, determine that the sharing mode for being shared with sharing object to sharing interface file Q is
Pdf shares;When the sharing mode of sharing interface file V is that html shares, being determined in the interface document sharing request
The sharing mode for being shared with sharing object to sharing interface file V is html sharing;When interface document sharing is asked
In asking when the sharing mode of sharing interface file M is that json shares, determine and described be shared with sharing to sharing interface file M
The sharing mode of object is json sharing.
It is determined according to the interface document sharing request by the sharing mode to sharing interface sharing files to sharing object
Can include: according to the sharing mode of the corresponding relationship determination sharing object of preset sharing object and mode of sharing, determination will be to
Sharing interface sharing files are the sharing mode for sharing object to the sharing mode for sharing object.Such as: when described default
Sharing object and to share in the corresponding relationship of mode include sharing object " spending flower " and corresponding sharing mode " pdf sharing "
When, determine that the sharing mode for sharing object " spending flower " is " pdf sharing ", and determination will be to sharing interface sharing files to sharing pair
As the sharing mode of " spending flower " is " pdf sharing ".
It is determined according to the interface document sharing request by the sharing mode to sharing interface sharing files to sharing object
Can include: the permission for sharing object is determined with the corresponding relationship of permission according to preset sharing object;According to preset point
The permission for enjoying object and the corresponding relationship for sharing mode determine and share the corresponding sharing mode of the permission of object;Determination will be wait share
Interface document is shared with the corresponding sharing mode of permission for sharing the sharing mode of object for the sharing object.It is described preset
The corresponding relationship for sharing object and permission can be, for example, company external staff, such as co-development personnel A, client B, co-development
The permission of team C etc. is the first permission, the permission of company subordinate D, non-project participant E, project participant F, project team H etc.
For the second permission, the permission of company superior X, project participant Y, project team Z etc. are third permission.The preset sharing pair
The permission of elephant can be with the corresponding relationship for mode of sharing, for example, the corresponding sharing mode of the first permission is pdf sharing, the second power
Corresponding sharing mode is limited as html sharing, the corresponding sharing mode of third permission is json sharing.Then, for example, when sharing pair
When as " B ", determines that the permission for sharing object " B " is the first permission, determine the corresponding sharing mode of the first permission for pdf points
It enjoys, and it be to share the sharing mode of object " B " for " pdf sharing " that determination will share to sharing interface file P.
Step 13, the content in platform current page is obtained according to the sharing mode.
Obtaining the content in platform current page according to the sharing mode includes: when the sharing mode is pdf sharing
When, obtain platform current display page;When the sharing mode is that html shares, platform current display page is obtained;Work as institute
State sharing mode be json share when, obtain platform current display page in interface document.
Step 14, sharing contents are generated according to the sharing mode and the content.
According to the sharing mode and the content generate sharing contents include: when the sharing mode is that pdf shares,
The platform current display page is printed, is generated as the sharing contents of pdf file, or the platform current display page is beaten
Print is pdf file, and is the sharing contents of chained address according to the pdf file generated.It is chain according to the pdf file generated
The sharing contents for being grounded location may include being uploaded to the pdf file on for example described platform to be generated as in the sharing of chained address
Hold.
Sharing contents are generated according to the sharing mode and the content further include: when the sharing mode is html sharing
When, it determines the chained address of the platform current display page, is generated as the sharing contents of the chained address.Wherein, described
It include interface message in chained address.The interface message is the letter of interface described in the energy unique identification such as interface ID, interface name
Breath.
Sharing contents are generated according to the sharing mode and the content further include: when the sharing mode is json sharing
When, the interface document is converted into json data by the related application interface for calling the platform to provide, to be generated as json
The sharing contents of data.
Step 15, the sharing contents are sent to sharing object.
It is described to share object send the sharing contents include: when the sharing contents are pdf file, by QQ,
The interactive softwares such as wechat send the sharing contents to object is shared, so that sharing object can be by the pdf Fileview institute
State the content of sharing, and cannot see other contents that do not share of interface document, can not to the content in the pdf file into
Row modification or editor etc..
It is described to send the sharing contents to sharing object further include: when the sharing contents are chained address, to pass through
The platform sends the sharing contents to object is shared.It can be by pdf pointed by the chained address to share object
Sharing contents described in Fileview, and cannot see other contents that do not share of interface document, it can not be in the pdf file
Content modify or edit.Or share object can be accessed by the interface message in the chained address it is described
Corresponding interface file in platform, to check all information of the interface document.
It is described to send the sharing contents to sharing object further include: when the sharing contents are json data, to pass through
The platform sends the sharing contents to object is shared, so that json data can be switched to front and back in project development by sharing object
Exploitation code required for engineer is held, and directly carries out subsequent exploitation using the exploitation code, or to the exploitation
Code carries out subsequent exploitation after modifying or editing.
This method, can simply and easily sharing interface file by platform sharing interface;Platform is provided with sharing choosing
, facilitate user to share interface;Make the demand for sharing properer user by a variety of sharing modes;Pass through pdf points
It enjoys so that shared content can be checked by sharing object;Shared by html so that the page can to share object with data separating
Check all information of corresponding interface file;The interface message in chained address provided when being shared by html shares object
Satisfactory interface document can be quickly found;Shared by json, sharing object can automatically generate according to json data
Corresponding exploitation code, to facilitate subsequent exploitation.
Embodiment two
Fig. 2 is the functional block diagram of the interface sharing apparatus provided by Embodiment 2 of the present invention based on big data.Some
In embodiment, the interface sharing apparatus 20 based on big data is run in electronic equipment.The electronic equipment can be to appoint
What a kind of electronic product, for example, personal computer, tablet computer, smart phone, personal digital assistant (Personal
Digital Assistant, PDA) etc..The interface sharing apparatus 20 based on big data may include multiple by program code
Functional module composed by section.The program code of each program segment in the interface sharing apparatus 20 based on big data can be with
It is stored in memory, and as performed by least one processor, to execute the sharing to interface document.
In the present embodiment, the function of the interface sharing apparatus 20 according to performed by it based on big data can be drawn
It is divided into multiple functional modules.The functional module may include: receiving module 21, share mode determining module 22, obtain module
23, generation module 24 and sharing module 25.The so-called module of the present invention refers to that one kind can be performed by least one processor
And the series of computation machine program segment of fixed function can be completed, storage is in memory.
The receiving module 21, is requested for receiving interface sharing files, include in the interface document sharing request to
The information of sharing interface file and the information for sharing object.
The interface document sharing request is that user selects request caused by preset sharing option on platform.It is described flat
Platform is used for management interface file, and provides a user man-machine interactive interface by customer terminal webpage or web page.The client
Including multiple preset options in the page or web page, such as increases option, modification option newly, delete option, search option, divide
Enjoy option, test option etc..User can be connected on the platform by terminal devices such as mobile phone or computers and select to correspond to
Option, to send corresponding request to the platform, the platform can receive the request.For example, when user needs to divide
It enjoys when sharing interface file, preset sharing can be selected to select by terminal device or the input unit connecting with terminal device
, to request to platform transmission interface sharing files, the platform can receive the interface document sharing request at this time.It is described
Input unit can be, such as touch screen, key, touch tablet, keyboard or fixed-point apparatus etc..
It is described to sharing interface file be display on the platform one or more to sharing interface file.Described point
Object is enjoyed to be one or more personal or be one or more groups.The sharing object can be to directly input institute on platform
The information of sharing object is stated to set, such as input Zhang San, beautiful program member etc., or the sharing object is selected to pass through
Information set, such as be shown in information such as member, entire program member or good friends that user is same project described
On customer terminal webpage or web page, user can directly select sharing object by the information that object is shared in selection.
The sharing mode determining module 22, being used for will be to sharing interface text according to the interface document sharing request determination
Part is shared with the sharing mode for sharing object, and the sharing mode includes that pdf shares, html shares or json shares.
The pdf shares to be shared with the chained address that the content of sharing object is pdf file or pdf file generated,
It can only be by pdf file described in pdf Fileview pointed by the pdf file or the chained address to share object
In content, and cannot see other contents that do not share of interface document, the content in the pdf file can not be repaired
Change or edits.It is chained address that the html, which shares to be shared with the content of sharing object, and sharing object can be by described
Interface message in chained address accesses the corresponding interface file in the platform.Wherein, when being shared by html, due to
Share for chained address, the data in the page are dynamic generation, the page and data separating, so that sharing object can pass through
Html shares to check all information of the interface document, but share object cannot modify to the interface document or
Person edits.Wherein, the interface message is the information of interface document described in the energy unique identification such as interface ID, interface name.It is described
It is json data that json, which shares to be shared with the content of sharing object, thus, json data can be switched to project and opened by sharing object
Exploitation code required for the engineer of front and back end in hair, and directly subsequent exploitation or right is carried out using the exploitation code
The exploitation code carries out subsequent exploitation after modifying or editing.
It further include the sharing mode to sharing interface file in the interface document sharing request.It is described literary to sharing interface
The sharing mode of part can be set by directly operating on platform, for example, setting some or multiple interfaces text on platform
The sharing mode of part is pdf sharing, and the sharing mode for setting some or multiple interface documents is shared as html, sets some
Or the sharing mode of multiple interface documents is json sharing.It is determined according to the interface document sharing request to sharing interface file
Sharing mode may include determine by sharing interface sharing files to share object sharing mode be the interface document divide
Enjoy the sharing mode to sharing interface file in request.For example, in the interface document sharing request to sharing interface
When the sharing mode of file Q is that pdf shares, determine that the sharing mode for being shared with sharing object to sharing interface file Q is
Pdf shares;When the sharing mode of sharing interface file V is that html shares, being determined in the interface document sharing request
The sharing mode for being shared with sharing object to sharing interface file V is html sharing;When interface document sharing is asked
In asking when the sharing mode of sharing interface file M is that json shares, determine and described be shared with sharing to sharing interface file M
The sharing mode of object is json sharing.
It is determined according to the interface document sharing request by the sharing mode to sharing interface sharing files to sharing object
Can include: according to the sharing mode of the corresponding relationship determination sharing object of preset sharing object and mode of sharing, determination will be to
Sharing interface sharing files are the sharing mode for sharing object to the sharing mode for sharing object.Such as: when described default
Sharing object and to share in the corresponding relationship of mode include sharing object " spending flower " and corresponding sharing mode " pdf sharing "
When, determine that the sharing mode for sharing object " spending flower " is " pdf sharing ", and determination will be to sharing interface sharing files to sharing pair
As the sharing mode of " spending flower " is " pdf sharing ".
It is determined according to the interface document sharing request by the sharing mode to sharing interface sharing files to sharing object
Can include: the permission for sharing object is determined with the corresponding relationship of permission according to preset sharing object;According to preset point
The permission for enjoying object and the corresponding relationship for sharing mode determine and share the corresponding sharing mode of the permission of object;Determination will be wait share
Interface document is shared with the corresponding sharing mode of permission for sharing the sharing mode of object for the sharing object.It is described preset
The corresponding relationship for sharing object and permission can be, for example, company external staff, such as co-development personnel A, client B, co-development
The permission of team C etc. is the first permission, the permission of company subordinate D, non-project participant E, project participant F, project team H etc.
For the second permission, the permission of company superior X, project participant Y, project team Z etc. are third permission.The preset sharing pair
The permission of elephant can be with the corresponding relationship for mode of sharing, for example, the corresponding sharing mode of the first permission is pdf sharing, the second power
Corresponding sharing mode is limited as html sharing, the corresponding sharing mode of third permission is json sharing.Then, for example, when sharing pair
When as " B ", determines that the permission for sharing object " B " is the first permission, determine the corresponding sharing mode of the first permission for pdf points
It enjoys, and it be to share the sharing mode of object " B " for " pdf sharing " that determination will share to sharing interface file P.
The acquisition module 23, for obtaining the content in platform current page according to the sharing mode.
Obtaining the content in platform current page according to the sharing mode includes: when the sharing mode is pdf sharing
When, obtain platform current display page;When the sharing mode is that html shares, platform current display page is obtained;Work as institute
State sharing mode be json share when, obtain platform current display page in interface document.
The generation module 24, for generating sharing contents according to the sharing mode and the content.
It is described that generate sharing contents according to the sharing mode and the content include: when the sharing mode is pdf points
When enjoying, the platform current display page is printed, is generated as the sharing contents of pdf file, or the platform is currently shown
Page print is pdf file, and is the sharing contents of chained address according to the pdf file generated.It is raw according to the pdf file
Sharing contents as chained address may include being uploaded to the pdf file on for example described platform to be generated as chained address
Sharing contents.
Sharing contents are generated according to the sharing mode and the content further include: when the sharing mode is html sharing
When, it determines the chained address of the platform current display page, is generated as the sharing contents of the chained address.Wherein, described
It include interface message in chained address.The interface message is the letter of interface described in the energy unique identification such as interface ID, interface name
Breath.
Sharing contents are generated according to the sharing mode and the content further include: when the sharing mode is json sharing
When, the interface document is converted into json data by the related application interface for calling the platform to provide, to be generated as json
The sharing contents of data.
The sharing module 25, for sending the sharing contents to sharing object.
It is described to share object send the sharing contents include: when the sharing contents are pdf file, by QQ,
The interactive softwares such as wechat send the sharing contents to object is shared, so that sharing object can be by the pdf Fileview institute
State the content of sharing, and cannot see other contents that do not share of interface document, can not to the content in the pdf file into
Row modification or editor etc..
It is described to send the sharing contents to sharing object further include: when the sharing contents are chained address, to pass through
The platform sends the sharing contents to object is shared.It can be by pdf pointed by the chained address to share object
Sharing contents described in Fileview, and cannot see other contents that do not share of interface document, it can not be in the pdf file
Content modify or edit.Or share object can be accessed by the interface message in the chained address it is described
Corresponding interface file in platform, to check all information of the interface document.
It is described to send the sharing contents to sharing object further include: when the sharing contents are json data, to pass through
The platform sends the sharing contents to object is shared, so that json data can be switched to front and back in project development by sharing object
Exploitation code required for engineer is held, and directly carries out subsequent exploitation using the exploitation code, or to the exploitation
Code carries out subsequent exploitation after modifying or editing.
The present apparatus, can simply and easily sharing interface file by platform sharing interface;Platform is provided with sharing choosing
, facilitate user to share interface;Make the demand for sharing properer user by a variety of sharing modes;Pass through pdf points
It enjoys so that shared content can be checked by sharing object;Shared by html so that the page can to share object with data separating
Check all information of corresponding interface file;The interface message in chained address provided when being shared by html shares object
Satisfactory interface document can be quickly found;Shared by json, sharing object can automatically generate according to json data
Corresponding exploitation code, to facilitate subsequent exploitation.
The above-mentioned integrated unit realized in the form of software function module, can store and computer-readable deposit at one
In storage media.Above-mentioned software function module is stored in a storage medium, including some instructions are with so that an electronics is set
Standby or processor (processor) executes the part of each embodiment the method for the present invention.
Embodiment three
Fig. 3 is the schematic diagram for the electronic equipment that the embodiment of the present invention three provides.
The electronic equipment 3 includes: computer readable storage medium 31, at least one processor 32 and is stored in described
In memory 31 and the computer program 33 that can be run at least one described processor 32.At least one described processor 32
The step in the above-mentioned interface sharing method embodiment based on big data is realized when executing the computer program 33.Alternatively, institute
State each module realized in above-mentioned interface sharing apparatus embodiment when at least one processor 32 executes the computer program 33
Function.
Illustratively, the computer program 33 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 31, and are executed by least one described processor 32, to complete this hair
It is bright.One or more of module/units can be the series of computation machine program instruction section that can complete specific function, this refers to
Enable section for describing implementation procedure of the computer program 33 in the electronic equipment 3.For example, the computer program 33
Can be divided into receiving module 21 shown in Fig. 2, share mode determining module 22, obtain module 23, generation module 24 and point
Module 25 is enjoyed, each module concrete function is referring to embodiment two.
The electronic equipment 3 can be any electronic product, for example, personal computer, tablet computer, intelligent hand
Machine, personal digital assistant (Personal Digital Assistant, PDA) etc..It will be understood by those skilled in the art that described
Schematic diagram 3 is only the example of electronic equipment 3, does not constitute the restriction to electronic equipment 3, may include more or more than illustrating
Few component perhaps combines certain components or different components, such as the electronic equipment 3 can also include input and output
Equipment, network access equipment, bus etc..
At least one described processor 32 can be central processing unit (Central Processing Unit, CPU),
It can also be other general processors, digital signal processor (Digital Signal Processor, DSP), dedicated integrated
Circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..The processor 32 can be microprocessor or the processor 32 is also possible to any conventional processor
Deng the processor 32 is the control centre of the electronic equipment 3, utilizes various interfaces and the entire electronic equipment 3 of connection
Various pieces.
The memory 31 can be used for storing the computer program 33 and/or module/unit, and the processor 32 passes through
Operation executes the computer program and/or module/unit being stored in the memory 31, and calls and be stored in memory
Data in 31 realize the various functions of the electronic equipment 3.The memory 31 can mainly include storing program area and storage
Data field, wherein storing program area can application program needed for storage program area, at least one function (for example sound plays
Function, image player function etc.) etc.;Storage data area, which can be stored, uses created data (such as sound according to electronic equipment 3
Frequency evidence, phone directory etc.) etc..In addition, memory 31 may include high-speed random access memory, it can also include non-volatile
Memory, such as hard disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital
(Secure Digital, SD) card, flash card (Flash Card), at least one disk memory, flush memory device or other
Volatile solid-state part.
If the integrated module/unit of the electronic equipment 3 is realized in the form of SFU software functional unit and as independent
Product when selling or using, can store in a computer readable storage medium.Based on this understanding, the present invention is real
All or part of the process in existing above-described embodiment method, can also instruct relevant hardware come complete by computer program
At the computer program can be stored in a computer readable storage medium, which is being executed by processor
When, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer program includes computer program code, described
Computer program code can be source code form, object identification code form, executable file or certain intermediate forms etc..The meter
Calculation machine readable medium may include: can carry the computer program code any entity or device, recording medium, USB flash disk,
Mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory
Device (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It needs to illustrate
It is that the content that the computer-readable medium includes can be fitted according to the requirement made laws in jurisdiction with patent practice
When increase and decrease, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium does not include electric carrier wave letter
Number and telecommunication signal.
In several embodiments provided by the present invention, it should be understood that disclosed electronic equipment and method, Ke Yitong
Other modes are crossed to realize.For example, electronic equipment embodiment described above is only schematical, for example, the unit
Division, only a kind of logical function partition, there may be another division manner in actual implementation.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in same treatment unit
It is that each unit physically exists alone, can also be integrated in same unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds software function module.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie
In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter
From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power
Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims
Variation is included in the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.This
Outside, it is clear that one word of " comprising " is not excluded for other units or, odd number is not excluded for plural number.The multiple units stated in system claims
Or device can also be implemented through software or hardware by a unit or device.
Finally it should be noted that the above examples are only used to illustrate the technical scheme of the present invention and are not limiting, although reference
Preferred embodiment describes the invention in detail, those skilled in the art should understand that, it can be to of the invention
Technical solution is modified or equivalent replacement, without departing from the spirit of the technical scheme of the invention range.
Claims (10)
1. a kind of interface sharing method based on big data, which is characterized in that the described method includes:
Receiving interface sharing files are requested, and include information and sharing to sharing interface file in the interface document sharing request
The information of object;
It is described according to the determining sharing mode by sharing interface sharing files to sharing object of the interface document sharing request
Sharing mode includes that pdf shares, html shares or json shares;
The content in platform current page is obtained according to the sharing mode;
Sharing contents are generated according to the sharing mode and the content;
The sharing contents are sent to the sharing object.
2. the method as described in claim 1, which is characterized in that further include to sharing interface in the interface document sharing request
The sharing mode of file is determined according to the interface document sharing request by point to sharing interface sharing files to sharing object
The mode of enjoying includes:
Determine by sharing interface sharing files to the sharings mode of sharing object in the interface document sharing request to
The sharing mode of sharing interface file.
3. the method as described in claim 1, which is characterized in that will be connect wait share according to the interface document sharing request determination
Mouthful sharing files include: to the sharing mode for sharing object
The sharing mode for sharing object is determined with the corresponding relationship for mode of sharing according to preset sharing object;
It determines the sharing mode to sharing interface sharing files to the sharing mode for sharing object for the sharing object.
4. the method as described in claim 1, which is characterized in that will be connect wait share according to the interface document sharing request determination
Mouthful sharing files include: to the sharing mode for sharing object
The permission for sharing object is determined with the corresponding relationship of permission according to preset sharing object;
According to the sharing corresponding with the determining sharing permission of object of the corresponding relationship of the mode of sharing of the preset permission for sharing object
Mode;
It determines corresponding point of permission to sharing interface sharing files to the sharing mode for sharing object for the sharing object
Enjoy mode.
5. the method as described in claim 1, which is characterized in that obtained in platform current page according to the sharing mode
Appearance includes:
When the sharing mode is that pdf shares, platform current display page is obtained;
When the sharing mode is that html shares, platform current display page is obtained;
When the sharing mode is that json shares, the interface document in platform current display page is obtained.
6. the method as described in claim 1, which is characterized in that generate sharing contents according to the sharing mode and the content
Include:
When the sharing mode is that pdf shares, the platform current display page is printed, is generated as in the sharing of pdf file
Hold, or platform current display page is printed into pdf file, and is the sharing of chained address according to the pdf file generated
Content;
When the sharing mode is that html shares, determines the chained address of the platform current display page, be generated as described
The sharing contents of chained address;It wherein, include interface message in the chained address;
When the sharing mode is that json shares, interface document is converted into json number by the interface for calling the platform to provide
According to be generated as the sharing contents of json data.
7. the method as described in claim 1, which is characterized in that include: to the object transmission sharing contents are shared
When the sharing contents are pdf file, the sharing contents are sent to object is shared by interactive software;
When the sharing contents are chained address, the sharing contents are sent to object is shared by the platform;
When the sharing contents are json data, the sharing contents are sent to object is shared by the platform.
8. a kind of interface sharing apparatus based on big data, which is characterized in that described device includes:
Receiving module is requested for receiving interface sharing files, includes to sharing interface text in the interface document sharing request
The information of part and the information for sharing object;
Sharing mode determining module is divided for that will be given to sharing interface sharing files according to the interface document sharing request determination
The sharing mode of object is enjoyed, the sharing mode includes that pdf shares, html shares or json shares;
Module is obtained, for obtaining the content in platform current page according to the sharing mode;
Generation module, for generating sharing contents according to the sharing mode and the content;
Sharing module, for sending the sharing contents to the sharing object.
9. a kind of electronic equipment, which is characterized in that the electronic equipment includes processor and memory, and the processor is for holding
It is realized when at least one instruction stored in the row memory as claimed in any of claims 1 to 7 in one of claims based on big number
According to interface sharing method.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has at least one
Instruction, at least one described instruction are executed by processor to realize as claimed in any of claims 1 to 7 in one of claims based on big number
According to interface sharing method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811180759.7A CN109597947A (en) | 2018-10-09 | 2018-10-09 | Interface sharing method, device, electronic equipment and storage medium based on big data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811180759.7A CN109597947A (en) | 2018-10-09 | 2018-10-09 | Interface sharing method, device, electronic equipment and storage medium based on big data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109597947A true CN109597947A (en) | 2019-04-09 |
Family
ID=65957957
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811180759.7A Pending CN109597947A (en) | 2018-10-09 | 2018-10-09 | Interface sharing method, device, electronic equipment and storage medium based on big data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109597947A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105975393A (en) * | 2016-05-04 | 2016-09-28 | 腾讯科技(深圳)有限公司 | Page display detection method and system |
CN106469094A (en) * | 2016-09-05 | 2017-03-01 | 维沃移动通信有限公司 | A kind of Word message sharing method and mobile terminal |
CN106815316A (en) * | 2016-12-23 | 2017-06-09 | 北京奇虎科技有限公司 | Method, device and mobile terminal that content of pages is shared |
CN106951270A (en) * | 2017-04-06 | 2017-07-14 | 腾讯科技(深圳)有限公司 | A kind of code process method, system and server |
CN107301204A (en) * | 2017-05-27 | 2017-10-27 | 深圳市金立通信设备有限公司 | A kind of method and terminal for sharing file |
CN107480551A (en) * | 2017-07-06 | 2017-12-15 | 网易(杭州)网络有限公司 | A kind of file management method and device |
CN107943921A (en) * | 2017-11-21 | 2018-04-20 | 腾讯数码(天津)有限公司 | Page sharing information generation method, device, computer equipment and storage medium |
-
2018
- 2018-10-09 CN CN201811180759.7A patent/CN109597947A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105975393A (en) * | 2016-05-04 | 2016-09-28 | 腾讯科技(深圳)有限公司 | Page display detection method and system |
CN106469094A (en) * | 2016-09-05 | 2017-03-01 | 维沃移动通信有限公司 | A kind of Word message sharing method and mobile terminal |
CN106815316A (en) * | 2016-12-23 | 2017-06-09 | 北京奇虎科技有限公司 | Method, device and mobile terminal that content of pages is shared |
CN106951270A (en) * | 2017-04-06 | 2017-07-14 | 腾讯科技(深圳)有限公司 | A kind of code process method, system and server |
CN107301204A (en) * | 2017-05-27 | 2017-10-27 | 深圳市金立通信设备有限公司 | A kind of method and terminal for sharing file |
CN107480551A (en) * | 2017-07-06 | 2017-12-15 | 网易(杭州)网络有限公司 | A kind of file management method and device |
CN107943921A (en) * | 2017-11-21 | 2018-04-20 | 腾讯数码(天津)有限公司 | Page sharing information generation method, device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109614102A (en) | Code automatic generation method, device, electronic equipment and storage medium | |
CN109101812A (en) | A kind of parameter verification method, apparatus, computing device and storage medium | |
CN110110543A (en) | Data processing method, device, server and storage medium | |
CN109766097A (en) | UI generation method, device, electronic equipment and computer readable storage medium | |
CN108027905A (en) | Reservation management terminal, reservation management method and reservation management program | |
CN105378662A (en) | Bundle package generation | |
WO2015030214A1 (en) | Information processing device, information processing method and program | |
CN109815448B (en) | Slide generation method and device | |
CN113822974A (en) | Method, apparatus, electronic device, medium, and program for generating avatar | |
JP6599065B1 (en) | Machine learning model co-creation system, machine learning model co-creation method, and program | |
CN109697083A (en) | Fixed point accelerated method, device, electronic equipment and the storage medium of data | |
CN106656752A (en) | Contact person grouping method and terminal | |
CN109636460A (en) | A kind of method for processing business, device, equipment and storage medium | |
CN107426595A (en) | Interface navigation data handling system | |
US10621656B2 (en) | Information processing apparatus and information processing method for division of contribution | |
CN109597947A (en) | Interface sharing method, device, electronic equipment and storage medium based on big data | |
CN110852701A (en) | Product demand management method, device and system | |
JP5547917B2 (en) | Content generation / distribution system for portable information terminals | |
CN108667647A (en) | A kind of setting method of device parameter, equipment and server | |
CN112650763A (en) | Configuration method of product quota, related equipment and storage medium | |
CN109657179A (en) | A kind of method for processing business, system and storage medium | |
JP2021117894A (en) | Program and workshop system | |
CN111552715A (en) | User query method and device | |
CN109522492A (en) | A kind of webpage content display control method, device, equipment and storage medium | |
CN109308302A (en) | Data determination method, device, electronic equipment and computer readable storage medium |
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 |