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"`
}
