CN112270003A - Multi-service dynamic data source configuration method, platform and electronic equipment - Google Patents

Multi-service dynamic data source configuration method, platform and electronic equipment Download PDF

Info

Publication number
CN112270003A
CN112270003A CN202011166386.5A CN202011166386A CN112270003A CN 112270003 A CN112270003 A CN 112270003A CN 202011166386 A CN202011166386 A CN 202011166386A CN 112270003 A CN112270003 A CN 112270003A
Authority
CN
China
Prior art keywords
data source
service
configuration information
data
user
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.)
Granted
Application number
CN202011166386.5A
Other languages
Chinese (zh)
Other versions
CN112270003B (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.)
Qifu Shuke (Shanghai) Technology Co.,Ltd.
Original Assignee
Shanghai Qifu Information Technology 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 Shanghai Qifu Information Technology Co ltd filed Critical Shanghai Qifu Information Technology Co ltd
Priority to CN202011166386.5A priority Critical patent/CN112270003B/en
Publication of CN112270003A publication Critical patent/CN112270003A/en
Application granted granted Critical
Publication of CN112270003B publication Critical patent/CN112270003B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • 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

Abstract

The invention discloses a method, a platform and electronic equipment for dynamically configuring a data source for multiple services, wherein the method comprises the following steps: configuring a data source corresponding to each service according to data source configuration information input by a user; setting data source permission of a user group corresponding to each service according to a data source corresponding to the service; before loading the service, reading data source configuration information set for the current user according to the data source permission of the user group; and reading the service data according to the data source configuration information. The invention can support the smooth expansion of different service users, satisfy the data isolation access of different service users and simultaneously satisfy the combination with the authority management of the existing system, and realize the authorized access of the grouping control service data. The invention dynamically configures the service data source based on the existing service platform, does not need subsequent large-scale low-efficiency repeated maintenance work, avoids excessive unnecessary system development and can effectively control the migration reconstruction cost.

Description

Multi-service dynamic data source configuration method, platform and electronic equipment
Technical Field
The invention relates to the technical field of computer information processing, in particular to a multi-service dynamic data source configuration method, a multi-service dynamic data source configuration platform, electronic equipment and a computer readable medium.
Background
With the development of internet technology, service platforms compatible with different services are developed, and these platforms have a set of relatively stable support services, and different service parties want to access the services used by the platforms. However, in general, the data access requirements of different service parties are independent from each other, and can be combined with the rights management system to realize packet control.
The simplest and most common method is to deploy and maintain a complete set of complete system for users of different services; however, in the design, basic resources such as the server and the like need to be purchased separately, and certain resource waste can occur even if cloud service deployment is used; in addition, each new service needs deployment and debugging, and a large amount of repeated work with low efficiency exists. Moreover, the system maintenance cost is high, and when new updates and upgrades are carried out, the system needs to be deployed from the whole system, so that the operation is very troublesome.
There are also some service providers that try to help users use services quickly and conveniently by providing a complete set of system platforms; the design idea is popular at present, but the scheme needs more basic service components to be constructed, the implementation cost is higher, a large amount of reconstruction needs to be performed on the existing system, and most functional modules are not needed by the business system due to different design targets.
Disclosure of Invention
The invention aims to solve the technical problems that a large amount of inefficient repeated maintenance work and unnecessary system development are caused by the fact that an existing platform supports data isolation of different service users and realizes authorized access of packet control service data.
In order to solve the above technical problem, a first aspect of the present invention provides a method for dynamically configuring data sources for multiple services, where the method includes:
configuring a data source corresponding to each service according to data source configuration information input by a user;
setting data source permission of a user group corresponding to each service according to a data source corresponding to the service;
before loading the service, reading data source configuration information set for the current user according to the data source permission of the user group;
and reading the service data according to the data source configuration information.
According to a preferred embodiment of the present invention, the user group includes a multi-level sub-group, and the data source permission of the user in the multi-level sub-group is the same as the data source permission of the user group in which the user is located.
According to a preferred embodiment of the present invention, when the data source permission of the user group is modified to the first data source permission, the data source permission of the users in all the multi-level sub-groups included in the user group is also modified to the first data source permission.
According to a preferred embodiment of the present invention, if the data source configuration information for a certain service is not received, the data source permission of the user group corresponding to the service is the default data source.
According to a preferred embodiment of the invention, the user group comprises a multi-level sub-group, the method further comprising:
receiving data source switching information input by a user;
configuring data source authority of the corresponding service corresponding to the multi-level sub-packet according to the data source switching information;
before loading the service, reading data source configuration information set for the current user according to the data source authority of the user group or the multi-level sub-group;
and reading the service data according to the data source configuration information.
According to a preferred embodiment of the present invention, the data source permissions of the users in the user group comprise data source permissions of the users in the multi-level sub-group.
According to a preferred embodiment of the present invention, the service includes a sub-service, and the data source configuration information includes service table configuration information corresponding to the sub-service, and the method further includes:
extracting a data table corresponding to the sub-service according to the service table configuration information to serve as a logic data source;
and setting the data source permission of the user group corresponding to the sub-service according to the logic data source.
In order to solve the above technical problem, a second aspect of the present invention provides a multi-service dynamic configuration data source platform, including:
the configuration module is used for configuring the data source corresponding to each service according to the data source configuration information input by the user;
the setting module is used for setting the data source permission of the user group corresponding to each service according to the data source corresponding to each service;
the first reading module is used for reading data source configuration information set for the current user according to the data source permission of the user group before the service is loaded;
and the second reading module is used for reading the service data according to the data source configuration information.
According to a preferred embodiment of the present invention, the user group includes a multi-level sub-group, and the data source permission of the user in the multi-level sub-group is the same as the data source permission of the user group in which the user is located.
According to a preferred embodiment of the present invention, when the data source permission of the user group is modified to the first data source permission, the data source permission of the users in all the multi-level sub-groups included in the user group is also modified to the first data source permission.
According to a preferred embodiment of the invention, the platform further comprises:
and the default setting module is used for setting the data source permission of the user group corresponding to the service as a default data source if the data source configuration information of the service is not received.
According to a preferred embodiment of the present invention, the user group comprises a plurality of sub-groups, and the platform further comprises:
the receiving module is used for receiving data source switching information input by a user;
the first configuration module is used for configuring the data source permission of the multi-level sub-packet corresponding to the corresponding service according to the data source switching information;
the first reading module is further configured to read data source configuration information set for a current user according to the data source permission of the user group or the multi-level sub-packet before loading a service;
the second reading module is further configured to read service data according to the data source configuration information.
According to a preferred embodiment of the present invention, the data source permissions of the users in the user group comprise data source permissions of the users in the multi-level sub-group.
According to a preferred embodiment of the present invention, the service includes a sub-service, the data source configuration information includes service table configuration information corresponding to the sub-service, and the platform further includes:
the extraction module is used for extracting the data table corresponding to the sub-service according to the service table configuration information to be used as a logic data source;
and the sub-setting module is used for setting the data source permission of the user group corresponding to the sub-service according to the logic data source.
To solve the above technical problem, a third aspect of the present invention provides an electronic device, comprising:
a processor; and
a memory storing computer executable instructions that, when executed, cause the processor to perform the method described above.
In order to solve the above technical problem, a fourth aspect of the present invention proposes a computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs that, when executed by a processor, implement the above method.
The method and the system mainly use the existing service platform and configure the data source corresponding to each service according to the data source configuration information input by a user; setting data source permission of a user group corresponding to each service according to a data source corresponding to the service; before loading the service, reading data source configuration information set for the current user according to the data source permission of the user group; and reading the service data according to the data source configuration information. The invention can support the smooth expansion of different service users, satisfy the data isolation access of different service users and simultaneously satisfy the combination with the authority management of the existing system, and realize the authorized access of the grouping control service data. The invention dynamically configures the service data source based on the existing service platform, does not need subsequent large-scale low-efficiency repeated maintenance work, avoids excessive unnecessary system development and can effectively control the migration reconstruction cost.
Drawings
In order to make the technical problems solved by the present invention, the technical means adopted and the technical effects obtained more clear, the following will describe in detail the embodiments of the present invention with reference to the accompanying drawings. It should be noted, however, that the drawings described below are only illustrations of exemplary embodiments of the invention, from which other embodiments can be derived by those skilled in the art without inventive step.
FIG. 1 is a flow chart illustrating a method for dynamically configuring data sources for multiple services according to the present invention;
FIG. 2 is a schematic diagram of a data source configuration interface of the present invention;
FIG. 3 is a diagram illustrating the setting of user group data source permissions in accordance with the present invention;
FIG. 4 is a schematic diagram of a structural framework of a multi-service dynamic configuration data source platform according to the present invention;
FIG. 5 is a block diagram of an exemplary embodiment of an electronic device in accordance with the present invention;
FIG. 6 is a diagrammatic representation of one embodiment of a computer-readable medium of the present invention.
Detailed Description
Exemplary embodiments of the present invention will now be described more fully hereinafter with reference to the accompanying drawings, in which exemplary embodiments of the invention may be embodied in many specific forms, and should not be construed as limited to the embodiments set forth herein. Rather, these exemplary embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the invention to those skilled in the art.
The structures, properties, effects or other characteristics described in a certain embodiment may be combined in any suitable manner in one or more other embodiments, while still complying with the technical idea of the invention.
In describing particular embodiments, specific details of structures, properties, effects, or other features are set forth in order to provide a thorough understanding of the embodiments by one skilled in the art. However, it is not excluded that a person skilled in the art may implement the invention in a specific case without the above-described structures, performances, effects or other features.
The flow chart in the drawings is only an exemplary flow demonstration, and does not represent that all the contents, operations and steps in the flow chart are necessarily included in the scheme of the invention, nor does it represent that the execution is necessarily performed in the order shown in the drawings. For example, some operations/steps in the flowcharts may be divided, some operations/steps may be combined or partially combined, and the like, and the execution order shown in the flowcharts may be changed according to actual situations without departing from the gist of the present invention.
The block diagrams in the figures generally represent functional entities and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The same reference numerals denote the same or similar elements, components, or parts throughout the drawings, and thus, a repetitive description thereof may be omitted hereinafter. It will be further understood that, although the terms first, second, third, etc. may be used herein to describe various elements, components, or sections, these elements, components, or sections should not be limited by these terms. That is, these phrases are used only to distinguish one from another. For example, a first device may also be referred to as a second device without departing from the spirit of the present invention. Furthermore, the term "and/or", "and/or" is intended to include all combinations of any one or more of the listed items.
Referring to fig. 1, fig. 1 is a flowchart of a method for dynamically configuring data sources for multiple services according to the present invention, and as shown in fig. 1, the method includes:
s1, configuring the data source corresponding to each service according to the data source configuration information input by the user;
wherein the data source configuration information includes: the service name, the name of the data source corresponding to the service name, the type of the data source, the configuration of the data source, and the like. And configuring a corresponding data source for each service according to the data source configuration information. Wherein. The data source type can be configured into relational database management systems such as MYSQL, SQLServer, Oracle and the like, and can also be suitable for other non-DB data sources such as remote API and other data sources. The data source configuration comprises: unique navigation map (url), vehicle (dirver), identification card (username), password (password), maximum number of links, minimum number of links, request timeout time, connection maximum hold time and cache size, etc.
Illustratively, the data source configuration information input by the user may be received through the data source configuration interface before this step. The method specifically comprises the following steps:
and S11, displaying a data source configuration interface.
In the invention, the data source configuration information can be added, edited, deleted or imported through the data source configuration interface. As shown in fig. 2, the data source configuration interface 10 includes a plurality of configuration buttons 11 and a configuration information display area 12. The configuration button 11 may be an add button, an edit button, a delete button, or an import button. The configuration information display area 12 is used for displaying data source configuration information configured by a user, including but not limited to a service name, a data source name corresponding to the service name, a data source type, a data source configuration, a status, a creation time, an update time, and the like. The configuration information display area 12 further includes a check box 120 corresponding to each piece of data source configuration information, and a user can select the corresponding data source configuration information by checking the check box 120, and simultaneously select an edit button of the configuration buttons 11 or delete a case to edit or delete the selected data source configuration information.
And S12, jumping to a corresponding interface according to the configuration button selected by the user.
The adding button corresponds to an interface for adding data source configuration information, and the corresponding data source configuration information can be added for the new service through the interface. The interface may specifically include a service name input field, a data source name input field corresponding to the service name, a data source type input field, a data source configuration input field, and the like. For a MYSQL-type data source, a service table configuration column may also be further included. The editing button corresponds to an interface for editing the data source configuration information, a user can directly delete the selected data source configuration information by clicking the deleting button, and the importing button corresponds to an interface for importing the data source configuration information.
S2, setting the data source authority of the user group corresponding to each service according to the data source corresponding to the service;
in one example, the user group includes a multi-level sub-group, and the data source permission of the user in the multi-level sub-group is the same as the data source permission of the user group in which the user is located, that is, the sub-level group and the user in the sub-group inherit the data source of the upper-level group by default. Wherein the user group corresponds to the service name in the data source configuration information. As shown in fig. 3, service a corresponds to user group 1 and includes a primary sub-packet 11 and a primary sub-packet 12, and the primary sub-packet 12 further includes a secondary sub-packet 13. In this data source authority management manner, the data source authorities of the user group 1, the first-level sub-group 11, the first-level sub-group 12, and the second-level sub-group 13 are the same, that is, the data source corresponding to the service can be accessed.
In this way, when the data source permission of the user group is modified to the first data source permission, the data source permission of the users in all the multi-level sub-groups included in the user group is also modified to the first data source permission. For example, a separate data source needs to be configured for a new service, and only a corresponding data source needs to be configured for a user group of the service, and all users in the multi-level sub-packet under the service will read service data from the new data source.
In the invention, if the data source configuration information of a certain service is not received, the data source permission of the user group corresponding to the service is the default data source. That is, all user groups and users use the default data source uniformly without configuring the data source configuration information separately.
S3, reading the data source configuration information set for the current user according to the data source authority of the user group before loading the service;
and S4, reading the service data according to the data source configuration information.
Through the steps S3-S4, before loading a new service, reading data source configuration information set for the current user according to the data source permission of the user group; and dynamically creating a business model instance according to the read configuration, and ensuring that a business module accessed by a user reads business data from a specified data source.
Furthermore, the invention can also meet the function of setting different data source authorities for different users of the user group. For example, there are some service parties that need to divide the main service into multiple sub-services, and separate the sub-packets in multiple levels, but the main service administrator needs to have access to all the sub-service data. Therefore, the present invention may further comprise the steps of:
s101, receiving data source switching information input by a user;
the data source switching information comprises designated multi-level sub-groups and one or more data source lists selected from authorized data source lists.
S102, configuring data source authority of the corresponding service corresponding to the multi-level sub-packet according to the data source switching information;
for example, the data source authority of the user group is the data source lists 1-5, and the data source switching information comprises a first-level sub-group and data source lists 2 and 3 selected from the data source lists 1-5. The data source authority of the sub-packet as well is configured as the data source lists 2 and 3.
S103, reading data source configuration information set for the current user according to the data source authority of the user group or the multi-level sub-group before loading the service;
specifically, whether the current user belongs to a user group or a multi-level sub-group can be determined, and if the current user belongs to the user group, data source configuration information set for the current user is determined according to data source permissions (such as data source lists 1-5) of the user group; and if the current user belongs to the first-level sub-group, configuring information of the data source for the current user according to the data source authority (such as the data source lists 2 and 3) of the first-level sub-group.
And S104, reading the service data according to the data source configuration information.
After the steps S103 and S104, the current user will use the newly configured data source to perform service access.
Furthermore, in order to implement a more flexible configuration manner of the data source, for example, the main service includes a plurality of sub-services, independent data source permissions may be configured for the sub-services. The invention sets the service table configuration information corresponding to the sub-service in the data source configuration information to support the requirements of dividing some services into sub-services, thereby more effectively controlling the resource cost. Therefore, the present invention may further comprise the steps of:
s201, extracting a data table corresponding to the sub-service according to the service table configuration information to serve as a logic data source;
the service table configuration information includes data table information corresponding to the sub-service, and the data table is a specified data table in a data source corresponding to the service. For example, two data tables corresponding to two sub-services in one data source are extracted as two logical data sources.
S202, setting data source permission of the user group corresponding to the sub-service according to the logic data source.
Specifically, the data source permission of the user group corresponding to the sub-service may be set as the logical data source corresponding to the sub-service. Before loading the service, reading data source configuration information set for the current user according to the data source permission of the user group; and reading the service data according to the data source configuration information.
Fig. 4 is a schematic structural diagram of a multi-service dynamic configuration data source platform according to the present invention, and as shown in fig. 4, the platform includes:
a configuration module 41, configured to configure a data source corresponding to each service according to data source configuration information input by a user;
a setting module 42, configured to set, according to a data source corresponding to each service, a data source permission of a user group corresponding to the service;
a first reading module 43, configured to read, before loading a service, data source configuration information set for a current user according to the data source permission of the user group;
and the second reading module 44 is configured to read the service data according to the data source configuration information.
In a specific embodiment, the user group includes a multi-level sub-group, and the data source permission of the user in the multi-level sub-group is the same as the data source permission of the user group in which the user is located. When the data source permission of the user group is modified into the first data source permission, the data source permission of all the users in the multilevel subgroups contained in the user group is also modified into the first data source permission.
Further, the platform further comprises:
and the default setting module is used for setting the data source permission of the user group corresponding to the service as a default data source if the data source configuration information of the service is not received.
In one embodiment, the user group comprises a plurality of sub-groups, and the platform further comprises:
a receiving module 45, configured to receive data source switching information input by a user;
a first configuration module 46, configured to configure a data source permission of a multi-level sub-packet corresponding to a corresponding service according to the data source switching information;
the first reading module 43 is further configured to, before the service is loaded, read data source configuration information set for the current user according to the data source permission of the user group or the multi-level sub-packet; wherein the data source permission of the users in the user group comprises the data source permission of the users in the multi-level sub-group.
The second reading module 44 is further configured to read service data according to the data source configuration information.
In another specific embodiment, the service includes a sub-service, the data source configuration information includes service table configuration information corresponding to the sub-service, and the platform further includes:
an extracting module 47, configured to extract a data table corresponding to the sub-service according to the service table configuration information to serve as a logical data source;
and the sub-setting module 48 is used for setting the data source permission of the user group corresponding to the sub-service according to the logic data source.
Those skilled in the art will appreciate that the modules in the above-described embodiments of the apparatus may be distributed as described in the apparatus, and may be correspondingly modified and distributed in one or more apparatuses other than the above-described embodiments. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules.
In the following, embodiments of the electronic device of the present invention are described, which may be regarded as an implementation in physical form for the above-described embodiments of the method and apparatus of the present invention. Details described in the embodiments of the electronic device of the invention should be considered supplementary to the embodiments of the method or apparatus described above; for details which are not disclosed in embodiments of the electronic device of the invention, reference may be made to the above-described embodiments of the method or the apparatus.
Fig. 5 is a block diagram of an exemplary embodiment of an electronic device according to the present invention. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 5, the electronic device 500 of the exemplary embodiment is represented in the form of a general-purpose data processing device. The components of the electronic device 500 may include, but are not limited to: at least one processing unit 510, at least one memory unit 520, a bus 530 connecting different electronic device components (including the memory unit 520 and the processing unit 510), a display unit 540, and the like.
The storage unit 520 stores a computer readable program, which may be a code of a source program or a read-only program. The program may be executed by the processing unit 510 such that the processing unit 510 performs the steps of various embodiments of the present invention. For example, the processing unit 510 may perform the steps as shown in fig. 1.
The memory unit 520 may include a readable medium in the form of a volatile memory unit, such as a random access memory unit (RAM)5201 and/or a cache memory unit 5202, and may further include a read only memory unit (ROM) 5203. The memory unit 520 may also include a program/utility 5204 having a set (at least one) of program modules 5205, such program modules 5205 including, but not limited to: operating the electronic device, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 530 may be one or more of any of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 500 may also communicate with one or more external devices 300 (e.g., keyboard, display, network device, bluetooth device, etc.), enable a user to interact with the electronic device 500 via the external devices 500, and/or enable the electronic device 500 to communicate with one or more other data processing devices (e.g., router, modem, etc.). Such communication can occur via input/output (I/O) interfaces 550, and can also occur via network adapter 560 to one or more networks, such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet. The network adapter 560 may communicate with other modules of the electronic device 500 via the bus 530. It should be appreciated that although not shown in FIG. 5, other hardware and/or software modules may be used in the electronic device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID electronics, tape drives, and data backup storage electronics, among others.
FIG. 6 is a schematic diagram of one computer-readable medium embodiment of the present invention. As shown in fig. 6, the computer program may be stored on one or more computer readable media. The computer readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electronic device, apparatus, or device that is electronic, magnetic, optical, electromagnetic, infrared, or semiconductor, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. The computer program, when executed by one or more data processing devices, enables the computer-readable medium to implement the above-described method of the invention, namely: configuring a data source corresponding to each service according to data source configuration information input by a user; setting data source permission of a user group corresponding to each service according to a data source corresponding to the service; before loading the service, reading data source configuration information set for the current user according to the data source permission of the user group; and reading the service data according to the data source configuration information.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments of the present invention described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to make a data processing device (which can be a personal computer, a server, or a network device, etc.) execute the above-mentioned method according to the present invention.
The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution electronic device, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including object oriented programming languages such as Java, C + + or the like and conventional procedural programming languages, such as "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In summary, the present invention can be implemented as a method, an apparatus, an electronic device, or a computer-readable medium executing a computer program. Some or all of the functions of the present invention may be implemented in practice using a general purpose data processing device such as a microprocessor or a Digital Signal Processor (DSP).
While the foregoing embodiments have described the objects, aspects and advantages of the present invention in further detail, it should be understood that the present invention is not inherently related to any particular computer, virtual machine or electronic device, and various general-purpose machines may be used to implement the present invention. The invention is not to be considered as limited to the specific embodiments thereof, but is to be understood as being modified in all respects, all changes and equivalents that come within the spirit and scope of the invention.

Claims (10)

1. A method for multi-service dynamic configuration of data sources, the method comprising:
configuring a data source corresponding to each service according to data source configuration information input by a user;
setting data source permission of a user group corresponding to each service according to a data source corresponding to the service;
before loading the service, reading data source configuration information set for the current user according to the data source permission of the user group;
and reading the service data according to the data source configuration information.
2. The method of claim 1, wherein the user group comprises a multi-level sub-group, and wherein the data source permissions of users in the multi-level sub-group are the same as the data source permissions of the user group in which the users are located.
3. The method according to any one of claims 1-2, wherein when the data source permission of a user group is modified to the first data source permission, the data source permission of the users in all the multi-level sub-groups included in the user group is also modified to the first data source permission.
4. The method according to any of claims 1-3, wherein if no data source configuration information for a service is received, the data source permission of the user group corresponding to the service is a default data source.
5. The method of any of claims 1-4, wherein the user group comprises a multi-level sub-group, the method further comprising:
receiving data source switching information input by a user;
configuring data source authority of the corresponding service corresponding to the multi-level sub-packet according to the data source switching information;
before loading the service, reading data source configuration information set for the current user according to the data source authority of the user group or the multi-level sub-group;
and reading the service data according to the data source configuration information.
6. The method according to any of claims 1-5, wherein the data source permissions of the users in the user group comprise data source permissions of the users in the multi-level sub-group.
7. The method according to any of claims 1-6, wherein the service comprises a sub-service, and the data source configuration information comprises service table configuration information corresponding to the sub-service, the method further comprising:
extracting a data table corresponding to the sub-service according to the service table configuration information to serve as a logic data source;
and setting the data source permission of the user group corresponding to the sub-service according to the logic data source.
8. A multi-service platform for dynamically configuring data sources, the platform comprising:
the configuration module is used for configuring the data source corresponding to each service according to the data source configuration information input by the user;
the setting module is used for setting the data source permission of the user group corresponding to each service according to the data source corresponding to each service;
the first reading module is used for reading data source configuration information set for the current user according to the data source permission of the user group before the service is loaded;
and the second reading module is used for reading the service data according to the data source configuration information.
9. An electronic device, comprising: a processor; and
a memory storing computer-executable instructions that, when executed, cause the processor to perform the method of any of claims 1-7.
10. A computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method of any of claims 1-7.
CN202011166386.5A 2020-10-27 2020-10-27 Multi-service dynamic data source configuration method, platform and electronic equipment Active CN112270003B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011166386.5A CN112270003B (en) 2020-10-27 2020-10-27 Multi-service dynamic data source configuration method, platform and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011166386.5A CN112270003B (en) 2020-10-27 2020-10-27 Multi-service dynamic data source configuration method, platform and electronic equipment

Publications (2)

Publication Number Publication Date
CN112270003A true CN112270003A (en) 2021-01-26
CN112270003B CN112270003B (en) 2023-05-02

Family

ID=74342329

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011166386.5A Active CN112270003B (en) 2020-10-27 2020-10-27 Multi-service dynamic data source configuration method, platform and electronic equipment

Country Status (1)

Country Link
CN (1) CN112270003B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113220290A (en) * 2021-04-23 2021-08-06 杭州数跑科技有限公司 Method, device, equipment and storage medium for realizing business function of application
CN113468380A (en) * 2021-06-30 2021-10-01 杭州玳数科技有限公司 Data export method

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631816A (en) * 2012-08-27 2014-03-12 阿里巴巴集团控股有限公司 Method for configuring and applying service model across data sources and equipment
CN105824625A (en) * 2016-03-14 2016-08-03 北京中电普华信息技术有限公司 Business application construction device and method based on cloud environment
CN107025411A (en) * 2017-03-22 2017-08-08 红有软件股份有限公司 A kind of system and method for fine-grained data permission dynamic control
CN108881108A (en) * 2017-05-09 2018-11-23 北京京东尚科信息技术有限公司 The method and apparatus of rights management
CN109189841A (en) * 2018-07-24 2019-01-11 中国电力科学研究院有限公司 A kind of multi-data source access method and system
CN110263558A (en) * 2019-06-13 2019-09-20 泰康保险集团股份有限公司 Service authority management method, device, electronic equipment and computer-readable medium
CN110348672A (en) * 2019-05-24 2019-10-18 深圳壹账通智能科技有限公司 Operational decision making method, apparatus calculates equipment and computer readable storage medium
CN110795478A (en) * 2019-09-29 2020-02-14 北京淇瑀信息科技有限公司 Data warehouse updating method and device applied to financial business and electronic equipment
CN111612513A (en) * 2020-04-11 2020-09-01 上海淇玥信息技术有限公司 Resource allocation method and device based on business project information and electronic equipment
CN111666559A (en) * 2020-06-19 2020-09-15 中信银行股份有限公司 Data bus management method and device supporting authority management, electronic equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631816A (en) * 2012-08-27 2014-03-12 阿里巴巴集团控股有限公司 Method for configuring and applying service model across data sources and equipment
CN105824625A (en) * 2016-03-14 2016-08-03 北京中电普华信息技术有限公司 Business application construction device and method based on cloud environment
CN107025411A (en) * 2017-03-22 2017-08-08 红有软件股份有限公司 A kind of system and method for fine-grained data permission dynamic control
CN108881108A (en) * 2017-05-09 2018-11-23 北京京东尚科信息技术有限公司 The method and apparatus of rights management
CN109189841A (en) * 2018-07-24 2019-01-11 中国电力科学研究院有限公司 A kind of multi-data source access method and system
CN110348672A (en) * 2019-05-24 2019-10-18 深圳壹账通智能科技有限公司 Operational decision making method, apparatus calculates equipment and computer readable storage medium
CN110263558A (en) * 2019-06-13 2019-09-20 泰康保险集团股份有限公司 Service authority management method, device, electronic equipment and computer-readable medium
CN110795478A (en) * 2019-09-29 2020-02-14 北京淇瑀信息科技有限公司 Data warehouse updating method and device applied to financial business and electronic equipment
CN111612513A (en) * 2020-04-11 2020-09-01 上海淇玥信息技术有限公司 Resource allocation method and device based on business project information and electronic equipment
CN111666559A (en) * 2020-06-19 2020-09-15 中信银行股份有限公司 Data bus management method and device supporting authority management, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113220290A (en) * 2021-04-23 2021-08-06 杭州数跑科技有限公司 Method, device, equipment and storage medium for realizing business function of application
CN113468380A (en) * 2021-06-30 2021-10-01 杭州玳数科技有限公司 Data export method

Also Published As

Publication number Publication date
CN112270003B (en) 2023-05-02

Similar Documents

Publication Publication Date Title
US10127218B2 (en) Object templates for data-driven applications
CN109542459A (en) Application program packaging method and device, computer installation and computer storage medium
CN106201481A (en) Assembly management method and apparatus in application development system
CN105487864A (en) Method and device for automatically generating code
CN107168749A (en) A kind of Compilation Method, device, equipment and computer-readable recording medium
CN108351769B (en) Dashboard as a remote computing service
US9473304B1 (en) Generation and distribution of named, definable, serialized tokens
CN112016128A (en) Vue development method and device based on CRUD and authority management
CN112270003B (en) Multi-service dynamic data source configuration method, platform and electronic equipment
CN109976803B (en) File generation method and device
US8938712B2 (en) Cross-platform virtual machine and method
CN110688096B (en) Method and device for constructing application program containing plug-in, medium and electronic equipment
CN108351766B (en) Creating and modifying applications from mobile devices
CN114239055A (en) Distributed database multi-tenant isolation method and system
CN107491700B (en) Data access method and equipment
WO2021114902A1 (en) Program initialization method, program initialization device, terminal device, and storage medium
CN111198880A (en) Data storage method and device based on redis and electronic equipment
CN115311399A (en) Image rendering method and device, electronic equipment and storage medium
US20220365758A1 (en) Tool for Introspection in Object-Oriented Source Code
US11558387B2 (en) Validation of approver identifiers in a cloud computing environment
CN115485677A (en) Secure data replication in a distributed data storage environment
CN113535221A (en) Method and device for managing application version
CN113031928A (en) Web system generation method and device, electronic equipment and computer readable storage medium
CN111737964A (en) Form dynamic processing method, equipment and medium
CN114707179B (en) Resource authorization method and device of cluster system, medium and electronic equipment

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 201500 room a3-5588, 58 Fumin Branch Road, Hengsha Township, Chongming District, Shanghai (Shanghai Hengtai Economic Development Zone)

Patentee after: Qifu Shuke (Shanghai) Technology Co.,Ltd.

Address before: 201500 room a3-5588, 58 Fumin Branch Road, Hengsha Township, Chongming District, Shanghai (Shanghai Hengtai Economic Development Zone)

Patentee before: Shanghai Qifu Information Technology Co.,Ltd.