CN113722289A - Method, device, electronic equipment and medium for constructing data service - Google Patents

Method, device, electronic equipment and medium for constructing data service Download PDF

Info

Publication number
CN113722289A
CN113722289A CN202110909885.7A CN202110909885A CN113722289A CN 113722289 A CN113722289 A CN 113722289A CN 202110909885 A CN202110909885 A CN 202110909885A CN 113722289 A CN113722289 A CN 113722289A
Authority
CN
China
Prior art keywords
data
service
interface
business
index
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110909885.7A
Other languages
Chinese (zh)
Inventor
许琮维
徐奥
王振众
杨亮
黄亦雅
陈勇达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangxiao Steel Structure Co Ltd
Original Assignee
Hangxiao Steel Structure 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 Hangxiao Steel Structure Co Ltd filed Critical Hangxiao Steel Structure Co Ltd
Priority to CN202110909885.7A priority Critical patent/CN113722289A/en
Publication of CN113722289A publication Critical patent/CN113722289A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/211Schema design and management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/2433Query languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a method, a device, electronic equipment and a medium for constructing data service. In the application, the data to be associated can be acquired by a database of a registration service system; respectively carrying out association configuration on the associated service data based on different service themes to obtain service data sets corresponding to the different service themes; and establishing an interface for the corresponding service data set based on the service requirement, and realizing uniform theme data service. By applying the technical scheme of the application, unified management and standardized data service can be carried out on the data source, so that business personnel can realize mapping from original data to reusable theme business data with business significance through input configuration without compiling codes, the dependence on repeated development and development technology is greatly reduced, and the requirement of upper layer data with various changes can be met.

Description

Method, device, electronic equipment and medium for constructing data service
Technical Field
The present application relates to data processing technologies, and in particular, to a method, an apparatus, an electronic device, and a medium for constructing a data service.
Background
With the continuous development of modern information technology, the data demand is increased in a blowout mode, and various data platforms are produced accordingly. Furthermore, the data service is one of the core components of various data platforms, collects and processes data in a bottom information system, generates a data interface, and provides data support for upper-layer applications such as intelligent BI (business intelligence) and auxiliary decision making.
The traditional customized data service is developed by information personnel at one time according to the requirements of an upper-layer business system, however, the requirements of upper-layer business data are various, the sources of bottom-layer data are rich, the data integration and sharing of different information systems are complex, and the time, the labor and the efficiency are low. In addition, enterprise business lines are complex, and the difference in understanding and the non-uniform aperture between employees can cause lack of accuracy in the provision of the constructed data service.
Therefore, how to design a scheme capable of responding to the data transmission requirement in time becomes a problem to be solved by those skilled in the art.
Disclosure of Invention
The embodiment of the application provides a method, a device, an electronic device and a medium for constructing a data service, and is used for solving the problem of low data transmission efficiency caused by complex data integration and sharing of different information systems in the related technology.
According to an aspect of an embodiment of the present application, there is provided a method for constructing a data service, including:
acquiring service data to be associated;
respectively performing association configuration on the service data to be associated based on different service themes to obtain service data sets corresponding to the different service themes;
respectively creating a corresponding data interface for each business theme, wherein the data interface comprises a corresponding transmission interface name, interface attribute information and interface parameters of the business theme to which the interface belongs;
and building a data service database based on the service data set and the corresponding data interface, and realizing data service by using the data service database.
Optionally, in another embodiment based on the foregoing method of the present application, after the obtaining the service data to be associated, the method further includes:
index identification labeling is respectively carried out on each to-be-associated business data, and the index identification comprises an atomic index identification, a composite index identification and a derived index identification; and the number of the first and second groups,
calculating the data step length of each service data to be associated corresponding to the derived index identifier;
and storing the service data packets to be associated in the same data step size range under the same derived index identifier.
Optionally, in another embodiment based on the foregoing method of the present application, the performing index identification on each to-be-associated service data respectively includes:
detecting whether the service data to be associated is minimum unit data or not;
if yes, marking the business data to be associated as an atomic index identifier;
if not, marking the service data to be associated as a composite index identifier.
Optionally, in another embodiment based on the foregoing method of the present application, after the detecting whether the service data to be associated is minimum unit data, the method further includes:
according to the service requirement, performing data aggregation on the service data to be associated corresponding to the atomic index identifier and the service data to be associated corresponding to the composite index identifier to obtain aggregated service data;
and marking the aggregated service data as a derived index identifier.
Optionally, in another embodiment based on the foregoing method of the present application, the performing, based on different service themes, association configuration on the service data to be associated respectively includes:
determining business data to be associated to each business theme;
and performing association configuration on the business data to be associated of the same-name fields in the business data to be associated to which each business subject belongs by using a preset association mode, wherein the preset association mode comprises at least one of internal connection association, left connection association, external connection association and full connection association.
Optionally, in another embodiment based on the foregoing method of the present application, the creating a corresponding data interface for each service theme respectively includes:
performing service basic configuration, return value configuration and input parameter configuration on a data interface, wherein the service basic configuration comprises a received interface name, an interface attribute, a subject to which the interface belongs and a query index type, the return value configuration comprises a data index type returned to a user, and the input parameter configuration corresponds to a field name, a default value, a field description, an index name and a screening rule;
and carrying out data service test on the data interface which is subjected to service basic configuration, return value configuration and input parameter configuration.
Optionally, in another embodiment based on the foregoing method of the present application, the implementing data services by using the data service database includes:
receiving a data calling request sent by a user, wherein the data calling request comprises a calling interface address parameter and a data input parameter;
calling corresponding business data from the data service database according to the data input parameters;
and returning the service data to the user from the data interface corresponding to the interface address parameter.
According to another aspect of the embodiments of the present application, there is provided an apparatus for constructing a data service, including:
an acquisition module configured to acquire service data to be associated;
the association module is set to respectively carry out association configuration on the service data to be associated based on different service themes to obtain service data sets corresponding to the different service themes;
the creating module is set to respectively create corresponding data interfaces for each business theme, and each data interface comprises a corresponding transmission interface name, interface attribute information and interface parameters of the business theme to which the interface belongs;
and the transmission module is set to build a data service database based on the service data set and the corresponding data interface, and realize data service by using the data service database.
According to another aspect of the embodiments of the present application, there is provided an electronic device including:
a memory for storing executable instructions; and
a display for display with the memory for executing the executable instructions to perform the operations of any of the above-described methods of constructing a data service.
According to a further aspect of the embodiments of the present application, there is provided a computer-readable storage medium for storing computer-readable instructions, which, when executed, perform the operations of any one of the above methods for constructing a data service.
In the application, the data to be associated can be acquired by a database of a registered service system; respectively carrying out association configuration on the associated service data based on different service themes to obtain service data sets corresponding to the different service themes; and establishing an interface for the corresponding service data set based on the service requirement, and realizing uniform theme data service. By applying the technical scheme of the application, unified management and standardized data service can be carried out on the data source, so that business personnel can realize mapping from original data to reusable theme business data with business significance through input configuration without compiling codes, the dependence on repeated development and development technology is greatly reduced, and the requirement of upper layer data with various changes can be met.
The technical solution of the present application is further described in detail by the accompanying drawings and examples.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description, serve to explain the principles of the application.
The present application may be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:
FIG. 1 is a schematic diagram of a method for constructing a data service according to the present application;
fig. 2-6 are system construction diagrams of a data service database proposed in the present application;
FIG. 7 is a schematic diagram of an apparatus for constructing data services according to the present application;
fig. 8 is a schematic structural diagram of an electronic device for constructing a data service according to the present application.
Detailed Description
Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present application unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the application, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
In addition, technical solutions between the various embodiments of the present application may be combined with each other, but it must be based on the realization of the technical solutions by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination of technical solutions should be considered to be absent and not within the protection scope of the present application.
It should be noted that all the directional indicators (such as upper, lower, left, right, front and rear … …) in the embodiment of the present application are only used to explain the relative position relationship between the components, the motion situation, etc. in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indicator is changed accordingly.
A method for conducting a build data service according to an exemplary embodiment of the present application is described below in conjunction with fig. 1-6. It should be noted that the following application scenarios are merely illustrated for the convenience of understanding the spirit and principles of the present application, and the embodiments of the present application are not limited in this respect. Rather, embodiments of the present application may be applied to any scenario where applicable.
Further, the application also provides a method, a device, a target terminal and a medium for constructing the data service.
Fig. 1 schematically shows a flow diagram of a method of building a data service according to an embodiment of the present application. As shown in fig. 1, the method should include:
s101, acquiring service data to be associated.
S102, based on different business themes, performing association configuration on the to-be-associated business data respectively to obtain business data sets corresponding to the different business themes.
S103, respectively creating a corresponding data interface for each business topic, wherein the data interface comprises a corresponding transmission interface name, interface attribute information and interface parameters of the business topic to which the interface belongs.
And S104, building a data service database based on the service data set and the corresponding data interface, and realizing data service by using the data service database.
Further, as shown in fig. 2, the data service database of the present application may be used to perform unified registration and management on underlying business data, organize different data sources, and construct a custom table. In addition, the method can further comprise a data source registration module and a custom table creation module.
For the data source registration module, a data source unified registration interface can be provided, and configuration information required by the to-be-associated service data is read and stored. And the operator fills configuration information such as the type, name, connection address, user name, password and the like of the data source according to the prompt, the data source registration module stores the configuration and then performs a connectivity test on the data source, and the data source is added into the to-be-associated service data list after the test is passed.
In addition, the method and the device can also select the business data to be associated at first, automatically analyze the selected business data to be associated, and display the fields with the same name in a certain associated field list view as default associated fields for the data table with the fields with the same name.
Furthermore, the required association mode can be selected according to the association mode schematic diagram in the association mode process, and the configurable association mode comprises internal connection, left connection, external connection, full connection and the like.
Optionally, according to the service data obtained in the above steps, a data query statement may be automatically generated to query the data, and the custom creation module is also configured to receive the SQL query statement to create the custom data.
Furthermore, the method and the device can also perform association configuration on the association-to-be-associated service data respectively based on different service themes to obtain service data sets corresponding to different service themes. For example, the educational business theme and the corresponding educational business data can be configured in an associated manner, so as to obtain an educational business data set corresponding to the educational business theme. Or, the video service theme and the corresponding video service data may be configured in an associated manner to obtain a video service data set corresponding to the video service theme.
In the application, the data to be associated can be acquired by a database of a registered service system; respectively carrying out association configuration on the associated service data based on different service themes to obtain service data sets corresponding to the different service themes; and establishing an interface for the corresponding service data set based on the service requirement, and realizing uniform theme data service. By applying the technical scheme of the application, unified management and standardized data service can be carried out on the data source, so that business personnel can realize mapping from original data to reusable theme business data with business significance through input configuration without compiling codes, the dependence on repeated development and development technology is greatly reduced, and the requirement of upper layer data with various changes can be met.
Optionally, in a possible implementation manner of the present application, after the obtaining the service data to be associated, the method further includes:
index identification labeling is respectively carried out on each to-be-associated business data, and the index identification comprises an atomic index identification, a composite index identification and a derived index identification; and the number of the first and second groups,
calculating the data step length of each service data to be associated corresponding to the derived index identifier;
and storing the service data packets to be associated in the same data step size range under the same derived index identifier.
Optionally, in a possible implementation manner of the present application, the performing index identification on each to-be-associated service data respectively includes:
detecting whether the service data to be associated is minimum unit data or not;
if yes, marking the business data to be associated as an atomic index identifier;
if not, marking the service data to be associated as a composite index identifier.
Optionally, in a possible implementation manner of the present application, after detecting whether the service data to be associated is minimum unit data, the method further includes:
according to the service requirement, performing data aggregation on the service data to be associated corresponding to the atomic index identifier and the service data to be associated corresponding to the composite index identifier to obtain aggregated service data;
and marking the aggregated service data as a derived index identifier.
Further, the method can perform theme configuration on each service data to be associated, and in one mode, the theme configuration can be defined for a specific service process according to actual management requirements;
first, for an atomic index configuration, an atomic index is the smallest unit of data that is not resolvable, such as time data, amount data, and so forth. The method comprises the following steps of receiving the binding relationship between the atomic indexes and the database fields, and receiving data files and data interfaces for data injection.
For the configuration of the composite index, the composite index is a calculation index formed by an atomic index through a certain operation rule based on business requirements, and the step receives the data type obtained through selection operation, the atomic index obtained through dragging operation and an input calculation symbol to define a composite index calculation function.
For example, for the service data: for the "zhang san consumes 5 yuan in 1 st 1 day", the service data "zhang san consumes 5 yuan in 1 st day" is the service data to be associated of the composite index identifier, and for "zhang san", "1 st 1 day", and "5 yuan", it is the smallest unit data (i.e. corresponding to the atomic index identifier) which is not separable.
Optionally, the derived indexes are configured, the derived indexes are calculation indexes formed by screening and aggregating the atomic indexes or the composite indexes through specified dimensions and limited conditions based on business requirements, and the step receives the atomic indexes or the composite indexes, the screening mode, the aggregation dimensions and the like obtained through selection operation to define the calculation mode of the derived indexes.
Finally, the method and the device can perform structure synchronization on each service data based on the configured indexes, and perform periodic index calculation and data synchronization based on the configured calculation function and the synchronization rule.
Further, the method can also perform return value configuration, wherein the return value is an index corresponding to data acquired when the data service interface is called, and the step receives an atomic index, a composite index or a derived index acquired through selection operation and a format conversion mode corresponding to the atomic index, the composite index or the derived index and defines the return value.
Optionally, the method may further include configuring input parameters, where the input parameters are used to define the return value in a certain dimension, and the step receives an atomic index, a screening rule, and an input default value specified by the selection operation to define the input parameters.
Finally, the method can also carry out service interface test, the system automatically tests the data service interface based on the input parameters and the corresponding default values after the configuration is completed, and the creation is completed after the test is passed. In one approach, the return values and input parameters may be defined in the advanced settings view by editing SQL statements.
Optionally, in a possible implementation manner of the present application, the performing, based on different service themes, association configuration on the service data to be associated respectively includes:
determining business data to be associated to each business theme;
and performing association configuration on the business data to be associated of the same-name fields in the business data to be associated to which each business subject belongs by using a preset association mode, wherein the preset association mode comprises at least one of internal connection association, left connection association, external connection association and full connection association.
Optionally, in a possible implementation manner of the present application, the creating a corresponding data interface for each service theme respectively includes:
performing service basic configuration, return value configuration and input parameter configuration on a data interface, wherein the service basic configuration comprises a received interface name, an interface attribute, a subject to which the interface belongs and a query index type, the return value configuration comprises a data index type returned to a user, and the input parameter configuration corresponds to a field name, a default value, a field description, an index name and a screening rule;
and carrying out data service test on the data interface which is subjected to service basic configuration, return value configuration and input parameter configuration.
Optionally, in a possible implementation manner of the present application, the implementing a data service by using the data service database includes:
receiving a data calling request sent by a user, wherein the data calling request comprises a calling interface address parameter and a data input parameter;
calling corresponding business data from the data service database according to the data input parameters;
and returning the service data to the user from the data interface corresponding to the interface address parameter.
Further, the method is used for performing unified registration and management on the bottom layer service data, organizing different data sources and constructing a custom table;
further, in the process of configuring the database in the present application, as shown in fig. 4, the method includes:
the method comprises the following steps: theme configuration step: and performing theme definition on configuration information such as the receiving theme name and the service description of each service data to be associated.
Step two: an atomic index configuration step: receiving configuration information such as index name, index description, data type, data length and the like to define an atomic index, wherein the atomic index can specify three data sources including a database, a data file and a data interface, and the data sources need to contain unique object identifiers;
for the index of which the data source is a database, a corresponding data table can be selected to be bound with the field; for the index of which the data source is a data file, providing a data file template corresponding to the index for downloading, uploading the file after an operator fills data according to the template, automatically checking whether a file field corresponds to the index or not, and writing the data after the check is successful;
for the index of which the data source is the data interface, a data format example corresponding to the address of the data writing interface and the index is provided, and the operator calls the interface to write the data.
Step three: a composite index configuration step: receiving configuration information such as index names, index descriptions and index data types, providing a composite index calculation function definition view, selecting atomic indexes to be calculated by an operator in a dragging mode, generating a composite index calculation function by combining operation symbols, and defining composite indexes of types such as time, numbers, character strings and the like;
step four: a step of configuring derived indexes: receiving an atomic index or a composite index obtained by selection operation, a screening mode, a polymerization dimension and the like to define a derived index calculation mode;
step five: and a data synchronization step: the table structure synchronization is performed based on the above configuration, and the periodicity index calculation and the data synchronization are performed based on the configured synchronization period, and in one mode, for example, the synchronization period may be defaulted to every day.
Further, as shown in fig. 5, the detailed processing steps of the above-mentioned derived index configuration step take the derived index "monthly total profit of the product with the year 2019 greater than 100" as an example, and the derived index configuration main step is as follows;
basic information configuration: configuring index name and index description, selecting an atomic index or a composite index which needs to be calculated, and selecting a composite index 'profit' in the embodiment;
optionally, self-limiting condition configuration: and selecting a limiting condition of the index based on the data type of the selected index, wherein the limiting condition comprises a screening mode and screening reference content.
The character string type data comprises screening modes of including, not including, beginning being, ending being, equal and the like; the digital type data comprises screening modes such as greater than, greater than or equal to, less than or equal to and the like; the time type data can screen the time period and the time part, the time period is defined by appointing the starting time and the ending time, the time part needs to appoint the time part, the screening mode and the screening reference value, the time part comprises seconds, minutes, hours, days, months and years, and the screening mode is the same as the digital type data.
It should be noted that one or more limiting conditions may be configured, and when a plurality of limiting conditions are configured, all or any one of the limiting conditions may be selected to be satisfied. In this embodiment, the index data type is a number, the screening mode is "greater than" and the screening reference content is "100";
optionally, for the configuration of the aggregation mode: the aggregation mode of the index may be selected, including summation, average, count, repetition count, maximum, minimum, and the like, which is "summation" in this embodiment; optionally, the aggregation/screening criteria configuration: selecting other limiting conditions for screening the indexes or indexes corresponding to the dimension for aggregating the indexes, wherein the selected index is 'transaction time';
optionally, the present application may also have other configuration of the limiting conditions: selecting the limiting conditions related to the other indexes, wherein the configuration mode of the limiting conditions is the same as that of the limiting conditions, in this embodiment, the index "transaction time" is subjected to time part screening, the time part is "year", the screening mode is "equal to", and the screening reference value is "2019";
optionally, for the aggregated dimension configuration: first define the aggregate dimension name and description, in this embodiment "month" and "month of trade", and then select the aggregate dimension based on the index data type: the character string type is that data are grouped and are aggregated by taking the group as a dimension, an operation user can create a group by creating a data grouping interface and drag or input a numerical value belonging to the group into the group, and data which are not grouped are not subjected to aggregation operation.
The data type is grouped according to a certain step length, and aggregation is carried out by taking groups as dimensions, the number of the groups is determined by an initial value and the step length which are set by an operator and a maximum value in the data, the method is mainly used for counting the numerical conditions of different intervals, and the data which are not grouped are not subjected to aggregation operation;
the time types can be aggregated according to time truncation or time portions, wherein the time truncation refers to grouping the time according to a certain time dimension and aggregating data in each time grouping, and the data comprises year, year-quarter, year-month-day-hour-minute-second; the time part selects a certain part of time to group the data, and counts the aggregation results of the time part under different values, wherein the time part comprises year, quarter, month, day, hour, minute and second; this example selects a time cut-off for the polymerization, the selected time dimension being "year-month".
In addition, the data interface can be constructed in advance, data interface parameters can be visually defined, and unified data service is provided. The processing steps are shown in fig. 6, and include:
the method comprises the following steps: a service basic configuration step, wherein the service basic configuration step can receive configurations such as an interface name, an interface attribute, a subject to which the interface belongs, a query index type and the like, wherein the index type can select an atomic index/a composite index or a derived index, and automatically generate a data service calling address according to the configurations;
step two: a return value configuration step, wherein an operator can select an atomic index, a composite index or a derivative index which needs to be returned and select a required format conversion mode according to the data type to define the return value;
the digital type comprises format conversion modes such as integer decimal conversion, decimal reserved digit setting and the like; the character types comprise format conversion modes such as case conversion, left space removal and right space removal; the time type includes format conversion modes such as date format conversion and time format conversion.
Step three: an input parameter configuration step, wherein an operator can configure field names, default values and field descriptions, and select corresponding atomic index names and corresponding screening rules to define input parameters, the screening mode is the same as that of the E2 step, and the screening reference content is the input parameters;
step four: and a data service calling and testing step, namely automatically testing the data service interface by the configured data service creating module based on the default value of the input parameter, and previewing and calling the data service by an operator after the test is passed. Optionally, the return value and the input parameter may be further defined in the advanced settings view by editing SQL statements.
In another embodiment of the present application, as shown in fig. 7, the present application further provides an apparatus for constructing a data service. Wherein, the device includes:
an acquisition module configured to acquire service data to be associated;
the association module is set to respectively carry out association configuration on the service data to be associated based on different service themes to obtain service data sets corresponding to the different service themes;
the creating module is set to respectively create corresponding data interfaces for each business theme, and each data interface comprises a corresponding transmission interface name, interface attribute information and interface parameters of the business theme to which the interface belongs;
and the transmission module is set to build a data service database based on the service data set and the corresponding data interface, and realize data service by using the data service database.
In the application, business data to be associated are obtained; respectively carrying out association configuration on the associated service data based on different service themes to obtain service data sets corresponding to the different service themes; respectively establishing a corresponding data interface for each service data set; and building a data service database based on the service data set and the corresponding data interface, and realizing the transmission of the service data by using the data service database. By applying the technical scheme of the application, unified management and standardized database construction can be carried out on the data source, so that business personnel can realize mapping from original data to reusable subject construction data service with business significance by inputting and configuring without compiling codes, the dependence on repeated development and development technology is greatly reduced, and the method and the system can meet the requirements of upper layer data with various changes.
In another embodiment of the present application, the obtaining module 201 further includes:
the obtaining module 201 is configured to perform index identifier tagging on each to-be-associated service data, where the index identifier includes an atomic index identifier, a composite index identifier, and a derived index identifier;
an obtaining module 201, configured to calculate a data step length in each to-be-associated service data corresponding to the derived indicator identifier;
the obtaining module 201 is configured to store the service data packets to be associated in the same data step size range under the same derived index identifier.
In another embodiment of the present application, the obtaining module 201 further includes:
an obtaining module 201 configured to detect whether the service data to be associated is minimum unit data;
the obtaining module 201 is configured to mark the to-be-associated service data as an atomic index identifier if yes;
and the obtaining module 201 is configured to mark the service data to be associated as a composite index identifier if the service data to be associated is not the composite index identifier.
In another embodiment of the present application, the obtaining module 201 further includes:
the obtaining module 201 is configured to perform data aggregation on the to-be-associated service data corresponding to the atomic index identifier and the to-be-associated service data corresponding to the composite index identifier according to a service requirement, so as to obtain aggregated service data;
the obtaining module 201 is configured to mark the aggregated service data as a derived index identifier.
In another embodiment of the present application, the obtaining module 201 further includes:
an obtaining module 201, configured to determine to-be-associated service data to which each service theme belongs;
the obtaining module 201 is configured to perform association configuration on the to-be-associated service data in the same-name field in the to-be-associated service data to which each service topic belongs by using a preset association manner, where the preset association manner includes at least one of an internal connection association, a left connection association, an external connection association, and a full connection association.
In another embodiment of the present application, the obtaining module 201 further includes:
the system comprises an acquisition module 201, a data interface processing module and a processing module, wherein the acquisition module is configured to perform service basic configuration, return value configuration and input parameter configuration on the data interface, the service basic configuration comprises receiving an interface name, an interface attribute, a subject to which the interface belongs and a query index type, the return value configuration comprises returning a data index type of a user, and the input parameter configuration corresponds to a field name, a default value, a field description, an index name and a screening rule;
the obtaining module 201 is configured to perform data service testing on the data interface that has been subjected to the service basic configuration, the return value configuration, and the input parameter configuration.
In another embodiment of the present application, the obtaining module 201 further includes:
the acquisition module 201 is configured to receive a data calling request sent by a user, where the data calling request includes a calling interface address parameter and a data input parameter;
an obtaining module 201, configured to call corresponding service data from the data service database according to the data input parameter;
the obtaining module 201 is configured to return the service data to the user from the data interface corresponding to the interface address parameter.
FIG. 8 is a block diagram illustrating a logical structure of an electronic device in accordance with an exemplary embodiment. For example, the electronic device 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium, such as a memory, including instructions executable by a processor of an electronic device to perform the method for rate control, the method comprising: acquiring service data to be associated; respectively performing association configuration on the service data to be associated based on different service themes to obtain service data sets corresponding to the different service themes; respectively creating a corresponding data interface for each business theme, wherein the data interface comprises a corresponding transmission interface name, interface attribute information and interface parameters of the business theme to which the interface belongs; and building a data service database based on the service data set and the corresponding data interface, and realizing data service by using the data service database. Optionally, the instructions may also be executable by a processor of the electronic device to perform other steps involved in the exemplary embodiments described above. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, there is also provided an application/computer program product including one or more instructions executable by a processor of an electronic device to perform the above method of rate control, the method comprising: acquiring service data to be associated; respectively performing association configuration on the service data to be associated based on different service themes to obtain service data sets corresponding to the different service themes; respectively creating a corresponding data interface for each business theme, wherein the data interface comprises a corresponding transmission interface name, interface attribute information and interface parameters of the business theme to which the interface belongs; and building a data service database based on the service data set and the corresponding data interface, and realizing data service by using the data service database. Optionally, the instructions may also be executable by a processor of the electronic device to perform other steps involved in the exemplary embodiments described above.
Fig. 8 is an exemplary diagram of the computer device 30. Those skilled in the art will appreciate that the schematic diagram 8 is merely an example of a computer device 30 and is not intended to limit the computer device 30 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the computer device 30 may also include input output devices, network access devices, buses, etc.
The Processor 302 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor 302 may be any conventional processor or the like, the processor 302 being the control center for the computer device 30 and connecting the various parts of the overall computer device 30 using various interfaces and lines.
Memory 301 may be used to store computer readable instructions 303 and processor 302 may implement various functions of computer device 30 by executing or executing computer readable instructions or modules stored within memory 301 and by invoking data stored within memory 301. The memory 301 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the computer device 30, and the like. In addition, the Memory 301 may include a hard disk, a Memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Memory Card (Flash Card), at least one disk storage device, a Flash Memory device, a Read-Only Memory (ROM), a Random Access Memory (RAM), or other non-volatile/volatile storage devices.
The modules integrated by the computer device 30 may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by hardware related to computer readable instructions, which may be stored in a computer readable storage medium, and when the computer readable instructions are executed by a processor, the steps of the method embodiments may be implemented.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A method of constructing a data service, comprising:
acquiring service data to be associated;
respectively performing association configuration on the service data to be associated based on different service themes to obtain service data sets corresponding to the different service themes;
respectively creating a corresponding data interface for each business theme, wherein the data interface comprises a corresponding transmission interface name, interface attribute information and interface parameters of the business theme to which the interface belongs;
and building a data service database based on the service data set and the corresponding data interface, and realizing data service by using the data service database.
2. The method of claim 1, wherein after the obtaining the service data to be associated, further comprising:
index identification labeling is respectively carried out on each to-be-associated business data, and the index identification comprises an atomic index identification, a composite index identification and a derived index identification; and the number of the first and second groups,
calculating the data step length of each service data to be associated corresponding to the derived index identifier;
and storing the service data packets to be associated in the same data step size range under the same derived index identifier.
3. The method of claim 2, wherein the performing index identification on each service data to be associated respectively includes:
detecting whether the service data to be associated is minimum unit data or not;
if yes, marking the business data to be associated as an atomic index identifier;
if not, marking the service data to be associated as a composite index identifier.
4. The method of claim 3, wherein after the detecting whether the traffic data to be associated is the minimum unit data, further comprising:
according to the service requirement, performing data aggregation on the service data to be associated corresponding to the atomic index identifier and the service data to be associated corresponding to the composite index identifier to obtain aggregated service data;
and marking the aggregated service data as a derived index identifier.
5. The method of claim 1, wherein the performing association configuration on the service data to be associated based on different service topics respectively comprises:
determining business data to be associated to each business theme;
and performing association configuration on the business data to be associated of the same-name fields in the business data to be associated to which each business subject belongs by using a preset association mode, wherein the preset association mode comprises at least one of internal connection association, left connection association, external connection association and full connection association.
6. The method of claim 1, wherein said creating a corresponding data interface for each of said business topics, respectively, comprises:
performing service basic configuration, return value configuration and input parameter configuration on a data interface, wherein the service basic configuration comprises a received interface name, an interface attribute, a subject to which the interface belongs and a query index type, the return value configuration comprises a data index type returned to a user, and the input parameter configuration corresponds to a field name, a default value, a field description, an index name and a screening rule;
and carrying out data service test on the data interface which is subjected to service basic configuration, return value configuration and input parameter configuration.
7. The method of claim 1, wherein said implementing a data service using said data service database comprises:
receiving a data calling request sent by a user, wherein the data calling request comprises a calling interface address parameter and a data input parameter;
calling corresponding business data from the data service database according to the data input parameters;
and returning the service data to the user from the data interface corresponding to the interface address parameter.
8. An apparatus for building a data service, comprising:
an acquisition module configured to acquire service data to be associated;
the association module is set to respectively carry out association configuration on the service data to be associated based on different service themes to obtain service data sets corresponding to the different service themes;
the creating module is set to respectively create corresponding data interfaces for each business theme, and each data interface comprises a corresponding transmission interface name, interface attribute information and interface parameters of the business theme to which the interface belongs;
and the transmission module is set to build a data service database based on the service data set and the corresponding data interface, and realize data service by using the data service database.
9. An electronic device, comprising:
a memory for storing executable instructions; and the number of the first and second groups,
a processor for display with the memory to execute the executable instructions to perform the operations of the method of constructing a data service of any of claims 1-7.
10. A computer-readable storage medium storing computer-readable instructions that, when executed, perform the operations of the method of constructing a data service of any of claims 1-7.
CN202110909885.7A 2021-08-09 2021-08-09 Method, device, electronic equipment and medium for constructing data service Pending CN113722289A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110909885.7A CN113722289A (en) 2021-08-09 2021-08-09 Method, device, electronic equipment and medium for constructing data service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110909885.7A CN113722289A (en) 2021-08-09 2021-08-09 Method, device, electronic equipment and medium for constructing data service

Publications (1)

Publication Number Publication Date
CN113722289A true CN113722289A (en) 2021-11-30

Family

ID=78675218

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110909885.7A Pending CN113722289A (en) 2021-08-09 2021-08-09 Method, device, electronic equipment and medium for constructing data service

Country Status (1)

Country Link
CN (1) CN113722289A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114281553A (en) * 2022-03-08 2022-04-05 开泰远景信息科技有限公司 Business processing method and system and cloud platform
CN115098671A (en) * 2022-08-25 2022-09-23 深圳市城市交通规划设计研究中心股份有限公司 Government affair data processing method based on artificial intelligence, electronic equipment and storage medium
CN116340436A (en) * 2023-03-14 2023-06-27 山东浪潮数字商业科技有限公司 Data packet processing scheduling method and device, medium and equipment
CN116561132A (en) * 2023-07-06 2023-08-08 深圳市明源云科技有限公司 Service data query method, electronic device and readable storage medium
CN117609342A (en) * 2023-10-24 2024-02-27 中国人寿保险股份有限公司江苏省分公司 Configurable data supply method based on data storage

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110795509A (en) * 2019-09-29 2020-02-14 北京淇瑀信息科技有限公司 Method and device for constructing index blood relationship graph of data warehouse and electronic equipment
WO2020052405A1 (en) * 2018-09-10 2020-03-19 腾讯科技(深圳)有限公司 Corpus annotation set generation method and apparatus, electronic device, and storage medium
CN112559809A (en) * 2020-12-21 2021-03-26 恩亿科(北京)数据科技有限公司 Method, system, equipment and storage medium for integrating multi-channel data of consumers

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020052405A1 (en) * 2018-09-10 2020-03-19 腾讯科技(深圳)有限公司 Corpus annotation set generation method and apparatus, electronic device, and storage medium
CN110795509A (en) * 2019-09-29 2020-02-14 北京淇瑀信息科技有限公司 Method and device for constructing index blood relationship graph of data warehouse and electronic equipment
CN112559809A (en) * 2020-12-21 2021-03-26 恩亿科(北京)数据科技有限公司 Method, system, equipment and storage medium for integrating multi-channel data of consumers

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114281553A (en) * 2022-03-08 2022-04-05 开泰远景信息科技有限公司 Business processing method and system and cloud platform
CN115098671A (en) * 2022-08-25 2022-09-23 深圳市城市交通规划设计研究中心股份有限公司 Government affair data processing method based on artificial intelligence, electronic equipment and storage medium
CN116340436A (en) * 2023-03-14 2023-06-27 山东浪潮数字商业科技有限公司 Data packet processing scheduling method and device, medium and equipment
CN116340436B (en) * 2023-03-14 2024-05-24 山东浪潮数字商业科技有限公司 Data packet processing scheduling method and device, medium and equipment
CN116561132A (en) * 2023-07-06 2023-08-08 深圳市明源云科技有限公司 Service data query method, electronic device and readable storage medium
CN116561132B (en) * 2023-07-06 2023-12-22 深圳市明源云科技有限公司 Service data query method, electronic device and readable storage medium
CN117609342A (en) * 2023-10-24 2024-02-27 中国人寿保险股份有限公司江苏省分公司 Configurable data supply method based on data storage

Similar Documents

Publication Publication Date Title
CN113722289A (en) Method, device, electronic equipment and medium for constructing data service
CN110688343A (en) Method and device for converting data format
CN111145011B (en) Banking system building method and device
CN115544183B (en) Data visualization method, device, computer equipment and storage medium
CN110728123A (en) Report generation method, system and related equipment
CN109615172A (en) A kind of method and terminal handling examination data
CN114860699A (en) Data quality detection method, device, equipment and storage medium
CN117472372B (en) Responsive form construction method and system
CN111797125A (en) Report creating method and device, electronic equipment and computer readable storage medium
CN116610667A (en) Service data processing method, device, computer equipment and storage medium
CN116306538A (en) Dynamic report generation method, device, system and storage medium
CN114124977B (en) Cross-tenant data sharing method and device and electronic equipment
CN114547189A (en) Data service construction method, construction device, electronic device and storage medium
CN109358919A (en) Dynamic Configuration, device, computer equipment and the storage medium of Universal page
CN115080594A (en) Method and system for carrying out multi-dimensional analysis on data and electronic equipment
CN114860362A (en) Interface updating method and device
CN114048194A (en) Data management method and device and electronic equipment
CN113901046A (en) Virtual dimension table construction method and device
CN115686317A (en) Business data processing method and device, electronic equipment and storage medium
CN111652580A (en) Method and device for processing data of nodes
CN110597810A (en) Data processing method, device, terminal and storage medium
CN109857501A (en) A kind of page display method of APP, device, storage medium and server
CN112487022B (en) Method, system, storage medium and electronic equipment for collecting associated data
WO2024188091A1 (en) Graph processing-based information interception method and apparatus, device and readable storage medium
CN116757620A (en) Business process processing method, device, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination