70 lines
3.1 KiB
Go
70 lines
3.1 KiB
Go
package request
|
|
|
|
// CreateAutoReplyRequest 创建自动回复请求
|
|
type CreateAutoReplyRequest struct {
|
|
Type int `json:"type" binding:"required" example:"1"`
|
|
RequestKeyword string `json:"requestKeyword" example:"你好"`
|
|
RequestMatch int `json:"requestMatch" example:"1"`
|
|
RequestMessageType string `json:"requestMessageType" example:"text"`
|
|
ResponseMessageType string `json:"responseMessageType" binding:"required" example:"text"`
|
|
ResponseContent string `json:"responseContent" example:"欢迎关注我们的公众号"`
|
|
ResponseMediaID string `json:"responseMediaId" example:""`
|
|
ResponseMediaURL string `json:"responseMediaUrl" example:""`
|
|
ResponseTitle string `json:"responseTitle" example:""`
|
|
ResponseDescription string `json:"responseDescription" example:""`
|
|
ResponseThumbMediaID string `json:"responseThumbMediaId" example:""`
|
|
ResponseThumbMediaURL string `json:"responseThumbMediaUrl" example:""`
|
|
ResponseArticles string `json:"responseArticles" example:""`
|
|
ResponseMusicURL string `json:"responseMusicUrl" example:""`
|
|
ResponseHqMusicURL string `json:"responseHqMusicUrl" example:""`
|
|
}
|
|
|
|
// UpdateAutoReplyRequest 更新自动回复请求
|
|
type UpdateAutoReplyRequest struct {
|
|
ID uint `json:"id" binding:"required"`
|
|
Type int `json:"type"`
|
|
RequestKeyword string `json:"requestKeyword"`
|
|
RequestMatch int `json:"requestMatch"`
|
|
RequestMessageType string `json:"requestMessageType"`
|
|
ResponseMessageType string `json:"responseMessageType"`
|
|
ResponseContent string `json:"responseContent"`
|
|
ResponseMediaID string `json:"responseMediaId"`
|
|
ResponseMediaURL string `json:"responseMediaUrl"`
|
|
ResponseTitle string `json:"responseTitle"`
|
|
ResponseDescription string `json:"responseDescription"`
|
|
ResponseThumbMediaID string `json:"responseThumbMediaId"`
|
|
ResponseThumbMediaURL string `json:"responseThumbMediaUrl"`
|
|
ResponseArticles string `json:"responseArticles"`
|
|
ResponseMusicURL string `json:"responseMusicUrl"`
|
|
ResponseHqMusicURL string `json:"responseHqMusicUrl"`
|
|
}
|
|
|
|
// TestAutoReplyRequest 测试自动回复请求
|
|
type TestAutoReplyRequest struct {
|
|
Keyword string `json:"keyword" binding:"required" example:"你好"`
|
|
}
|
|
|
|
// PageInfo 分页信息
|
|
type PageInfo struct {
|
|
Page int `json:"page" form:"page"` // 页码
|
|
PageSize int `json:"pageSize" form:"pageSize"` // 每页数量
|
|
}
|
|
|
|
// AutoReplyPageRequest 自动回复分页请求
|
|
type AutoReplyPageRequest struct {
|
|
PageInfo
|
|
Type *int `json:"type" form:"type"`
|
|
}
|
|
|
|
// SetSubscribeReplyRequest 设置关注回复请求
|
|
type SetSubscribeReplyRequest struct {
|
|
Content string `json:"content" binding:"required" example:"感谢您的关注!"`
|
|
}
|
|
|
|
// SetKeywordReplyRequest 设置关键字回复请求
|
|
type SetKeywordReplyRequest struct {
|
|
Keyword string `json:"keyword" binding:"required" example:"你好"`
|
|
Content string `json:"content" binding:"required" example:"您好,欢迎咨询!"`
|
|
MatchType int `json:"matchType" binding:"required" example:"1"`
|
|
}
|