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 StringWeChat access token for API authentication Valid for 2 hours, requires periodic refreshprivate ZonedDateTimeExpiration timestamp for the access tokenprivate StringWeChat application ID (app_id)private StringWeChat application secret keyprivate StringData format for WeChat API communication (XML, JSON)private Booleanprivate StringDescription of the WeChat applicationprivate BooleanWhether the WeChat application is enabledprivate StringWeChat application encoding AES key for message encryptionprivate StringMessage encryption mode (PLAINTEXT, COMPATIBLE, SAFE)private StringWelcome message sent to users when they follow the official accountprivate StringName of the WeChat applicationprivate StringWeChat application token for webhook verificationprivate StringType of WeChat application (MP, MINI, WORK)private StringWeChat 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 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)
-