Package com.bytedesk.douyin.app
Class DouyinAppEntity
java.lang.Object
com.bytedesk.core.base.BaseEntity
com.bytedesk.douyin.app.DouyinAppEntity
- All Implemented Interfaces:
Serializable
Douyin application entity for managing Douyin integration
Handles Douyin Official Account, Mini Program, and Work application configurations
Database Table: bytedesk_channel_douyin_app
Purpose: Stores Douyin app credentials, access tokens, and integration settings
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
Douyin access token for API authentication Valid for 2 hours, requires periodic refreshprivate ZonedDateTime
Expiration timestamp for the access tokenprivate String
Douyin application ID (app_id)private String
Douyin application secret keyprivate Boolean
private String
Description of the Douyin applicationprivate Boolean
Whether the Douyin application is enabledprivate String
Douyin application encoding AES key for message encryptionprivate String
Name of the Douyin applicationprivate String
Douyin application token for webhook verificationprivate String
Type of Douyin application (MP, MINI, WORK)private String
Douyin application URL for webhook configurationprivate String
Associated workgroup UID for customer service routing -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Set access token expiration time According to Douyin API, access_token is valid for 7200 seconds (2 hours)Methods inherited from class com.bytedesk.core.base.BaseEntity
getCreatedAtString, getUpdatedAtString
-
Field Details
-
name
Name of the Douyin application -
description
Description of the Douyin application -
type
Type of Douyin application (MP, MINI, WORK) -
appId
Douyin application ID (app_id) -
appSecret
Douyin application secret key -
url
Douyin application URL for webhook configuration -
token
Douyin application token for webhook verification -
encodingAesKey
Douyin application encoding AES key for message encryption -
accessToken
Douyin access token for API authentication Valid for 2 hours, requires periodic refresh -
accessTokenExpiresAt
Expiration timestamp for the access token -
enabled
Whether the Douyin application is enabled -
debug
-
workgroupUid
Associated workgroup UID for customer service routing
-
-
Constructor Details
-
DouyinAppEntity
public DouyinAppEntity()
-
-
Method Details
-
setAccessTokenExpiresAt
public void setAccessTokenExpiresAt()Set access token expiration time According to Douyin API, access_token is valid for 7200 seconds (2 hours)
-