Class DouyinAppEntity

java.lang.Object
com.bytedesk.core.base.BaseEntity
com.bytedesk.douyin.app.DouyinAppEntity
All Implemented Interfaces:
Serializable

@Entity public class DouyinAppEntity extends BaseEntity
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 Details

    • name

      private String name
      Name of the Douyin application
    • description

      private String description
      Description of the Douyin application
    • type

      private String type
      Type of Douyin application (MP, MINI, WORK)
    • appId

      private String appId
      Douyin application ID (app_id)
    • appSecret

      private String appSecret
      Douyin application secret key
    • url

      private String url
      Douyin application URL for webhook configuration
    • token

      private String token
      Douyin application token for webhook verification
    • encodingAesKey

      private String encodingAesKey
      Douyin application encoding AES key for message encryption
    • accessToken

      private String accessToken
      Douyin access token for API authentication Valid for 2 hours, requires periodic refresh
    • accessTokenExpiresAt

      private ZonedDateTime accessTokenExpiresAt
      Expiration timestamp for the access token
    • enabled

      private Boolean enabled
      Whether the Douyin application is enabled
    • debug

      private Boolean debug
    • workgroupUid

      private String 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)