CN115630387B - Data processing method, device, electronic equipment and readable storage medium - Google Patents

Data processing method, device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN115630387B
CN115630387B CN202211572632.6A CN202211572632A CN115630387B CN 115630387 B CN115630387 B CN 115630387B CN 202211572632 A CN202211572632 A CN 202211572632A CN 115630387 B CN115630387 B CN 115630387B
Authority
CN
China
Prior art keywords
data
target
user
user account
data processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211572632.6A
Other languages
Chinese (zh)
Other versions
CN115630387A (en
Inventor
吴州
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aijiwei Consulting Xiamen Co ltd
Original Assignee
Aijiwei Consulting Xiamen 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 Aijiwei Consulting Xiamen Co ltd filed Critical Aijiwei Consulting Xiamen Co ltd
Priority to CN202211572632.6A priority Critical patent/CN115630387B/en
Publication of CN115630387A publication Critical patent/CN115630387A/en
Application granted granted Critical
Publication of CN115630387B publication Critical patent/CN115630387B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/338Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Automation & Control Theory (AREA)
  • Storage Device Security (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The embodiment of the application discloses a data processing method, a device, electronic equipment and a readable storage medium, comprising the following steps: responding to a triggering operation, and authenticating a user account corresponding to the triggering operation; when the authentication of the user account passes, extracting user role information in the user account, and determining operation authority corresponding to the user role information; responding to a determining operation aiming at target data, and acquiring a data type corresponding to the target data; and processing the target data based on the data type and the operation authority. The scheme can improve the flexibility of data processing while guaranteeing the data security.

Description

Data processing method, device, electronic equipment and readable storage medium
Technical Field
The present disclosure relates to the field of information processing technologies, and in particular, to a data processing method, a data processing device, an electronic device, and a readable storage medium.
Background
Along with the rapid development of internet technology, in order to facilitate the searching, using and handing over of documents, enterprises gradually convert the documents from paper into electronic documents, and store the electronic documents to an enterprise cloud, and meanwhile, the enterprise cloud also stores relevant videos, pictures and the like of the enterprises for on-line viewing, modifying and using by personnel in the enterprises.
In order to ensure the security of the enterprise data, the rights corresponding to the enterprise data are preset, and the current strategy is to classify the enterprise data and set different rights based on different classifications. However, for some enterprise data (such as documents), 90% of the content is visible to all employees, while the other 10% of the content requires a corresponding level of employee to review, and it is difficult for the data manager to perform rights grading on the enterprise data.
Disclosure of Invention
In view of the above, the present application provides a data processing method, apparatus, electronic device, and readable storage medium, which improve flexibility of data processing while ensuring data security.
The application provides a data processing method, which comprises the following steps:
responding to a triggering operation, and authenticating a user account corresponding to the triggering operation;
when the authentication of the user account passes, extracting user role information in the user account, and determining operation authority corresponding to the user role information;
responding to a determining operation aiming at target data, and acquiring a data type corresponding to the target data;
and processing the target data based on the data type and the operation authority.
Optionally, in some embodiments, the processing the target data based on the data type and the operation authority includes:
outputting a data processing interface corresponding to the target data based on the data type and the operation authority;
and responding to the data processing operation of the data processing interface, and processing the target data.
Optionally, in some embodiments, the outputting, based on the data type and the operation authority, a data processing interface corresponding to the target data includes:
identifying the data type as a text type;
acquiring an operation control set corresponding to the text type, and determining a target control corresponding to the operation authority in the operation control set;
adjusting the display text of the target data according to the operation authority, and displaying the target control and the adjusted text on a data processing interface corresponding to the target data;
the processing the target data in response to the data processing operation of the data processing interface comprises: and responding to the data processing operation aiming at the target control in the data processing interface, and processing the adjusted text.
Optionally, in some embodiments, the adjusting the presentation text of the target data according to the operation authority includes:
determining a target text corresponding to the target data;
and reserving target characters corresponding to the operation authorities in the target text.
Optionally, in some embodiments, the outputting, based on the data type and the operation authority, a data processing interface corresponding to the target data includes:
identifying the data type as an image type;
reserving a target image in the target data according to the operation authority;
and displaying the target image on a data processing interface corresponding to the target data based on the image arrangement sequence corresponding to the target data.
Optionally, in some embodiments, when the user account passes authentication, extracting user role information in the user account includes:
when the authentication of the user account passes, outputting a user role contained in the user account;
and responding to the selection operation of the user roles, and extracting user role information corresponding to the selected user roles.
Optionally, in some embodiments, further comprising:
displaying a configuration interface corresponding to the user account;
generating an added user role in the configuration interface in response to a role adding operation for the configuration interface;
and responding to the role configuration operation aiming at the user role, and configuring the operation authority corresponding to the user role.
Correspondingly, the application also provides a data processing device, which comprises:
the authentication module is used for responding to the triggering operation and authenticating the user account corresponding to the triggering operation;
the extraction module is used for extracting user role information in the user account when the authentication of the user account is passed;
the determining module is used for determining the operation authority corresponding to the user role information;
the acquisition module is used for responding to the determination operation aiming at the target data and acquiring the data type corresponding to the target data;
and the processing module is used for processing the target data based on the data type and the operation authority.
The present application also provides an electronic device comprising a memory storing a computer program and a processor executing the steps of the data processing method of the above embodiments.
The present application also provides a readable storage medium storing a computer program which, when executed by a processor, implements the steps of the data processing method of the above embodiments.
The application provides a data processing method, a device, an electronic device and a readable storage medium, wherein the data processing method comprises the following steps: and responding to a triggering operation, authenticating a user account corresponding to the triggering operation, extracting user role information in the user account when the user account passes the authentication, determining operation authority corresponding to the user role information, responding to a determining operation aiming at target data, acquiring a data type corresponding to the target data, and processing the target data based on the data type and the operation authority, thereby finely subdividing the operation authority corresponding to the user role, so that a subsequent user can flexibly process each data according to the operation authority, thereby improving the flexibility of data processing while ensuring the data security.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a scenario of a data processing method provided in an embodiment of the present application;
FIG. 2 is a schematic flow chart of a data processing method according to an embodiment of the present application;
FIG. 3 is an interface schematic diagram of a data processing method according to an embodiment of the present disclosure;
FIG. 4 is another interface schematic diagram of a data processing method according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of another interface of a data processing method according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of the architecture of a data processing system provided herein;
FIG. 7 is a schematic diagram of a data processing apparatus according to an embodiment of the present application;
fig. 8 is another schematic structural diagram of a data processing apparatus according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application. The various embodiments described below and their technical features can be combined with each other without conflict.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context. Furthermore, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes," and/or "including" specify the presence of stated features, steps, operations, elements, components, items, categories, and/or groups, but do not preclude the presence, presence or addition of one or more other features, steps, operations, elements, components, items, categories, and/or groups. The terms "or," "and/or," "including at least one of," and the like, as used herein, may be construed as inclusive, or meaning any one or any combination. For example, "including at least one of: A. b, C "means" any one of the following: a, A is as follows; b, a step of preparing a composite material; c, performing operation; a and B; a and C; b and C; a and B and C ", again as examples," A, B or C "or" A, B and/or C "means" any of the following: a, A is as follows; b, a step of preparing a composite material; c, performing operation; a and B; a and C; b and C; a and B and C). An exception to this definition will occur only when a combination of elements, functions, steps or operations are in some way inherently mutually exclusive.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily occurring in sequence, but may be performed alternately or alternately with other steps or at least a portion of the other steps or stages.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrase "if determined" or "if detected (stated condition or event)" may be interpreted as "when determined" or "in response to determination" or "when detected (stated condition or event)" or "in response to detection (stated condition or event), depending on the context.
It should be noted that, in this document, step numbers such as 101 and 102 are used for the purpose of describing the corresponding content more clearly and briefly, and not to constitute a substantial limitation on the sequence, and those skilled in the art may execute 101 and then execute 102 when they are implemented, which is within the scope of protection of the present application.
The application provides a data processing method, a data processing device, electronic equipment and a readable storage medium.
The data processing device may be integrated in a server or a terminal, where the server may include a server or a distributed server that operates independently, or may include a server cluster that is formed by a plurality of servers, and the electronic device may include a mobile phone, a tablet computer, or a personal computer (PC, personal Computer). The electronic device and the server may be connected by wired or wireless means.
For example, referring to fig. 1, the present application provides a data processing apparatus integrated in a terminal 10, where when a user 20 needs to access a document (i.e. target data) of a company through the terminal 10, a display screen of the terminal 10 may display a trigger control, and the terminal 10 responds to a trigger operation of the user for the trigger control, and authenticates a user account corresponding to the trigger operation, that is, verifies whether the user account of the user 20 is an internal account of the company; when the authentication of the user account passes, the terminal 10 extracts the user role information in the user account and determines the operation authority corresponding to the user role information, then the terminal 10 responds to the determination operation for the target data to acquire the data type corresponding to the target data, and finally the terminal 10 processes the target data based on the data type and the operation authority.
According to the data processing scheme, the operation authorities corresponding to the user roles can be finely subdivided, so that a subsequent user can flexibly process each data according to the operation authorities, and therefore the data security can be ensured and the data processing flexibility can be improved.
The following will describe in detail. It should be noted that the following description order of embodiments is not a limitation of the priority order of embodiments.
A data processing method, comprising: and responding to the triggering operation, authenticating the user account corresponding to the triggering operation, extracting user role information in the user account when the user account passes the authentication, determining the operation authority corresponding to the user role information, responding to the determining operation aiming at the target data, acquiring the data type corresponding to the target data, and processing the target data based on the data type and the operation authority.
Referring to fig. 2, fig. 2 is a flow chart of a data processing method according to an embodiment of the present application. The specific flow of the data processing method can be as follows:
101. and responding to the triggering operation, and authenticating the user account corresponding to the triggering operation.
The triggering operation may be triggered by a user, or may be triggered by an electronic device, or may be triggered by a server, for example, a clicking operation triggered by a user on a triggering control of the electronic device, for example, a querying operation triggered by the electronic device or the server on target data in a preset time, or the like.
Authentication refers to verifying that a user account has rights to access a system. Traditional authentication is verified by a password. The premise of this is that every user who obtains the password is already authorized. When the user is established, a password is allocated to the user, and the password of the user can be designated by an administrator or applied by the user.
The authentication of the user account corresponding to the triggering operation is as follows: when the triggering operation is performed, whether the currently logged-in user account has the right to access the database is verified, such as whether the currently logged-in user account has the right to access a database inside an enterprise is verified, and the like.
102. And when the authentication of the user account passes, extracting user role information in the user account, and determining the operation authority corresponding to the user role information.
The user account may store a plurality of user role information, where different user role information corresponds to different operation rights, e.g., the operation rights corresponding to the user role a are editing, viewing and uploading, and the operation rights corresponding to the user role B are downloading. It may be appreciated that the user account may store the user role a and the user role B, and in the actual operation process, the user may select target data corresponding to the corresponding user role according to the requirement of the user to process, that is, optionally, in some embodiments, the step of "when the user account passes authentication, extracting user role information in the user account and determining an operation authority corresponding to the user role information" may specifically include:
(11) When the authentication of the user account passes, outputting a user role contained in the user account;
(12) And responding to the selection operation for the user roles, and extracting user role information corresponding to the selected user roles.
For example, referring to fig. 3, when authentication of the user account passes, a user role a, a user role B and a user role C included in the user account are displayed, user role information corresponding to the user role C is extracted in response to a selection operation for the user role C, where the user role information may include information such as a user role level, an operation authority of the user role and a name of the user role.
It can be understood that the association relationship between the user account number, the user role and the operation authority can be preconfigured, and the authority of the user account number is controlled by defining the operation authority of the user role and granting a certain user role to the user, so that the logical separation of the user account number and the operation authority is realized, and the management of the operation authority is facilitated, that is, optionally, in some embodiments, the data processing method of the application specifically further comprises:
(21) Displaying a configuration interface corresponding to the user account;
(22) Generating an added user role in the configuration interface in response to a role adding operation for the configuration interface;
(23) And responding to the role configuration operation aiming at the user role, and configuring the operation authority corresponding to the user role.
For example, referring to fig. 4, after a user creates a user account for the first time, a configuration interface corresponding to the user account may be displayed, where the configuration interface may include a role adding control A1, an added user role is generated in the configuration interface in response to a clicking operation for the role adding control A1, and the user may select a role level of the user role, for example, a general manager, a clan, a group leader, or a general employee, or may be a manager or a visitor, which may be specifically selected according to an actual situation, which will not be described herein. When the user selects the role grade of the user role, the operation authority corresponding to the role grade can be automatically configured, and meanwhile, the user can also refer to the operation authority of certain documents, pictures or videos, such as the content of the first 5 pages can be referred to for the document a, the content of the first 5 pages can be referred to for the document b, the operation authority of the user role can be referred to for the picture c, and the like, thereby completing the configuration flow of the operation authority of the user role.
103. And responding to the determining operation for the target data, and acquiring the data type corresponding to the target data.
For example, after the user account passes authentication, a data display interface may be displayed, where the data display interface may display data such as a document, a picture, and/or a video, and the user may select corresponding data to perform subsequent data processing by himself, for example, after the user performs a click operation on the document, the document is determined to be the target data, and then the type corresponding to the data is acquired to be the text type, and then step 104 is performed.
104. And processing the target data based on the data type and the operation authority.
For example, the processing of the target data may be performed through a data processing interface, specifically, the processing of the target data may be performed through a control provided on the data processing interface or by clicking a preset position of the data processing interface, that is, optionally, in some embodiments, the step of "processing the target data based on the data type and the operation authority" may specifically include:
(31) Outputting a data processing interface corresponding to the target data based on the data type and the operation authority;
(32) And processing the target data in response to the data processing operation of the data processing interface.
In order to facilitate the processing of the data in the subsequent personalization, in some embodiments of the present application, a data processing interface corresponding to the target data is output based on the data type and the operation authority, for example, please refer to fig. 5, when the data type is a text type, a control corresponding to the text data may be output based on the operation authority so as to process the text data, and at the same time, some positions of the text data may be covered or displayed in a hidden manner according to the operation authority, that is, optionally, in some embodiments, the step of outputting a data processing interface corresponding to the target data "based on the data type and the operation authority may specifically include:
(41) Identifying the data type as a text type;
(42) Acquiring an operation control set corresponding to the text type, and determining a target control corresponding to the operation authority in the operation control set;
(43) And adjusting the display text of the target data according to the operation authority, and displaying the target control and the adjusted text on a data processing interface corresponding to the target data.
For example, the text type and the operation control may be bound in advance, that is, an association relationship between the text type and the operation control may be constructed, for example, the text type is bound with the deletion control s1, the annotation control s2 and the editing control s3, and the operation authority of the user role for the text T is the annotation authority, so that the target control corresponding to the operation authority is determined to be the annotation control s2 in the operation control set of the text T, and meanwhile, the target control and the adjusted text are displayed on the data processing interface corresponding to the target data.
Optionally, in some embodiments, the step of "processing the target data in response to a data processing operation of the data processing interface" may specifically include: and responding to the data processing operation aiming at the target control in the data processing interface, and processing the adjusted text.
Optionally, in some embodiments, not only the adjusted text may be processed through the control, but also the adjusted text may be processed through an operation performed by the user on the adjusted text, for example, an amplifying control may be displayed in the data processing interface, the user may amplify a character in the adjusted text by clicking the amplifying control, and meanwhile, the user may also press the adjusted text for a long time to modify a background color of the adjusted text, which may be specifically set according to an actual situation, which is not described herein.
Furthermore, in some embodiments, the step of "adjusting the presentation text of the target data according to the operation authority" may specifically include:
(51) Determining a target text corresponding to the target data;
(52) And reserving the target characters corresponding to the operation authorities in the target text.
Optionally, in some embodiments, the step of "adjusting the presentation text of the target data according to the operation authority" may specifically include:
(61) Determining a target text corresponding to the target data;
(62) And highlighting the target character corresponding to the operation authority in the target text.
Optionally, in some embodiments, when the data type of the target data is an image type, such as a single frame image or a multi-frame image, for the single frame image, certain information of the single frame image may be hidden or enlarged according to the operation authority, for example, information, which does not match the operation authority, in the single frame image, specifically, the single frame image is wage information, where the wage information includes wage details of all employees and wage architecture of a company, and for different user roles, only the wage architecture of the company and the wage information of the company can be seen, that is, wage information of other employees is hidden, for example, wage information of other employees may be hidden in a mosaic manner; for a multi-frame image, such as an image sequence (i.e. video stream data), it may hide a frame image of the multi-frame image that does not match with the operation authority, specifically may hide the frame image by deleting or skipping, and then, according to the image arrangement sequence of the multi-frame image, display the target image in the data processing interface, that is, optionally, in some embodiments, the step of outputting, based on the data type and the operation authority, the data processing interface corresponding to the target data may specifically include:
(71) Identifying the data type as an image type;
(72) Preserving a target image in the target data according to the operation authority;
(73) And displaying the target image on a data processing interface corresponding to the target data based on the image arrangement sequence corresponding to the target data.
In order to further understand the data processing scheme of the present application, a data processing system is further described below by taking the data processing system as an example, referring to fig. 6, fig. 6 is a schematic structural diagram of the data processing system provided in the present application, where the data processing system includes a user module, a role module, a menu module, a file module, and an authorization module.
If user 1 is required to have preview rights to all documents under menu a and editing rights to document A1 under menu a. The setting mode is as follows:
2.1.1 A character 1 is created.
2.1.2 The server queries the menu module to determine that all functions under the menu A are new creation, editing, preview, deletion, authorization and the like.
2.1.3 The authority owned by the configuration role 1 is the preview authority under the menu a.
2.1.4 Configuring the role of user 1 as role 1, user 1 has preview authority for all documents under menu a.
2.1.5 The operator (owner of the document A1 or user who owns the authority of the document A1) performs an authorization operation on the document A1, and clicks an authorization button after the document A1.
2.1.6 The server queries the relation between the document A1 and the menu to determine that the document A1 belongs to the menu A.
2.1.7 The server queries the menu module, determines that all functions under the menu A are new creation, editing, preview, deletion, authorization and the like, and returns the result to the front end.
2.1.8 The operator selects an editing operation.
2.1.9 The server queries the user module and returns the list of all users to the front end.
2.1.10 operator selected user 1. At this time, the user 1 has the editing authority of the document A1.
When the user 1 browses the document list under the menu a, a specific verification flow is as follows:
2.2.1 The server queries the document list data under menu a.
2.2.2 The server queries the relationship between the user and the role and determines that the user 1 has the role 1.
2.2.3 The server queries the information of role 1 and determines that role 1 has preview rights for all documents under menu a.
2.2.4 The server queries the authorization module to determine that user 1 has editing rights to document A1.
2.2.5 The server takes the union of the role rights and the authorized rights of the user 1 and returns the rights data and the document list data to the front end.
2.2.6 The front end renders a document list, displays the preview function of all the documents, and displays the editing function of the document A1.
2.2.7 User 1 may now preview all documents under menu a via the preview button. Editing the document A1.
At this time, the permission relationship is only displayed through the display and the hiding of the front end on the menu and the function buttons, so that the use of the user is limited. There is no limitation on the operation request by the user through a special means, and thus, the server performs authentication of authority for all the operation requests of the user.
If the user 1 makes an edit request for the document A2 under the menu a by a special means. The verification flow of the server side is as follows:
2.3.1 User 1 submits an edit request for document A2.
2.3.2 The server queries the relationship between the user and the role and determines that the user 1 has the role 1.
2.3.3 The server queries the information of the document A2 and determines that the document A2 belongs to the menu a.
2.3.4 The server queries the information of the role 1 and determines that the role 1 has preview authority on the document under the menu A.
2.3.5 The server queries the authorization module without authorization information for user 1-document A2.
2.3.6 The server combines the role rights and the authorization rights, and user 1 has only preview rights for document A2. Editing operations are not supported, and requests are rejected.
The above completes the data processing flow of the present application.
According to the data processing method, the user account corresponding to the triggering operation is authenticated in response to the triggering operation, when the user account passes the authentication, the user role information in the user account is extracted, the operation authority corresponding to the user role information is determined, the data type corresponding to the target data is obtained in response to the determination operation on the target data, and the target data is processed based on the data type and the operation authority, so that the operation authority corresponding to the user role can be finely subdivided, a subsequent user can flexibly process each data according to the operation authority, and the data security can be ensured and meanwhile the data processing flexibility is improved.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application, where the data processing apparatus may specifically include: the authentication module 301, the extraction module 302, the determination module 303, the acquisition module 304, and the processing module 305 may specifically be as follows:
and the authentication module 301 is configured to respond to the triggering operation, and authenticate the user account corresponding to the triggering operation.
For example, the authentication module 301, when performing the triggering operation, verifies whether the currently logged-in user account has the right to access the database, such as verifying whether the currently logged-in user account has the right to access a database inside the enterprise, and so on.
And the extracting module 302 is configured to extract user role information in the user account when the authentication of the user account passes.
Optionally, in some embodiments, referring to fig. 8, the data processing apparatus of the present application may specifically further include a configuration module 306, where the configuration module 306 may specifically be configured to: displaying a configuration interface corresponding to the user account; generating an added user role in the configuration interface in response to a role adding operation for the configuration interface; and responding to the role configuration operation aiming at the user role, and configuring the operation authority corresponding to the user role.
And the determining module 303 is configured to determine an operation right corresponding to the user role information.
The obtaining module 304 is configured to obtain a data type corresponding to the target data in response to the determining operation for the target data.
The processing module 305 is configured to process the target data based on the data type and the operation authority.
For example, the processing module 305 may process the target data through a data processing interface, that is, optionally, in some embodiments, the processing module 305 may specifically include:
the output unit is used for outputting a data processing interface corresponding to the target data based on the data type and the operation authority;
and the processing unit is used for responding to the data processing operation of the data processing interface and processing the target data.
Alternatively, in some embodiments, the output unit may be specifically configured to: identifying the data type as a text type; acquiring an operation control set corresponding to the text type, and determining a target control corresponding to the operation authority in the operation control set; and adjusting the display text of the target data according to the operation authority, and displaying the target control and the adjusted text on a data processing interface corresponding to the target data.
Alternatively, in some embodiments, the output unit may be specifically configured to: identifying the data type as an image type; preserving a target image in the target data according to the operation authority; and displaying the target image on a data processing interface corresponding to the target data based on the image arrangement sequence corresponding to the target data.
According to the data processing device provided by the application, the authentication module 301 responds to the triggering operation to authenticate the user account corresponding to the triggering operation, when the user account passes the authentication, the extraction module 302 extracts the user role information in the user account, the determination module 303 determines the operation authority corresponding to the user role information, the acquisition module 304 acquires the data type corresponding to the target data in response to the determination operation on the target data, and the processing module 305 processes the target data based on the data type and the operation authority, so that the operation authority corresponding to the user role can be finely subdivided, and a subsequent user can flexibly process each data according to the operation authority, so that the data security can be ensured and the flexibility of data processing can be improved.
The application also provides an electronic device, which comprises a memory and a processor, wherein the memory stores an interface processing program, and the interface processing program realizes the steps of the interface processing method in any embodiment when being executed by the processor.
The present application also provides a readable storage medium, on which an interface processing program is stored, which when executed by a processor, implements the steps of the interface processing method in any of the above embodiments.
In the embodiments of the electronic device and the readable storage medium provided in the present application, all technical features of any one of the embodiments of the interface processing method may be included, and the expansion and explanation contents of the description are substantially the same as those of each embodiment of the method, which are not repeated herein.
The present embodiments also provide a computer program product comprising computer program code which, when run on a computer, causes the computer to perform the method in the various possible implementations as above.
The embodiments also provide a chip including a memory for storing a computer program and a processor for calling and running the computer program from the memory, so that a device on which the chip is mounted performs the method in the above possible embodiments.
It can be understood that the above scenario is merely an example, and does not constitute a limitation on the application scenario of the technical solution provided in the embodiments of the present application, and the technical solution of the present application may also be applied to other scenarios. For example, as one of ordinary skill in the art can know, with the evolution of the system architecture and the appearance of new service scenarios, the technical solutions provided in the embodiments of the present application are equally applicable to similar technical problems.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The units in the device of the embodiment of the application can be combined, divided and pruned according to actual needs.
In this application, the same or similar term concept, technical solution, and/or application scenario description will generally be described in detail only when first appearing, and when repeated later, for brevity, will not generally be repeated, and when understanding the content of the technical solution of the present application, etc., reference may be made to the previous related detailed description thereof for the same or similar term concept, technical solution, and/or application scenario description, etc., which are not described in detail later.
In this application, the descriptions of the embodiments are focused on, and the details or descriptions of one embodiment may be found in the related descriptions of other embodiments.
The technical features of the technical solutions of the present application may be arbitrarily combined, and for brevity of description, all possible combinations of the technical features in the above embodiments are not described, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the present application.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as above, including several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to perform the method of each embodiment of the present application.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). Computer readable storage media can be any available media that can be accessed by a computer or data storage devices, such as servers, data centers, etc., that contain an integration of one or more available media. Usable media may be magnetic media (e.g., floppy disks, storage disks, magnetic tape), optical media (e.g., DVD), or semiconductor media (e.g., solid State Disk (SSD)), among others.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the claims, and all equivalent structures or equivalent processes using the descriptions and drawings of the present application, or direct or indirect application in other related technical fields are included in the scope of the claims of the present application.

Claims (7)

1. A method of data processing, comprising:
responding to a triggering operation, and authenticating a user account corresponding to the triggering operation;
when the authentication of the user account passes, extracting user role information in the user account, and determining operation authority corresponding to the user role information;
identifying the data type as a text type; acquiring an operation control set corresponding to the text type, and determining a target control corresponding to the operation authority in the operation control set;
inquiring and obtaining authorization authority information of the user account to the text type;
the operation authority corresponding to the user role information of the user account and the authorization authority information corresponding to the user account are combined to obtain comprehensive authority information;
the comprehensive authority information and the target data in the form of a document list are sent to the front end, so that the front end adjusts the display text of the target data according to the comprehensive authority information, and displays the target control and the adjusted text on a data processing interface corresponding to the target data;
responding to the data processing operation aiming at the target control in the data processing interface, and processing the adjusted text; or,
identifying the data type as an image type; preserving a target image in the target data according to the operation authority; displaying the target image on a data processing interface corresponding to the target data based on the image arrangement sequence corresponding to the target data;
if the image type is a single-frame image, hiding information which is not matched with the operation authority in the single-frame image according to the operation authority; if the image type is multi-frame image, hiding the frame image which is not matched with the operation authority in the multi-frame image in a deleting or skipping playing mode, and displaying the target image in a data processing interface according to the image arrangement sequence of the multi-frame image.
2. The method according to claim 1, wherein said adjusting the presentation text of the target data according to the operation authority comprises:
determining a target text corresponding to the target data;
and reserving target characters corresponding to the operation authorities in the target text.
3. The method according to claim 1 or 2, wherein the extracting user role information in the user account when the user account is authenticated comprises:
when the authentication of the user account passes, outputting a user role contained in the user account;
and responding to the selection operation of the user roles, and extracting user role information corresponding to the selected user roles.
4. The method according to claim 1 or 2, further comprising:
displaying a configuration interface corresponding to the user account;
generating an added user role in the configuration interface in response to a role adding operation for the configuration interface;
and responding to the role configuration operation aiming at the user role, and configuring the operation authority corresponding to the user role.
5. A data processing apparatus, comprising:
the authentication module is used for responding to the triggering operation and authenticating the user account corresponding to the triggering operation;
the extraction module is used for extracting user role information in the user account when the authentication of the user account is passed;
the determining module is used for determining the operation authority corresponding to the user role information;
the acquisition module is used for responding to the determination operation aiming at the target data and acquiring the data type corresponding to the target data;
the output unit is used for identifying the data type as the text type; acquiring an operation control set corresponding to the text type, and determining a target control corresponding to the operation authority in the operation control set; inquiring and obtaining authorization authority information of the user account to the text type; the operation authority corresponding to the user role information of the user account and the authorization authority information corresponding to the user account are combined to obtain comprehensive authority information; the comprehensive authority information and the target data in the form of a document list are sent to the front end, so that the front end adjusts the display text of the target data according to the comprehensive authority information, and displays a target control and the adjusted text on a data processing interface corresponding to the target data;
the processing unit is used for responding to the data processing operation aiming at the target control in the data processing interface and processing the adjusted text; or,
an output unit for identifying the data type as an image type; preserving a target image in the target data according to the operation authority; displaying the target image on a data processing interface corresponding to the target data based on the image arrangement sequence corresponding to the target data;
the processing unit is used for hiding information which is not matched with the operation authority in the single-frame image according to the operation authority if the image type is the single-frame image; if the image type is multi-frame image, hiding the frame image which is not matched with the operation authority in the multi-frame image in a deleting or skipping playing mode, and displaying the target image in a data processing interface according to the image arrangement sequence of the multi-frame image.
6. An electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the data processing method of any of claims 1 to 4 when the computer program is executed.
7. A readable storage medium, characterized in that the readable storage medium stores a computer program which, when executed by a processor, implements the data processing method of any one of claims 1 to 4.
CN202211572632.6A 2022-12-08 2022-12-08 Data processing method, device, electronic equipment and readable storage medium Active CN115630387B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211572632.6A CN115630387B (en) 2022-12-08 2022-12-08 Data processing method, device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211572632.6A CN115630387B (en) 2022-12-08 2022-12-08 Data processing method, device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN115630387A CN115630387A (en) 2023-01-20
CN115630387B true CN115630387B (en) 2024-02-20

Family

ID=84909814

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211572632.6A Active CN115630387B (en) 2022-12-08 2022-12-08 Data processing method, device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN115630387B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977184A (en) * 2010-09-30 2011-02-16 西本新干线股份有限公司 Multi-identity selection landing device and service system
CN111191207A (en) * 2019-12-23 2020-05-22 深圳壹账通智能科技有限公司 Electronic file control method and device, computer equipment and storage medium
US10679160B1 (en) * 2012-05-24 2020-06-09 Jpmorgan Chase Bank Enterprise fulfillment system with dynamic prefetching capabilities, secured data access capabilities and system monitoring
WO2021003751A1 (en) * 2019-07-11 2021-01-14 深圳市鹰硕技术有限公司 Single-account multi-identity login method and apparatus, server, and storage medium
CN112818328A (en) * 2021-02-26 2021-05-18 重庆度小满优扬科技有限公司 Multi-system authority management method, device, equipment and storage medium
CN113568934A (en) * 2021-07-28 2021-10-29 平安银行股份有限公司 Data query method and device, electronic equipment and storage medium
CN113806779A (en) * 2021-09-23 2021-12-17 深圳市商汤科技有限公司 System authority management method and device, electronic equipment and storage medium
CN113821777A (en) * 2021-11-24 2021-12-21 太平金融科技服务(上海)有限公司 Authority control method and device, computer equipment and storage medium
CN114417282A (en) * 2022-01-19 2022-04-29 亿咖通(湖北)技术有限公司 User permission determining method and device, electronic equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977184A (en) * 2010-09-30 2011-02-16 西本新干线股份有限公司 Multi-identity selection landing device and service system
US10679160B1 (en) * 2012-05-24 2020-06-09 Jpmorgan Chase Bank Enterprise fulfillment system with dynamic prefetching capabilities, secured data access capabilities and system monitoring
WO2021003751A1 (en) * 2019-07-11 2021-01-14 深圳市鹰硕技术有限公司 Single-account multi-identity login method and apparatus, server, and storage medium
CN111191207A (en) * 2019-12-23 2020-05-22 深圳壹账通智能科技有限公司 Electronic file control method and device, computer equipment and storage medium
CN112818328A (en) * 2021-02-26 2021-05-18 重庆度小满优扬科技有限公司 Multi-system authority management method, device, equipment and storage medium
CN113568934A (en) * 2021-07-28 2021-10-29 平安银行股份有限公司 Data query method and device, electronic equipment and storage medium
CN113806779A (en) * 2021-09-23 2021-12-17 深圳市商汤科技有限公司 System authority management method and device, electronic equipment and storage medium
CN113821777A (en) * 2021-11-24 2021-12-21 太平金融科技服务(上海)有限公司 Authority control method and device, computer equipment and storage medium
CN114417282A (en) * 2022-01-19 2022-04-29 亿咖通(湖北)技术有限公司 User permission determining method and device, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于ASP.NET的两种权限管理方法的比较;朱耀勤;;电脑知识与技术(31);896-897 页 *
朱耀勤 ; .基于ASP.NET的两种权限管理方法的比较.电脑知识与技术.2008,896-897页. *

Also Published As

Publication number Publication date
CN115630387A (en) 2023-01-20

Similar Documents

Publication Publication Date Title
US10671806B2 (en) Customized customer relationship management platform method and devices
US20190050587A1 (en) Generating electronic agreements with multiple contributors
US10643667B2 (en) Bounding box doubling as redaction boundary
US10430456B2 (en) Automatic grouping based handling of similar photos
CN112804445B (en) Display method and device and electronic equipment
US10372882B2 (en) Media distribution network, associated program products, and methods of using the same
US11004163B2 (en) Terminal-implemented method, server-implemented method and terminal for acquiring certification document
US20150189384A1 (en) Presenting information based on a video
JP2015114828A (en) Information processing apparatus and information processing program
US20160134919A1 (en) Networked data projecting system, projector, and content projecting method
CN110737844B (en) Data recommendation method and device, terminal equipment and storage medium
CN115630387B (en) Data processing method, device, electronic equipment and readable storage medium
US11734447B1 (en) Electronic briefcases for inmate documents
CN112016280B (en) File editing method and device and computer readable medium
CN115993918A (en) Menu processing method, menu processing device, electronic equipment and readable storage medium
CN111767576A (en) User matching method and system based on privacy information and readable storage medium
CN114020206B (en) Electronic photo storage method, device, storage medium and terminal
CN113127909B (en) Feature data processing method and device, electronic equipment and storage medium
US20240179262A1 (en) Object data exchange
CN115328363B (en) File processing method, electronic equipment and related products
US10726105B2 (en) Efficient management, control, and evaluation of captured digital media
CN110708574B (en) Method and device for publishing information
KR20090100675A (en) Method for managing contents bulletined in network and system thereof
CN110619077B (en) Search method
CN114020206A (en) Electronic photo storage method and device, storage medium and terminal

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
GR01 Patent grant
GR01 Patent grant