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

7 months ago
7 months ago
7 months ago
7 months ago
  1. package v1
  2. import "github.com/gogf/gf/v2/frame/g"
  3. type AddSubscriptionReq struct {
  4. g.Meta `path:"/subscription" method:"post" tags:"Subscription" summary:"添加订阅信息"`
  5. Id int `v:"required|min:1#频道ID不能为空|频道ID不能小于1" dc:"频道ID"`
  6. UserId int `v:"required|min:90000000|max:99999999#用户ID不能为空|用户ID不能小于90000000|用户ID不能大于99999999" dc:"用户ID"`
  7. }
  8. type AddSubscriptionRes struct {
  9. Success bool `json:"success" dc:"订阅是否成功"`
  10. }
  11. type DeleteSubscriptionReq struct {
  12. g.Meta `path:"/subscription" method:"delete" tags:"Subscription" summary:"删除订阅信息"`
  13. Id int `v:"required|min:1#频道ID不能为空|频道ID不能小于1" dc:"频道ID"`
  14. UserId int `v:"required|min:90000000|max:99999999#用户ID不能为空|用户ID不能小于90000000|用户ID不能大于99999999" dc:"用户ID"`
  15. }
  16. type DeleteSubscriptionRes struct {
  17. Success bool `json:"success" dc:"取消订阅是否成功"`
  18. }