CN115633082A - Identification processing method, device, equipment and storage medium for calling middlebox service - Google Patents
Identification processing method, device, equipment and storage medium for calling middlebox service Download PDFInfo
- Publication number
- CN115633082A CN115633082A CN202211001006.1A CN202211001006A CN115633082A CN 115633082 A CN115633082 A CN 115633082A CN 202211001006 A CN202211001006 A CN 202211001006A CN 115633082 A CN115633082 A CN 115633082A
- Authority
- CN
- China
- Prior art keywords
- identifier
- service
- identification
- type
- request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Telephonic Communication Services (AREA)
Abstract
本公开实施例提供一种调用中台服务的标识处理方法,由中台执行,包括:分配第一类标识;确定目标用户群组调用中台服务的服务调用方式;根据服务调用方式,确定所述目标用户群组调用所述中台服务是否涉及第二类标识;在确定所述中台服务调用涉及所述第二类标识的情况下,建立所述第一类标识和所述第二类标识之间的映射信息;通过所述映射信息,以供所述目标用户群组调用所述中台服务。本公开实施例还提供一种调用中台服务的标识处理装置、设备及存储介质。
An embodiment of the present disclosure provides an identification processing method for invoking a middle platform service, which is executed by the middle platform, including: allocating the first type of identification; determining the service calling method for the target user group to call the middle platform service; determining the service calling method according to the service calling method Whether the target user group calls the middle station service involves a second type of identification; if it is determined that the middle station service call involves the second type of identification, establish the first type of identification and the second type Mapping information between identifiers; through the mapping information, the target user group can call the middle station service. Embodiments of the present disclosure also provide an identification processing device, equipment, and storage medium for invoking a middle platform service.
Description
技术领域technical field
本公开涉及但不限于数据处理技术领域,尤其涉及一种调用中台服务的标识处理方法、装置、设备及存储介质。The present disclosure relates to but is not limited to the technical field of data processing, and in particular relates to an identification processing method, device, equipment and storage medium for invoking middle platform services.
背景技术Background technique
随着终端及互联网技术等的不断的发展,平台可以为不同的业务形式提供各种技术型支持;目前已经可以提供一些办公平台的整体服务给外部用户,以使得外部用户可以使用平台的整体服务。中台是在平台基础上的进一步“抽象”,可以通过中台解决更多业务、数据和技术之间的关系等。然而,目前用户无法实现通过账号信息等将中台的中台服务集成到用户的第三方应用,例如集成到应用程序(APP)、网页和/或桌面等应用内,如无法使得第三方应用融合中台的能力。With the continuous development of terminals and Internet technologies, the platform can provide various technical support for different business forms; at present, some overall services of the office platform can be provided to external users, so that external users can use the overall services of the platform . The middle platform is a further "abstraction" based on the platform, and can solve more business, data and technology relationships through the middle platform. However, at present, users cannot realize the integration of middle-end middle-end services into third-party applications of users through account information, such as integration into applications such as applications (APP), web pages, and/or desktops. If third-party applications cannot be integrated The ability of China Taiwan.
发明内容Contents of the invention
本公开提供一种调用中台服务的标识处理方法、装置、设备及存储介质。The present disclosure provides an identification processing method, device, equipment and storage medium for invoking middle platform services.
根据本公开的第一方面,提供一种调用中台服务的标识处理方法,由中台执行,包括:According to the first aspect of the present disclosure, there is provided an identification processing method for invoking a middle platform service, which is executed by the middle platform, including:
分配第一类标识;Assignment of first-class identification;
确定目标用户群组调用中台服务的服务调用方式;Determine the service calling method for the target user group to call the middle platform service;
根据服务调用方式,确定所述目标用户群组调用所述中台服务是否涉及第二类标识;在确定所述中台服务调用涉及所述第二类标识的情况下,建立所述第一类标识和所述第二类标识之间的映射信息;According to the service invocation method, it is determined whether the target user group calls the middle station service involving the second type of identification; when it is determined that the middle station service call involves the second type of identification, establish the first type mapping information between the identifier and the second type of identifier;
通过所述映射信息,以供所述目标用户群组调用所述中台服务。The mapping information is used for the target user group to call the middle station service.
在一些实施例中,所述第二类标识包括:第三方应用标识;In some embodiments, the second type of identification includes: a third-party application identification;
所述根据服务调用方式,确定所述目标用户群组调用所述中台服务是否涉及第二类标识,包括:According to the service invocation method, determining whether the target user group invoking the middle station service involves a second type of identification includes:
在所述服务调用方式为基于用户标识调用的情况下,确定所述目标用户群组是否使用所述第三方应用标识调用所述中台服务;所述映射信息,指示所述第一类标识和所述第三方应用标识之间的第一映射关系。In the case that the service invocation method is invoking based on the user identifier, determine whether the target user group uses the third-party application identifier to invoke the middle platform service; the mapping information indicates the first type of identifier and A first mapping relationship between the third-party application identifiers.
在一些实施例中,所述在所述服务调用方式为基于用户标识调用的情况下,确定所述目标用户群组是否使用所述第三方应用标识调用所述中台服务,包括:In some embodiments, the determining whether the target user group uses the third-party application identifier to invoke the middle platform service in the case that the service invocation method is invocation based on a user identifier includes:
在所述服务调用方式为所述基于用户标识调用的情况下,根据标识应用需求信息确定所述目标用户群组是否使用所述第三方应用标识调用所述中台服务;In the case where the service invocation method is the invocation based on the user identifier, determine whether the target user group uses the third-party application identifier to invoke the middle platform service according to the identifier application requirement information;
或者,or,
在所述服务调用方式为所述基于用户标识调用的情况下,根据在分配所述第一类标识的过程中接收所述第三方应用标识情况,确定所述目标用户群组是否使用所述第三方应用标识调用所述中台服务。In the case where the service invocation method is the invocation based on the user identifier, according to receiving the third-party application identifier in the process of allocating the first-type identifier, determine whether the target user group uses the second-party application identifier The third-party application identifier calls the middle platform service.
在一些实施例中,所述根据服务调用方式,确定所述目标用户群组调用所述中台服务是否涉及第二类标识,包括:In some embodiments, the determining whether the target user group calls the middle platform service involves a second type of identification according to the service calling method includes:
在所述服务调用方式为调用SDK的情况下,确定所述目标用户群组使用所述第二类标识调用所述中台服务,且所述第二类标识为所述SDK的标识;In the case that the service calling method is to call the SDK, it is determined that the target user group uses the second type of identification to call the middle platform service, and the second type of identification is the identification of the SDK;
所述映射信息,指示所述SDK的标识和所述第一类标识之间的第二映射关系。The mapping information indicates a second mapping relationship between the SDK identifier and the first type identifier.
在一些实施例中,所述方法包括:In some embodiments, the method includes:
向客户端发送给所述映射信息;其中,所述映射信息用于供所述客户端基于所述第一类标识调用所述中台服务,或者,所述映射信息用于供所述客户端基于所述第二类标识调用所述中台服务。Send the mapping information to the client; wherein, the mapping information is used for the client to call the middle platform service based on the first type of identification, or the mapping information is used for the client Invoking the middle platform service based on the second type identifier.
在一些实施例中,所述方法包括:In some embodiments, the method includes:
接收服务调用请求;Receive service call request;
在所述服务调用请求包含请求标识的情况下,根据所述请求标识确定是否响应所述服务调用请求。If the service invocation request includes a request identifier, determine whether to respond to the service invocation request according to the request identifier.
在一些实施例中,所述在所述服务调用请求包含请求标识的情况下,根据所述请求标识确定是否响应所述服务调用请求,包括:In some embodiments, when the service invocation request includes a request identifier, determining whether to respond to the service invocation request according to the request identifier includes:
在所述请求标识是所述中台分配的所述第一类标识的情况下,确定响应所述服务调用请求;If the request identifier is the first type identifier assigned by the middle station, determine to respond to the service invocation request;
和/或,and / or,
在所述请求标识不是所述中台分配的所述第一类标识的情况下,通过查询所述映射信息,确定所述请求标识是否与所述中台分配的第一类标识建立映射关系;在所述请求标识与所述中台分配的第一类标识建立映射关系的情况下,确定响应所述服务调用请求。In the case that the request identifier is not the first-type identifier assigned by the middle station, by querying the mapping information, determine whether the request identifier establishes a mapping relationship with the first-type identifier assigned by the middle station; When a mapping relationship is established between the request identifier and the first-type identifier assigned by the middle station, it is determined to respond to the service invocation request.
在一些实施例中,第三方应用标识包括:第三方企业应用标识;所述第一类标识包括:企业应用标识;其中,所述映射信息指示所述第三方企业应用标识和所述企业应用标识之间的所述第一映射关系;In some embodiments, the third-party application identifier includes: a third-party enterprise application identifier; the first type of identifier includes: an enterprise application identifier; wherein, the mapping information indicates the third-party enterprise application identifier and the enterprise application identifier The first mapping relationship between;
或者,or,
所述第三方应用标识包括:第三方企业应用标识和第三方用户应用标识;所述第一类标识,包括:企业应用标识和用户应用标识;其中,所述映射信息指示所述第三方企业应用标识和所述企业应用标识的所述第一映射关系;且所述映射信息指示所述第三方用户应用标识和所述用户应用标识的所述第一映射关系。The third-party application identifier includes: a third-party enterprise application identifier and a third-party user application identifier; the first type of identifier includes: an enterprise application identifier and a user application identifier; wherein the mapping information indicates that the third-party enterprise application the first mapping relationship between an identifier and the enterprise application identifier; and the mapping information indicates the first mapping relationship between the third-party user application identifier and the user application identifier.
在一些实施例中,所述在所述请求标识是所述中台分配的所述第一类标识的情况下,包括以下至少之一:In some embodiments, when the request identifier is the first type identifier assigned by the middle station, it includes at least one of the following:
所述请求标识是所述企业应用标识;和/或,The request identifier is the enterprise application identifier; and/or,
所述请求标识是所述用户应用标识,且所述用户应用标识归属于所述企业应用标识。The request identifier is the user application identifier, and the user application identifier belongs to the enterprise application identifier.
根据本公开的第二方面,提供一种调用中台服务的标识处理方法,由客户端执行,包括:According to the second aspect of the present disclosure, there is provided an identification processing method for invoking a middle platform service, which is executed by a client, including:
发送服务调用请求;其中,所述服务调用请求包括请求标识,且所述请求标识用于供中台确定是否响应所述服务调用请求;Sending a service call request; wherein, the service call request includes a request identifier, and the request identifier is used for the middle station to determine whether to respond to the service call request;
接收服务调用响应;其中,所述服务调用响应是所述中台响应所述服务调用请求返回的,且所述服务调用响应包括所述请求标识对应的中台服务。Receiving a service call response; wherein, the service call response is returned by the middle station in response to the service call request, and the service call response includes the middle station service corresponding to the request identifier.
在一些实施例中,所述请求标识用于供所述中台确定是所述中台分配的所述第一类标识的情况下,确定响应所述服务调用请求;In some embodiments, the request identifier is used for determining to respond to the service invocation request when the middle station determines that it is the first type of identifier assigned by the middle station;
或者,or,
所述请求标识用于供所述中台确定不是所述中台分配的所述第一类标识、且所述请求标识用于供所述中台确定是与所述中台分配的第一类标识建立映射关系的情况下,确定响应所述服务调用请求。The request identifier is used for the middle station to determine that it is not the first type of identifier assigned by the middle station, and the request identifier is used for the middle station to determine that it is the first type of identifier assigned by the middle station In the case of identifying the establishment of the mapping relationship, it is determined to respond to the service invocation request.
在一些实施例中,所述方法包括:In some embodiments, the method includes:
接收映射信息,其中,所述映射信息为所述中台建立的用于指示第一类标识和第二类标识之间的映射关系;所述第二类标识为目标群组调用所述中台服务涉及的标识;所述第一类标识是所述中台分配的;receiving mapping information, wherein the mapping information is used to indicate the mapping relationship between the first type of identification and the second type of identification established by the middle station; the second type of identification is for the target group to call the middle station The identification involved in the service; the first type of identification is allocated by the middle station;
所述请求标识,包括:所述第一类标识。The request identifier includes: the first type identifier.
在一些实施例中,所述接收所述映射信息之前,包括:In some embodiments, before receiving the mapping information, it includes:
向所述中台发送所述第二类标识;其中,所述第二类标识包括:第三方应用标识或者SDK的标识。Sending the second-type identifier to the middle station; wherein, the second-type identifier includes: a third-party application identifier or an SDK identifier.
根据本公开的第三方面,提供一种调用中台服务的标识处理装置,包括:According to a third aspect of the present disclosure, an identification processing device for invoking a middle platform service is provided, including:
分配模块,用于分配第一类标识;an allocation module, configured to allocate the first type of identification;
确定模块,用于确定目标用户群组调用中台服务的服务调用方式;A determination module, configured to determine the service invocation method for the target user group to invoke the middle platform service;
所述确定模块,用于根据服务调用方式,确定所述目标用户群组调用所述中台服务是否涉及第二类标识;处理模块,用于在确定所述中台服务调用涉及所述第二类标识的情况下,建立所述第一类标识和所述第二类标识之间的映射信息;The determining module is configured to determine whether the target user group calls the middle station service involves a second type of identification according to the service calling method; the processing module is used to determine whether the middle station service call involves the second type of identification. In the case of a class identifier, establishing mapping information between the first class identifier and the second class identifier;
所述处理模块,用于通过述映射信息,以供所述目标用户群组调用所述中台服务。The processing module is configured to use the mapping information for the target user group to call the middle platform service.
在一些实施例中,所述第二类标识包括:第三方应用标识;In some embodiments, the second type of identification includes: a third-party application identification;
所述确定模块,用于在所述服务调用方式为基于用户标识调用的情况下,确定所述目标用户群组是否使用所述第三方应用标识调用所述中台服务;所述映射信息,指示所述第一类标识和所述第三方应用标识之间的第一映射关系。The determining module is configured to determine whether the target user group uses the third-party application identifier to invoke the middle platform service when the service invocation method is based on the user identifier; the mapping information indicates A first mapping relationship between the first type identifier and the third-party application identifier.
在一些实施例中,所述确定模块,用于在所述服务调用方式为所述基于用户标识调用的情况下,根据标识应用需求信息,确定所述目标用户群组是否使用所述第三方应用标识调用所述中台服务;In some embodiments, the determination module is configured to determine whether the target user group uses the third-party application according to the identification application requirement information when the service invocation method is the user identification-based invocation Identify and call the middle platform service;
或者,所述确定模块,用于在所述服务调用方式为所述基于用户标识调用的情况下,根据在分配所述第一类标识的过程中接收所述第三方应用标识情况,确定所述目标用户群组是否使用所述第三方应用标识调用所述中台服务。Alternatively, the determining module is configured to determine the third-party application identifier received during the process of allocating the first type of identifier when the service invocation method is the invocation based on the user identifier. Whether the target user group uses the third-party application identifier to call the middle platform service.
在一些实施例中,所述确定模块,用于在所述服务调用方式为调用SDK的情况下,确定所述目标用户群组是否使用所述第二类标识调用中台服务,且所述第二类标识为所述SDK的标识;In some embodiments, the determining module is configured to determine whether the target user group uses the second type of identification to call the middle platform service when the service calling method is calling the SDK, and the second The second type of identification is the identification of the SDK;
所述映射信息,指示所述SDK的标识和所述第一类标识之间的第二映射关系。The mapping information indicates a second mapping relationship between the SDK identifier and the first type identifier.
在一些实施例中,所述装置包括:第一发送模块,用于向客户端发送给所述映射信息;其中,所述映射信息用于供所述客户端基于所述第一类标识调用所述中台服务,或者,所述映射信息用于供所述客户端基于所述第二类标识调用所述中台服务。In some embodiments, the apparatus includes: a first sending module, configured to send the mapping information to the client; wherein the mapping information is used for the client to call the The middle platform service, or the mapping information is used for the client to call the middle platform service based on the second type identifier.
在一些实施例中,所述装置包括:第一接收模块,用于接收服务调用请求;In some embodiments, the device includes: a first receiving module, configured to receive a service invocation request;
所述处理模块,用于在所述服务调用请求包含请求标识的情况下,根据所述请求标识确定是否响应所述服务调用请求。The processing module is configured to determine whether to respond to the service invocation request according to the request identifier when the service invocation request includes a request identifier.
在一些实施例中,所述处理模块,用于在所述请求标识是所述中台分配的所述第一类标识的情况下,确定响应所述服务调用请求;In some embodiments, the processing module is configured to determine to respond to the service invocation request when the request identifier is the first type identifier assigned by the middle station;
或者,所述处理模块,用于在所述请求标识不是所述中台分配的所述第一类标识的情况下,通过查询所述映射信息,确定所述请求标识是否与所述中台分配的第一类标识建立映射关系;在所述请求标识与所述中台分配的第一类标识建立映射关系的情况下,确定响应所述服务调用请求。Or, the processing module is configured to determine whether the request identifier is the same as that assigned by the intermediate station by querying the mapping information when the request identifier is not the first type identifier assigned by the intermediate station. Establish a mapping relationship with the first type of identification; in the case of establishing a mapping relationship between the request identification and the first type of identification assigned by the middle station, determine to respond to the service invocation request.
在一些实施例中,第三方应用标识包括:第三方企业应用标识;所述第一类标识包括:企业应用标识;其中,所述映射信息指示所述第三方企业应用标识和所述企业应用标识之间的所述第一映射关系;In some embodiments, the third-party application identifier includes: a third-party enterprise application identifier; the first type of identifier includes: an enterprise application identifier; wherein, the mapping information indicates the third-party enterprise application identifier and the enterprise application identifier The first mapping relationship between;
或者,or,
所述第三方应用标识包括:第三方企业应用标识和第三方用户应用标识;所述第一类标识包括:企业应用标识和用户应用标识;其中,所述映射信息指示所述第三方企业应用标识和所述企业应用标识的所述第一映射关系;且所述映射信息指示所述第三方用户应用标识和所述用户应用标识的所述第一映射关系。The third-party application identifier includes: a third-party enterprise application identifier and a third-party user application identifier; the first type of identifier includes: an enterprise application identifier and a user application identifier; wherein the mapping information indicates the third-party enterprise application identifier the first mapping relationship with the enterprise application identifier; and the mapping information indicates the first mapping relationship between the third-party user application identifier and the user application identifier.
在一些实施例中,所述在所述请求标识是所述中台分配的所述第一类标识的情况下,包括以下至少之一:In some embodiments, when the request identifier is the first type identifier assigned by the middle station, it includes at least one of the following:
所述请求标识是所述企业应用标识;和/或,The request identifier is the enterprise application identifier; and/or,
所述请求标识是所述用户应用标识,且所述用户应用标识归属于所述企业应用标识。The request identifier is the user application identifier, and the user application identifier belongs to the enterprise application identifier.
根据本公开的第四方面,提供一种调用中台服务的标识处理装置,包括:According to a fourth aspect of the present disclosure, there is provided an identification processing device for invoking a middle platform service, including:
第二发送模块,用于发送服务调用请求;其中,所述服务调用请求包括请求标识,且所述请求标识用于供中台确定是否响应所述服务调用请求;The second sending module is used to send a service call request; wherein, the service call request includes a request identifier, and the request identifier is used for the middle station to determine whether to respond to the service call request;
第二接收模块,用于接收服务调用请求;其中,所述服务调用响应是所述中台响应所述服务调用请求返回的,且所述服务调用响应包括所述请求标识对应的中台服务。The second receiving module is configured to receive a service call request; wherein, the service call response is returned by the middle station in response to the service call request, and the service call response includes the middle station service corresponding to the request identifier.
在一些实施例中,所述请求标识用于供所述中台确定是所述中台分配的所述第一类标识的情况下,确定响应所述服务调用请求;In some embodiments, the request identifier is used for determining to respond to the service invocation request when the middle station determines that it is the first type of identifier assigned by the middle station;
或者,所述请求标识用于供所述中台确定不是所述中台分配的所述第一类标识、且所述请求标识用于供所述中台确定是与所述中台分配的第一类标识建立映射关系的情况下,确定响应所述服务调用请求。Alternatively, the request identifier is used for the middle station to determine that it is not the first type of identifier assigned by the middle station, and the request identifier is used for the middle station to determine that it is the first type of identifier assigned by the middle station. In the case of establishing a mapping relationship with a class identifier, it is determined to respond to the service invocation request.
在一些实施例中,所述第二接收模块,用于接收映射信息,其中,所述映射信息为所述中台建立的用于指示第一类标识和第二类标识之间的映射关系;所述第二类标识为目标群组调用所述中台服务涉及的标识;所述第一类标识是所述中台分配的;所述第一类标识不同于所述第一类标识;In some embodiments, the second receiving module is configured to receive mapping information, wherein the mapping information is established by the middle station to indicate the mapping relationship between the first type of identifier and the second type of identifier; The second type of identification is the identification involved in calling the middle station service by the target group; the first type of identification is allocated by the middle station; the first type of identification is different from the first type of identification;
所述请求标识,包括:所述第一类标识。The request identifier includes: the first type identifier.
在一些实施例中,所述第二发送模块,用于向所述中台发送所述第二类标识;其中,所述第二类标识包括:第三方应用标识或者SDK的标识。In some embodiments, the second sending module is configured to send the second type of identification to the middle station; wherein, the second type of identification includes: a third-party application identification or an SDK identification.
根据本公开实施例的第三方面,提供一种移动终端,包括:According to a third aspect of the embodiments of the present disclosure, a mobile terminal is provided, including:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,所述处理器被配置为:用于运行所述可执行指令时,实现权利要求本公开任意实施例所述的调用中台服务的标识处理方法。Wherein, the processor is configured to: when running the executable instruction, implement the identification processing method for invoking a middle platform service described in any embodiment of the present disclosure.
根据本公开实施例的第四方面,提供一种计算机可读存储介质,所述可读存储介质存储有可执行程序,其中,所述可执行程序被处理器执行时实现本公开任意实施例所述的调用中台服务的标识处理方法。According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, the readable storage medium stores an executable program, wherein, when the executable program is executed by a processor, the implementation of any embodiment of the present disclosure can be implemented. The identification processing method for invoking the middle platform service described above.
本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
本公开实施例通过,中台分配第一类标识以及确定目标用户群组调用中台服务的服务调用方式;并根据服务调用方式,确定所述目标用户群组调用所述中台服务是否涉及第二类标识;在确定所述中台服务调用涉及所述第二类标识的情况下,建立所述第一类标识和所述第二类标识之间的映射信息;通过所述映射信息,以供所述目标用户群组调用所述中台服务。如此本公开实施例可以建立不是中台配置的第二类标识与中台配置的第一类标识的映射信息,从而可以基于第二类标识查找映射信息以查到对应的第一类标识,并利用第一类标识调用中台服务;也就是说,可以通过该映射信息,使得不是中台分配的第一类标识(如第二类标识)进行中台服务的调用。According to the embodiment of the present disclosure, the middle station assigns the first type of identification and determines the service invocation method for the target user group to call the middle station service; and according to the service invocation method, determines whether the target user group calls the middle station service involves the second The second type of identification; in the case of determining that the middle station service call involves the second type of identification, establishing mapping information between the first type of identification and the second type of identification; through the mapping information, with For the target user group to call the middle platform service. In this way, the embodiment of the present disclosure can establish the mapping information between the second-type identifier configured by the middle station and the first-type identifier configured by the middle station, so that the mapping information can be searched based on the second-type identifier to find the corresponding first-type identifier, and Use the first type of identification to call the middle platform service; that is, the mapping information can be used to make the first type of identification (such as the second type of identification) not allocated by the middle platform to call the middle platform service.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
图1是根据一示例性实施例示出的一种调用中台服务的标识处理方法的流程图。Fig. 1 is a flow chart showing a method for identifying an invocation middle station service according to an exemplary embodiment.
图2是根据一示例性实施例示出的一种技术架构的示意图。Fig. 2 is a schematic diagram showing a technical architecture according to an exemplary embodiment.
图3是根据一示例性实施例示出的一种映射信息的架构示意图。Fig. 3 is a schematic structural diagram of mapping information according to an exemplary embodiment.
图4是根据一示例性实施例示出的一种调用中台服务的标识处理方法的流程图。Fig. 4 is a flow chart showing a method for processing identification of invoking middle platform services according to an exemplary embodiment.
图5是根据一示例性实施例示出的一种实现SDK级别的能力架构示意图。Fig. 5 is a schematic diagram of a capability framework for implementing an SDK level according to an exemplary embodiment.
图6是根据一示例性实施例示出的一种调用中台服务的标识处理方法的流程图。Fig. 6 is a flow chart showing an identification processing method for invoking a middle platform service according to an exemplary embodiment.
图7是根据一示例性实施例示出的一种调用中台服务的标识处理方法的流程图。Fig. 7 is a flow chart showing an identification processing method for invoking a middle platform service according to an exemplary embodiment.
图8是根据一示例性实施例示出的一种调用中台服务的处理方法的示意图。Fig. 8 is a schematic diagram showing a processing method for invoking a middle platform service according to an exemplary embodiment.
图9是根据一示例性实施例示出的一种调用中台服务的标识处理方法的流程图。Fig. 9 is a flow chart showing an identification processing method for invoking a middle platform service according to an exemplary embodiment.
图10是根据一示例性实施例示出的一种调用中台服务的标识处理方法的流程图。Fig. 10 is a flow chart showing an identification processing method for invoking a middle platform service according to an exemplary embodiment.
图11是根据一示例性实施例示出的一种调用中台服务的标识处理方法的流程图。Fig. 11 is a flow chart showing an identification processing method for invoking a middle platform service according to an exemplary embodiment.
图12是根据一示例性实施例示出的一种通过APP的SDK集成中台服务的示意图。Fig. 12 is a schematic diagram showing a middle platform service integrated through an APP's SDK according to an exemplary embodiment.
图13是根据一示例性实施例示出的一种通过网页集成中台服务的示意图。Fig. 13 is a schematic diagram showing a middle platform service integrated through a web page according to an exemplary embodiment.
图14是根据一示例性实施例示出的一种调用中台服务的标识处理装置的框图。Fig. 14 is a block diagram of an identification processing device for invoking a middle platform service according to an exemplary embodiment.
图15是根据一示例性实施例示出的一种调用中台服务的标识处理装置的框图。Fig. 15 is a block diagram of an identification processing device for invoking a middle platform service according to an exemplary embodiment.
图16是根据一示例性实施例示出的一种调用中台服务的标识处理装置的框图。Fig. 16 is a block diagram of an identification processing device for invoking a middle platform service according to an exemplary embodiment.
图17是根据一示例性实施例示出的一种调用中台服务的标识处理装置的框图。Fig. 17 is a block diagram of an identification processing device for invoking a middle platform service according to an exemplary embodiment.
图18是根据一示例性实施例示出的一种中台的框图。Fig. 18 is a block diagram of a middle station according to an exemplary embodiment.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with aspects of the invention as recited in the appended claims.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
如图1所示,本公开实施例提供一种调用中台服务的标识处理方法,由中台执行,包括:As shown in FIG. 1 , the embodiment of the present disclosure provides an identification processing method for invoking a middle platform service, which is executed by the middle platform, including:
步骤S11:分配第一类标识;Step S11: assigning the first type of identification;
步骤S12:确定目标用户群组调用中台服务的服务调用方式;Step S12: Determine the service calling method for the target user group to call the middle station service;
其中,所述目标用户群组包括至少一个目标用户;Wherein, the target user group includes at least one target user;
步骤S13:根据服务调用方式,确定所述目标用户群组调用所述中台服务是否涉及第二类标识;Step S13: According to the service invocation method, determine whether the invocation of the middle platform service by the target user group involves a second type of identification;
其中,所述第二类标识不同于所述第一类标识;Wherein, the second type of identification is different from the first type of identification;
步骤S14:在确定所述中台服务调用涉及所述第二类标识情况下,建立所述第一类标识和所述第二类标识之间的映射信息;Step S14: Establishing mapping information between the first type of identification and the second type of identification when it is determined that the middle station service call involves the second type of identification;
步骤S15:通过所述映射信息,以供所述目标用户群组调用所述中台服务。Step S15: Use the mapping information for the target user group to call the middle platform service.
这里,所述映射信息用于供所述目标用户群组调用所述中台服务。Here, the mapping information is used for the target user group to call the middle platform service.
这里,中台可以是一种统一接口服务平台。例如,中台可以通过融合或者至少通过融合企业内的资源、数据、平台、技术、工具、及业务的其中至少之一构成的统一接口服务平台。Here, the middle platform can be a unified interface service platform. For example, the middle station can form a unified interface service platform through integration or at least through integration of at least one of resources, data, platforms, technologies, tools, and services within the enterprise.
中台可以通过平台支撑;例如中台可以通过各种平台提供业务需要的可共享、可重用的数据、服务、工具和/或组件等。The middle platform can be supported by platforms; for example, the middle platform can provide shareable and reusable data, services, tools and/or components required by the business through various platforms.
这里,中台可以是任意一种中台。例如,中台可以是任意一种企业协作中台,可以将办公平台的能力模块化及处理化;例如中台A可以涵盖即时通讯能力、音视频通话能力、企业管理后台能力、企业自建应用工作台、及云文档能力等其中至少之一的能力。Here, the middle station can be any kind of middle station. For example, the middle platform can be any kind of enterprise collaboration middle platform, which can modularize and process the capabilities of the office platform; for example, the middle platform A can cover instant messaging capabilities, audio and video call capabilities, enterprise management background capabilities, and enterprise self-built applications At least one of the capabilities of the workbench and cloud document capabilities.
这里,平台可以是任意一种平台。例如,平台可以是但不限于以下至少之一:PaaS平台、IaaS平台、数据治理平台、大数据平台、数据仓库、消息平台、算法平台、图形图像处理平台、机器学习平台、应用平台及服务平台等。又如,平台可以是一种协作平台;该协作平台可整合即时通讯能力、音频视频通话能力、云文档能力、企业内部应用能力、及外部服务商应用能力的其中至少之一的能力。Here, the platform may be any kind of platform. For example, the platform can be but not limited to at least one of the following: PaaS platform, IaaS platform, data governance platform, big data platform, data warehouse, message platform, algorithm platform, graphics and image processing platform, machine learning platform, application platform and service platform wait. For another example, the platform may be a collaboration platform; the collaboration platform may integrate at least one of instant messaging capabilities, audio and video call capabilities, cloud document capabilities, internal enterprise application capabilities, and external service provider application capabilities.
示例性的,如图2所示,提供一种技术架构的示意图;该技术架构通常包括客户集成、应用层、服务层、中间件及基础设施。中台通常可以包括服务层、中间件及基础设施。客户集成可以是但不限于是移动端集成、PC端集成及浏览器的其中至少之一。Exemplarily, as shown in FIG. 2 , a schematic diagram of a technical architecture is provided; the technical architecture generally includes customer integration, application layer, service layer, middleware, and infrastructure. The middle platform can usually include the service layer, middleware and infrastructure. Customer integration may be, but not limited to, at least one of mobile terminal integration, PC terminal integration and browser integration.
应用层可以是但不限于是即时通讯软件开发工具包(Software DevelopmentKit,SDK)、音视频通话SDK、文档能力、企业管理后台、开放平台、企业管理后台及开放平台。The application layer can be, but not limited to, instant messaging software development kit (Software Development Kit, SDK), audio and video call SDK, document capability, enterprise management background, open platform, enterprise management background and open platform.
服务层中与应用层的即时通信SDK对应的服务可以是但不限于是:多种消息类型、群组管理、消息管理以及消息安全的其中至少之一;服务层中与应用层的音视频通话SDK对应的服务可以是但不限于是:一对一以及一对多的其中至少之一;服务层中与应用中文档能力对应的服务可以是但不限于是文档创建、文档与IM的交互协作、文档流转以及文档存储和管理的其中至少之一;服务层中与应用层的企业管理后台对应的服务可以是但不限于是通讯录管理、角色管理、空间管理、文档管理、登录安全管理以及企业系统管理的其中至少之一;服务层中与应用层的开放平台对应的服务可以是但不限于是服务端应用程序接口(Application Programming Interface,API)及客户端的其中至少之一。The service corresponding to the instant messaging SDK of the application layer in the service layer may be, but not limited to: at least one of multiple message types, group management, message management, and message security; audio and video calls between the service layer and the application layer The service corresponding to the SDK can be but not limited to: at least one of one-to-one and one-to-many; the service corresponding to the document capability in the application in the service layer can be but not limited to document creation, interaction and collaboration between documents and IM at least one of document transfer, document storage and management; the services corresponding to the enterprise management background of the application layer in the service layer may be, but not limited to, address book management, role management, space management, document management, login security management, and At least one of enterprise system management; the service corresponding to the open platform of the application layer in the service layer may be but not limited to at least one of a server application programming interface (Application Programming Interface, API) and a client.
中间件可以是但不限于是:搜索、缓存、消息中间件、运维监控、存储、网关及服务的其中至少之一。The middleware can be but not limited to: at least one of search, cache, message middleware, operation and maintenance monitoring, storage, gateway and service.
基础设施可以是但不限于是物理机、虚拟机及第三方云平台的其中至少之一。The infrastructure may be, but not limited to, at least one of physical machines, virtual machines, and third-party cloud platforms.
这里,目标用户群组包括至少一个或多个目标用户。在本公开实施例中,多个可以是两个或者两个以上。Here, the target user group includes at least one or more target users. In the embodiment of the present disclosure, the plurality may be two or more than two.
这里,目标用户群组可以是一个客户端对应的目标用户,或者也可以是客户端对应的目标用户。在目标用户群组是多个客户端对应的目标用户的情况下,该多个客户端对应的设备没有主从设备的区别。例如,在服务为文档协作的情况下,即时通信的消息下发到三个客户端,该三个客户端可同步收到消息。又如,与中台建立连接通信的三个客户端,可同时打开一个应用。Here, the target user group may be a target user corresponding to a client, or may also be a target user corresponding to a client. In the case that the target user group is the target user corresponding to multiple clients, the devices corresponding to the multiple clients have no distinction between primary and secondary devices. For example, when the service is document collaboration, instant messaging messages are delivered to three clients, and the three clients can receive the messages synchronously. For another example, three clients establishing connection and communication with the middle platform can simultaneously open an application.
这里,中台服务可以是中台具备的服务。例如,中台服务可以是但不限于是即时通讯服务、离线推送服务、企业账号服务、企业管理服务、云文档服务以及企业自建应用服务。又如,中台服务可以是其它任意一种能力的服务;该能力可以是但不限于是融合资源、数据、平台、技术、工具以及业务的其中至少之一的能力。Here, the mid-stage service may be a service provided by the mid-stage. For example, middle-end services may be, but are not limited to, instant messaging services, offline push services, enterprise account services, enterprise management services, cloud document services, and enterprise self-built application services. For another example, the middle platform service may be a service of any other capability; the capability may be, but not limited to, the capability of integrating at least one of resources, data, platforms, technologies, tools, and services.
这里,服务调用方式可以是但不限于是:基于用户标识调用和/或调用SDK的方式。Here, the method of invoking the service may be, but not limited to: invoking and/or invoking the SDK based on the user ID.
这里,第一类标识为中台分配的标识;第一类标识可为中台内部账号。Here, the first type of identification is an identification assigned by the middle station; the first type of identification may be an internal account of the middle station.
在一个实施例中,第一类标识包括:企业应用标识。In an embodiment, the first type of identifier includes: an enterprise application identifier.
在又一个实施例中,第一类标识包括:企业应用标识及用户应用标识。In yet another embodiment, the first type of identifier includes: an enterprise application identifier and a user application identifier.
这里,第二类标识为不是中台分配的标识;第二类标识可为中台外部标识或者中台外部账号。Here, the second type of identification is an identification that is not assigned by the central platform; the second type of identification can be an external identification of the central platform or an external account of the central platform.
在一个实施例中,第二类标识包括第三方应用标识和/或SDK的标识。In an embodiment, the second type of identifier includes a third-party application identifier and/or an SDK identifier.
在一个实施例中,映射信息,用于供目标用户群组基于标识调用所述中台服务。这里,基于标识调用所述中台服务可以是但不限于是基于第一类标识或第二类标识调用所述中台服务。In one embodiment, the mapping information is used for the target user group to call the middle platform service based on the identifier. Here, invoking the middle platform service based on the identifier may be, but not limited to, invoking the middle platform service based on the first type of identifier or the second type of identifier.
这里,映射信息包括第一映射关系和/或第二映射关系。Here, the mapping information includes the first mapping relationship and/or the second mapping relationship.
在一个实施例中,映射信息,指示第一类标识和第三方应用标识之间的第一映射关系。In one embodiment, the mapping information indicates a first mapping relationship between the first type identifier and the third-party application identifier.
在又一个实施例中,映射信息,指示第一类标识和SDK的标识之间的第二映射关系。In yet another embodiment, the mapping information indicates a second mapping relationship between the first type identifier and the SDK identifier.
示例性的,中台分配的第一类标识可以为“company_uuid”,和SDK的标识可以为“SDK_1”,以及第三方应用的第三方应用标识为“app_userid”。该第一映射关系为指示“company_uuid”与“app_userid”之间的映射关系;以及该第二映射关系为指示“company_uuid”与“SDK_1”之间的关系;该映射信息包括该第一映射关系和/或第二映射关系。Exemplarily, the first type of identifier allocated by the middle station may be "company_uuid", the SDK identifier may be "SDK_1", and the third-party application identifier of the third-party application may be "app_userid". The first mapping relationship indicates the mapping relationship between "company_uuid" and "app_userid"; and the second mapping relationship indicates the relationship between "company_uuid" and "SDK_1"; the mapping information includes the first mapping relationship and /or the second mapping relationship.
在一些实施例中,步骤S11,可以是:中台利用后台分配所述第一类标识,其中,所述后台为所述中台的组成部分;步骤S14中建立第一类标识和所述第二类标识之间映射关系,包括:中台建立所述第一类标识与所述第二类标识之间的映射信息。如此,在本公开实施例中,可以利用中台中的后台分配第一类标识。In some embodiments, step S11 may be: the middle station assigns the first type of identification using the background, wherein the background is a component of the middle station; in step S14, the first type of identification and the first type of identification are established. The mapping relationship between the two types of identities includes: the middle station establishes mapping information between the first type of identities and the second type of identities. In this way, in the embodiment of the present disclosure, the background in the middle platform can be used to assign the first type of identifier.
在一些实施例中,第三方应用标识包括:第三方企业应用标识;第一类标识包括:企业应用标识;其中,所述映射信息指示所述第三方企业应用标识和所述企业应用标识之间的所述第一映射关系。In some embodiments, the third-party application identifier includes: a third-party enterprise application identifier; the first type of identifier includes: an enterprise application identifier; wherein, the mapping information indicates the relationship between the third-party enterprise application identifier and the enterprise application identifier The first mapping relationship of .
示例性的,第三方应用的第三方应用标识可以为“A_gognsi”,中台可以为第三方应用标识“A_gognsi”分配企业应用标识“A_company”。Exemplarily, the third-party application identifier of the third-party application may be "A_gognsi", and the middle station may assign the enterprise application identifier "A_company" to the third-party application identifier "A_gognsi".
这里,第三方应用可以是但不限于以下至少之一:任意应用程序(APP)、小程序、公众号、网页、及桌面端应用。这里,桌面端应用可以是但不限于是PC电脑应用和/或云桌面应用等。在一个实施例中,集成端可用于集成上述第三方应用。Here, the third-party application may be but not limited to at least one of the following: any application program (APP), applet, official account, web page, and desktop application. Here, the desktop application may be, but not limited to, a PC application and/or a cloud desktop application. In one embodiment, the integration terminal can be used to integrate the aforementioned third-party applications.
如此,在本公开实施例中,中台可以为第三方应用标识中第三方企业应用标识分配对应的企业应用标识,以使得客户端或者目标用户群组基于该中台分配的企业应用标识登录中台时,可以调度该企业应用标识对应的中台服务。In this way, in the embodiment of the present disclosure, the middle station can assign a corresponding enterprise application identifier to the third-party enterprise application identifier in the third-party application identifier, so that the client or target user group can log in based on the enterprise application identifier assigned by the middle station When the platform is used, the middle platform service corresponding to the enterprise application identifier can be scheduled.
在又一些实施例中,第三方应用标识包括:第三方企业应用标识和第三方用户应用标识;第一类标识,包括:企业应用标识和用户应用标识;其中,所述映射信息指示所述第三方企业应用标识和所述企业应用标识的所述第一映射关系;且所述映射信息指示所述第三方用户应用标识和所述用户应用标识的所述第一映射关系。In some other embodiments, the third-party application identifier includes: a third-party enterprise application identifier and a third-party user application identifier; the first type of identifier includes: an enterprise application identifier and a user application identifier; wherein, the mapping information indicates that the third-party The first mapping relationship between the third-party enterprise application identifier and the enterprise application identifier; and the mapping information indicates the first mapping relationship between the third-party user application identifier and the user application identifier.
示例性的,第三方应用的第三方用户应用标识可以为“app_userid”,中台可以为“app_userid”分配用户应用标识“company_uuid”。如图3所示,中台获取第三方应用中第三方应用标识“app_userid”,并将“app_userid”导入企业协作中台中的企业管理后台,为“app_userid”生成用户应用标识“company_uuid”;该“company_uuid”可对应中台服务中IM服务。在本示例中,中台可存储“app_userid”与“company_uuid”之间映射关系的映射信息。Exemplarily, the third-party user application identifier of the third-party application may be "app_userid", and the middle station may assign the user application identifier "company_uuid" to "app_userid". As shown in Figure 3, the middle platform obtains the third-party application identifier "app_userid" in the third-party application, and imports "app_userid" into the enterprise management background in the enterprise collaboration middle platform, and generates a user application identifier "company_uuid" for "app_userid"; company_uuid" can correspond to the IM service in the middle platform service. In this example, the middle station can store the mapping information of the mapping relationship between "app_userid" and "company_uuid".
这里,企业管理后台为独立的管理后台;该企业管理后台为线上已有能力,无需集成、可直接使用。Here, the enterprise management background is an independent management background; the enterprise management background is an existing online capability, which can be used directly without integration.
如此,在本公开实施例中,中台可以为第三方应用标识中第三方企业应用标识分配对应的企业应用标识以及为第三方企业应用标识下的第三用户应用标识分配对应的企业应用标识对应的用户应用标识,以使得客户端或者目标用户群组基于该中台分配的企业应用标识登录中台时可以调度该企业应用标识对应中台服务,或者以使得客户端或者目标用户群组基于该中台分配的用户应用标识登录时调度用户应用标识对应的企业应用标识对应的中台服务。In this way, in the embodiment of the present disclosure, the middle station can assign a corresponding enterprise application identifier to the third-party enterprise application identifier in the third-party application identifier and assign a corresponding enterprise application identifier to the third user application identifier under the third-party enterprise application identifier. User application ID, so that the client or target user group can schedule the middle platform service corresponding to the enterprise application ID when logging in to the middle platform based on the enterprise application ID assigned by the middle platform, or make the client or target user group based on the When the user application ID assigned by the middle platform logs in, the middle platform service corresponding to the enterprise application ID corresponding to the user application ID is scheduled.
在一些实施例中,第一类标识可对应于中台中至少一种中台服务。这里,第一类标识中企业应用标识可对应中台中至少一种中台服务。In some embodiments, the first type of identifier may correspond to at least one middle platform service in the middle platform. Here, the enterprise application identifier in the first type of identifier may correspond to at least one middle platform service in the middle platform.
示例性的,中台建立并保存第一类标识与中台服务标识之间的映射信息;该映射信息指示第一类标识与中台服务标识之间的第三映射关系。这里,一个中台服务标识用于对应至少一个中台服务;不同的中台服务标识对应不同的中台服务或者中台服务组合,中台服务组合为一个或多个中台服务的组合。Exemplarily, the middle station establishes and saves the mapping information between the first type identifier and the middle station service identifier; the mapping information indicates the third mapping relationship between the first type identifier and the middle station service identifier. Here, one middle station service identifier is used to correspond to at least one middle station service; different middle station service identifiers correspond to different middle station services or middle station service combinations, and the middle station service combination is a combination of one or more middle station services.
如此,在本公开实施例中,中台分配第一类标识以及确定目标用户群组调用中台服务的服务调用方式;并根据服务调用方式,确定目标用户群组调用所述中台服务是否涉及第二类标识;在确定所述中台服务调用涉及所述第二类标识的情况下,建立所述第一类标识和所述第二类标识之间的映射信息;通过映射信息,以供目标用户群组调用中台服务。如此本公开实施例可以建立不是中台配置的第二类标识与中台配置的第一类标识的映射信息,从而可以基于第二类标识查找映射信息以查到对应的第一类标识,并利用第一类标识调用中台服务;也就是说,可以通过该映射信息,使得不是中台分配的第一类标识(如第二类标识)进行中台服务的调用。In this way, in the embodiment of the present disclosure, the middle station assigns the first type of identification and determines the service invocation method for the target user group to call the middle station service; and according to the service invocation method, determines whether the target user group calls the middle station service. The second type of identification; when it is determined that the middle station service call involves the second type of identification, establish mapping information between the first type of identification and the second type of identification; through the mapping information, for The target user group calls the middle platform service. In this way, the embodiment of the present disclosure can establish the mapping information between the second-type identifier configured by the middle station and the first-type identifier configured by the middle station, so that the mapping information can be searched based on the second-type identifier to find the corresponding first-type identifier, and Use the first type of identification to call the middle platform service; that is, the mapping information can be used to make the first type of identification (such as the second type of identification) not allocated by the middle platform to call the middle platform service.
在一些实施例中,所述第二类标识包括:第三方应用标识;In some embodiments, the second type of identification includes: a third-party application identification;
如图4所示,所述步骤S13,包括:As shown in Figure 4, the step S13 includes:
步骤S131:在所述服务调用方式为基于用户标识调用的情况下,确定所述目标用户群组是否使用所述第三方应用标识调用所述中台服务;Step S131: In the case that the service invocation method is invoking based on the user ID, determine whether the target user group uses the third-party application ID to invoke the middle platform service;
所述映射信息,指示所述第一类标识和所述第三方应用标识之间的第一映射关系。The mapping information indicates a first mapping relationship between the first type identifier and the third-party application identifier.
示例性的,请再次参见图3,在中台确定第三方应用中第三方应用标识“app_userid”的情况下,利用中台中后台为“app_userid”生成用户应用标识“company_uuid”;中台存储指示“app_userid”与“company_uuid”之间第一映射关系的映射信息。For example, please refer to Figure 3 again. In the case that the middle platform determines the third-party application identifier "app_userid" in the third-party application, the middle platform uses the middle platform to generate the user application identifier "company_uuid" for "app_userid"; the middle platform stores the indication " The mapping information of the first mapping relationship between "app_userid" and "company_uuid".
如此,在本公开实施例中,在服务调用方式为基于用户标识调用的情况下,若确定目标用户群组调用中台服务涉及第三方应用标识,可建立第一类标识与第三方应用标识之间的第一映射关系。如此,本公开实施例可以实现第三方应用的第三方应用标识与中台分配的第一类标识(即中台账号体系)进行绑定,从而在客户端或者目标用户群组调用中台服务时,可以将至少一个中台服务调用到第三方应用进行使用,即可以直接将中台的能力嵌入到第三方应用中。In this way, in the embodiment of the present disclosure, in the case that the service calling method is called based on the user ID, if it is determined that the target user group calls the middle platform service that involves a third-party application ID, a relationship between the first type of ID and the third-party application ID can be established. The first mapping relationship between. In this way, the embodiment of the present disclosure can realize the binding of the third-party application identifier of the third-party application and the first type of identifier (ie, the account system of the middle platform) assigned by the middle platform, so that when the client or the target user group calls the middle platform service , you can call at least one middle platform service to a third-party application for use, that is, you can directly embed the middle platform capabilities into the third-party application.
在一些实施例中,所述步骤S131,包括:In some embodiments, the step S131 includes:
步骤S1311:在所述服务调用方式为所述基于用户标识调用的情况下,根据标识应用需求信息,确定所述目标用户群组是否使用所述第三方应用标识调用所述中台服务;Step S1311: When the service invocation method is the invocation based on the user identifier, determine whether the target user group uses the third-party application identifier to invoke the middle platform service according to the identifier application requirement information;
或者,or,
步骤S1312:在所述服务调用方式为所述基于用户标识调用的情况下,根据在分配所述第一类标识的过程中接收所述第三方应用标识情况,确定所述目标用户群组是否使用所述第三方应用标识调用所述中台服务。Step S1312: In the case that the service invocation method is the invocation based on the user identification, according to the receiving of the third-party application identification in the process of allocating the first type of identification, determine whether the target user group uses The third-party application identifier calls the middle platform service.
这里,标识应用需求信息可以是任意一种指示使用第三方应用标识的信息。该标识应用需求信息可以是中台从客户端获取的。例如,客户端发送服务调用请求时,可以携带第请求标识及应用标识需求信息;如此,中台基于该应用需求标识信息可知晓基于用户标识调用中台服务时,是否指示利用第三方应用标识进行调用。Here, the identification application requirement information may be any kind of information indicating the use of a third-party application identification. The identification application requirement information may be obtained by the middle station from the client. For example, when the client sends a service invocation request, it can carry the first request identifier and application identifier requirement information; in this way, based on the application requirement identifier information, the middle platform can know whether to instruct the use of a third-party application identifier when invoking the middle platform service based on the user identifier. transfer.
在一个实施例中,所述步骤S1311,包括:在所述服务调用方式为所述基于用户标识调用、且所述标识应用需求信息指示使用所述第三方应用标识的情况下,确定目标用户群组使用第三方应用标识调用所述中台服务。In one embodiment, the step S1311 includes: determining the target user group when the service calling method is the calling based on the user ID, and the ID application requirement information indicates the use of the third-party application ID The group uses the third-party application identification to call the middle platform service.
在另一个实施例中,所述步骤S1311,包括:在所述服务调用方式为所述基于用户标识调用、且所述标识应用需求信息没有指示使用所述第三方应用标识的情况下,确定目标用户群组不使用所述第三方应用调用中台服务。In another embodiment, the step S1311 includes: determining the target when the service calling method is the calling based on the user ID and the ID application requirement information does not indicate the use of the third-party application ID The user group does not use the third-party application to call the middle platform service.
如此,在本公开实施例中,在服务调用方式为基于用户标识调用的况下,可以基于标识应用需求信息指示是否使用第三方应用标识时,从而准确确定目标用户群组是否使用第三方应用调用中台服务。In this way, in the embodiment of the present disclosure, in the case that the service invocation method is based on the user identification, it can be accurately determined whether the target user group uses the third-party application invocation when the identification application requirement information indicates whether to use the third-party application identification. Middle-end service.
在一个实施例中,所述步骤S1312,包括:在所述服务调用方式为所述基于用户标识调用、且在分配所述第一类标识过程中接收到所述第三方应用标识的情况下,确定目标用户群组是否使用第三方应用标识调用所述中台服务。In one embodiment, the step S1312 includes: when the service invocation method is the invocation based on user identification and the third-party application identification is received during the process of allocating the first type of identification, Determine whether the target user group uses the third-party application identifier to call the middle platform service.
在另一个实施例中,所述步骤S132,包括:在所述服务调用方式为所述基于用户标识调用、且在分配所述第一类标识过程中未接收到所述第三方应用标识的情况下,确定目标用户群组不使用所述第三方应用标识调用所述中台服务。In another embodiment, the step S132 includes: when the method of invoking the service is the invocation based on the user identifier and the third-party application identifier is not received during the process of assigning the first type of identifier Next, it is determined that the target user group does not use the third-party application identifier to call the middle platform service.
这里,中台在分配第一类标识的过程中,接收客户端发送的第三方应用标识;如此,中台可以为第三方应用标识分配对应的第一类标识。Here, during the process of assigning the first-type identifier, the middle station receives the third-party application identifier sent by the client; thus, the middle station can assign the corresponding first-type identifier to the third-party application identifier.
如此,在本公开实施例中,在服务调用方式为基于用户标识调用的情况下,可以基于在分配所述第一类标识过程中是否接收到第三方应用标识以确定目标用户群组是否使用第三方应用标识调用中台服务。在在第一类标识过程中接收到第三方应用标识的情况下,可以为第三方应用标识及时确定出相应的第一类标识。如此,本公开实施例也能准确确定出目标用户群组是否使用第三方应用标识调用中台服务,并能有效建立第三方应用标识与第一类标识之间的映射关系。In this way, in the embodiment of the present disclosure, in the case that the service invocation method is based on user identification, it may be determined based on whether a third-party application identification is received during the process of allocating the first type of identification to determine whether the target user group uses the second type of application identification. The third-party application identification calls the middle platform service. In the case that a third-party application identifier is received during the first-type identification process, the corresponding first-type identifier can be determined in time for the third-party application identifier. In this way, the embodiments of the present disclosure can also accurately determine whether the target user group uses the third-party application identifier to call the middle platform service, and can effectively establish a mapping relationship between the third-party application identifier and the first-type identifier.
请再次参见图4,在一些实施例中,所述步骤S13,包括:Please refer to FIG. 4 again, in some embodiments, the step S13 includes:
步骤S132:在所述服务调用方式为调用SDK的情况下,确定所述目标用户群组使用第二类标识调用中台服务,且所述第二类标识为所述SDK的标识;Step S132: In the case that the service calling method is to call the SDK, determine that the target user group uses the second type of identification to call the middle platform service, and the second type of identification is the identification of the SDK;
所述映射信息,指示所述SDK的标识和所述第一类标识之间的第二映射关系。The mapping information indicates a second mapping relationship between the SDK identifier and the first type identifier.
这里,SDK至少集成以下至少中台服务:即时通信服务、云文档服务、工作台服务、离线推送服务、企业账号服务、企业管理服务、以及企业自建应用。Here, the SDK at least integrates at least the following middle-end services: instant messaging service, cloud document service, workbench service, offline push service, enterprise account service, enterprise management service, and enterprise self-built applications.
这里,一个SDK的标识对应一个第三方应用标识。Here, an SDK identifier corresponds to a third-party application identifier.
在一个实施例中,SDK的标识对应第三应用标识中第三方用户应用标识。例如,一个SDK的标识可对应一个企业应用标识,一个企业应用标识可对应一个第三方企业应用标识下的第三方用户应用标识,可确定一个SDK标识对应一个第三方用户应用标识。In one embodiment, the SDK identifier corresponds to the third-party user application identifier in the third application identifier. For example, an SDK identifier may correspond to an enterprise application identifier, an enterprise application identifier may correspond to a third-party user application identifier under a third-party enterprise application identifier, and it may be determined that an SDK identifier corresponds to a third-party user application identifier.
这里,一个第三方应用可至少携带至少一个SDK。例如,一个APP可携带N个SDK;N为大于1的整数。Here, a third-party application may carry at least one SDK. For example, an APP can carry N SDKs; N is an integer greater than 1.
示例性,如图5所示,SDK可以是即时通讯SDK(IMSDK),例如可以是A公司即时通讯SDK(Kingsoft Company IM Software Development Kit,KCIM SDK);该IMSDK用于将企业云文档和/或企业工作台实现成SDK级别的能力架构。该IMSDK中,主要包括即时通信工具包(IMKit)、插件(plugin)、蜂核(IMCore)。在IMKit中,有视图(View)、事件或状态(Event/State)、视图控制器(ViewController)以及业务模型(Service(Model))几层。例如,这里可由事件或状态层可生成事件,业务模型层的数据通过格式器到视图控制器层,以及事件或状态层输出数据以更新视图。插件引入了云文档和实时通信(Real time communication,RTC)等;该RTC即为实时音视频。该IMCore中,主要包括IMCore Impl、业务任务(servicetask)、数据包装器(data wrapper)、网络(Networking)、网络套接字(Websocket)、缓存(Cache)、缓存桥(cache bradge)以及基本组成(Foundation);其中,Impl用于存放接口的实现类。如此,在本公开实施例中,SDK可以便捷接入云文档及实时音视频等,当然还可以接入其它的能力,例如工作台等的能力;该SDK提供业务视图页面多机型适配渲染及交互能力。SDK可以通过内部逻辑处理业务数据通讯,同时SDK提供扩展协议,以支持客户添加自定义业务流程处理。Exemplary, as shown in Figure 5, SDK can be Instant Messenger SDK (IMSDK), for example can be Company A's Instant Messenger SDK (Kingsoft Company IM Software Development Kit, KCIM SDK); This IMSDK is used for enterprise cloud document and/or The enterprise workbench is implemented as an SDK-level capability architecture. The IMSDK mainly includes an instant messaging toolkit (IMKit), a plug-in (plugin), and a honeycomb core (IMCore). In IMKit, there are several layers of view (View), event or state (Event/State), view controller (ViewController) and business model (Service (Model)). For example, events can be generated by the event or state layer, data from the business model layer passes through the formatter to the view controller layer, and the event or state layer outputs data to update the view. The plug-in introduces cloud documents and real-time communication (Real time communication, RTC), etc.; the RTC is real-time audio and video. The IMCore mainly includes IMCore Impl, business task (servicetask), data wrapper (data wrapper), network (Networking), network socket (Websocket), cache (Cache), cache bridge (cache bridge) and basic components (Foundation); Among them, Impl is used to store the implementation class of the interface. In this way, in the embodiment of the present disclosure, the SDK can easily access cloud documents, real-time audio and video, etc., of course, it can also access other capabilities, such as workbench capabilities; the SDK provides multi-model adaptive rendering of business view pages and interactive capabilities. The SDK can process business data communication through internal logic, and the SDK provides extended protocols to support customers to add custom business process processing.
示例性的,请再次参见图3,第三方应用,例如APP,可利用SDK的标识“IMSDK”调用中台服务;该SDK标识“IMSDK”与用户应用标识“company_uuid”具有映射关系。中台可存储指示“IMSDK”与“company_uuid”之间第二映射关系的映射信息。中台接收到第三方应用发送的APP的SDK的标识后,可基于映射信息确定出SDK的标识对应的第一类标识;如确定出企业应用标识,并基于企业应用标识确定调用对应的中台服务;或者如确定出用户应用标识,基于用户应用标识确定出企业应用标识,并基于企业应用标识确定调用对应的中台服务。而中台可基于SDK的标识所对应的企业应户标识等找到与SDK对应的第三方应用标识,如“app_userid”;并根据第三应用标识“app_userid”返回中台服务等给第三方应用。For example, please refer to Fig. 3 again. A third-party application, such as APP, can use the SDK identifier "IMSDK" to call the middle platform service; the SDK identifier "IMSDK" has a mapping relationship with the user application identifier "company_uuid". The middle station may store mapping information indicating the second mapping relationship between "IMSDK" and "company_uuid". After the middle platform receives the APP SDK ID sent by the third-party application, it can determine the first type of ID corresponding to the SDK ID based on the mapping information; if the enterprise application ID is determined, and based on the enterprise application ID, it can determine the corresponding middle platform service; or if the user application identifier is determined, the enterprise application identifier is determined based on the user application identifier, and the corresponding middle-end service is called based on the enterprise application identifier. The middle platform can find the third-party application identification corresponding to the SDK based on the enterprise user identification corresponding to the SDK identification, such as "app_userid"; and return the middle platform service to the third-party application according to the third application identification "app_userid".
如此,在本公开实施例中,在服务调用方式为调用SDK的情况下,在确定目标用户群组使用SDK调用中台服务的情况下,可建立第一类标识与SDK之间的第二映射关系。如此,本公开实施例可以通过使用SDK内的独立能力调用中台的中台服务,使得中台的至少一个中台服务集成到第三方应用中。且本公开实施例中第三方应用无需使用自身的账号或者与自身账号对应的中台分配的账号进行登录中台,从而可以简化客户端或者目标用户群组调用中台服务的处理过程,即能够通过SDK便捷调度中台服务。In this way, in the embodiment of the present disclosure, when the method of calling the service is to call the SDK, if it is determined that the target user group uses the SDK to call the middle platform service, a second mapping between the first type of identifier and the SDK can be established relation. In this way, the embodiment of the present disclosure can use the independent capability in the SDK to call the middle platform service of the middle platform, so that at least one middle platform service of the middle platform can be integrated into the third-party application. Moreover, in the embodiments of the present disclosure, the third-party application does not need to use its own account or the account assigned by the middle platform corresponding to its own account to log in to the middle platform, so that the process of calling the middle platform service by the client or the target user group can be simplified, that is, it can Conveniently dispatch middle-end services through SDK.
在一些实施例中,所述方法包括:In some embodiments, the method includes:
向客户端发送给所述映射信息;其中,所述映射信息用于供所述客户端基于所述第一类标识调用所述中台服务,或者,所述映射信息用于供所述客户端基于所述第二类标识调用所述中台服务。Send the mapping information to the client; wherein, the mapping information is used for the client to call the middle platform service based on the first type of identification, or the mapping information is used for the client Invoking the middle platform service based on the second type identifier.
这里,在服务调用方式为基于用户标识调用的情况下,客户端可基于第一类标识调用中台服务。例如,在中台接收客户端发送第一类标识的情况下,可以基于该第一类标识确定客户端调用的中台服务。Here, in the case that the service invocation mode is invoking based on the user identifier, the client may invoke the middle office service based on the first type of identifier. For example, in the case that the middle station receives the first type of identification sent by the client, the middle platform service invoked by the client may be determined based on the first type of identification.
这里,在服务调用方式为调用SDK的情况下,客户端可基于第二类标识调用中台服务。例如,在中台接收客户端发送的SDK的标识的情况下,可以基于该SDK标识及映射信息,确定出与SDK标识对应的第一类标识;映射信息为指示SDK的标识与第一类标识之间的第二映射关系;中台基于该第一类标识确定客户端调用的中台服务。Here, in the case that the service calling method is calling the SDK, the client can call the middle platform service based on the second type of identification. For example, when the middle station receives the SDK ID sent by the client, it can determine the first type of ID corresponding to the SDK ID based on the SDK ID and the mapping information; the mapping information is the ID indicating the SDK and the first type of ID The second mapping relationship among them; the middle platform determines the middle platform service invoked by the client based on the first type identifier.
如此,在本公开实施例中,中台将映射信息发送给客户端,以便于客户端基于该映射信息中第一类标识或者第二类标识调用中台服务。例如可以基于用户标识调用的服务调用方式,利用第一类标识调用中台服务;或者可调用SDK的服务调用方式,例如第二类标识调用中台服务。如此可以适用性基于不同的服务调用方式及对应标识进行调用。In this way, in the embodiment of the present disclosure, the middle station sends the mapping information to the client, so that the client can call the middle station service based on the first type identifier or the second type identifier in the mapping information. For example, the service invocation method can be invoked based on the user identification, and the first type of identification can be used to invoke the middle platform service; or the service invocation method of the SDK can be invoked, for example, the second type of identification can be used to invoke the middle platform service. In this way, applicability can be invoked based on different service invocation methods and corresponding identifiers.
如图6所示,在一些实施例中,所述方法包括:As shown in Figure 6, in some embodiments, the method includes:
步骤S21:接收服务调用请求;Step S21: receiving a service call request;
步骤S22:在所述服务调用请求包含请求标识的情况下,根据所述请求标识确定是否响应所述服务调用请求。Step S22: In the case that the service invocation request includes a request identifier, determine whether to respond to the service invocation request according to the request identifier.
在一个实施例中,请求标识可以是第一类标识。例如,请求标识可以是但不限于是企业应用标识和/或用户应用标识。In one embodiment, the request identifier may be a first-type identifier. For example, the request identifier may be, but not limited to, an enterprise application identifier and/or a user application identifier.
在另一个实施例中,请求标识可以是第二类标识。例如,请求标识可以是SDK的标识。此时,中台可基于第二类标识及映射信息,确定出与第一类标识具有映射信息的第二类标识,从而响应该服务调用请求。In another embodiment, the request identifier may be a second-type identifier. For example, the request identifier may be an SDK identifier. At this time, the middle station can determine the second-type identifier that has mapping information with the first-type identifier based on the second-type identifier and the mapping information, so as to respond to the service call request.
在又一个实施例中,请求标识也可以是第二类标识中第三方应用标识。例如,请求标识可以是第三方企业应用标识和/或第三方用户应用标识。In yet another embodiment, the request identifier may also be a third-party application identifier in the second type of identifier. For example, the request identifier may be a third-party enterprise application identifier and/or a third-party user application identifier.
当然,在其它的实施例中,请求标识可以是除第一类标识及第二类标识之外的其它人意标识。此时,中台可以不响应该服务调用请求。Certainly, in other embodiments, the request identifier may be other arbitrary identifiers except the first type identifier and the second type identifier. At this time, the middle station may not respond to the service call request.
这里,步骤S22中根据所述请求标识确定是否响应所述服务调用请求,包括:根据所述请求标识确定响应所述服务调用请求;或者,根据所述请求标识确定不响应所述服务调用请求。Here, determining whether to respond to the service invocation request according to the request identifier in step S22 includes: determining to respond to the service invocation request according to the request identifier; or determining not to respond to the service invocation request according to the request identifier.
这里,根据所述请求标识确定响应所述服务调用请求可以是:确定允许调用请求标识对应的中台服务。或者,根据所述请求标识确定响应所述服务调用请求可以是:确定允许调用请求标识对应的中台服务;并发送服务调用响应,其中,服务调用响应包括:请求标识对应的中台服务。Here, determining to respond to the service invocation request according to the request identifier may be: determining that the middle office service corresponding to the invocation request identifier is allowed. Alternatively, determining to respond to the service invocation request according to the request identifier may be: determining that the invocation of the middle platform service corresponding to the request identifier is allowed; and sending a service invocation response, wherein the service invocation response includes: the middle office service corresponding to the request identifier.
如此,在本公开实施例中,中台可以基于接收到的服务调用请求中包含的请求标识,准确确定出是否响应服务调用请求;在确定响应服务调用请求的情况下,即可实现对中台服务的调用。如此可以解决第三方应用自身无法融合中台企业级别的中台的能力问题,可以使得中台中至少一个中台服务与第三方应用进行自由融合;从而实现企业级别能力的整合。In this way, in the embodiment of the present disclosure, the middle station can accurately determine whether to respond to the service call request based on the request identifier contained in the received service call request; service call. This can solve the problem that the third-party application itself cannot integrate the capabilities of the enterprise-level mid-platform, and can freely integrate at least one of the mid-platform services with the third-party application; thus realizing the integration of enterprise-level capabilities.
如图7所示,在一些实施例中,所述S22,包括:As shown in Figure 7, in some embodiments, the S22 includes:
步骤S221:在所述请求标识是所述中台分配的所述第一类标识的情况下,确定响应所述服务调用请求;Step S221: If the request identifier is the first type identifier assigned by the middle station, determine to respond to the service invocation request;
或者,or,
步骤S222:在所述请求标识不是所述中台分配的所述第一类标识的情况下,通过查询所述映射信息,确定所述请求标识是否与所述中台分配的第一类标识建立映射关系;在所述请求标识与所述中台分配的第一类标识建立映射关系的情况下,确定响应所述服务调用请求。Step S222: In the case that the request identifier is not the first-type identifier assigned by the middle station, determine whether the request identifier is established with the first-type identifier assigned by the middle station by querying the mapping information Mapping relationship: in the case that the request identifier establishes a mapping relationship with the first-type identifier allocated by the middle station, determine to respond to the service invocation request.
在一些实施例中,所述步骤S221中在所述请求标识是所述中台分配的所述第一类标识的情况下,包括以下至少之一:In some embodiments, in the step S221, when the request identifier is the first type identifier assigned by the middle station, at least one of the following is included:
所述请求标识是所述企业应用标识;和/或,The request identifier is the enterprise application identifier; and/or,
所述请求标识是所述用户应用标识,且所述用户应用标识归属于所述企业应用标识。The request identifier is the user application identifier, and the user application identifier belongs to the enterprise application identifier.
示例性的,中台接收到客户端发送的服务调用请求,在确定服务调用请求包含企业应用标识的情况下,确定响应服务调用请求。中台将服务调用响应返回给客户端,该服务调用响应包括企业应用标识对应的中台服务。Exemplarily, the middle station receives the service invocation request sent by the client, and determines to respond to the service invocation request when it is determined that the service invocation request contains the enterprise application identifier. The middle platform returns a service invocation response to the client, and the service invocation response includes the middle platform service corresponding to the enterprise application identifier.
示例性的,中台接收到客户端发送的服务调用请求,在确定服务调用请求包含用户应用标识的情况下,基于该用户应用标识查询到对应的企业应用标识;并基于该企业应用标识确定响应服务调用请求。中台将服务调用响应返回给客户端,该服务调用响应包括企业应用标识对应的中台服务。Exemplarily, the middle station receives the service invocation request sent by the client, and if it is determined that the service invocation request contains the user application identifier, it queries the corresponding enterprise application identifier based on the user application identifier; and determines the response based on the enterprise application identifier Service call request. The middle platform returns a service invocation response to the client, and the service invocation response includes the middle platform service corresponding to the enterprise application identifier.
如此,在本公开实施例中,在服务请求标识是中台分配的第一类标识的情况下,可直接基于该第一类标识确定响应服务调用请求。In this way, in the embodiment of the present disclosure, in the case that the service request identifier is a first-type identifier assigned by the middle station, it can be directly determined based on the first-type identifier to respond to the service invocation request.
示例性的,中台接收到客户端发送的服务调用请求,在确定服务调用请求包含SDK的标识信息的情况下,基于SDK标识信息与指示SDK与第一类标识之间第二映射关系的映射信息,确定出第一类标识信息;中台基于第一类标识确定响应服务调用请求。中台将服务调用响应返回给客户端,该服务调用响应包括企业应用标识对应的中台服务。Exemplarily, the middle station receives the service invocation request sent by the client, and when it is determined that the service invocation request contains the identification information of the SDK, based on the mapping between the SDK identification information and the second mapping relationship indicating the SDK and the first type of identification, information to determine the first type of identification information; the middle station determines and responds to the service call request based on the first type of identification. The middle platform returns a service invocation response to the client, and the service invocation response includes the middle platform service corresponding to the enterprise application identifier.
示例性的,中台接收到客户端发送的服务调用请求,在确定服务调用请求包含第三方应用标识的情况下,基于第三方应用标识与指示第三方应用标识与第一类标识之间第一映射关系的映射信息,确定出第一类标识信息;中台基于第一类标识确定响应服务调用请求。中台将服务调用响应返回给客户端,该服务调用响应包括企业应用标识对应的中台服务。Exemplarily, the middle station receives the service invocation request sent by the client, and when it is determined that the service invocation request contains a third-party application identifier, based on the third-party application identifier and the first-class identifier between the third-party application identifier and the first-type identifier The mapping information of the mapping relationship determines the first type of identification information; the middle station determines and responds to the service call request based on the first type of identification. The middle platform returns a service invocation response to the client, and the service invocation response includes the middle platform service corresponding to the enterprise application identifier.
如此,在本公开实施例中,在服务调用请求不是中台分配的第一类标且是与第一类标识具有映射关系的第二类标识的情况下,可以基于第二类标识及指示该映射关系的映射信息确定出第一类标识;从而确定出响应该服务调用请求。In this way, in the embodiment of the present disclosure, in the case that the service invocation request is not the first type identifier assigned by the middle station and is a second type identifier that has a mapping relationship with the first type identifier, it can be indicated based on the second type identifier and the The mapping information of the mapping relationship determines the first type of identifier; thereby determining the response to the service invocation request.
这里,中台在基于第一类标识确定响应服务调用请求之前还会对第一类标识进行授权验证。例如,通过白名单的方式确定该第一类标识是否为授权调用中台服务的授权标识。Here, before the middle station determines to respond to the service invocation request based on the first type of identification, it will also perform authorization verification on the first type of identification. For example, it is determined by means of a white list whether the first type of identification is an authorization identification authorized to call the middle platform service.
在一些实施例中,所述步骤S22中确定响应所述服务调用请求,包括:若确定第一类标识为授权标识,确定响应所述服务调用请求。In some embodiments, determining to respond to the service invocation request in step S22 includes: determining to respond to the service invocation request if it is determined that the first type of identifier is an authorization identifier.
在一些实施例中,所述确定第一类标识为授权标识,包括:In some embodiments, the determining that the first type of identification is an authorized identification includes:
若服务调用请求中的第一类标识是所述中台的白名单中存在的所述企业应用标识,确定所述企业用户标识为授权标识,其中,所述白名单保存至少一个授权调用中台服务的企业应用标识;If the first type of identifier in the service invocation request is the enterprise application identifier existing in the whitelist of the middle station, determine that the enterprise user identifier is an authorization identifier, wherein the whitelist stores at least one authorized calling middle station the Enterprise Application Identifier for the Service;
若服务调用中包含的第一类标识归属于白名单中的所述企业应用标识,确定所述用户应用标识为授权标识。If the first type of identifier included in the service call belongs to the enterprise application identifier in the whitelist, determine that the user application identifier is an authorized identifier.
如此,在本公开实例中可以实现对企业应用标识的验证,以及对企业应用标识下用户应用标识的验证;从而精确确定出接收的包括企业应用标识和/或用户应用标识的第一类标识是否为白名单中授权调用中台服务的第一类标识。In this way, in the disclosed example, the verification of the enterprise application identification and the verification of the user application identification under the enterprise application identification can be realized; thereby accurately determining whether the first type of identification including the enterprise application identification and/or user application identification is received It is the first type of identification authorized to call the middle office service in the white list.
如图8所示,本公开实施例提供一种中台服务调用的处理方法的示意图,该中台服务调用的处理方法可以是:首先对企业版能力进行整合,例如对企业文档、企业管理后台、企业工作台及开放能力进行整合;其次建立映射关系,建立第一类标识与第二类标识的映射关系,并确定用户应用标识是否限制在企业应用标识下;然后在确定用户应用标识限制在企业应用标识下的情况下,执行调用企业协作中台即时通讯服务。这里,执行调用企业协作中台即时通讯服务可以包括但不限于包括:企业协作中台接收第三方业务发送的HTTP,该HTTP中携带请求的即时通讯服务;中台推送该即时通讯服务;中台将该即时通信服务集成到第三应用中使用,该第三方应用可以是但不限于是手机端、PC端及浏览器等应用。As shown in FIG. 8 , an embodiment of the present disclosure provides a schematic diagram of a processing method for invoking middle-end services. The processing method for invoking middle-end services may be as follows: first, integrate enterprise version capabilities, such as enterprise documents, enterprise management background , enterprise workbench, and open capabilities; secondly, establish a mapping relationship, establish a mapping relationship between the first type of identification and the second type of identification, and determine whether the user application identification is limited to the enterprise application identification; and then determine whether the user application identification is limited to In the case of an enterprise application identifier, the instant messaging service of the enterprise collaboration platform is executed. Here, calling the instant messaging service of the enterprise collaboration center may include, but is not limited to: the enterprise collaboration center receives the HTTP sent by the third-party business, and the HTTP carries the requested instant messaging service; the middle stage pushes the instant messaging service; the middle stage The instant messaging service is integrated into a third application for use, and the third-party application may be, but not limited to, applications such as mobile phone terminals, PC terminals, and browsers.
在本公开实施例中,执行调用中台服务即时通讯服务可以参见上述任意实施例。且,在其它实施例中,也可以实现调用中台中任意的中台服务。In the embodiments of the present disclosure, reference may be made to any of the foregoing embodiments for executing the instant messaging service for invoking the middle platform service. Moreover, in other embodiments, it is also possible to call any middle platform service in the middle platform.
需要说明的是,本领域内技术人员可以理解,本公开实施例提供的方法,可以被单独执行,也可以与本公开实施例中一些方法或相关技术中的一些方法一起被执行。It should be noted that those skilled in the art can understand that the methods provided in the embodiments of the present disclosure may be executed independently, or together with some methods in the embodiments of the present disclosure or some methods in related technologies.
以下一种调用中台服务的标识处理方法,是由客户端执行的,与上述由中台执行的调用中台服务的标识处理方法的描述是类似的;且,对于由客户端执行的调用中台服务的标识处理方法实施例中未披露的技术细节,请参照由中台执行的调用中台服务的标识处理方法示例的描述,在此不做详细描述说明。The following identification processing method for invoking the middle platform service is executed by the client, which is similar to the above description of the identification processing method for invoking the middle platform service performed by the middle platform; and, for the invocation performed by the client For the technical details not disclosed in the embodiment of the identification processing method of the platform service, please refer to the description of the example of the identification processing method for invoking the service of the platform performed by the platform, and no detailed description will be given here.
如图9所示,提供一种调用中台服务的标识处理方法,由客户端执行,包括:As shown in Figure 9, an identification processing method for invoking middle-end services is provided, which is executed by the client, including:
步骤S31:发送服务调用请求;其中,所述服务调用请求包括请求标识,且所述请求标识用于供中台确定是否响应所述服务调用请求;Step S31: Send a service call request; wherein, the service call request includes a request identifier, and the request identifier is used for the middle station to determine whether to respond to the service call request;
步骤S32:接收服务调用响应;其中,所述服务调用响应是所述中台响应所述服务调用请求返回的,且所述服务调用响应包括所述请求标识对应的中台服务。Step S32: Receive a service call response; wherein, the service call response is returned by the middle station in response to the service call request, and the service call response includes the middle station service corresponding to the request identifier.
在一些实施例中,所述请求标识用于供所述中台确定是所述中台分配的所述第一类标识的情况下,确定响应所述服务调用请求;In some embodiments, the request identifier is used for determining to respond to the service invocation request when the middle station determines that it is the first type of identifier assigned by the middle station;
或者,or,
所述请求标识用于供所述中台确定不是所述中台分配的所述第一类标识、且所述请求标识用于供所述中台服务确定是与所述中台分配的第一类标识建立映射关系的情况下,确定响应所述服务调用请求。The request identifier is used for the middle station to determine that it is not the first type of identifier assigned by the middle station, and the request identifier is used for the middle station service to determine that it is the first type of identifier assigned by the middle station. In the case of establishing a mapping relationship with class identifiers, it is determined to respond to the service invocation request.
这里,一个中台服务可以用一个中台服务标识表示。若请求标识为第一类标识时,可基于第一类标识对应的中台服务标识;这里,中台建立并保存第一类标识与中台服务标识之间的第三映射关系。若请求标识不是第一类标识时,可基于第一类标识与映射信息确定出第二类标识;其中,若第二类标识为第三方应用标识,可基于第三应用标识确定出与第三应用标识对应的中台服务标识,和/或,若第二类标识为SKD的标识,可基于SDK的标识确定出与SDK的标识对应的中台服务标识;这里,中台建立并保存第三方应用标识与中台服务标识之间的第三映射关系,和/或,中台建立并保存SDK的标识与中台服务标识之间的第三映射关系。如此,可通过请求标识调用对应中台服务标识所指示的中台服务。Here, a mid-stage service can be represented by a mid-stage service identifier. If the request identifier is a first-type identifier, it may be based on the middle station service identifier corresponding to the first-type identifier; here, the middle station establishes and saves a third mapping relationship between the first-type identifier and the middle station service identifier. If the request identifier is not the first-type identifier, the second-type identifier can be determined based on the first-type identifier and mapping information; wherein, if the second-type identifier is a third-party application identifier, the third-party application identifier can be determined based on the third application identifier. The mid-platform service logo corresponding to the application logo, and/or, if the second type of logo is the SKD logo, the mid-platform service logo corresponding to the SDK logo can be determined based on the SDK logo; here, the mid-platform establishes and saves the third-party The third mapping relationship between the application identifier and the middle platform service identifier, and/or, the middle platform establishes and saves the third mapping relationship between the SDK identifier and the middle platform service identifier. In this way, the middle platform service indicated by the corresponding middle platform service identifier can be invoked through the request identifier.
在本公开的一些实施例中,第一类标识及第二类标识分别可以是上述实施例中第一类标识及第二类标识。示例性的,这里,第一类标识为中台分配的标识。In some embodiments of the present disclosure, the first type of identification and the second type of identification may be the first type of identification and the second type of identification in the foregoing embodiments, respectively. Exemplarily, here, the first type of identification is the identification assigned by the middle station.
在一个实施例中,第一类标识包括:企业应用标识。In an embodiment, the first type of identifier includes: an enterprise application identifier.
在又一个实施例中,第一类标识包括:企业应用标识及用户应用标识。In yet another embodiment, the first type of identifier includes: an enterprise application identifier and a user application identifier.
这里,第二类标识为不是中台分配的标识。Here, the second type of identifier is an identifier not assigned by the middle station.
在一个实施例中,第二类标识包括第三方应用标识和/或SDK的标识。In an embodiment, the second type of identifier includes a third-party application identifier and/or an SDK identifier.
在一些实施例中,所述方法包括:In some embodiments, the method includes:
步骤S30:接收映射信息;其中,所述映射信息为所述中台建立的用于指示第一类标识和第二类标识之间的映射关系;所述第二类标识为目标群组调用所述中台服务涉及的标识;所述第一类标识是所述中台分配的;所述第一类标识不同于所述第一类标识;所述目标用户群组包括至少一个目标用户;Step S30: Receive mapping information; wherein, the mapping information is established by the middle station to indicate the mapping relationship between the first type of identification and the second type of identification; the second type of identification is the target group call The identity involved in the middle station service; the first type of identity is allocated by the middle station; the first type of identity is different from the first type of identity; the target user group includes at least one target user;
所述请求标识,包括:所述第一类标识。The request identifier includes: the first type identifier.
在本公开的一些实施例中,映射信息可以为上述实施例中映射信息。In some embodiments of the present disclosure, the mapping information may be the mapping information in the foregoing embodiments.
在一个实施例中,映射信息,指示第一类标识和第三方应用标识之间的第一映射关系。In one embodiment, the mapping information indicates a first mapping relationship between the first type identifier and the third-party application identifier.
在又一个实施例中,映射信息,指示第一类标识和SDK的标识之间的第二映射关系。In yet another embodiment, the mapping information indicates a second mapping relationship between the first type identifier and the SDK identifier.
在一个实施例中,第三方应用标识包括:第三方企业应用标识;第一类标识包括:企业应用标识;其中,所述映射信息指示所述第三方企业应用标识和所述企业应用标识之间的所述第一映射关系。In one embodiment, the third-party application identifier includes: a third-party enterprise application identifier; the first type of identifier includes: an enterprise application identifier; wherein, the mapping information indicates the relationship between the third-party enterprise application identifier and the enterprise application identifier The first mapping relationship of .
在又一个实施例中,第三方应用标识包括:第三方企业应用标识和第三方用户应用标识;第一类标识包括:企业应用标识和用户应用标识;其中,所述映射信息指示所述第三方企业应用标识和所述企业应用标识的所述第一映射关系;且所述映射信息指示所述第三方用户应用标识和所述用户应用标识的所述第一映射关系。In yet another embodiment, the third-party application identifier includes: a third-party enterprise application identifier and a third-party user application identifier; the first type of identifier includes: an enterprise application identifier and a user application identifier; wherein the mapping information indicates that the third-party The first mapping relationship between an enterprise application identifier and the enterprise application identifier; and the mapping information indicates the first mapping relationship between the third-party user application identifier and the user application identifier.
这里,在接收到映射信息后,可基于该映射信息发送包含第一类标识的服务调用请求,该第一类标识即是步骤S31中请求标识。Here, after the mapping information is received, a service invocation request including a first type of identifier may be sent based on the mapping information, and the first type of identifier is the request identifier in step S31.
当然,在其它的实施例中,在接收到映射信息后,可基于该映射信息发送携带包含第二类标识的服务调用请求;该第二类标识即是步骤S31中请求标识。Of course, in other embodiments, after receiving the mapping information, a service invocation request carrying a second type of identifier may be sent based on the mapping information; the second type of identifier is the request identifier in step S31.
在一些实施例中,所述步骤S30中接收所述映射信息之前,包括:In some embodiments, before receiving the mapping information in step S30, it includes:
向所述中台发送所述第二类标识;其中,所述第二类标识包括:第三方应用标识或者SDK的标识。Sending the second-type identifier to the middle station; wherein, the second-type identifier includes: a third-party application identifier or an SDK identifier.
这里,在接收到映射信息之前,客户端向中台发送第二类标识,有利于中台基于该第二类标识分配第一类标识,并建立第一类标识与第二类标识之间的映射关系。Here, before receiving the mapping information, the client sends the second type of identification to the middle station, which is beneficial for the middle station to allocate the first type of identification based on the second type of identification, and establish the relationship between the first type of identification and the second type of identification. Mapping relations.
以上实施方式,具体可以参见中台侧的表述,在此不再赘述。For the above implementation manner, for details, refer to the description on the side of the middle platform, and details are not repeated here.
需要说明的是,本领域内技术人员可以理解,本公开实施例提供的方法,可以被单独执行,也可以与本公开实施例中一些方法或相关技术中的一些方法一起被执行。It should be noted that those skilled in the art can understand that the methods provided in the embodiments of the present disclosure may be executed independently, or together with some methods in the embodiments of the present disclosure or some methods in related technologies.
为了进一步解释本公开任意实施例,以下提供几个具体实施例。In order to further explain any embodiment of the present disclosure, several specific embodiments are provided below.
示例一example one
如图10所示,本公开实施例提供一种中台服务调用的处理方法,由设备执行,该设备包括中台和客户端;包括以下步骤:As shown in FIG. 10 , an embodiment of the present disclosure provides a method for processing a service call of a middle platform, which is executed by a device, and the device includes a middle platform and a client; including the following steps:
步骤S41:客户端向中台发送第二类标识;Step S41: the client sends the second type of identification to the middle station;
在一个可选实施例中,第二类标识可以第三方应用标识。In an optional embodiment, the second type of identifier may be a third-party application identifier.
在另一个可选实施例中,第二类标识可以为SDK的标识。In another optional embodiment, the second type of identifier may be an SDK identifier.
步骤S42:中台分配第一类标识;Step S42: the middle station assigns the first type of identification;
在一个可选实施例中,中台为第二类标识分配第一类标识。In an optional embodiment, the middle station assigns the first-type identifier to the second-type identifier.
步骤S43:中台确定调用总台服务的服务调用方式;Step S43: the middle station determines the service invocation method for invoking the main station service;
在一个可选实施例中,中台确定目标用户群组调用中台服务的服务调用方式。In an optional embodiment, the middle platform determines the service invocation method for the target user group to call the middle platform service.
步骤S44:中台根据服务调用方式,确定调用中台服务是否涉及第二类标识;Step S44: The middle station determines whether calling the middle station service involves the second type of identification according to the service calling method;
在一个可选实施例中,中台根据服务调用方式,确定目标用户群组调用中台服务是否涉及第二类标识。In an optional embodiment, the middle platform determines whether the call of the middle platform service by the target user group involves the second type of identification according to the service calling method.
步骤S45:中台在确定中台服务调用涉及第二类标识的情况下,建立第一类标识和第二类别标识之前的映射信息;Step S45: In the case that the middle station determines that the service call of the middle station involves the second type of identification, the mapping information before the first type of identification and the second type of identification is established;
步骤S46:中台将映射信息发送给客户端;Step S46: the middle station sends the mapping information to the client;
步骤S47:客户端发送服务调用请求,其中,服务调用请求包含请求标识;Step S47: the client sends a service invocation request, wherein the service invocation request includes a request identifier;
步骤S48:中台若确定请求标识,确定是否响应服务调用请求;Step S48: If the middle station determines the request identifier, determine whether to respond to the service invocation request;
在一个可选实施例中,中台若确定请求标识是中台分配的第一类标识,确定响应服务调用请求。In an optional embodiment, if the middle station determines that the request identifier is a first-type identifier assigned by the middle station, it determines to respond to the service invocation request.
在另一个可选实施例中,中台若确定请求标识不是中台分配的第一类标识,且通过查询映射信息确定请求标识是否有与中台分配的第一类标识建立映射关系;在请求标识有与中台分配的第一类标识建立映射关系的情况下,确定响应服务调用请求。In another optional embodiment, if the middle station determines that the request identifier is not the first-type identifier assigned by the middle station, and determines whether the request identifier has a mapping relationship with the first-type identifier assigned by the middle station by querying the mapping information; If the identification has a mapping relationship with the first type of identification assigned by the middle station, it is determined to respond to the service call request.
步骤S49:发送服务调用响应,其中,服务调用响应包括第一类标识对应的中台服务。Step S49: Sending a service invocation response, wherein the service invocation response includes the middle platform service corresponding to the first type of identifier.
如此,在本公开实施例中,客户端可以第一类标识(将第三方应用的第三方应用标识或者第三方应用的APP中SDK的标识)发送给中台,以分配到中台下的第一类标识;从而可以基于第一类标识调度中台的中台服务,从而实现企业级别中台服务与第三方应用的自由融合等。In this way, in the embodiment of the present disclosure, the client can send the first type of identification (the third-party application identification of the third-party application or the identification of the SDK in the APP of the third-party application) to the middle platform, so as to be assigned to the first type of identification under the middle platform. One type of identification; thus, the middle platform services of the middle platform can be scheduled based on the first type of identification, so as to realize the free integration of enterprise level middle platform services and third-party applications.
并且,在本公开实施例中,可通过基于用户标识调用的服务调用方式,如基于第三应用标识对应的第一类标识或者基于第一类标识直接调用中台服务。或者,可通过基于SDK的服务调用方式,将中台的中台服务集成到SDK中,从而也可以调用中台的中台服务。Moreover, in the embodiment of the present disclosure, the service invocation method based on the user identification can be used, for example, based on the first type of identification corresponding to the third application identification or directly invoking the middle platform service based on the first type of identification. Alternatively, the middle platform services of the middle platform can be integrated into the SDK through the SDK-based service calling method, so that the middle platform services of the middle platform can also be called.
示例二Example two
如图11所示,本公开实施例提供一种通过APP的SDK集成中台服务的示意图。目标用户A(如外勤人员)与至少一个目标用户B(如内勤人员)进行即时通讯;可以通过目标用户A和/或目标用户B等手机中APP将即时通讯服务集成到APP中预定页入口;若手机检测到作用于该预定页入口的点击操作等,触发登录流程。手机检测到登录流程通过后,呈现即时通讯SDK开发聊天页面,并基于输入的SDK的标识确定出单聊或者群聊的会话。As shown in FIG. 11 , an embodiment of the present disclosure provides a schematic diagram of integrating a middle platform service through an SDK of an APP. The target user A (such as field staff) conducts instant messaging with at least one target user B (such as internal staff); the instant messaging service can be integrated into the APP through the APP in the mobile phone of target user A and/or target user B to enter the predetermined page; If the mobile phone detects a click operation on the entry of the predetermined page, etc., the login process is triggered. After the mobile phone detects that the login process has passed, it presents the instant messaging SDK development chat page, and determines the single chat or group chat session based on the input SDK identifier.
这里,“聊天”、“云文档”、及“应用”的工具栏可分别显示在即时通讯页面上。其中,“云文档”可快速生成分享链接;例如一键分享到群聊或者单聊的会话中。“应用”对应于企业自建应用;该企业自建应用可通过KCIM SDK提供的推送API,实现流程通讯到人的业务场景。Here, toolbars of "chat", "cloud document", and "application" may be displayed on the instant messaging page respectively. Among them, "cloud document" can quickly generate a sharing link; for example, one-click sharing to a group chat or a single chat session. "Application" corresponds to the self-built application of the enterprise; the self-built application of the enterprise can realize the business scenario of process communication to people through the push API provided by KCIM SDK.
如此,本公开实施例可实现通过APP集成中台的即时通讯服务、云文档服务及企业自建应用服务等的中台服务。In this way, the embodiments of the present disclosure can realize middle platform services such as instant messaging service, cloud document service, and self-built application service of the enterprise through APP integration.
示例三Example three
如图12和图13所示,本公开实施例提供一种通过网页集成中台服务的示意图。目标用户C的客户端有一个网页版的企业应用平台;在目标用户C的电脑预定网页的应用内部嵌入企业协作平台的即时通讯服务及企业自建应用等服务。例如,电脑检测到作用于预定网页上的点击从中,触发登录流程。电脑检测到登录流程通过后,可基于输入的第一类标识确定出即时通信的对话框;该即时通讯中对话框包括应用名称消息内容、人名消息内容以及群名消息内容等。若检测到作用于应用名称消息内容,可分别显示出应用名称及消息内容的栏目。As shown in FIG. 12 and FIG. 13 , an embodiment of the present disclosure provides a schematic diagram of integrating middle platform services through a webpage. The client of the target user C has a webpage version of the enterprise application platform; the instant messaging service of the enterprise collaboration platform and the self-built application of the enterprise are embedded in the application of the predetermined web page on the computer of the target user C. For example, a computer detects a click on a predetermined web page, triggering the login process. After the computer detects that the login process has passed, it can determine the instant messaging dialog box based on the input first-type identifier; the instant messaging dialog box includes the application name message content, person name message content, and group name message content. If it is detected that the application name is applied to the content of the message, the columns of the application name and the content of the message can be displayed respectively.
如此,在本公开实施例可以实现通过网页集成中台的即时通信服务及企业自建应用等的中台服务。并且,在终端中在不想安装新的APP的前提下,为了实现即时通讯等中台服务,可以通过在网页上的应用内部嵌入该些中台服务进行调用;如此可以通过网页直接嵌入中台服务的使用,从而还可以节省数据收发时间,提高调用效率等。In this way, in the embodiment of the present disclosure, the instant messaging service of the middle platform and the middle platform service such as the self-built application of the enterprise can be realized through the webpage integration. Moreover, on the premise that you do not want to install a new APP in the terminal, in order to realize instant messaging and other middle-end services, you can call these middle-end services by embedding them inside the application on the webpage; in this way, you can directly embed the middle-end services through the webpage It can also save data sending and receiving time, improve calling efficiency, etc.
需要说明的是,本领域内技术人员可以理解,本公开实施例提供的方法,可以被单独执行,也可以与本公开实施例中一些方法或相关技术中的一些方法一起被执行。It should be noted that those skilled in the art can understand that the methods provided in the embodiments of the present disclosure may be executed independently, or together with some methods in the embodiments of the present disclosure or some methods in related technologies.
如图14,本公开实施例提供一种调用中台服务的标识处理装置,包括:As shown in Figure 14, the embodiment of the present disclosure provides an identification processing device for invoking middle platform services, including:
分配模块51,用于分配第一类标识;An allocation module 51, configured to allocate the first type of identification;
确定模块52,用于确定目标用户群组调用中台服务的服务调用方式;Determining module 52, is used for determining the service invocation mode that the target user group invokes the middle platform service;
所述确定模块52,用于根据服务调用方式,确定所述目标用户群组调用所述中台服务是否涉及第二类标识;The determining module 52 is configured to determine whether the target user group calls the middle platform service involves a second type of identification according to the service calling method;
处理模块53,用于在确定所述中台服务调用涉及所述第二类标识的情况下,建立所述第一类标识和所述第二类标识之间的映射信息;A processing module 53, configured to establish mapping information between the first type of identifier and the second type of identifier when it is determined that the middle station service call involves the second type of identifier;
所述处理模块53,用于通过所述映射信息,以供所述目标用户群组调用所述中台服务。The processing module 53 is configured to use the mapping information for the target user group to call the middle station service.
这里,目标用户群组包括至少一个目标用户。Here, the target user group includes at least one target user.
这里,第二类标识不同于第一类标识。Here, the second type of identification is different from the first type of identification.
在一些实施例中,所述第二类标识包括:第三方应用标识;In some embodiments, the second type of identification includes: a third-party application identification;
所述确定模块52,用于在所述服务调用方式为基于用户标识调用情况下,确定所述目标用户群组是否使用所述第三方应用标识调用所述中台服务;所述映射信息,指示所述第一类标识和所述第三方应用标识之间的第一映射关系。The determining module 52 is configured to determine whether the target user group uses the third-party application identifier to invoke the middle platform service when the service invocation method is based on the user identifier; the mapping information indicates A first mapping relationship between the first type identifier and the third-party application identifier.
在一些实施例中,所述确定模块52,用于在所述服务调用方式为所述基于用户标识调用的情况下,根据标识应用需求信息,确定所述目标用户群组是否使用所述第三方应用标识调用所述中台服务;In some embodiments, the determining module 52 is configured to determine whether the target user group uses the third-party The application identification calls the middle platform service;
或者,所述确定模块52,用于在所述服务调用方式为所述基于用户标识调用的情况下,根据在分配所述第一类标识的过程中接收所述第三方应用标识情况,确定所述目标用户群组是否使用所述第三方应用标识调用所述中台服务。Alternatively, the determining module 52 is configured to determine the third-party application identifier received during the process of allocating the first type of identifier when the service invocation method is the invocation based on the user identifier. Whether the target user group uses the third-party application identifier to call the middle platform service.
在一些实施例中,所述确定模块52,用于在所述服务调用方式为所述基于用户标识调用、且所述标识应用需求信息指示使用所述第三方应用标识的情况下,确定目标用户群组使用所述第三方应用标识调用所述中台服务;In some embodiments, the determination module 52 is configured to determine the target user when the service invocation method is the user identification-based invocation and the identification application requirement information indicates the use of the third-party application identification The group uses the third-party application identifier to call the middle platform service;
或者,所述确定模块52,用于在所述服务调用方式为所述基于用户标识调用、且所述标识应用需求信息不指示使用所述第三方应用标识的情况下,确定目标用户群组不使用所述第三方应用标识调用中台服务。Alternatively, the determining module 52 is configured to determine that the target user group does not Use the third-party application identifier to call the middle platform service.
在一些实施例中,所述确定模块52,用于在所述服务调用方式为所述基于用户标识调用、且在分配所述第一类标识过程中接收到所述第三方应用标识的情况下,确定目标用户群组使用所述第三方应用标识调用所述中台服务;In some embodiments, the determining module 52 is configured to use the method of invoking the service based on the user identification and receiving the third-party application identification during the process of allocating the first type of identification , determining that the target user group uses the third-party application identifier to call the middle platform service;
或者,所述确定模块52,用于在所述服务调用方式为所述基于用户标识调用、且在分配所述第一类标识过程中未接收到所述第三方应用标识的情况下,确定目标用户群组不使用所述第三方应用标识调用中台服务。Alternatively, the determination module 52 is configured to determine the target when the service invocation method is the invocation based on the user identification and the third-party application identification is not received during the process of allocating the first type of identification. The user group does not use the third-party application identifier to call the middle platform service.
在一些实施例中,所述确定模块52,用于在所述服务调用方式为调用SDK的情况下,确定所述目标用户群组使用所述第二类标识信息调用所述中台服务,且所述第二类标识为所述SDK的标识;In some embodiments, the determining module 52 is configured to determine that the target user group uses the second type of identification information to call the middle platform service when the service calling method is calling an SDK, and The second type of identification is the identification of the SDK;
所述映射信息,指示所述SDK的标识和所述第一类标识之间的第二映射关系。The mapping information indicates a second mapping relationship between the SDK identifier and the first type identifier.
如图15所示,在一些实施例中,所述装置包括:第一发送模块54,用于向客户端发送给所述映射信息;其中,所述映射信息用于供所述客户端基于所述第一类标识调用所述中台服务,或者,所述映射信息用于供所述客户端基于所述第二类标识调用所述中台服务。As shown in FIG. 15, in some embodiments, the apparatus includes: a first sending module 54, configured to send the mapping information to the client; wherein the mapping information is used by the client based on the The first type of identifier calls the middle platform service, or the mapping information is used for the client to call the middle platform service based on the second type of identifier.
如图16所示,在一些实施例中,所述装置包括:第一接收模块55,用于接收服务调用请求;As shown in FIG. 16, in some embodiments, the device includes: a first receiving module 55, configured to receive a service invocation request;
所述处理模块53,用于在所述服务调用请求包含请求标识的情况下,根据所述请求标识确定是否响应所述服务调用请求。The processing module 53 is configured to determine whether to respond to the service invocation request according to the request identifier when the service invocation request includes a request identifier.
在一些实施例中,所述处理模块53,用于在所述请求标识是所述中台分配的所述第一类标识的情况下,确定响应所述服务调用请求;In some embodiments, the processing module 53 is configured to determine to respond to the service invocation request when the request identifier is the first type identifier assigned by the middle station;
或者,所述处理模块53,用于在所述请求标识不是所述中台分配的所述第一类标识的情况下,通过查询所述映射信息,确定所述请求标识是否与所述中台分配的第一类标识建立映射关系;在所述请求标识与所述中台分配的第一类标识建立映射关系的情况下,确定响应所述服务调用请求。Alternatively, the processing module 53 is configured to determine whether the request identifier is consistent with the middle station by querying the mapping information when the request identifier is not the first type identifier assigned by the middle station Establish a mapping relationship with the assigned first-type identifier; and determine to respond to the service invocation request when the mapping relationship is established between the request identifier and the first-type identifier assigned by the middle station.
在一些实施例中,第三方应用标识包括:第三方企业应用标识;所述第一类标识包括:企业应用标识;其中,所述映射信息指示所述第三方企业应用标识和所述企业应用标识之间的所述第一映射关系;In some embodiments, the third-party application identifier includes: a third-party enterprise application identifier; the first type of identifier includes: an enterprise application identifier; wherein, the mapping information indicates the third-party enterprise application identifier and the enterprise application identifier The first mapping relationship between;
或者,or,
所述第三方应用标识包括:第三方企业应用标识和第三方用户应用标识;所述第一类标识,包括:企业应用标识和用户应用标识;其中,所述映射信息指示所述第三方企业应用标识和所述企业应用标识的所述第一映射关系;且所述映射信息指示所述第三方用户应用标识和所述用户应用标识的所述第一映射关系。The third-party application identifier includes: a third-party enterprise application identifier and a third-party user application identifier; the first type of identifier includes: an enterprise application identifier and a user application identifier; wherein the mapping information indicates that the third-party enterprise application the first mapping relationship between an identifier and the enterprise application identifier; and the mapping information indicates the first mapping relationship between the third-party user application identifier and the user application identifier.
在一些实施例中,所述在所述请求标识是所述中台分配的所述第一类标识的情况下,包括以下至少之一:In some embodiments, when the request identifier is the first type identifier assigned by the middle station, it includes at least one of the following:
所述请求标识是所述企业应用标识;和/或,The request identifier is the enterprise application identifier; and/or,
所述请求标识是所述用户应用标识,且所述用户应用标识归属于所述企业应用标识。The request identifier is the user application identifier, and the user application identifier belongs to the enterprise application identifier.
如图17所示,本公开实施例提供一种调用中台服务的标识处理装置,包括:As shown in FIG. 17 , an embodiment of the present disclosure provides an identification processing device for invoking a middle platform service, including:
第二发送模块61,用于发送服务调用请求;其中,所述服务调用请求包括请求标识,且所述请求标识用于供中台确定是否响应所述服务调用请求;The second sending module 61 is configured to send a service call request; wherein, the service call request includes a request identifier, and the request identifier is used for the middle station to determine whether to respond to the service call request;
第二接收模块62,用于接收服务调用响应;其中,所述服务调用响应是所述中台响应所述服务调用请求返回的,且所述服务调用响应包括所述请求标识对应的所述中台服务。The second receiving module 62 is configured to receive a service call response; wherein, the service call response is returned by the middle station in response to the service call request, and the service call response includes the middle station corresponding to the request identifier desk service.
在一些实施例中,所述请求标识用于供所述中台确定是所述中台分配的所述第一类标识的情况下,确定响应所述服务调用请求;In some embodiments, the request identifier is used for determining to respond to the service invocation request when the middle station determines that it is the first type of identifier assigned by the middle station;
或者,所述请求标识用于供所述中台确定不是所述中台分配的所述第一类标识、且所述请求标识用于供所述中台确定是与所述中台分配的第一类标识建立映射关系的情况下,确定响应所述服务调用请求。Alternatively, the request identifier is used for the middle station to determine that it is not the first type of identifier assigned by the middle station, and the request identifier is used for the middle station to determine that it is the first type of identifier assigned by the middle station. In the case of establishing a mapping relationship with a class identifier, it is determined to respond to the service invocation request.
在一些实施例中,所述第二接收模块62,用于接收映射信息,其中,所述映射信息为所述中台建立的用于指示第一类标识和第二类标识之间的映射关系;所述第二类标识为目标群组调用所述中台服务涉及的标识;所述第一类标识是所述中台分配的;In some embodiments, the second receiving module 62 is configured to receive mapping information, wherein the mapping information is used to indicate the mapping relationship between the first type of identification and the second type of identification established by the middle station ; The second type of identification is the identification involved in calling the middle station service by the target group; the first type of identification is allocated by the middle station;
所述请求标识,包括:所述第一类标识。The request identifier includes: the first type identifier.
这里,所述第一类标识不同于所述第一类标识;所述目标用户群组包括至少一个目标用户;Here, the first type of identification is different from the first type of identification; the target user group includes at least one target user;
在一些实施例中,所述第二发送模块61,用于向所述中台发送所述第二类标识;其中,所述第二类标识包括:第三方应用标识或者SDK的标识。In some embodiments, the second sending module 61 is configured to send the second type of identifier to the middle station; wherein, the second type of identifier includes: a third-party application identifier or an SDK identifier.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
本公开的实施例还提供了一种设备,其特征在于,包括:An embodiment of the present disclosure also provides a device, characterized in that it includes:
处理器;processor;
用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;
其中,所述处理器被配置为:用于运行所述可执行指令时,实现本公开任意实施例所述的调用中台服务的标识处理。Wherein, the processor is configured to: when executing the executable instruction, realize the identification process of invoking the middle platform service described in any embodiment of the present disclosure.
所述设备可以是但不限于是:终端和/或中台。The device may be, but not limited to: a terminal and/or a middle station.
所述存储器可包括各种类型的存储介质,该存储介质为非临时性计算机存储介质,在通信设备掉电之后能够继续记忆存储其上的信息。The memory may include various types of storage media, which are non-transitory computer storage media, and can continue to memorize and store information thereon after the communication device is powered off.
所述处理器可以通过总线等与存储器连接,用于读取存储器上存储的可执行程序,例如,实现如图1、图4、图6、图7、图9至图11所示的方法的至少其中之一。The processor can be connected to the memory through a bus, etc., and is used to read the executable program stored on the memory, for example, to realize the method shown in Fig. 1, Fig. 4, Fig. 6, Fig. 7, Fig. 9 to Fig. 11 at least one of them.
本公开的实施例还提供了一种计算机可读存储介质,所述可读存储介质存储有可执行程序,其中,所述可执行程序被处理器执行时实现本公开任意实施例所述的调用中台服务的标识处理。例如,实现如图1、图4、图6、图7、图9至图11所示的方法的至少其中之一。Embodiments of the present disclosure also provide a computer-readable storage medium, where an executable program is stored in the readable storage medium, wherein when the executable program is executed by a processor, the call described in any embodiment of the present disclosure is implemented. Identification processing of middle-end services. For example, implement at least one of the methods shown in FIG. 1 , FIG. 4 , FIG. 6 , FIG. 7 , and FIG. 9 to FIG. 11 .
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
如图18所示,是根据一示例性实施例示出的一种中台70的结构。例如,中台70可以被提供为一网络侧设备。参照图18,中台70包括处理组件71,其进一步包括一个或多个处理器,以及由存储器72所代表的存储器资源,用于存储可由处理组件71的执行的指令,例如应用程序。存储器72中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件71被配置为执行指令,以执行上述方法前述应用在所述基站的任意方法。As shown in FIG. 18 , it shows a structure of a
中台70还可以包括一个电源组件73被配置为执行中台70的电源管理,一个有线或无线网络接口74被配置为将中台70连接到网络,和一个输入输出(I/O)接口75。中台70可以操作基于存储在存储器72的操作系统,例如Windows Server TM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。The
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Other embodiments of the invention will be readily 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 modification, use or adaptation of the present invention, these modifications, uses or adaptations follow the general principles of the present invention and include common knowledge or conventional technical means in the technical field not disclosed in this disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。It should be understood that the present invention is not limited to the precise constructions which have been described above and shown in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
Claims (17)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211001006.1A CN115633082B (en) | 2022-08-19 | 2022-08-19 | Identification processing method, device, equipment and storage medium for calling middle service |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211001006.1A CN115633082B (en) | 2022-08-19 | 2022-08-19 | Identification processing method, device, equipment and storage medium for calling middle service |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN115633082A true CN115633082A (en) | 2023-01-20 |
| CN115633082B CN115633082B (en) | 2025-02-18 |
Family
ID=84903517
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211001006.1A Active CN115633082B (en) | 2022-08-19 | 2022-08-19 | Identification processing method, device, equipment and storage medium for calling middle service |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115633082B (en) |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102739708A (en) * | 2011-04-07 | 2012-10-17 | 腾讯科技(深圳)有限公司 | System and method for accessing third party application based on cloud platform |
| US20140040502A1 (en) * | 2011-02-24 | 2014-02-06 | Adobe Systems Incorporated | Scaling of stateful enterprise services |
| CN104283841A (en) * | 2013-07-02 | 2015-01-14 | 阿里巴巴集团控股有限公司 | Method, device and system for carrying out service access control on third-party application |
| US20170250853A1 (en) * | 2016-02-25 | 2017-08-31 | Open Text Sa Ulc | Systems and methods for providing managed services |
| CN107196917A (en) * | 2017-04-27 | 2017-09-22 | 深圳市威富通科技有限公司 | A kind of service response method and its middleware |
| CN107770269A (en) * | 2017-10-20 | 2018-03-06 | 平安科技(深圳)有限公司 | A kind of service response method and its terminal |
| CN108874496A (en) * | 2018-06-28 | 2018-11-23 | 腾讯科技(深圳)有限公司 | Application management method, device, terminal, server and storage medium |
| US20200106763A1 (en) * | 2018-10-02 | 2020-04-02 | Bank Of America Corporation | Gateway Device for Authentication and Authorization of Applications and/or Servers for Data Transfer Between Applications and/or Servers |
-
2022
- 2022-08-19 CN CN202211001006.1A patent/CN115633082B/en active Active
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140040502A1 (en) * | 2011-02-24 | 2014-02-06 | Adobe Systems Incorporated | Scaling of stateful enterprise services |
| CN102739708A (en) * | 2011-04-07 | 2012-10-17 | 腾讯科技(深圳)有限公司 | System and method for accessing third party application based on cloud platform |
| CN104283841A (en) * | 2013-07-02 | 2015-01-14 | 阿里巴巴集团控股有限公司 | Method, device and system for carrying out service access control on third-party application |
| US20170250853A1 (en) * | 2016-02-25 | 2017-08-31 | Open Text Sa Ulc | Systems and methods for providing managed services |
| CN107196917A (en) * | 2017-04-27 | 2017-09-22 | 深圳市威富通科技有限公司 | A kind of service response method and its middleware |
| CN107770269A (en) * | 2017-10-20 | 2018-03-06 | 平安科技(深圳)有限公司 | A kind of service response method and its terminal |
| CN108874496A (en) * | 2018-06-28 | 2018-11-23 | 腾讯科技(深圳)有限公司 | Application management method, device, terminal, server and storage medium |
| US20200106763A1 (en) * | 2018-10-02 | 2020-04-02 | Bank Of America Corporation | Gateway Device for Authentication and Authorization of Applications and/or Servers for Data Transfer Between Applications and/or Servers |
Non-Patent Citations (1)
| Title |
|---|
| 路晔绵;李轶夫;应凌云;谷雅聪;苏璞睿;冯登国;: "Android应用第三方推送服务安全分析与安全增强", 计算机研究与发展, no. 11, 15 November 2016 (2016-11-15) * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115633082B (en) | 2025-02-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111447185B (en) | Push information processing method and related equipment | |
| CN107979520B (en) | Message processing method and message processing device | |
| CN110750780B (en) | User role permission fusion method, device and equipment based on multi-service system | |
| CN112104679B (en) | Method, apparatus, device and medium for processing hypertext transfer protocol request | |
| CN112532683A (en) | Edge calculation method and device based on micro-service architecture | |
| CN112202744A (en) | Multi-system data communication method and device | |
| CN105681463A (en) | Distributed service framework and distributed service calling system | |
| CN102045274B (en) | Method and communication system for realizing information interaction based on instant messaging | |
| CN115632815A (en) | Data updating method and device, electronic equipment and storage medium | |
| CN115412555A (en) | Cloud side communication method, device, equipment and computer readable storage medium | |
| CN115086425B (en) | Message transmission method, device, program product, medium and electronic equipment | |
| WO2014056387A1 (en) | Method, system and device for transferring text chat session, and agent client | |
| CN115633082A (en) | Identification processing method, device, equipment and storage medium for calling middlebox service | |
| CN117435608A (en) | Multi-cluster data query methods, devices, equipment and storage media | |
| CN116405567A (en) | User resource management method, system, equipment and storage medium | |
| CN105354891A (en) | Attendance checking management method and system | |
| US20140047014A1 (en) | Network access system | |
| CN116351070A (en) | Data processing method, device, computer equipment and readable storage medium | |
| CN118734282A (en) | Data processing method, device, equipment and computer readable storage medium | |
| CN115633078A (en) | Control method of cloud mobile phone and related equipment | |
| CN114885024A (en) | Routing method, device, equipment and medium of application example | |
| CN115396430A (en) | Cloud mobile phone management method and system | |
| US20230018479A1 (en) | Method, system, medium, and server for operation management of electronic devices | |
| CN107404504A (en) | Communication means, apparatus and system | |
| CN118803326B (en) | A cloud multi-screen display method and related device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |