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

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