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 StringDouyin access token for API authentication Valid for 2 hours, requires periodic refreshprivate ZonedDateTimeExpiration timestamp for the access tokenprivate StringDouyin application ID (app_id)private StringDouyin application secret keyprivate Booleanprivate StringDescription of the Douyin applicationprivate BooleanWhether the Douyin application is enabledprivate StringDouyin application encoding AES key for message encryptionprivate StringName of the Douyin applicationprivate StringDouyin application token for webhook verificationprivate StringType of Douyin application (MP, MINI, WORK)private StringDouyin application URL for webhook configurationprivate StringAssociated workgroup UID for customer service routing -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSet 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)
-