CN114168590A - Data processing method, data processing apparatus, server, and storage medium - Google Patents

Data processing method, data processing apparatus, server, and storage medium Download PDF

Info

Publication number
CN114168590A
CN114168590A CN202111315478.XA CN202111315478A CN114168590A CN 114168590 A CN114168590 A CN 114168590A CN 202111315478 A CN202111315478 A CN 202111315478A CN 114168590 A CN114168590 A CN 114168590A
Authority
CN
China
Prior art keywords
data
service
data table
language
business
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
CN202111315478.XA
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.)
Beijing Shareit Information Technology Co Ltd
Original Assignee
Beijing Shareit 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 Beijing Shareit Information Technology Co Ltd filed Critical Beijing Shareit Information Technology Co Ltd
Priority to CN202111315478.XA priority Critical patent/CN114168590A/en
Publication of CN114168590A publication Critical patent/CN114168590A/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/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • 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
    • G06F16/2448Query languages for particular applications; for extensibility, e.g. user defined types
    • 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

Abstract

The technical scheme of the application provides a data processing method, a data processing device, a server and a storage medium. The data processing method comprises the steps of receiving request service data sent by a client, wherein the request service data at least comprises a language identifier and a service interface address; inquiring service main body data stored in a first data table by calling a service interface corresponding to the main body service based on the service interface address; processing the business main body data based on preset business logic, and determining the business data to be translated; determining a target language file corresponding to the business data to be translated in a second data table based on the language identification and the determined language query strategy; and sending the service data with the target language file to the client, so that the service interface supports the user to access the service data in various different language forms, and further, the requirements of the user for different languages on activities are met.

Description

Data processing method, data processing apparatus, server, and storage medium
Technical Field
Embodiments of the present invention relate to the field of data processing technologies, and in particular, to a data processing method, a data processing apparatus, a server, and a storage medium.
Background
For the internet enterprises mainly camping overseas business, application programs of the internet enterprises are often required to adapt to different regions and different language environments, wherein the display of various types of languages of human-computer interaction data and the processing of business circulation data in different modes are involved. In particular, for some marketing campaigns, different campaigns tend to target users in different languages. Different users may need to access data in different languages correspondingly.
Disclosure of Invention
The embodiment of the invention provides a data processing method, a data processing device, a server and a storage medium.
A first aspect of the embodiments of the present disclosure provides a data processing method, including:
receiving request service data sent by a client, wherein the request service data at least comprises a language identifier and a service interface address;
based on the service interface address, inquiring service main body data stored in a first data table by calling a service interface corresponding to the main body service;
processing the business main body data based on preset business logic, and determining business data to be translated;
determining a target language file corresponding to the business data to be translated in a second data table based on the language identification and the determined language query strategy; the language query strategy is used for determining the corresponding relation between business main body data in the first data table and a target language file in the second data table;
and sending the service data with the target language file to the client.
In one embodiment, the method further comprises:
and determining the language query strategy according to the key values in the language identification and the service ID identification.
In one embodiment, the first data table is stored in a first storage area in a database; the second data table is stored in a second storage area in the database;
the method further comprises the following steps:
under the condition that first service main body data are stored in the first data table, second service main body data are stored in the first data table;
and storing the language file corresponding to the second service main body data in the second data table.
In one embodiment, a third storage area of the database stores a third data table; wherein, the data in the third data table is used for defining the type of the first data table and defining the data length of the language pattern in the third data table;
the method further comprises the following steps:
storing the type data corresponding to the newly added first data table in the third data table;
and storing limiting data for limiting the data length of the newly added language file in the third data table.
In one embodiment, the sending the service data with the language copy to the client includes:
and replacing the business data to be translated based on the determined target language pattern.
A second aspect of the embodiments of the present disclosure provides a data processing apparatus, including:
the first processing unit is used for receiving request service data sent by a client, wherein the request service data at least comprises a language identifier and a service interface address;
the second processing unit is used for inquiring the service main body data stored in the first data table by calling the service interface corresponding to the main body service based on the service interface address;
the third processing unit is used for processing the business main body data based on preset business logic and determining business data to be translated;
the fourth processing unit is used for determining a target language file corresponding to the business data to be translated in a second data table based on the language identification and the determined language query strategy; the language query strategy is used for determining the corresponding relation between business main body data in the first data table and a target language file in the second data table;
and the fifth processing unit is used for sending the service data with the target language file to the client.
In one embodiment, the fourth processing unit is further configured to:
and determining the language query strategy according to the key values in the language identification and the service ID identification.
In one embodiment, the first data table is stored in a first storage area in a database; the second data table is stored in a second storage area in the database;
the device further comprises:
a fifth processing unit, configured to store second service body data in the first data table when the first data table stores the first service body data;
and storing the language file corresponding to the second service main body data in the second data table.
In one embodiment, the method is characterized in that,
a third data table is stored in a third storage area of the database; wherein, the data in the third data table is used for defining the type of the first data table and defining the data length of the language pattern in the third data table;
the fifth processing unit is further configured to: storing the type data corresponding to the newly added first data table in the third data table;
and storing limiting data for limiting the data length of the newly added language file in the third data table.
In one embodiment, the fifth processing unit is further configured to
And replacing the business data to be translated based on the determined target language pattern.
A third aspect of the embodiments of the present disclosure provides a server, including: a processor and a memory for storing a computer program operable on the processor, wherein the processor is operable to perform the steps of the method of the first aspect when executing the computer program.
A fourth aspect of the embodiments of the present disclosure provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the steps of the method of the first aspect.
The data processing method of the embodiment of the disclosure receives request service data sent by a client, wherein the request service data at least comprises a language identifier and a service interface address; based on the service interface address, inquiring service main body data stored in a first data table by calling a service interface corresponding to the main body service; processing the business main body data based on preset business logic, and determining business data to be translated; determining a target language file corresponding to the business data to be translated in a second data table based on the language identification and the determined language query strategy; the language query strategy is used for determining the corresponding relation between business main body data in the first data table and a target language file in the second data table; and sending the service data with the target language file to the client. According to the method and the device, the corresponding relation between the business main body data of the first data table and the multiple language documents in the second data table is established, when the business main body data is accessed by calling the business interface, the target language documents corresponding to the business data needing to be obtained are determined according to the corresponding relation between the business data and the target language documents, the business interface supports a user to access the business data in multiple different language forms, and then the requirements of the user for different languages of the activity are met.
Drawings
FIG. 1 is a flow diagram illustrating a method of data processing in accordance with an exemplary embodiment;
FIG. 2 is a data request flow diagram, shown in accordance with an exemplary embodiment;
FIG. 3 is a data storage flow diagram shown in accordance with an exemplary embodiment;
FIG. 4 is a block diagram of a data processing apparatus according to an exemplary embodiment;
fig. 5 is a schematic diagram illustrating a server architecture according to an example embodiment.
Detailed Description
The technical solution of the present invention is further described in detail with reference to the drawings and the specific embodiments of the specification.
FIG. 1 is a flow diagram illustrating a method of data processing according to an exemplary embodiment. As shown in fig. 1, the data processing method includes:
step S100, receiving request service data sent by a client, wherein the request service data at least comprises a language identifier and a service interface address;
step S110, based on the service interface address, inquiring service main body data stored in a first data table by calling a service interface corresponding to the main body service;
step S120, processing the business main body data based on preset business logic, and determining business data to be translated;
step S130, determining a target language file corresponding to the business data to be translated in a second data table based on the language identification and the determined language query strategy; the language query strategy is used for determining the corresponding relation between business main body data in the first data table and a target language file in the second data table;
step S140, sending the business data with the target language file to the client.
In an exemplary embodiment, the language identification is used to identify the language type to which the information corresponds. The request service data at least comprises a language identifier of data needing to be requested to be accessed and a service interface address. The server side comprises a plurality of service interfaces. Different service interfaces correspond to different service request functions. Different service interfaces have different service interface addresses.
In an exemplary embodiment, the subject business may include activity tasks, reward tasks, and the like, that engage in the activity. The business main body data refers to activity task data for participating in the activity, reward characteristic data obtained by participating in the activity and the like. The first data table is an entity main table. Table 1 and table 2 are the first data tables. As shown in table 1, the first data table may include an active task table. The second data table may include a rewards table. The data in tables 1 and 2 are service body data.
TABLE 1 Activity task Table
Figure BDA0003343503240000051
TABLE 2 reward table
reward_id reward_name reward_amount support_language
r0001 Prize A 1000 en
r0002 Prize B 2000 fil&id
In an exemplary embodiment, the service logic processes correspond to service interface functions, and different service interfaces correspond to different service logic processes. And after the service interface is called, acquiring the service main body data of the first data table in the database, and performing service logic processing on the service main body data. For example, if the user participates in the mailbox binding activity, a first service interface corresponding to the mailbox binding activity is called, the function corresponding to the first service interface is the mailbox binding, and at this time, the service logic processing is to determine the content data related to the mailbox binding in the service main body data as the service data to be translated. And calling a second service interface corresponding to the friend invitation activity when the user participates in the friend invitation activity, wherein the function corresponding to the second service interface is the friend invitation activity, and the service logic processing determines the content data related to the friend invitation activity in the service data as the service data to be translated.
In an exemplary embodiment, the second data table stores a plurality of language documents corresponding to the business entity data. The language file at least comprises translation contents corresponding to the service data. Tables 3 and 4 are the second data tables. As shown in Table 3, the second data table may include a task multilingual data table corresponding to the active task table. The second data table may include a bonus multi-language data table corresponding to the bonus table. From the second data table, a target language copy corresponding to the business data in the first data table may be determined. The file and id under support _ language in the table represent a language form.
TABLE 3 task multilingual data sheet
field_id task_id field_name field_value
f0001 t0001 task_name_en Bind your email
f0003 t0001 task_name_id Hubungkan Email Anda
f0002 t0002 task_name_fil Anyayahan ang mga kaibigan na sumali sa camp
f0003 t0002 task_name_id Undang Teman untuk Bergabung dengan Kamp
Table 4 reward multilingual data table
field_id reward_id field_name field_value
f0001 r0001 reward_name_en Prize A
In one embodiment, the method further comprises:
and determining the language query strategy according to the key values in the language identification and the service ID identification.
In an exemplary embodiment, the key values in the service ID identifications include t0001 in tables 1 and 3, r0001 in tables 2 and 4, and the like. When the language identifier is en (representing english), the translation content of the table 1 with the task _ name as the binding mailbox can be determined to be the Bind your email in table 3 through the task _ name _ en and t 0001.
In the exemplary embodiment, the language identifier in the request is stored in the local variable of the thread, and the information association of the multi-language data table is not involved when the main entity query such as the task information query is carried out, so that the query efficiency is prevented from being influenced by the SQL association query. The processing on the business logic is separated from the multi-language query processing, and the invasion to the business is reduced to the maximum extent.
In one embodiment, the first data table is stored in a first storage area in a database; the second data table is stored in a second storage area in the database;
the method further comprises the following steps:
under the condition that first service main body data are stored in the first data table, second service main body data are stored in the first data table;
and storing the language file corresponding to the second service main body data in the second data table.
In an exemplary embodiment, the first data table may store business body data corresponding to a plurality of activities at the same time. When the service body data corresponding to the newly added activity is added, the service body data corresponding to the newly added activity can be added in a form of directly adding rows in the first data table. Corresponding language documents are added in the form of adding rows in the second data table, the structure of the table does not need to be modified or a new table does not need to be added in the process, and the operation is simple and convenient.
In one embodiment, a third storage area of the database stores a third data table; wherein, the data in the third data table is used for defining the type of the first data table and defining the data length of the language pattern in the third data table;
the method further comprises the following steps:
storing the type data corresponding to the newly added first data table in the third data table;
and storing limiting data for limiting the data length of the newly added language file in the third data table.
In an exemplary embodiment, the database has a third data table in addition to the first data table and the second data table. The third data table is a multi-language field definition table for defining a type (module) of the first data table and defining a data length (max _ length) of a language file in the third data table. A third data table comprising the multilingual field definition tables shown in table 5.
TABLE 5 Multi-language field definition Table
field_id field_name max_length module
f0001 task_name_en 128 task
f0002 task_name_fil 256 task
f0003 task_name_id 256 task
f0004 reward_name_en 256 reward
f0005 task_name_jp 256 task
In one embodiment, the sending the service data with the language copy to the client includes:
and replacing the business data to be translated based on the determined target language pattern.
In the exemplary embodiment, when the response information is finally returned to the requesting party, that is, when the information is serialized, the language file information is accurately found in the corresponding multilingual data table according to the language identifier, the service module of the annotation identifier and the multilingual query strategy, and the default language information in the response information is replaced.
The returned task information class is defined as follows, in which the task name field is annotated with "@ mutilange" and "@ jsonnSerialze", and is serialized by the mutilangeSerializer class.
Figure BDA0003343503240000091
The mutilanagerializer class is specifically responsible for processing multilingual fields, and it queries the database for language scripts specified in thread local variables for the field based on the mutilanagage annotation.
The data processing method has the advantages that at least the following aspects are included:
the multi-language field definition table may be dynamically added. That is, when the language support needs to be added, the system only needs to be configured to add the language to the corresponding entity, and the system automatically adds the corresponding multi-language field. For example, when japanese support needs to be added to the task list based on the original english, philippines, and indonesia, only the data with the primary key of "f 0005" needs to be added. No modification of the table structure is required.
Different records of the same entity may support different languages. The languages supported by two tasks, such as "t 0001" and "t 0002", are different.
Service isolation: the storage query of business data is separated from the storage query of multi-language information. Single responsibility, the service module only concentrates on the logic processing of the service module, and does not need to pay attention to multi-language processing (the multi-language identification stored in a thread local variable is not needed to be used during query); the multilingual module (MutiLanguageSerializer) only performs a literal multilingual query without concern for business logic.
Program decoupling: the business logic processing module and the multi-language processing module are not interfered with each other. The multi-language storage and query processing minimally intervenes in the service data, and the updating iteration of the service cannot damage the multi-language processing logic.
Unified export: and when the response information is returned to the requesting party, multi-language query processing is uniformly carried out, and dispersed processing in each service logic of the program is not needed.
FIG. 2 is a data request flow diagram, shown in accordance with an example embodiment. As shown in fig. 2, the data request flow includes:
1. the client sends request service data to the server;
2. the server side stores the language identification to the thread local variable;
3. inquiring service main body data in a database through a service interface, and acquiring the service main body data to the service interface;
4. performing service logic processing on service main body data in a service interface;
5. responding to data serialization processing in a service interface;
6. reading a corresponding language pattern according to the language identification in the thread local variable and the annotation in the response data;
7. and returning the service data with the language file to the client.
FIG. 3 is a data storage flow diagram shown in accordance with an example embodiment. As shown in fig. 3, the data storage process includes:
310. starting;
311. establishing a multi-language data table for an entity main table needing multi-language file information;
312. adding a multi-language file information record in a multi-language data table;
313. and (6) ending.
The embodiment of the disclosure also provides a data processing device. Fig. 4 is a schematic diagram illustrating a data processing apparatus according to an exemplary embodiment. As shown in fig. 4, the data processing apparatus includes:
the first processing unit is used for receiving request service data sent by a client, wherein the request service data at least comprises a language identifier and a service interface address;
the second processing unit is used for inquiring the service main body data stored in the first data table by calling the service interface corresponding to the main body service based on the service interface address;
the third processing unit is used for processing the business main body data based on preset business logic and determining business data to be translated;
the fourth processing unit is used for determining a target language file corresponding to the business data to be translated in a second data table based on the language identification and the determined language query strategy; the language query strategy is used for determining the corresponding relation between business main body data in the first data table and a target language file in the second data table;
and the fifth processing unit is used for sending the service data with the target language file to the client.
In an exemplary embodiment, the language identification is used to identify the language type to which the information corresponds. The request service data at least comprises a language identifier of data needing to be requested to be accessed and a service interface address. The server side comprises a plurality of service interfaces. Different service interfaces correspond to different service request functions. Different service interfaces have different service interface addresses.
In an exemplary embodiment, the subject business may include activity tasks, reward tasks, and the like, that engage in the activity. The business main body data refers to activity task data for participating in the activity, reward characteristic data obtained by participating in the activity and the like. The first data table is an entity main table. Table 1 and table 2 are the first data tables. As shown in table 1, the first data table may include an active task table. The second data table may include a rewards table. The data in tables 1 and 2 are service body data.
In an exemplary embodiment, the service logic processes correspond to service interface functions, and different service interfaces correspond to different service logic processes. And after the service interface is called, acquiring the service main body data of the first data table in the database, and performing service logic processing on the service main body data. For example, if the user participates in the mailbox binding activity, a first service interface corresponding to the mailbox binding activity is called, the function corresponding to the first service interface is the mailbox binding, and at this time, the service logic processing is to determine the content data related to the mailbox binding in the service main body data as the service data to be translated. And calling a second service interface corresponding to the friend invitation activity when the user participates in the friend invitation activity, wherein the function corresponding to the second service interface is the friend invitation activity, and the service logic processing determines the content data related to the friend invitation activity in the service data as the service data to be translated.
In an exemplary embodiment, the second data table stores a plurality of language documents corresponding to the business entity data. The language file at least comprises translation contents corresponding to the service data. Tables 3 and 4 are the second data tables. As shown in Table 3, the second data table may include a task multilingual data table corresponding to the active task table. The second data table may include a bonus multi-language data table corresponding to the bonus table. From the second data table, a target language copy corresponding to the business data in the first data table may be determined.
In one embodiment, the fourth processing unit is further configured to:
and determining the language query strategy according to the key values in the language identification and the service ID identification.
In an exemplary embodiment, the key values in the service ID identifications include t0001 in tables 1 and 3, r0001 in tables 2 and 4, and the like. When the language identifier is en (representing english), the translation content of the table 1 with the task _ name as the binding mailbox can be determined to be the Bind your email in table 3 through the task _ name _ en and t 0001.
In the exemplary embodiment, the language identifier in the request is stored in the local variable of the thread, and the information association of the multi-language data table is not involved when the main entity query such as the task information query is carried out, so that the query efficiency is prevented from being influenced by the SQL association query. The processing on the business logic is separated from the multi-language query processing, and the invasion to the business is reduced to the maximum extent.
In one embodiment, the first data table is stored in a first storage area in a database; the second data table is stored in a second storage area in the database;
the device further comprises:
a fifth processing unit, configured to store second service body data in the first data table when the first data table stores the first service body data;
and storing the language file corresponding to the second service main body data in the second data table.
In an exemplary embodiment, the first data table may store business body data corresponding to a plurality of activities at the same time. When the service body data corresponding to the newly added activity is added, the service body data corresponding to the newly added activity can be added in a form of directly adding rows in the first data table. Corresponding language documents are added in the form of adding rows in the second data table, the structure of the table does not need to be modified or a new table does not need to be added in the process, and the operation is simple and convenient.
In one embodiment, the method is characterized in that,
a third data table is stored in a third storage area of the database; wherein, the data in the third data table is used for defining the type of the first data table and defining the data length of the language pattern in the third data table;
the fifth processing unit is further configured to: storing the type data corresponding to the newly added first data table in the third data table;
and storing limiting data for limiting the data length of the newly added language file in the third data table.
In an exemplary embodiment, the database has a third data table in addition to the first data table and the second data table. The third data table is a multi-language field definition table for defining a type (module) of the first data table and defining a data length (max _ length) of a language file in the third data table. A third data table comprising the multilingual field definition tables shown in table 5.
In one embodiment, the fifth processing unit is further configured to
And replacing the business data to be translated based on the determined target language pattern.
In the exemplary embodiment, when the response information is finally returned to the requesting party, that is, when the information is serialized, the language file information is accurately found in the corresponding multilingual data table according to the language identifier, the service module of the annotation identifier and the multilingual query strategy, and the default language information in the response information is replaced.
The application also provides a server. Fig. 5 is a schematic diagram illustrating a server architecture according to an example embodiment. As shown in fig. 5, a server provided in an embodiment of the present application includes: a processor 530 and a memory 520 for storing a computer program capable of running on the processor, wherein the processor 530 is configured to execute the steps of the method provided by the above embodiments when the computer program runs.
The present application also provides a computer-readable storage medium. The computer-readable storage medium provided by the embodiments of the present application stores thereon a computer program, which when executed by a processor implements the steps of the method provided by the above-mentioned embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
In some cases, any two of the above technical features may be combined into a new method solution without conflict.
In some cases, any two of the above technical features may be combined into a new device solution without conflict.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media capable of storing program codes, such as a removable Memory device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (12)

1. A data processing method, comprising:
receiving request service data sent by a client, wherein the request service data at least comprises a language identifier and a service interface address;
based on the service interface address, inquiring service main body data stored in a first data table by calling a service interface corresponding to the main body service;
processing the business main body data based on preset business logic, and determining business data to be translated;
determining a target language file corresponding to the business data to be translated in a second data table based on the language identification and the determined language query strategy; the language query strategy is used for determining the corresponding relation between business main body data in the first data table and a target language file in the second data table;
and sending the service data with the target language file to the client.
2. The data processing method of claim 1, wherein the method further comprises:
and determining the language query strategy according to the key values in the language identification and the service ID identification.
3. The data processing method of claim 1, wherein the first data table is stored in a first storage area in a database; the second data table is stored in a second storage area in the database;
the method further comprises the following steps:
under the condition that first service main body data are stored in the first data table, second service main body data are stored in the first data table;
and storing the language file corresponding to the second service main body data in the second data table.
4. The data processing method of claim 3, wherein a third storage area of the database stores a third data table; wherein, the data in the third data table is used for defining the type of the first data table and defining the data length of the language pattern in the third data table;
the method further comprises the following steps:
storing the type data corresponding to the newly added first data table in the third data table;
and storing limiting data for limiting the data length of the newly added language file in the third data table.
5. The data processing method of claim 1, wherein the sending the service data with the language scheme to the client comprises:
and replacing the business data to be translated based on the determined target language pattern.
6. A data processing apparatus, comprising:
the first processing unit is used for receiving request service data sent by a client, wherein the request service data at least comprises a language identifier and a service interface address;
the second processing unit is used for inquiring the service main body data stored in the first data table by calling the service interface corresponding to the main body service based on the service interface address;
the third processing unit is used for processing the business main body data based on preset business logic and determining business data to be translated;
the fourth processing unit is used for determining a target language file corresponding to the business data to be translated in a second data table based on the language identification and the determined language query strategy; the language query strategy is used for determining the corresponding relation between business main body data in the first data table and a target language file in the second data table;
and the fifth processing unit is used for sending the service data with the target language file to the client.
7. The data processing apparatus according to claim 6, wherein the fourth processing unit is further configured to:
and determining the language query strategy according to the key values in the language identification and the service ID identification.
8. The data processing apparatus of claim 6, wherein the first data table is stored in a first storage area in a database; the second data table is stored in a second storage area in the database;
the device further comprises:
a fifth processing unit, configured to store second service body data in the first data table when the first data table stores the first service body data;
and storing the language file corresponding to the second service main body data in the second data table.
9. The data processing apparatus of claim 8,
a third data table is stored in a third storage area of the database; wherein, the data in the third data table is used for defining the type of the first data table and defining the data length of the language pattern in the third data table;
the fifth processing unit is further configured to: storing the type data corresponding to the newly added first data table in the third data table;
and storing limiting data for limiting the data length of the newly added language file in the third data table.
10. The data processing apparatus of claim 6, wherein the fifth processing unit is further configured to
And replacing the business data to be translated based on the determined target language pattern.
11. A server, comprising: a processor and a memory for storing a computer program operable on the processor, wherein the processor is operable to perform the steps of the method of any of claims 1 to 5 when the computer program is run.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN202111315478.XA 2021-11-08 2021-11-08 Data processing method, data processing apparatus, server, and storage medium Pending CN114168590A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111315478.XA CN114168590A (en) 2021-11-08 2021-11-08 Data processing method, data processing apparatus, server, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111315478.XA CN114168590A (en) 2021-11-08 2021-11-08 Data processing method, data processing apparatus, server, and storage medium

Publications (1)

Publication Number Publication Date
CN114168590A true CN114168590A (en) 2022-03-11

Family

ID=80478523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111315478.XA Pending CN114168590A (en) 2021-11-08 2021-11-08 Data processing method, data processing apparatus, server, and storage medium

Country Status (1)

Country Link
CN (1) CN114168590A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105786843A (en) * 2014-12-22 2016-07-20 华为软件技术有限公司 Multi-language implementation method for applications and multi-language information query method and device
CN107291907A (en) * 2017-06-20 2017-10-24 深圳中兴网信科技有限公司 A kind of multilingual storage of business datum and querying method and device
CN111177318A (en) * 2019-12-23 2020-05-19 杭州安恒信息技术股份有限公司 Method, device and computer readable storage medium for executing international business
CN111580918A (en) * 2020-05-14 2020-08-25 中国银行股份有限公司 Interface display method, client and server
CN111930888A (en) * 2020-07-17 2020-11-13 上海泛微网络科技股份有限公司 Multi-language support method based on collaborative idea, server system and storage medium
CN112559106A (en) * 2020-12-24 2021-03-26 广西交控智维科技发展有限公司 Multi-language-based page translation method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105786843A (en) * 2014-12-22 2016-07-20 华为软件技术有限公司 Multi-language implementation method for applications and multi-language information query method and device
CN107291907A (en) * 2017-06-20 2017-10-24 深圳中兴网信科技有限公司 A kind of multilingual storage of business datum and querying method and device
CN111177318A (en) * 2019-12-23 2020-05-19 杭州安恒信息技术股份有限公司 Method, device and computer readable storage medium for executing international business
CN111580918A (en) * 2020-05-14 2020-08-25 中国银行股份有限公司 Interface display method, client and server
CN111930888A (en) * 2020-07-17 2020-11-13 上海泛微网络科技股份有限公司 Multi-language support method based on collaborative idea, server system and storage medium
CN112559106A (en) * 2020-12-24 2021-03-26 广西交控智维科技发展有限公司 Multi-language-based page translation method

Similar Documents

Publication Publication Date Title
US10275355B2 (en) Method and apparatus for cleaning files in a mobile terminal and associated mobile terminal
US8185546B2 (en) Enhanced control to users to populate a cache in a database system
US5895465A (en) Heuristic co-identification of objects across heterogeneous information sources
CN111506559B (en) Data storage method, device, electronic equipment and storage medium
US10089378B2 (en) Automatic asset versioning
US8874601B2 (en) SADL query view—a model-driven approach to speed-up read-only use cases
US9342572B2 (en) Workflow processing system and method with database system support
CN111339171B (en) Data query method, device and equipment
CN103577483B (en) The method and system of date storage method and system and data access
KR101475335B1 (en) Enhancing an inquiry for a search of a database
CN108415998A (en) Using dependence update method, terminal, equipment and storage medium
US11593418B2 (en) System and method for a semantically-driven smart data cache
CN111046316B (en) Application on-shelf state monitoring method, intelligent terminal and storage medium
CN114168590A (en) Data processing method, data processing apparatus, server, and storage medium
CN115544050A (en) Operation log recording method, device, equipment and storage medium
US9141515B1 (en) Limiting display content in editor for large data volumes
CN114519090B (en) Method and device for managing stop words and electronic equipment
CN116166671A (en) Memory database table pre-association processing method, system and medium
US10372614B1 (en) Smart data engine system and method
CN114300152A (en) Method, device, equipment and storage medium for sending page data
CN117591563A (en) Database calling method, device, computer equipment and storage medium
CN113886439A (en) Method, device and storage medium for managing cache data
CN114490151A (en) Service degradation method and device, electronic equipment and storage medium
CN114461188A (en) API code automatic generation method, device, equipment, medium and program
CN116450805A (en) Text processing method, device, equipment and storage medium

Legal Events

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