A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
feat: move logo field to site info
LinkinStar74ba5620bbd9
diff --git a/internal/schema/siteinfo_schema.go b/internal/schema/siteinfo_schema.goindex 1ea01fd6..1c9a3aaf 100644--- a/internal/schema/siteinfo_schema.go+++ b/internal/schema/siteinfo_schema.go@@ -24,7 +24,6 @@ func (r *SiteGeneralReq) FormatSiteUrl() {// SiteInterfaceReq site interface requesttype SiteInterfaceReq struct {- Logo string `validate:"omitempty,gt=0,lte=256" form:"logo" json:"logo"`Theme string `validate:"required,gt=1,lte=128" form:"theme" json:"theme"`Language string `validate:"required,gt=1,lte=128" form:"language" json:"language"`TimeZone string `validate:"required,gt=1,lte=128" form:"time_zone" json:"time_zone"`@@ -32,6 +31,7 @@ type SiteInterfaceReq struct {// SiteBrandingReq site branding requesttype SiteBrandingReq struct {+ Logo string `validate:"required,gt=0,lte=512" form:"logo" json:"logo"`MobileLogo string `validate:"omitempty,gt=0,lte=512" form:"mobile_logo" json:"mobile_logo"`SquareIcon string `validate:"required,gt=0,lte=512" form:"square_icon" json:"square_icon"`Favicon string `validate:"omitempty,gt=0,lte=512" form:"favicon" json:"favicon"`