package validate_service

type LiveInfo struct {
	Title      string  `json:"title" validate:"required"`
	Cover      string  `json:"cover" validate:"required"`
	CategoryId uint8   `json:"category_id" validate:"required"`
	Duration   uint32  `json:"duration" validate:"required"`
	ApplyId    uint32  `json:"apply_id" validate:"required"`
	ApplyName  string  `json:"apply_name" validate:"required"`
	PlatformId int64   `json:"platform_id" validate:"required"`
	Price      float64 `json:"price" validate:"required"`
}

type EditLiveInfo struct {
	LiveInfo
	Id int `json:"id" validate:"required"`
}

type VerifyLiveInfo struct {
	Id     int   `json:"id" validate:"required"`
	Status uint8 `json:"status" validate:"min=1,max=2"`
}

type ModifyLiveTitle struct {
	Id      int    `json:"id" validate:"required"`
	ApplyId uint32 `json:"apply_id" validate:"required"`
	Title   string `json:"title" validate:"required"`
}

type NotifyUrl struct {
	Price      float64 `json:"price"  validate:"required"`
	OrderSn    int64   `json:"order_sn"  validate:"required"`
	LiveStatus uint8   `json:"live_status"  validate:"required"`
}

type VerifyStatus struct {
	OrderSn    int64 `json:"order_sn"  validate:"required"`
	LiveStatus uint8 `json:"live_status"  validate:"required"`
}
