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
971 B

7 months ago
7 months ago
7 months ago
  1. package v1
  2. import "github.com/gogf/gf/v2/frame/g"
  3. type AddReservationReq struct {
  4. g.Meta `path:"/reservation" method:"post" tags:"Reservation" 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 AddReservationRes struct {
  9. Success bool `json:"success" dc:"预约是否成功"`
  10. }
  11. type DeleteReservationReq struct {
  12. g.Meta `path:"/reservation" method:"delete" tags:"Reservation" 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 DeleteReservationRes struct {
  17. Success bool `json:"success" dc:"取消预约是否成功"`
  18. }