CN106161097A - A kind of method configuring data - Google Patents
A kind of method configuring data Download PDFInfo
- Publication number
- CN106161097A CN106161097A CN201610576633.6A CN201610576633A CN106161097A CN 106161097 A CN106161097 A CN 106161097A CN 201610576633 A CN201610576633 A CN 201610576633A CN 106161097 A CN106161097 A CN 106161097A
- Authority
- CN
- China
- Prior art keywords
- data
- configuration
- service end
- client
- configuration file
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a kind of method configuring data, be applied to the management of website, wherein, one at least one client is provided, and the service end being connected with at least one client, a configuration file is uploaded to service end by preset format by client, and configuration file is with in order to configuration service end;The method of configuration data also includes: step S1, client send a request of data by calling a data-interface information to service end;According to request of data, step S2, service end judge that in configuration file active client is to have user to configure authority, if without, exit;Data in configuration file are configured by step S3, service end according to request of data.Having the beneficial effects that of its technical scheme, can facilitate client to configure website easily, simple to operate, overcomes defect complicated by backstage configuration website operation in prior art.
Description
Technical field
The present invention relates to communication technical field, particularly relate to a kind of method configuring data.
Background technology
Website (Website) starts to refer to, on the internet according to certain rule, use HTML (standard generalized markup language
An application under Yan) etc. tool making for showing the set of certain content related web page.Briefly, website is a kind of
Tool of communications, user can be issued by website and oneself want disclosed information, or utilize a website to what offer was correlated with
Network service and during the configuration of website, common operation is the configuration being carried out whole website by the backstage of website, net
The backstage stood i.e. realizes the system of the functions such as web editor content, amendment, and this by the way of backstage configures, and operation is multiple
Miscellaneous, and allocative efficiency is the highest.
Summary of the invention
For the problems referred to above of website configuration, existing provide a kind of purport simple to operate to website configuration and allocative efficiency more
The method of high configuration data.
Concrete technical scheme is as follows:
A kind of method configuring data, is applied to the management of website, wherein, it is provided that at least one client, Yi Jiyu
The service end that at least one described client connects, a configuration file is uploaded to described clothes by preset format by described client
Business end, described configuration file is with in order to configure described service end;
The method of described configuration data also includes:
Step S1, described client send a request of data by calling a data-interface information to described service end;
According to described request of data, step S2, described service end judge that in described configuration file presently described client is
The no user of having configures authority, if otherwise exiting;
Data in described configuration file are configured by step S3, described service end according to described request of data.
Preferably, described configuration file is database file.
Preferably, described preset format is based on json form.
Preferably, described data-interface information is based on json interpretive program.
Preferably, described website provides a communication module, and in described step S1, described client passes through described communication module
Form described request of data, and by calling described data-interface information, described request of data is sent to described service end.
Preferably, described communication module ajax communication module.
Preferably, described configuration file is preserved the Standard User information of described client, in described step S2, including
Following steps:
Described request of data, after the described request of data receiving client, is solved by step S21, institute's service end
Analysis, to obtain the user profile in described request of data;
Step S2, described service end are by described user profile and the described Standard User letter being stored in described configuration file
Breath mates, and has obtained matching result;
Step S3, the most described client as consistent in described matching result have configure as described in configuration file as described in user join
Putting authority, as inconsistent, the described user that described client is configured without described configuration file configures authority.
Preferably, described configuration file includes that multiple configuration item, described request of data include and described configuration item pair
The configuration information answered;
In described step S3 further comprising the steps of:
Described configuration item in described configuration file is joined by step S31, described service end according to described configuration information
Put;
Described website is configured by step S32, described service end by loading the described configuration file configured.
Technique scheme has the advantage that or beneficial effect: client can be facilitated to join website easily
Put, simple to operate, overcome defect complicated by backstage configuration website operation in prior art.
Accompanying drawing explanation
With reference to appended accompanying drawing, more fully to describe embodiments of the invention.But, appended accompanying drawing be merely to illustrate and
Illustrate, be not intended that limitation of the scope of the invention.
Fig. 1 is the schematic diagram of a kind of embodiment of the method configuring data of the present invention;
Fig. 2 is in a kind of embodiment of the method configuring data of the present invention, it is judged that whether the user of client has user behaviour
Make the schematic diagram of authority;
Fig. 3 is in a kind of embodiment of the method configuring data of the present invention, by the schematic diagram of request of data configuration website.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on
Embodiment in the present invention, those of ordinary skill in the art obtained on the premise of not making creative work all its
His embodiment, broadly falls into the scope of protection of the invention.
It should be noted that in the case of not conflicting, the embodiment in the present invention and the feature in embodiment can phases
Combination mutually.
The invention will be further described with specific embodiment below in conjunction with the accompanying drawings, but not as limiting to the invention.
The present invention includes a kind of method configuring data.
As it is shown in figure 1, the embodiment of a kind of method configuring data, it is applied to the management of website, wherein, it is provided that one at least
One client, and the service end being connected with at least one client, a configuration file is passed through on preset format by client
Reaching service end, configuration file is with in order to configuration service end;
As it is shown in figure 1, the method for configuration data also includes:
Step S1, client send a request of data by calling a data-interface information to service end;
According to request of data, step S2, service end judge in configuration file whether active client has user to configure power
Limit, if otherwise exiting;
Data in configuration file are configured by step S3, service end according to request of data.
In technique scheme, the user of client realizes the configuration to website by the front end of website for convenience, can
Being uploaded a configuration file in advance by client to service end, after configuration file is uploaded successfully, client is if desired for by joining
Put file and realize the configuration to website, client can be passed through in the front end of website by calling data-interface information by data
Request sends to client, and wherein request of data can include the data configuring configuration file, when service end receives visitor
After the request of data that family end sends, can judge in configuration file according to request of data, send the use of the client of request of data
Whether family is for authority, without authority, then and the request of data configuration to configuration file of service end refusal, recognizing by authority
Card ensure that the safety of client configuration website, after the user of client has the authority of configuration website, service end according to
Request of data realizes the configuration to configuration file, and then realizes the configuration to website by the data in configuration file.
In one preferably embodiment, configuration file is database file.
In one preferably embodiment, preset format is based on json form, JSON (JavaScriptObject
Notation) it is the data interchange format of a kind of lightweight.
In one preferably embodiment, data-interface information is based on json interpretive program.
In technique scheme, the request of data that client sends, need configuration file file to accurately identify, the most logical
Cross Json interpretive program, the request of data formed is sent to the configuration file of service end.
In one preferably embodiment, website provides a communication module, and in step S1, client passes through communication module
Form request of data, and by calling data-interface information, request of data is sent to service end.
In one preferably embodiment, communication module ajax communication module.
In technique scheme, operated in the front end of website by client, ajax communication module will be formed
Request of data is called data-interface information and request of data is sent to service end, and service end realizes configuration literary composition according to request of data
Data in part configure.
In one preferably embodiment, configuration file is preserved the Standard User information of client, in step S2,
As in figure 2 it is shown, comprise the following steps:
Request of data, after the request of data receiving client, is resolved by step S21, institute's service end, to obtain
User profile in request of data;
User profile is mated by step S2, service end with the Standard User information being stored in configuration file, obtains
Obtain matching result;
The user that step S3, then client as consistent in matching result have configuration configuration file configures authority, as inconsistent
Then client is configured without the user of configuration file and configures authority.
In technique scheme, service end is by resolving request of data, and then the parsing that can obtain according to parsing
Result judges whether the user of client has the user of the configuration file in configuration service end and configure authority, as having user
During configuration authority, then continue, according to the data in analysis result, configuration file configures operation further.
In one preferably embodiment, configuration file includes multiple configuration item, and request of data includes and configuration
The configuration information that item is corresponding;
As it is shown on figure 3, further comprising the steps of in step S3:
Configuration item in configuration file is configured by step S31, service end according to configuration information;
Website is configured by step S32, service end by loading the configuration file configured.
In a particular embodiment, the user of client can be asked by the data of operation formation configuration website in the foreground of website
Asking, wherein request of data can be called interface message based on Json interpretive program by request of data transmission extremely by ajax communication module
Service end, the request of data received is resolved by service end, and then obtains the user profile in request of data, and user is believed
Breath is compared with the Standard User information in configuration file, if comparison result is consistent, the user of client now has
The user of configuration website configures authority;
Above-mentioned configuration file is database file, and the user having configuration website in above-mentioned client configures authority
After, the configuration item in configuration file, by resolving request of data, is configured, right by service end by the numerical value in request of data
After configuration item in configuration file is configured by the numerical value in request of data, service end passes through loading configuration file,
Realize the related data of website is configured.
The foregoing is only preferred embodiment of the present invention, not thereby limit embodiments of the present invention and protection model
Enclose, to those skilled in the art, it should can appreciate that done by all utilization description of the invention and diagramatic content
Scheme obtained by equivalent and obvious change, all should be included in protection scope of the present invention.
Claims (8)
1. the method configuring data, is applied to the management of website, it is characterised in that provide at least one client, with
And the service end being connected with client at least one described, a configuration file is uploaded to institute by preset format by described client
Stating service end, described configuration file is with in order to configure described service end;
The method of described configuration data also includes:
Step S1, described client send a request of data by calling a data-interface information to described service end;
Step S2, described service end judge whether presently described client has according to described request of data in described configuration file
User configures authority, if otherwise exiting;
Data in described configuration file are configured by step S3, described service end according to described request of data.
The method of configuration data the most according to claim 1, it is characterised in that described configuration file is database file.
The method of configuration data the most according to claim 1, it is characterised in that described preset format is based on json lattice
Formula.
The method of configuration data the most according to claim 1, it is characterised in that described data-interface information is based on json
Interpretive program.
The method of configuration data the most according to claim 1, it is characterised in that described website provides a communication module, institute
Stating in step S1, described client forms described request of data by described communication module, and by calling described data-interface
Described request of data is sent to described service end by information.
The method of configuration data the most according to claim 5, it is characterised in that described communication module ajax communication module.
The method of configuration data the most according to claim 1, it is characterised in that preserve described visitor in described configuration file
The Standard User information of family end, in described step S2, comprises the following steps:
Described request of data, after the described request of data receiving client, is resolved by step S21, institute's service end, with
Obtain the user profile in described request of data;
Described user profile is entered by step S2, described service end with the described Standard User information being stored in described configuration file
Row coupling, has obtained matching result;
Step S3, the most described client as consistent in described matching result have configure as described in configuration file as described in user configure power
Limit, as inconsistent, the described user that described client is configured without described configuration file configures authority.
The method of configuration data the most according to claim 2, it is characterised in that described configuration file includes multiple configuration
, described request of data includes the configuration information corresponding with described configuration item;
In described step S3 further comprising the steps of:
Described configuration item in described configuration file is configured by step S31, described service end according to described configuration information;
Described website is configured by step S32, described service end by loading the described configuration file configured.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610576633.6A CN106161097A (en) | 2016-07-20 | 2016-07-20 | A kind of method configuring data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610576633.6A CN106161097A (en) | 2016-07-20 | 2016-07-20 | A kind of method configuring data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106161097A true CN106161097A (en) | 2016-11-23 |
Family
ID=58059381
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610576633.6A Pending CN106161097A (en) | 2016-07-20 | 2016-07-20 | A kind of method configuring data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106161097A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020015191A1 (en) * | 2018-07-18 | 2020-01-23 | 平安科技(深圳)有限公司 | Business rule releasing and managing method, electronic device and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101593207A (en) * | 2009-07-06 | 2009-12-02 | 孟智平 | The method and system of a kind of structure and generation webpage |
US20100083102A1 (en) * | 2008-09-26 | 2010-04-01 | Juan Carlos Jimenez | Online Content Editing of Dynamic Websites |
CN102193933A (en) * | 2010-03-10 | 2011-09-21 | 北大方正集团有限公司 | Method and system for webpage editing |
CN103634271A (en) * | 2012-08-21 | 2014-03-12 | 腾讯科技(深圳)有限公司 | An authority control system, an apparatus and an authority control method for a network request |
CN104965691A (en) * | 2014-04-18 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Method, apparatus and system for configuring page elements of a webpage |
-
2016
- 2016-07-20 CN CN201610576633.6A patent/CN106161097A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100083102A1 (en) * | 2008-09-26 | 2010-04-01 | Juan Carlos Jimenez | Online Content Editing of Dynamic Websites |
CN101593207A (en) * | 2009-07-06 | 2009-12-02 | 孟智平 | The method and system of a kind of structure and generation webpage |
CN102193933A (en) * | 2010-03-10 | 2011-09-21 | 北大方正集团有限公司 | Method and system for webpage editing |
CN103634271A (en) * | 2012-08-21 | 2014-03-12 | 腾讯科技(深圳)有限公司 | An authority control system, an apparatus and an authority control method for a network request |
CN104965691A (en) * | 2014-04-18 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Method, apparatus and system for configuring page elements of a webpage |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020015191A1 (en) * | 2018-07-18 | 2020-01-23 | 平安科技(深圳)有限公司 | Business rule releasing and managing method, electronic device and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103179133B (en) | Based on the client of entity class and the method for server communication | |
CN105809299A (en) | Processing method of notification service of service flow management and service flow management engine | |
CN105049256B (en) | A kind of general self defined interface message realization method and system | |
CN103731435A (en) | Method and system for implementing social networking group member identity verification mechanism | |
CN104615586A (en) | Real-time cooperative editing system | |
CN108829381A (en) | Data visualization method and device | |
CN102402378A (en) | Method and device for displaying message | |
CN104331290A (en) | Resource type management and page display method and system | |
CN106354748A (en) | Webpage generation method and device | |
CN105262670A (en) | User group creating method and equipment | |
CN103605609A (en) | Automatic test framework applicable to cloud computing | |
CN105141502A (en) | Method and device for managing instant communication process | |
CN107145598A (en) | two-dimensional code associated page method and terminal | |
CN103905507A (en) | Service information recommendation system and service information recommendation method | |
DE10220556B4 (en) | Remote composition of messages for distributed applications | |
WO2017045473A1 (en) | Business process operation method and apparatus | |
CN103067511B (en) | A kind of control method of HTTP request process | |
CN106982128A (en) | Network community construction method | |
CN106161097A (en) | A kind of method configuring data | |
CN104580438A (en) | Method for co-browsing and editing webpage by using more than two intelligent terminals | |
CN105868170A (en) | Method for generating industrial data report in server | |
CN103401685A (en) | Mobile terminal and information processing method thereof | |
CN103117892B (en) | Add method and the device of website visiting record | |
CN104317781A (en) | Sensitive word editor | |
CN104811479A (en) | Virtual network node establishing method based on forwarding and control separation protocol |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161123 |