43 lines
1.8 KiB
Go
43 lines
1.8 KiB
Go
package request
|
|
|
|
// SaveMpConfigRequest 保存微信配置请求
|
|
type SaveMpConfigRequest struct {
|
|
ConfigType string `json:"configType" binding:"required" example:"mp"`
|
|
AppID string `json:"appId" binding:"required" example:"wx1234567890"`
|
|
AppSecret string `json:"appSecret" binding:"required" example:"your_app_secret"`
|
|
Token *string `json:"token" example:"your_token"`
|
|
EncodingAESKey *string `json:"encodingAESKey" example:"your_encoding_aes_key"`
|
|
|
|
// 公众号特有配置
|
|
ServerURL *string `json:"serverUrl" example:"https://your-server.com"`
|
|
WebhookURL *string `json:"webhookUrl" example:"https://your-server.com/webhook"`
|
|
|
|
// 小程序特有配置
|
|
MiniAppName *string `json:"miniAppName" example:"我的小程序"`
|
|
MiniAppDesc *string `json:"miniAppDesc" example:"小程序描述"`
|
|
|
|
// 状态信息
|
|
Status string `json:"status" example:"active"`
|
|
|
|
// 扩展配置
|
|
ExtraConfig *string `json:"extraConfig" example:"{}"`
|
|
Remark *string `json:"remark" example:"配置备注"`
|
|
}
|
|
|
|
// TestMpConfigRequest 测试微信配置请求
|
|
type TestMpConfigRequest struct {
|
|
ConfigType string `json:"configType" binding:"required" example:"mp"`
|
|
AppID string `json:"appId" binding:"required" example:"wx1234567890"`
|
|
AppSecret string `json:"appSecret" binding:"required" example:"your_app_secret"`
|
|
Token *string `json:"token" example:"your_token"`
|
|
EncodingAESKey *string `json:"encodingAESKey" example:"your_encoding_aes_key"`
|
|
|
|
// 公众号特有配置
|
|
ServerURL *string `json:"serverUrl" example:"https://your-server.com"`
|
|
WebhookURL *string `json:"webhookUrl" example:"https://your-server.com/webhook"`
|
|
|
|
// 小程序特有配置
|
|
MiniAppName *string `json:"miniAppName" example:"我的小程序"`
|
|
MiniAppDesc *string `json:"miniAppDesc" example:"小程序描述"`
|
|
}
|