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.

21 lines
518 B

7 months ago
7 months ago
  1. package v1
  2. import (
  3. "practice_Go/internal/model/entity"
  4. "github.com/gogf/gf/v2/frame/g"
  5. )
  6. type Live struct {
  7. entity.GoLives
  8. Reservation int `json:"reservation" dc:"预约状态"`
  9. }
  10. type GetLiveReq struct {
  11. g.Meta `path:"/live" method:"post" tags:"Live" summary:"获取直播列表"`
  12. UserId int `v:"required|min:90000000|max:99999999#用户ID不能为空|用户ID不能小于90000000|用户ID不能大于99999999" dc:"用户ID"`
  13. }
  14. type GetLiveRes struct {
  15. List []*Live `json:"liveList" dc:"直播列表"`
  16. }