Package com.bytedesk.wechat.app
Class WeChatAppEntity
java.lang.Object
com.bytedesk.core.base.BaseEntity
com.bytedesk.wechat.app.WeChatAppEntity
- All Implemented Interfaces:
Serializable
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 Summary
FieldsModifier and TypeFieldDescriptionprivate String
WeChat access token for API authentication Valid for 2 hours, requires periodic refreshprivate ZonedDateTime
Expiration timestamp for the access tokenprivate String
WeChat application ID (app_id)private String
WeChat application secret keyprivate String
Data format for WeChat API communication (XML, JSON)private Boolean
private String
Description of the WeChat applicationprivate Boolean
Whether the WeChat application is enabledprivate String
WeChat application encoding AES key for message encryptionprivate String
Message encryption mode (PLAINTEXT, COMPATIBLE, SAFE)private String
Welcome message sent to users when they follow the official accountprivate String
Name of the WeChat applicationprivate String
WeChat application token for webhook verificationprivate String
Type of WeChat application (MP, MINI, WORK)private String
WeChat 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 WeChat 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 WeChat application -
description
Description of the WeChat application -
type
Type of WeChat application (MP, MINI, WORK) -
appId
WeChat application ID (app_id) -
appSecret
WeChat application secret key -
url
WeChat application URL for webhook configuration -
token
WeChat application token for webhook verification -
encodingAesKey
WeChat application encoding AES key for message encryption -
encryptMode
Message encryption mode (PLAINTEXT, COMPATIBLE, SAFE) -
dataType
Data format for WeChat API communication (XML, JSON) -
flowTip
Welcome message sent to users when they follow the official account -
accessToken
WeChat access token for API authentication Valid for 2 hours, requires periodic refresh -
accessTokenExpiresAt
Expiration timestamp for the access token -
enabled
Whether the WeChat application is enabled -
debug
-
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)
-