File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10996,6 +10996,9 @@ const docTemplate = `{
1099610996 "site_questions": {
1099710997 "$ref": "#/definitions/schema.SiteQuestionsResp"
1099810998 },
10999+ "site_security": {
11000+ "$ref": "#/definitions/schema.SiteSecurityResp"
11001+ },
1099911002 "site_seo": {
1100011003 "$ref": "#/definitions/schema.SiteSeoResp"
1100111004 },
Original file line number Diff line number Diff line change 1098810988 "site_questions" : {
1098910989 "$ref" : " #/definitions/schema.SiteQuestionsResp"
1099010990 },
10991+ "site_security" : {
10992+ "$ref" : " #/definitions/schema.SiteSecurityResp"
10993+ },
1099110994 "site_seo" : {
1099210995 "$ref" : " #/definitions/schema.SiteSeoResp"
1099310996 },
Original file line number Diff line number Diff line change @@ -2219,6 +2219,8 @@ definitions:
22192219 $ref : ' #/definitions/schema.SiteLegalSimpleResp'
22202220 site_questions :
22212221 $ref : ' #/definitions/schema.SiteQuestionsResp'
2222+ site_security :
2223+ $ref : ' #/definitions/schema.SiteSecurityResp'
22222224 site_seo :
22232225 $ref : ' #/definitions/schema.SiteSeoResp'
22242226 site_tags :
Original file line number Diff line number Diff line change @@ -107,6 +107,9 @@ func (sc *SiteInfoController) GetSiteInfo(ctx *gin.Context) {
107107 if legal , err := sc .siteInfoService .GetSiteSecurity (ctx ); err == nil {
108108 resp .Legal = & schema.SiteLegalSimpleResp {ExternalContentDisplay : legal .ExternalContentDisplay }
109109 }
110+ if security , err := sc .siteInfoService .GetSiteSecurity (ctx ); err == nil {
111+ resp .Security = security
112+ }
110113
111114 handler .HandleResponse (ctx , nil , resp )
112115}
Original file line number Diff line number Diff line change @@ -326,6 +326,7 @@ type SiteInfoResp struct {
326326 Questions * SiteQuestionsResp `json:"site_questions"`
327327 Tags * SiteTagsResp `json:"site_tags"`
328328 Legal * SiteLegalSimpleResp `json:"site_legal"`
329+ Security * SiteSecurityResp `json:"site_security"`
329330 Version string `json:"version"`
330331 Revision string `json:"revision"`
331332}
You can’t perform that action at this time.
0 commit comments