Merge branch 'ai_0.3_install_api' into 'test'

add siteinfo

See merge request opensource/answer!179
This commit is contained in:
linkinstar 2022-11-03 08:47:02 +00:00
commit b380a333c5
1 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,8 @@ type SiteGeneralReq struct {
Name string `validate:"required,gt=1,lte=128" form:"name" json:"name"` Name string `validate:"required,gt=1,lte=128" form:"name" json:"name"`
ShortDescription string `validate:"required,gt=3,lte=255" form:"short_description" json:"short_description"` ShortDescription string `validate:"required,gt=3,lte=255" form:"short_description" json:"short_description"`
Description string `validate:"required,gt=3,lte=2000" form:"description" json:"description"` Description string `validate:"required,gt=3,lte=2000" form:"description" json:"description"`
SiteUrl string `validate:"required,gt=1,lte=128" form:"site_url" json:"site_url"`
ContactEmail string `validate:"required,gt=1,lte=128" form:"contact_email" json:"contact_email"`
} }
// SiteInterfaceReq site interface request // SiteInterfaceReq site interface request