fix: remove site write tag val

This commit is contained in:
LinkinStar 2022-11-16 14:39:58 +08:00
parent 5e26663906
commit 59daaa5c5d
1 changed files with 2 additions and 2 deletions

View File

@ -40,8 +40,8 @@ type SiteBrandingReq struct {
// SiteWriteReq site write request
type SiteWriteReq struct {
RequiredTag bool `validate:"required" form:"required_tag" json:"required_tag"`
RecommendTags []string `validate:"omitempty,dive,gt=0,lte=65536" form:"recommend_tags" json:"recommend_tags"`
ReservedTags []string `validate:"omitempty,dive,gt=0,lte=65536" form:"reserved_tags" json:"reserved_tags"`
RecommendTags []string `validate:"omitempty" form:"recommend_tags" json:"recommend_tags"`
ReservedTags []string `validate:"omitempty" form:"reserved_tags" json:"reserved_tags"`
UserID string `json:"-"`
}