CN115309416A - Data processing method, device and storage medium - Google Patents

Data processing method, device and storage medium Download PDF

Info

Publication number
CN115309416A
CN115309416A CN202110502818.3A CN202110502818A CN115309416A CN 115309416 A CN115309416 A CN 115309416A CN 202110502818 A CN202110502818 A CN 202110502818A CN 115309416 A CN115309416 A CN 115309416A
Authority
CN
China
Prior art keywords
data
update
service
updating
scene
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110502818.3A
Other languages
Chinese (zh)
Inventor
欧霄
郭润增
黄东庆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202110502818.3A priority Critical patent/CN115309416A/en
Publication of CN115309416A publication Critical patent/CN115309416A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A data processing method, a device and a storage medium are provided, the method comprises the following steps: receiving a data updating request sent by a service device through a calling data updating interface, wherein the data updating request comprises a head parameter and a content to be updated, and the head parameter is used for indicating a target service requesting data updating on the service device and a corresponding target scene; checking the updating authority of the target service according to the head parameters and the content to be updated; if the verification is passed, updating the field corresponding to the target scene by using the content to be updated, and generating an update record corresponding to the data update request, so that the complexity of authority management and control of a service party can be reduced through a unified data update interface, accurate and fine-grained authority management and control can be realized, and the expandability is strong.

Description

Data processing method, device and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data processing method and apparatus, and a storage medium.
Background
Data is a companion that any service necessarily exists, and if the service equipment is not subjected to authority control during updating, each service equipment can modify the data, so that the safety of the data is not guaranteed.
When authority management and control are performed on service equipment, if a narrow interface mode is used, different interfaces need to be opened for different service equipment, updating interfaces cannot be folded and combined due to different updating requirements of different services and different possibility of future expansion, the number of the interfaces is increased along with the complexity of the services, and meanwhile, when authority verification is performed on fields to be updated, whether each interface contains the fields to be updated needs to be checked, the same modification is made, and omission and errors are prone to occur. Therefore, how to reduce the complexity of the authority control of the service party and improve the extensibility in the authority control becomes an urgent priority for the authority control.
Disclosure of Invention
The embodiment of the application provides a data processing method, a data processing device and a storage medium, which can reduce the complexity of authority control of a business party through a unified data updating interface, realize accurate and fine-grained authority control and have strong expandability.
In one aspect, an embodiment of the present application provides a data processing method, where the method includes:
receiving a data updating request sent by a service device through a calling data updating interface, wherein the data updating request comprises a head parameter and a content to be updated, and the head parameter is used for indicating a target service requesting data updating on the service device and a corresponding target scene;
checking the updating authority of the target service according to the head parameters and the content to be updated;
and if the verification is passed, updating the field corresponding to the target scene by using the content to be updated, and generating an update record corresponding to the data update request.
In another aspect, an embodiment of the present application provides a data processing apparatus, where the apparatus includes:
the system comprises a receiving module, a data updating module and a processing module, wherein the receiving module is used for receiving a data updating request sent by a service device through calling a data updating interface, the data updating request comprises a head parameter and a content to be updated, and the head parameter is used for indicating a target service requesting for updating data on the service device and a corresponding target scene;
the processing module is used for verifying the updating authority of the target service according to the head parameters and the content to be updated;
and the processing module is further configured to update the field corresponding to the target scene by using the content to be updated and generate an update record corresponding to the data update request if the verification is passed.
Accordingly, an embodiment of the present application provides a computer device, which includes a processor, a communication interface, and a memory, where the processor, the communication interface, and the memory are connected to each other, where the memory stores executable program codes, and the processor is configured to call the executable program codes to execute the data processing method according to any one of the foregoing possible implementation manners.
Accordingly, embodiments of the present application provide a computer-readable storage medium, which stores a computer program, where the processor executes a program related to the data processing method described in any one of the foregoing possible implementation manners.
Accordingly, embodiments of the present application provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to cause the computer device to execute the data processing method according to any one of the possible implementation manners.
In the embodiment of the application, a data updating request sent by a service device through calling a data updating interface can be received, wherein the data updating request comprises a header parameter and a content to be updated, the updating authority of a target service is verified according to the header parameter and the content to be updated, when the verification is passed, a field corresponding to a target scene is updated by using the content to be updated, an updating record corresponding to the data updating request is generated, the complexity of authority management and control of a service party can be reduced through a unified data updating interface, meanwhile, accurate and fine-grained authority management and control are achieved, and the expandability is strong.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a block diagram of a data processing system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 3 is a schematic flow chart of another data processing method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another data processing method according to an embodiment of the present application;
fig. 5 is a schematic flow chart of another data processing method according to an embodiment of the present application;
fig. 6 is a schematic flowchart of another data processing method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Cloud technology refers to a hosting technology for unifying serial resources such as hardware, software, network and the like in a wide area network or a local area network to realize calculation, storage, processing and sharing of data.
Database (Database), which can be regarded as an electronic file cabinet in short, a place for storing electronic files, a user can add, query, update, delete, etc. to data in files. A "database" is a collection of data that is stored together in a manner that can be shared by multiple users, has as little redundancy as possible, and is independent of the application. A Database Management System (DBMS) is a computer software System designed for managing a Database, and generally has basic functions such as storage, interception, security assurance, and backup. The database management system may classify the database according to the database model it supports, such as relational, XML (Extensible Markup Language); or classified according to the type of computer supported, e.g., server cluster, mobile phone; or classified according to the Query Language used, such as SQL (Structured Query Language, XQuery); or by performance impulse emphasis, e.g., maximum size, maximum operating speed; or other classification schemes. Regardless of the manner of classification used, some DBMSs are capable of supporting multiple query languages across categories, for example, simultaneously.
With research and progress of cloud technology, research and application of the cloud technology are developed in multiple fields, and the plug-in processing method in the embodiment of the application relates to technologies such as database and database management in the cloud technology, and is specifically described by the following embodiments.
In order to better understand the data processing method and apparatus provided in the embodiments of the present application, a description is first given below of a framework of a data processing system to which the embodiments of the present application are applicable. Referring to fig. 1, fig. 1 is a schematic diagram of a data processing system according to an embodiment of the present disclosure. As shown in fig. 1, the data processing system may include a service device 101, a server 102, a database 103, and a management device 104, and the service device 101, the server 102, the database 103, and the management device 104 may be connected via a network, such as a wireless network. The service device 101, the server 102, the database 103, and the management device 104 may be one or more, and the present application is not limited thereto.
The service device 101 is a device for processing various services in a Network, where the device 101 may be a computer device installed with a service application program, and the computer device may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud services, a cloud database, cloud computing, a cloud function, cloud storage, network services, cloud communication, middleware services, domain name services, security services, a Content Delivery Network (CDN), and a big data and artificial intelligence platform.
The server 102 may be an independent physical server, may also be a server cluster or a distributed system formed by a plurality of physical servers, and may also be a cloud server that provides basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, content Delivery Network (CDN), big data, and an artificial intelligence platform.
The database 103 may be a distributed database, such as a MySql database, tcaplus database, or a data warehouse, for example, which is not limited in this application. Among other things, a Data Warehouse (DW) is a system for reporting and Data analysis, which is a central repository of integrated Data from one or more disparate sources. The data warehouse stores current and historical data together for creating an analysis report for the entire business.
The management device 104 is a device for sending an update record query request, and may be a smart tv, a handheld device (e.g., a smartphone and a tablet computer) with a wireless communication function, a computing device (e.g., a Personal Computer (PC), an in-vehicle device, a wearable device, or other intelligent apparatuses, and the like, but is not limited thereto.
In one embodiment, the server 102 receives a data update request sent by the business apparatus 101 by invoking a data update interface, where the data update request includes a header parameter and a content to be updated, verifies an update authority of a target service according to the header parameter and the content to be updated, if the verification passes, updates a field corresponding to a target scene by using the content to be updated, and generates an update record corresponding to the data update request, and stores the update record in the database 103, so that the management apparatus 104 can obtain the update record from the database 103 by using an update record query request, and can reduce complexity of authority management and control of a business party by using a unified data update interface, and at the same time, accurate and fine-grained authority management and control are implemented, and extensibility is strong.
In an embodiment, the service device 101, the server 102, the database 103, and the management device 104 may all be used as nodes on a blockchain, and data such as header parameters, content to be updated, fields corresponding to a target scene, and update records may all be stored on the blockchain.
It is to be understood that the structural schematic diagram of the system described in one or more embodiments of the present application is for more clearly illustrating the technical solution of the embodiment of the present application, and does not constitute a limitation to the technical solution provided in the embodiment of the present application, and as a person having ordinary skill in the art knows, along with the evolution of the system architecture and the appearance of a new service scenario, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
Referring to fig. 2, fig. 2 provides a flow chart of a data processing method, which is illustrated by applying the method to the server 102 in fig. 1, and includes the following steps:
s201, receiving a data updating request sent by a service device through a calling data updating interface, wherein the data updating request comprises a head parameter and a content to be updated, and the head parameter is used for indicating a target service requesting for updating data on the service device and a corresponding target scene.
The present application does not limit this, the scenario generally indicates a function of the service device, such as the function is to change an avatar, change personal information, and the like, and one service generally may provide one or more functions, and then one service generally includes one or more scenarios. The target service and target scenario indicated by the header parameters may be used to determine which service is performing the data update for what scenario.
Specifically, when the service device calls the data update interface, the server judges whether a data update request of the service device includes a header parameter and a content to be updated, receives the data update request sent by the service device when the data update request includes the header parameter and the content to be updated, and determines that the service device does not have an update permission when the data update request does not include the header parameter, and sends a prompt of data update failure to the service device.
S202, verifying the updating authority of the target service according to the head parameters and the content to be updated.
Specifically, the server determines the update authority of the target service by using the scene identifier of the target scene and the service identifier of the target service, when the update authority is provided, the authorized update field is determined according to the scene identifier, when the authorized update field includes the field to be updated in the content to be updated, the verification is determined to be passed, and when the field to be updated does not belong to the authorized update field, the verification is determined to be not passed.
And S203, if the verification is passed, updating the field corresponding to the target scene by using the content to be updated, and generating an update record corresponding to the data update request.
Specifically, when the verification passes, the server updates the field corresponding to the target scene by using the data corresponding to the field to be updated in the content to be updated, for example, the field to be updated is a changed avatar, and then updates the avatar in the target scene of the service device by using the avatar corresponding to the content to be updated, and further, an update record corresponding to the data update request may be generated by using the content to be updated and the header parameter included in the data update request.
In the embodiment of the application, a server receives a data updating request sent by a service device through a calling data updating interface, wherein the data updating request comprises a header parameter and a content to be updated, the updating authority of a target service is verified according to the header parameter and the content to be updated, if the verification is passed, a field corresponding to a target scene is updated by using the content to be updated, and an updating record corresponding to the data updating request is generated.
In one embodiment, as shown in fig. 3, before receiving a data update request sent by a service device by calling a data update interface, the method further includes the following steps:
s301, receiving an update permission configuration request sent by the service equipment, wherein the update permission configuration request carries at least one field of data update and a service identifier of a target service.
Specifically, when the service device has not accessed the data update interface, it may receive an update permission configuration request sent by the service device, where the update permission configuration request includes at least one field for data update and a service identifier of a target service, and the at least one field may be a field in which data update is required for any scene in the service device, for example, when the service device needs to update personal information, the at least one field may be a nickname, an age, a gender, a head portrait, and the like, and the target service is a service capable of updating the at least one field.
S302, scene identification of a target scene set for the updating authority configuration request is obtained.
In an embodiment, the update manager determines, according to at least one field carried in the update permission configuration request, a scene identifier of a corresponding target scene, where the scene identifier may be a number or a letter, and the like, and the application does not limit this, and if the at least one field carried in the update permission configuration request is a nickname, an age, a gender, an avatar, and the like, it may be determined that the corresponding target scene is changed to personal information, and a scene identifier of the target scene is established, for example, 1 or a, and then the scene identifier corresponding to the personal information is changed to 1 or a.
In a feasible embodiment, the scene identifier of the corresponding target scene may be determined by using at least one field carried according to a preset policy, and if the at least one field includes a nickname, an age, a gender, an avatar, or the like, it is determined that the target scene changes personal information, the scene identifier corresponding to the target scene is determined by using a predefined scene mapping table, and a mapping relationship between the scene identifier and the scene description is determined in the scene mapping table.
S303, taking the at least one field as an authorization updating field corresponding to the scene identifier of the target scene.
Specifically, after determining the scene identifier of the target scene set by the update permission configuration request, at least one field carried in the update permission configuration request may be used as an authorized update field corresponding to the scene identifier of the target scene, or may be used as an authorized update field corresponding to the scene identifier of the target scene after the update manager sets the update permission for one or more of the at least one field.
S304, creating a mapping relation between the scene identification of the target scene and the service identification of the target service.
S305, sending the scene identification of the target scene to the service equipment.
The scene identifier of the target scene may be used as a header parameter in the data update request when the service device sends the data update request, and is used to check the update permission of the service device.
By the embodiment of the application, the scene identifier of the target scene corresponding to the at least one field, the authorized updating field corresponding to the scene identifier and the mapping relation between the scene identifier and the service identifier of the target service are set aiming at the target service and the at least one field carried in the updating authority configuration request sent by the service equipment, so that the updating authority of the service equipment is verified.
Referring to fig. 4, fig. 4 provides a flow chart of another data processing method, which is illustrated by applying the method to the server 102 in fig. 1, and includes the following steps:
s401, receiving a data updating request sent by a service device through a calling data updating interface, wherein the data updating request comprises a head parameter and a content to be updated, and the head parameter is used for indicating a target service requesting data updating on the service device and a corresponding target scene.
For specific implementation of S401, reference may be made to related description of S201 in the foregoing embodiment, and details are not described here again.
In one embodiment, before receiving a data update request sent by a service device by calling a data update interface, the method further includes: and setting the uniform configuration parameters of the data updating interface and sending the uniform configuration parameters to the service equipment.
The unified configuration parameters comprise fields of the head parameters and fields of contents to be updated, the unified configuration parameters are sent to the service equipment, and when the service equipment sends a data updating request, the head parameters and the contents to be updated are carried in the data updating request according to the unified configuration fields.
In one embodiment, when receiving a data update request sent by a service device by calling a data update interface, a uniform configuration parameter set for the data update interface is equivalent to providing a wide update interface for the service device, and the wide update interface can be used for performing a preliminary control on an update permission of the service device.
S402, if the service identifier and the scene identifier have a mapping relation, determining an authorized updating field according to the scene identifier of the target scene, and determining a field to be updated according to the content to be updated.
Specifically, although the service identifier and the scene identifier included in the header parameter are used for preliminary management and control (i.e., whether both the service identifier and the scene identifier exist is determined), in order to prevent a situation that the service does not have a data updating right for a certain scene, whether a mapping relationship exists between the service identifier and the scene identifier is further determined, when the mapping relationship exists between the service identifier and the scene identifier, an authorized updating field is determined according to the scene identifier of the target scene, and a field to be updated is determined according to the content to be updated.
S403, inquiring whether the authorization updating field comprises the field to be updated.
S404, if the authorization updating field comprises the field to be updated, determining that the updating authority of the target service passes the verification.
Specifically, if the authorized updating field comprises a field to be updated, the updating permission of the target service is determined to pass the verification; and if the field in the field to be updated does not belong to the authorized updating field, determining that the updating authority check of the target service is not passed.
And S405, if the verification is passed, updating the field corresponding to the target scene by using the content to be updated, and generating an update record corresponding to the data update request.
Specifically, when the verification is passed, the server updates the field corresponding to the target scene by using the data corresponding to the field to be updated in the content to be updated, and generates an update record corresponding to the data update request by using the content to be updated and the header parameter included in the data update request.
According to the embodiment of the application, the server receives a data updating request sent by the business equipment through calling the data updating interface, wherein the data updating request comprises the head parameters and the content to be updated, the updating authority of the target service is verified according to the head parameters and the content to be updated, if the verification is passed, the fields corresponding to the target scene are updated through the content to be updated, the updating record corresponding to the data updating request is generated, the complexity of authority control of a business side can be reduced through the unified data updating interface, meanwhile, accurate and fine-grained authority control is achieved, and the expandability is strong.
In one embodiment, generating an update record corresponding to the data update request includes: and acquiring data corresponding to the record field, performing structuring processing on the data corresponding to the record field to generate a data structured update record, and storing the data structured update record in a database.
In one embodiment, the record field includes: one or more of an update event name, a service identification, a scene description of a scene identification, a device identification, a user identification, an update field, pre-update content, post-update content, an update time, a level of importance.
Specifically, a service identifier and a scene identifier in a record field may be determined by using a header parameter of the data update request, the updated content may be determined by using the content to be updated, where the content to be updated carries a device identifier (such as a device SN (product serial number)) or a user identifier (such as a user id), and the content before update may be determined by using the device identifier or the user device. The scene description of the scene identifier can be determined by a predefined scene mapping table, and the mapping relation between the scene identifier and the scene description is determined in the scene mapping table. One specific case of updating a record is as follows:
updating the event name: device data update event
Service identification: devicemanageaosvr
Scene identification: 201
Scene description: device heartbeat
Equipment identification: FSADFSDLKFSD241 (device Serial number)
Updating the field: city where equipment is located
Content before update: guangzhou province
The updated content is as follows: shenzhen (Shenzhen medicine)
Updating time: xxxx year, x month x days
Importance level: in general terms
Further, the data corresponding to the record field is subjected to structuring processing, a data structured update record is generated, and the data structured update record is stored in the database. The structured data refers to information which can be represented by data or a uniform structure, the structured data has specific fields, namely row data, and is stored in a database, and the implemented data can be logically represented by a two-dimensional table structure.
Specifically, the data corresponding to the record field may be structured by using a data reporting storage entity (mmdata), the mmdata may provide an interface for the service device to report the data, and the field structure of the data may be customized, which is a structured data entity, and may be automatically stored in the database through the provided capability. As shown in Table 1, for the data structured update record:
TABLE 1
Figure BDA0003056832890000101
Figure BDA0003056832890000111
In one embodiment, the data processing method further comprises: receiving an update record query request sent by management equipment, wherein the update record query request carries query fields, the query fields comprise one or more of the record fields, acquiring a target update record matched with the query fields from the data structured update records stored in a database, and sending the target update record to the management equipment.
In one embodiment, when an update record query request sent by a management device is received, a server obtains a target update record matched with a query field from a database by using the query field carried in the update record query request, and sends the target update record to the management device, so that a manager can obtain an update source and update content details of data according to the target update record, and meanwhile, can perform key attention monitoring and warning according to important level configuration.
The query field may be one or more of an update event name, a service identifier, a scene description of the scene identifier, a device identifier, a user identifier, an update field, pre-update content, post-update content, update time, and an importance level.
In the embodiment of the application, compared with a mode of acquiring the update record through an unstructured logging, the update record is subjected to structured processing, the acquired data structured update record can be acquired by the management device more conveniently, quickly and conveniently, and the data change record is traced quickly.
In an embodiment, as shown in fig. 5, when receiving a data update request, a server determines whether the data update request includes a header parameter, and when determining that the data update request includes the header parameter, obtains a corresponding authorization update field from a configuration according to a scene identifier, and determines whether the authorization update field includes a field to be updated in content to be updated, and when the authorization update field includes the field to be updated, updates a corresponding field in a target scene, and when the authorization update field does not include the field to be updated, or when the data update request does not include the header parameter, fails to update data.
In an embodiment, as shown in fig. 6, a service device sends a scene identifier, a service identifier, and a content to be updated to a data update service, the data update service performs update permission verification on the service device according to the service identifier and the scene identifier, and uses an update process report to implement corresponding data update on the service device, a mapping relationship between the scene identifier and the service identifier, an authorization update field corresponding to the scene identifier, a scene mapping table, and the like may be stored in the database 1, and an update record report stores an update record corresponding to the data update in the database 2, and when a user sends an update record query request through a data update traceability query tool, the user may query a matched target update record from the database 2.
As shown in fig. 7, fig. 7 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application, where the apparatus includes:
a receiving module 701, configured to receive a data update request sent by a service device through a data update interface, where the data update request includes a header parameter and a content to be updated, and the header parameter is used to indicate a target service and a corresponding target scene on the service device, where the target service requests to update data;
a processing module 702, configured to verify an update permission of the target service according to the header parameter and the content to be updated;
the processing module 702 is further configured to update the field corresponding to the target scene by using the content to be updated if the verification passes, and generate an update record corresponding to the data update request.
In an embodiment, the processing module 702 is specifically configured to:
if the service identifier and the scene identifier have a mapping relation, determining an authorized updating field according to the scene identifier of the target scene, and determining a field to be updated according to the content to be updated;
inquiring whether the authorization updating field comprises the field to be updated;
and if the authorization updating field comprises the field to be updated, determining that the updating authority of the target service passes the verification.
In an embodiment, the processing module 702 is specifically configured to:
receiving an update permission configuration request sent by the service equipment, wherein the update permission configuration request carries at least one field of data update and a service identifier of a target service;
acquiring a scene identifier of a target scene set for the updating permission configuration request;
and sending the scene identification of the target scene to the service equipment.
In an embodiment, the processing module 702 is specifically configured to:
taking the at least one field as an authorization updating field corresponding to the scene identifier of the target scene;
and creating a mapping relation between the scene identification of the target scene and the service identification of the target service.
In an embodiment, the processing module 702 is specifically configured to:
setting unified configuration parameters of the data updating interface, wherein the unified configuration parameters comprise fields of head parameters and fields of contents to be updated;
and sending the uniform configuration parameters to the service equipment.
In an embodiment, the processing module 702 is specifically configured to:
acquiring data corresponding to the record field;
carrying out structuralization processing on the data corresponding to the record field to generate a data structuralization updating record;
storing the data structured update record in a database.
In an embodiment, the processing module 702 is specifically configured to:
receiving an update record query request sent by management equipment, wherein the update record query request carries query fields, and the query fields comprise one or more of the record fields;
acquiring a target update record matched with the query field from the data structured update records stored in the database;
and sending the target update record to the management equipment.
In the embodiment of the application, a server receives a data updating request sent by a service device through a calling data updating interface, wherein the data updating request comprises a header parameter and a content to be updated, the updating authority of a target service is verified according to the header parameter and the content to be updated, if the verification is passed, a field corresponding to a target scene is updated by using the content to be updated, and an updating record corresponding to the data updating request is generated.
As shown in fig. 8, fig. 8 is a schematic structural diagram of a computer device provided in an embodiment of the present application, where an internal structure of the computer device is shown in fig. 8, and the computer device includes: one or more processors 801, memory 802, and a communication interface 803. The processor 801, the memory 802 and the communication interface 803 may be connected by a bus 804 or in other ways, and the embodiment of the present application is exemplified by the bus 804.
The processor 801 (or referred to as a Central Processing Unit (CPU)) is a computing core and a control core of the computer device, and can analyze various instructions in the computer device and process various data of the computer device, for example: the CPU can be used for analyzing a power-on and power-off instruction sent to the computer equipment by a user and controlling the computer equipment to carry out power-on and power-off operation; the following steps are repeated: the CPU may transmit various types of interactive data between the internal structures of the computer device, and so on. The communication interface 803 may optionally include a standard wired interface, a wireless interface (e.g., wi-Fi, mobile communication interface, etc.), under the control of the processor 801 for transceiving data. The Memory 802 (Memory) is a Memory device in the computer device for storing programs and data. It will be appreciated that the memory 802 can comprise, in addition to or in lieu of the memory embedded within the computing device, any expanded memory within the computing device. The memory 802 provides storage space that stores the operating system of the computer device, which may include, but is not limited to: windows system, linux system, etc., which are not limited in this application.
In an embodiment, the processor 801 is specifically configured to:
receiving a data updating request sent by a service device through a calling data updating interface, wherein the data updating request comprises a head parameter and a content to be updated, and the head parameter is used for indicating a target service requesting data updating on the service device and a corresponding target scene;
checking the updating authority of the target service according to the head parameters and the content to be updated;
and if the verification is passed, updating the field corresponding to the target scene by using the content to be updated, and generating an update record corresponding to the data update request.
In an embodiment, the processor 801 is specifically configured to:
if the service identifier and the scene identifier have a mapping relation, determining an authorized updating field according to the scene identifier of the target scene, and determining a field to be updated according to the content to be updated;
inquiring whether the authorization updating field comprises the field to be updated;
and if the authorization updating field comprises the field to be updated, determining that the updating authority of the target service passes the verification.
In an embodiment, the processor 801 is specifically configured to:
receiving an update permission configuration request sent by the service equipment, wherein the update permission configuration request carries at least one field of data update and a service identifier of a target service;
acquiring a scene identifier of a target scene set for the updating authority configuration request;
and sending the scene identification of the target scene to the service equipment.
In an embodiment, the processor 801 is specifically configured to:
taking the at least one field as an authorization updating field corresponding to the scene identifier of the target scene;
and creating a mapping relation between the scene identification of the target scene and the service identification of the target service.
In an embodiment, the processor 801 is specifically configured to:
setting unified configuration parameters of the data updating interface, wherein the unified configuration parameters comprise fields of head parameters and fields of contents to be updated;
and sending the uniform configuration parameters to the service equipment.
In an embodiment, the processor 801 is specifically configured to:
acquiring data corresponding to the record field;
carrying out structuralization processing on the data corresponding to the record field to generate a data structuralization updating record;
storing the data structured update record in a database.
In an embodiment, the processor 801 is specifically configured to:
receiving an update record query request sent by management equipment, wherein the update record query request carries query fields, and the query fields comprise one or more of the record fields;
acquiring a target update record matched with the query field from the data structured update records stored in the database;
and sending the target update record to the management equipment.
In the embodiment of the application, a server receives a data updating request sent by a service device through a calling data updating interface, wherein the data updating request comprises a header parameter and a content to be updated, the updating authority of a target service is verified according to the header parameter and the content to be updated, if the verification is passed, a field corresponding to a target scene is updated by using the content to be updated, an updating record corresponding to the data updating request is generated, the complexity of authority control of a service party can be reduced through a unified data updating interface, accurate and fine-grained authority control is realized, and the expandability is strong.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program, which may be stored in a computer readable storage medium, and when executed, may include the processes of the above embodiments of the data processing method. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
One or more embodiments of the present application also provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The computer instructions are read by a processor of the computer device from a computer-readable storage medium, and the computer instructions are executed by the processor to cause the computer device to perform the steps performed in the embodiments of the methods described above.
The above-mentioned embodiments only express several implementation modes of the present application, and the description thereof is specific and detailed, but not construed as limiting the scope of the claims. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of data processing, the method comprising:
receiving a data updating request sent by a service device through a calling data updating interface, wherein the data updating request comprises a head parameter and a content to be updated, and the head parameter is used for indicating a target service requesting data updating on the service device and a corresponding target scene;
checking the updating authority of the target service according to the head parameters and the content to be updated;
and if the verification is passed, updating the field corresponding to the target scene by using the content to be updated, and generating an update record corresponding to the data update request.
2. The method according to claim 1, wherein the header parameters include a service identifier of the target service and a scene identifier of the target scene, and the checking the update authority of the target service according to the header parameters and the content to be updated comprises:
if the service identifier and the scene identifier have a mapping relation, determining an authorized updating field according to the scene identifier of the target scene, and determining a field to be updated according to the content to be updated;
inquiring whether the field to be updated is included in the authorization updating field;
and if the authorization updating field comprises the field to be updated, determining that the updating authority of the target service passes the verification.
3. The method according to claim 1 or 2, wherein before receiving the data update request sent by the service device by invoking the data update interface, the method further comprises:
receiving an update permission configuration request sent by the service equipment, wherein the update permission configuration request carries at least one field of data update and a service identifier of a target service;
acquiring a scene identifier of a target scene set for the updating permission configuration request;
and sending the scene identifier of the target scene to the service equipment.
4. The method according to claim 3, wherein after obtaining the scene identifier of the target scene set for the update permission configuration request, further comprising:
taking the at least one field as an authorization updating field corresponding to the scene identifier of the target scene;
and creating a mapping relation between the scene identification of the target scene and the service identification of the target service.
5. The method of claim 1, wherein before receiving the data update request sent by the service device by invoking the data update interface, the method further comprises:
setting unified configuration parameters of the data updating interface, wherein the unified configuration parameters comprise fields of head parameters and fields of contents to be updated;
and sending the uniform configuration parameters to the service equipment.
6. The method according to claim 1, wherein the generating an update record corresponding to the data update request comprises:
acquiring data corresponding to the record field;
carrying out structuralization processing on the data corresponding to the record field to generate a data structuralization updating record;
storing the data structured update record in a database.
7. The method of claim 6, wherein the record field comprises: one or more of an update event name, a service identification, a scene description of the scene identification, a device identification, a user identification, an update field, pre-update content, post-update content, an update time, an importance level.
8. The method according to claim 6 or 7, further comprising:
receiving an update record query request sent by management equipment, wherein the update record query request carries query fields, and the query fields comprise one or more of the record fields;
acquiring a target update record matched with the query field from the data structured update records stored in the database;
and sending the target update record to the management equipment.
9. A data processing apparatus, characterized in that the apparatus comprises:
the system comprises a receiving module, a data updating module and a processing module, wherein the receiving module is used for receiving a data updating request sent by a service device through a calling data updating interface, the data updating request comprises a head parameter and a content to be updated, and the head parameter is used for indicating a target service requesting data updating on the service device and a corresponding target scene;
the processing module is used for verifying the updating authority of the target service according to the head parameters and the content to be updated;
and the processing module is further configured to update the field corresponding to the target scene by using the content to be updated and generate an update record corresponding to the data update request if the verification is passed.
10. A computer-readable storage medium, storing a computer program, wherein the computer program, when executed by a processor, implements the data processing method of any one of claims 1 to 8.
CN202110502818.3A 2021-05-08 2021-05-08 Data processing method, device and storage medium Pending CN115309416A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110502818.3A CN115309416A (en) 2021-05-08 2021-05-08 Data processing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110502818.3A CN115309416A (en) 2021-05-08 2021-05-08 Data processing method, device and storage medium

Publications (1)

Publication Number Publication Date
CN115309416A true CN115309416A (en) 2022-11-08

Family

ID=83853880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110502818.3A Pending CN115309416A (en) 2021-05-08 2021-05-08 Data processing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN115309416A (en)

Similar Documents

Publication Publication Date Title
CN108810006B (en) Resource access method, device, equipment and storage medium
US11720825B2 (en) Framework for multi-tenant data science experiments at-scale
EP2178033A1 (en) Populating a multi-relational enterprise social network with disparate source data
AU2011323987A1 (en) Methods and systems for providing access to data and measurements in a management system
EP2633664B1 (en) Method and system for establishing secure authenticated bidirectional server communication
CN113839977A (en) Message pushing method and device, computer equipment and storage medium
CN110023901A (en) System and method for updating multilayer application stack based on cloud
CN112506481A (en) Service data interaction method and device, computer equipment and storage medium
US10685019B2 (en) Secure query interface
CN112905978A (en) Authority management method and device
CN113011960A (en) Block chain-based data access method, device, medium and electronic equipment
CN111475468A (en) Log access method, device, equipment and storage medium of newly added system
US10831731B2 (en) Method for storing and accessing data into an indexed key/value pair for offline access
CN115309416A (en) Data processing method, device and storage medium
WO2022245291A2 (en) Method and apparatus for managing resources, computer device and storage medium
CN114357032A (en) Data quality monitoring method and device, electronic equipment and storage medium
CN109471849B (en) Model processing method and device, storage medium and electronic equipment
CN110300371B (en) Computer equipment management method based on Internet of things equipment behaviors
CN111723401A (en) Data access authority control method, device, system, storage medium and equipment
US20220101962A1 (en) Enabling distributed semantic mashup
CN111813880A (en) Method, system and storage medium for managing territorial space planning project
CN111737293A (en) Data warehouse authority management method, device, equipment and storage medium
CN117009327B (en) Data processing method and device, computer equipment and medium
CN114285743B (en) Method, device, electronic equipment and storage medium for updating configuration information
CN112560112B (en) Block chain based information shielding method, device, equipment and 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