mirror of https://gitee.com/answerdev/answer.git
Merge branch 'ai_0.3_dashboard' into 'test'
feat: add timezone validation See merge request opensource/answer!197
This commit is contained in:
commit
55d9c1265e
|
@ -14,7 +14,7 @@ type SiteInterfaceReq struct {
|
||||||
Logo string `validate:"omitempty,gt=0,lte=256" form:"logo" json:"logo"`
|
Logo string `validate:"omitempty,gt=0,lte=256" form:"logo" json:"logo"`
|
||||||
Theme string `validate:"required,gt=1,lte=128" form:"theme" json:"theme"`
|
Theme string `validate:"required,gt=1,lte=128" form:"theme" json:"theme"`
|
||||||
Language string `validate:"required,gt=1,lte=128" form:"language" json:"language"`
|
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"`
|
TimeZone string `validate:"required,gt=1,lte=128,timezone" form:"time_zone" json:"time_zone"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// SiteGeneralResp site general response
|
// SiteGeneralResp site general response
|
||||||
|
|
Loading…
Reference in New Issue