You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
979 B

package v1
import "github.com/gogf/gf/v2/frame/g"
type AddSubscriptionReq struct {
g.Meta `path:"/subscription" method:"post" tags:"Subscription" summary:"添加订阅信息"`
Id int `v:"required|min:1#频道ID不能为空|频道ID不能小于1" dc:"频道ID"`
UserId int `v:"required|min:90000000|max:99999999#用户ID不能为空|用户ID不能小于90000000|用户ID不能大于99999999" dc:"用户ID"`
}
type AddSubscriptionRes struct {
Success bool `json:"success" dc:"订阅是否成功"`
}
type DeleteSubscriptionReq struct {
g.Meta `path:"/subscription" method:"delete" tags:"Subscription" summary:"删除订阅信息"`
Id int `v:"required|min:1#频道ID不能为空|频道ID不能小于1" dc:"频道ID"`
UserId int `v:"required|min:90000000|max:99999999#用户ID不能为空|用户ID不能小于90000000|用户ID不能大于99999999" dc:"用户ID"`
}
type DeleteSubscriptionRes struct {
Success bool `json:"success" dc:"取消订阅是否成功"`
}