fix: remove site write required tag val

This commit is contained in:
LinkinStar 2022-11-16 15:02:11 +08:00
parent 59daaa5c5d
commit 5dd8fa4e7f
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ type SiteBrandingReq struct {
// SiteWriteReq site write request // SiteWriteReq site write request
type SiteWriteReq struct { type SiteWriteReq struct {
RequiredTag bool `validate:"required" form:"required_tag" json:"required_tag"` RequiredTag bool `validate:"omitempty" form:"required_tag" json:"required_tag"`
RecommendTags []string `validate:"omitempty" form:"recommend_tags" json:"recommend_tags"` RecommendTags []string `validate:"omitempty" form:"recommend_tags" json:"recommend_tags"`
ReservedTags []string `validate:"omitempty" form:"reserved_tags" json:"reserved_tags"` ReservedTags []string `validate:"omitempty" form:"reserved_tags" json:"reserved_tags"`
UserID string `json:"-"` UserID string `json:"-"`