This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package request
|
||||
|
||||
// CreateTagRequest 创建标签请求
|
||||
type CreateTagRequest struct {
|
||||
Name string `json:"name" binding:"required" example:"VIP用户"` // 标签名称
|
||||
}
|
||||
|
||||
// UpdateTagRequest 更新标签请求
|
||||
type UpdateTagRequest struct {
|
||||
ID int `json:"id" binding:"required" example:"1"` // 标签ID
|
||||
Name string `json:"name" binding:"required" example:"VIP用户"` // 标签名称
|
||||
}
|
||||
|
||||
// BatchTagUsersRequest 批量为用户打标签请求
|
||||
type BatchTagUsersRequest struct {
|
||||
TagID int `json:"tagId" binding:"required" example:"1"` // 标签ID
|
||||
OpenIDs []string `json:"openIds" binding:"required" example:"[\"openid1\",\"openid2\"]"` // 用户OpenID列表
|
||||
}
|
||||
|
||||
// BatchUntagUsersRequest 批量为用户取消标签请求
|
||||
type BatchUntagUsersRequest struct {
|
||||
TagID int `json:"tagId" binding:"required" example:"1"` // 标签ID
|
||||
OpenIDs []string `json:"openIds" binding:"required" example:"[\"openid1\",\"openid2\"]"` // 用户OpenID列表
|
||||
}
|
||||
|
||||
// GetTagUsersRequest 获取标签用户列表请求
|
||||
type GetTagUsersRequest struct {
|
||||
TagID int `form:"tagId" binding:"required" example:"1"` // 标签ID
|
||||
NextOpenID string `form:"nextOpenId" example:""` // 拉取列表的第一个用户的OPENID,不填默认从头开始拉取
|
||||
}
|
||||
Reference in New Issue
Block a user