From 91b80ddcfcbc789ebfbc3a899c159b73732cd555 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 6 Dec 2024 11:56:00 +0800 Subject: [PATCH] swag --- docs/docs.go | 18 ++++++++++++++++++ docs/swagger.json | 18 ++++++++++++++++++ docs/swagger.yaml | 12 ++++++++++++ 3 files changed, 48 insertions(+) diff --git a/docs/docs.go b/docs/docs.go index 660daf4..bb116bd 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -4378,6 +4378,9 @@ const docTemplate = `{ "type": "string", "example": "隐私协议链接" }, + "seo": { + "$ref": "#/definitions/md.Seo" + }, "title": { "type": "string", "example": "软件使用协议标题" @@ -5607,6 +5610,21 @@ const docTemplate = `{ } } }, + "md.Seo": { + "type": "object", + "properties": { + "seo_logo": { + "type": "string" + }, + "seo_title": { + "type": "string", + "example": "seo" + }, + "web_logo": { + "type": "string" + } + } + }, "md.SeqType": { "type": "object", "properties": { diff --git a/docs/swagger.json b/docs/swagger.json index 186dfa2..e21a43c 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -4371,6 +4371,9 @@ "type": "string", "example": "隐私协议链接" }, + "seo": { + "$ref": "#/definitions/md.Seo" + }, "title": { "type": "string", "example": "软件使用协议标题" @@ -5600,6 +5603,21 @@ } } }, + "md.Seo": { + "type": "object", + "properties": { + "seo_logo": { + "type": "string" + }, + "seo_title": { + "type": "string", + "example": "seo" + }, + "web_logo": { + "type": "string" + } + } + }, "md.SeqType": { "type": "object", "properties": { diff --git a/docs/swagger.yaml b/docs/swagger.yaml index f27bda2..1ebf04c 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -416,6 +416,8 @@ definitions: privacy_url: example: 隐私协议链接 type: string + seo: + $ref: '#/definitions/md.Seo' title: example: 软件使用协议标题 type: string @@ -1271,6 +1273,16 @@ definitions: description: 红包ID type: integer type: object + md.Seo: + properties: + seo_logo: + type: string + seo_title: + example: seo + type: string + web_logo: + type: string + type: object md.SeqType: properties: seq: