Class WeChatAppEntity

java.lang.Object
com.bytedesk.core.base.BaseEntity
com.bytedesk.wechat.app.WeChatAppEntity
All Implemented Interfaces:
Serializable

@Entity public class WeChatAppEntity extends BaseEntity
WeChat application entity for managing WeChat integration Handles WeChat Official Account, Mini Program, and Work application configurations Database Table: bytedesk_channel_wechat_app Purpose: Stores WeChat app credentials, access tokens, and integration settings
See Also:
  • Field Details

    • name

      private String name
      Name of the WeChat application
    • description

      private String description
      Description of the WeChat application
    • type

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

      private String appId
      WeChat application ID (app_id)
    • appSecret

      private String appSecret
      WeChat application secret key
    • url

      private String url
      WeChat application URL for webhook configuration
    • token

      private String token
      WeChat application token for webhook verification
    • encodingAesKey

      private String encodingAesKey
      WeChat application encoding AES key for message encryption
    • encryptMode

      private String encryptMode
      Message encryption mode (PLAINTEXT, COMPATIBLE, SAFE)
    • dataType

      private String dataType
      Data format for WeChat API communication (XML, JSON)
    • flowTip

      private String flowTip
      Welcome message sent to users when they follow the official account
    • accessToken

      private String accessToken
      WeChat 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 WeChat application is enabled
    • debug

      private Boolean debug
    • workgroupUid

      private String workgroupUid
      Associated workgroup UID for customer service routing
  • Constructor Details

    • WeChatAppEntity

      public WeChatAppEntity()
  • Method Details

    • setAccessTokenExpiresAt

      public void setAccessTokenExpiresAt()
      Set access token expiration time According to WeChat API, access_token is valid for 7200 seconds (2 hours)