diff --git a/docs/admin/admin_docs.go b/docs/admin/admin_docs.go index 5f6fb28..546fa39 100644 --- a/docs/admin/admin_docs.go +++ b/docs/admin/admin_docs.go @@ -15,7 +15,7 @@ const docTemplateadmin = `{ "host": "{{.Host}}", "basePath": "{{.BasePath}}", "paths": { - "/admin/address_book/create": { + "/admin/address_book/batchCreate": { "post": { "security": [ { @@ -72,6 +72,63 @@ const docTemplateadmin = `{ } } }, + "/admin/address_book/create": { + "post": { + "security": [ + { + "token": [] + } + ], + "description": "创建地址簿", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "地址簿" + ], + "summary": "创建地址簿", + "parameters": [ + { + "description": "地址簿信息", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/admin.AddressBookForm" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/model.AddressBook" + } + } + } + ] + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, "/admin/address_book/delete": { "post": { "security": [ @@ -2019,6 +2076,771 @@ const docTemplateadmin = `{ } } }, + "/admin/my/address_book/create": { + "post": { + "security": [ + { + "token": [] + } + ], + "description": "创建地址簿", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的地址簿" + ], + "summary": "创建地址簿", + "parameters": [ + { + "description": "地址簿信息", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/admin.AddressBookForm" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/model.AddressBook" + } + } + } + ] + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/address_book/delete": { + "post": { + "security": [ + { + "token": [] + } + ], + "description": "地址簿删除", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的地址簿" + ], + "summary": "地址簿删除", + "parameters": [ + { + "description": "地址簿信息", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/admin.AddressBookForm" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/response.Response" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/address_book/list": { + "get": { + "security": [ + { + "token": [] + } + ], + "description": "地址簿列表", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的地址簿" + ], + "summary": "地址簿列表", + "parameters": [ + { + "type": "integer", + "description": "页码", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "页大小", + "name": "page_size", + "in": "query" + }, + { + "type": "integer", + "description": "用户id", + "name": "user_id", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/model.AddressBookList" + } + } + } + ] + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/address_book/update": { + "post": { + "security": [ + { + "token": [] + } + ], + "description": "地址簿编辑", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的地址簿" + ], + "summary": "地址簿编辑", + "parameters": [ + { + "description": "地址簿信息", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/admin.AddressBookForm" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/model.AddressBook" + } + } + } + ] + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/address_book_collection/create": { + "post": { + "security": [ + { + "token": [] + } + ], + "description": "创建地址簿名称", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的地址簿名称" + ], + "summary": "创建地址簿名称", + "parameters": [ + { + "description": "地址簿名称信息", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model.AddressBookCollection" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/model.AddressBookCollection" + } + } + } + ] + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/address_book_collection/delete": { + "post": { + "security": [ + { + "token": [] + } + ], + "description": "地址簿名称删除", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的地址簿名称" + ], + "summary": "地址簿名称删除", + "parameters": [ + { + "description": "地址簿名称信息", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model.AddressBookCollection" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/response.Response" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/address_book_collection/list": { + "get": { + "security": [ + { + "token": [] + } + ], + "description": "地址簿名称列表", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的地址簿名称" + ], + "summary": "地址簿名称列表", + "parameters": [ + { + "type": "integer", + "description": "页码", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "页大小", + "name": "page_size", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/model.AddressBookCollectionList" + } + } + } + ] + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/address_book_collection/update": { + "post": { + "security": [ + { + "token": [] + } + ], + "description": "地址簿名称编辑", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的地址簿名称" + ], + "summary": "地址簿名称编辑", + "parameters": [ + { + "description": "地址簿名称信息", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model.AddressBookCollection" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/model.AddressBookCollection" + } + } + } + ] + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/address_book_collection_rule/create": { + "post": { + "security": [ + { + "token": [] + } + ], + "description": "创建地址簿规则", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的地址簿规则" + ], + "summary": "创建地址簿规则", + "parameters": [ + { + "description": "地址簿规则信息", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model.AddressBookCollectionRule" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/model.AddressBookCollection" + } + } + } + ] + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/address_book_collection_rule/delete": { + "post": { + "security": [ + { + "token": [] + } + ], + "description": "地址簿规则删除", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的地址簿规则" + ], + "summary": "地址簿规则删除", + "parameters": [ + { + "description": "地址簿规则信息", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model.AddressBookCollectionRule" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/response.Response" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/address_book_collection_rule/list": { + "get": { + "security": [ + { + "token": [] + } + ], + "description": "地址簿规则列表", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的地址簿规则" + ], + "summary": "地址簿规则列表", + "parameters": [ + { + "type": "integer", + "description": "页码", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "页大小", + "name": "page_size", + "in": "query" + }, + { + "type": "integer", + "description": "是否是我的", + "name": "is_my", + "in": "query" + }, + { + "type": "integer", + "description": "用户id", + "name": "user_id", + "in": "query" + }, + { + "type": "integer", + "description": "地址簿集合id", + "name": "collection_id", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/model.AddressBookCollectionList" + } + } + } + ] + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/address_book_collection_rule/update": { + "post": { + "security": [ + { + "token": [] + } + ], + "description": "地址簿规则编辑", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的地址簿规则" + ], + "summary": "地址簿规则编辑", + "parameters": [ + { + "description": "地址簿规则信息", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model.AddressBookCollectionRule" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/model.AddressBookCollection" + } + } + } + ] + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/peer/list": { + "get": { + "security": [ + { + "token": [] + } + ], + "description": "设备列表", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的设备" + ], + "summary": "设备列表", + "parameters": [ + { + "type": "integer", + "description": "页码", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "页大小", + "name": "page_size", + "in": "query" + }, + { + "type": "integer", + "description": "时间", + "name": "time_ago", + "in": "query" + }, + { + "type": "string", + "description": "ID", + "name": "id", + "in": "query" + }, + { + "type": "string", + "description": "主机名", + "name": "hostname", + "in": "query" + }, + { + "type": "string", + "description": "uuids 用逗号分隔", + "name": "uuids", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/model.PeerList" + } + } + } + ] + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, "/admin/my/share_record/batchDelete": { "post": { "security": [ @@ -2079,7 +2901,7 @@ const docTemplateadmin = `{ "application/json" ], "tags": [ - "我的" + "我的分享记录" ], "summary": "分享记录删除", "parameters": [ @@ -2124,7 +2946,7 @@ const docTemplateadmin = `{ "application/json" ], "tags": [ - "我的" + "我的分享记录" ], "summary": "分享记录列表", "parameters": [ @@ -2157,6 +2979,237 @@ const docTemplateadmin = `{ } } }, + "/admin/my/tag/create": { + "post": { + "security": [ + { + "token": [] + } + ], + "description": "创建标签", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的标签" + ], + "summary": "创建标签", + "parameters": [ + { + "description": "标签信息", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/admin.TagForm" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/model.Tag" + } + } + } + ] + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/tag/delete": { + "post": { + "security": [ + { + "token": [] + } + ], + "description": "标签删除", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "标签" + ], + "summary": "标签删除", + "parameters": [ + { + "description": "标签信息", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/admin.TagForm" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/response.Response" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/tag/list": { + "get": { + "security": [ + { + "token": [] + } + ], + "description": "标签列表", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的标签" + ], + "summary": "标签列表", + "parameters": [ + { + "type": "integer", + "description": "页码", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "页大小", + "name": "page_size", + "in": "query" + }, + { + "type": "integer", + "description": "是否是我的", + "name": "is_my", + "in": "query" + }, + { + "type": "integer", + "description": "用户id", + "name": "user_id", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/model.TagList" + } + } + } + ] + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/tag/update": { + "post": { + "security": [ + { + "token": [] + } + ], + "description": "标签编辑", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的标签" + ], + "summary": "标签编辑", + "parameters": [ + { + "description": "标签信息", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/admin.TagForm" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/model.Tag" + } + } + } + ] + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, "/admin/oauth/create": { "post": { "security": [ @@ -3658,90 +4711,6 @@ const docTemplateadmin = `{ } } }, - "/admin/user/myPeer": { - "get": { - "security": [ - { - "token": [] - } - ], - "description": "我的设备列表", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "设备" - ], - "summary": "我的设备列表", - "parameters": [ - { - "type": "integer", - "description": "页码", - "name": "page", - "in": "query" - }, - { - "type": "integer", - "description": "页大小", - "name": "page_size", - "in": "query" - }, - { - "type": "integer", - "description": "时间", - "name": "time_ago", - "in": "query" - }, - { - "type": "string", - "description": "ID", - "name": "id", - "in": "query" - }, - { - "type": "string", - "description": "主机名", - "name": "hostname", - "in": "query" - }, - { - "type": "string", - "description": "uuids 用逗号分隔", - "name": "uuids", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/model.PeerList" - } - } - } - ] - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/response.Response" - } - } - } - } - }, "/admin/user/update": { "post": { "security": [ @@ -4009,6 +4978,9 @@ const docTemplateadmin = `{ "username" ], "properties": { + "captcha": { + "type": "string" + }, "password": { "type": "string" }, diff --git a/docs/admin/admin_swagger.json b/docs/admin/admin_swagger.json index 532b3fc..3ee5539 100644 --- a/docs/admin/admin_swagger.json +++ b/docs/admin/admin_swagger.json @@ -8,7 +8,7 @@ }, "basePath": "/api", "paths": { - "/admin/address_book/create": { + "/admin/address_book/batchCreate": { "post": { "security": [ { @@ -65,6 +65,63 @@ } } }, + "/admin/address_book/create": { + "post": { + "security": [ + { + "token": [] + } + ], + "description": "创建地址簿", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "地址簿" + ], + "summary": "创建地址簿", + "parameters": [ + { + "description": "地址簿信息", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/admin.AddressBookForm" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/model.AddressBook" + } + } + } + ] + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, "/admin/address_book/delete": { "post": { "security": [ @@ -2012,6 +2069,771 @@ } } }, + "/admin/my/address_book/create": { + "post": { + "security": [ + { + "token": [] + } + ], + "description": "创建地址簿", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的地址簿" + ], + "summary": "创建地址簿", + "parameters": [ + { + "description": "地址簿信息", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/admin.AddressBookForm" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/model.AddressBook" + } + } + } + ] + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/address_book/delete": { + "post": { + "security": [ + { + "token": [] + } + ], + "description": "地址簿删除", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的地址簿" + ], + "summary": "地址簿删除", + "parameters": [ + { + "description": "地址簿信息", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/admin.AddressBookForm" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/response.Response" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/address_book/list": { + "get": { + "security": [ + { + "token": [] + } + ], + "description": "地址簿列表", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的地址簿" + ], + "summary": "地址簿列表", + "parameters": [ + { + "type": "integer", + "description": "页码", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "页大小", + "name": "page_size", + "in": "query" + }, + { + "type": "integer", + "description": "用户id", + "name": "user_id", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/model.AddressBookList" + } + } + } + ] + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/address_book/update": { + "post": { + "security": [ + { + "token": [] + } + ], + "description": "地址簿编辑", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的地址簿" + ], + "summary": "地址簿编辑", + "parameters": [ + { + "description": "地址簿信息", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/admin.AddressBookForm" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/model.AddressBook" + } + } + } + ] + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/address_book_collection/create": { + "post": { + "security": [ + { + "token": [] + } + ], + "description": "创建地址簿名称", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的地址簿名称" + ], + "summary": "创建地址簿名称", + "parameters": [ + { + "description": "地址簿名称信息", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model.AddressBookCollection" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/model.AddressBookCollection" + } + } + } + ] + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/address_book_collection/delete": { + "post": { + "security": [ + { + "token": [] + } + ], + "description": "地址簿名称删除", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的地址簿名称" + ], + "summary": "地址簿名称删除", + "parameters": [ + { + "description": "地址簿名称信息", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model.AddressBookCollection" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/response.Response" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/address_book_collection/list": { + "get": { + "security": [ + { + "token": [] + } + ], + "description": "地址簿名称列表", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的地址簿名称" + ], + "summary": "地址簿名称列表", + "parameters": [ + { + "type": "integer", + "description": "页码", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "页大小", + "name": "page_size", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/model.AddressBookCollectionList" + } + } + } + ] + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/address_book_collection/update": { + "post": { + "security": [ + { + "token": [] + } + ], + "description": "地址簿名称编辑", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的地址簿名称" + ], + "summary": "地址簿名称编辑", + "parameters": [ + { + "description": "地址簿名称信息", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model.AddressBookCollection" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/model.AddressBookCollection" + } + } + } + ] + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/address_book_collection_rule/create": { + "post": { + "security": [ + { + "token": [] + } + ], + "description": "创建地址簿规则", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的地址簿规则" + ], + "summary": "创建地址簿规则", + "parameters": [ + { + "description": "地址簿规则信息", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model.AddressBookCollectionRule" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/model.AddressBookCollection" + } + } + } + ] + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/address_book_collection_rule/delete": { + "post": { + "security": [ + { + "token": [] + } + ], + "description": "地址簿规则删除", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的地址簿规则" + ], + "summary": "地址簿规则删除", + "parameters": [ + { + "description": "地址簿规则信息", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model.AddressBookCollectionRule" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/response.Response" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/address_book_collection_rule/list": { + "get": { + "security": [ + { + "token": [] + } + ], + "description": "地址簿规则列表", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的地址簿规则" + ], + "summary": "地址簿规则列表", + "parameters": [ + { + "type": "integer", + "description": "页码", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "页大小", + "name": "page_size", + "in": "query" + }, + { + "type": "integer", + "description": "是否是我的", + "name": "is_my", + "in": "query" + }, + { + "type": "integer", + "description": "用户id", + "name": "user_id", + "in": "query" + }, + { + "type": "integer", + "description": "地址簿集合id", + "name": "collection_id", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/model.AddressBookCollectionList" + } + } + } + ] + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/address_book_collection_rule/update": { + "post": { + "security": [ + { + "token": [] + } + ], + "description": "地址簿规则编辑", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的地址簿规则" + ], + "summary": "地址簿规则编辑", + "parameters": [ + { + "description": "地址簿规则信息", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/model.AddressBookCollectionRule" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/model.AddressBookCollection" + } + } + } + ] + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/peer/list": { + "get": { + "security": [ + { + "token": [] + } + ], + "description": "设备列表", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的设备" + ], + "summary": "设备列表", + "parameters": [ + { + "type": "integer", + "description": "页码", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "页大小", + "name": "page_size", + "in": "query" + }, + { + "type": "integer", + "description": "时间", + "name": "time_ago", + "in": "query" + }, + { + "type": "string", + "description": "ID", + "name": "id", + "in": "query" + }, + { + "type": "string", + "description": "主机名", + "name": "hostname", + "in": "query" + }, + { + "type": "string", + "description": "uuids 用逗号分隔", + "name": "uuids", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/model.PeerList" + } + } + } + ] + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, "/admin/my/share_record/batchDelete": { "post": { "security": [ @@ -2072,7 +2894,7 @@ "application/json" ], "tags": [ - "我的" + "我的分享记录" ], "summary": "分享记录删除", "parameters": [ @@ -2117,7 +2939,7 @@ "application/json" ], "tags": [ - "我的" + "我的分享记录" ], "summary": "分享记录列表", "parameters": [ @@ -2150,6 +2972,237 @@ } } }, + "/admin/my/tag/create": { + "post": { + "security": [ + { + "token": [] + } + ], + "description": "创建标签", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的标签" + ], + "summary": "创建标签", + "parameters": [ + { + "description": "标签信息", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/admin.TagForm" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/model.Tag" + } + } + } + ] + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/tag/delete": { + "post": { + "security": [ + { + "token": [] + } + ], + "description": "标签删除", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "标签" + ], + "summary": "标签删除", + "parameters": [ + { + "description": "标签信息", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/admin.TagForm" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/response.Response" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/tag/list": { + "get": { + "security": [ + { + "token": [] + } + ], + "description": "标签列表", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的标签" + ], + "summary": "标签列表", + "parameters": [ + { + "type": "integer", + "description": "页码", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "页大小", + "name": "page_size", + "in": "query" + }, + { + "type": "integer", + "description": "是否是我的", + "name": "is_my", + "in": "query" + }, + { + "type": "integer", + "description": "用户id", + "name": "user_id", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/model.TagList" + } + } + } + ] + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, + "/admin/my/tag/update": { + "post": { + "security": [ + { + "token": [] + } + ], + "description": "标签编辑", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "我的标签" + ], + "summary": "标签编辑", + "parameters": [ + { + "description": "标签信息", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/admin.TagForm" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/model.Tag" + } + } + } + ] + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/response.Response" + } + } + } + } + }, "/admin/oauth/create": { "post": { "security": [ @@ -3651,90 +4704,6 @@ } } }, - "/admin/user/myPeer": { - "get": { - "security": [ - { - "token": [] - } - ], - "description": "我的设备列表", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "设备" - ], - "summary": "我的设备列表", - "parameters": [ - { - "type": "integer", - "description": "页码", - "name": "page", - "in": "query" - }, - { - "type": "integer", - "description": "页大小", - "name": "page_size", - "in": "query" - }, - { - "type": "integer", - "description": "时间", - "name": "time_ago", - "in": "query" - }, - { - "type": "string", - "description": "ID", - "name": "id", - "in": "query" - }, - { - "type": "string", - "description": "主机名", - "name": "hostname", - "in": "query" - }, - { - "type": "string", - "description": "uuids 用逗号分隔", - "name": "uuids", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "allOf": [ - { - "$ref": "#/definitions/response.Response" - }, - { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/model.PeerList" - } - } - } - ] - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/response.Response" - } - } - } - } - }, "/admin/user/update": { "post": { "security": [ @@ -4002,6 +4971,9 @@ "username" ], "properties": { + "captcha": { + "type": "string" + }, "password": { "type": "string" }, diff --git a/docs/admin/admin_swagger.yaml b/docs/admin/admin_swagger.yaml index 270ee15..9834ef8 100644 --- a/docs/admin/admin_swagger.yaml +++ b/docs/admin/admin_swagger.yaml @@ -2,6 +2,8 @@ basePath: /api definitions: Gwen_http_request_admin.Login: properties: + captcha: + type: string password: type: string platform: @@ -773,7 +775,7 @@ info: title: 管理系统API version: "1.0" paths: - /admin/address_book/create: + /admin/address_book/batchCreate: post: consumes: - application/json @@ -806,6 +808,39 @@ paths: summary: 批量创建地址簿 tags: - 地址簿 + /admin/address_book/create: + post: + consumes: + - application/json + description: 创建地址簿 + parameters: + - description: 地址簿信息 + in: body + name: body + required: true + schema: + $ref: '#/definitions/admin.AddressBookForm' + produces: + - application/json + responses: + "200": + description: OK + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + $ref: '#/definitions/model.AddressBook' + type: object + "500": + description: Internal Server Error + schema: + $ref: '#/definitions/response.Response' + security: + - token: [] + summary: 创建地址簿 + tags: + - 地址簿 /admin/address_book/delete: post: consumes: @@ -1975,6 +2010,460 @@ paths: summary: 登出 tags: - 登录 + /admin/my/address_book/create: + post: + consumes: + - application/json + description: 创建地址簿 + parameters: + - description: 地址簿信息 + in: body + name: body + required: true + schema: + $ref: '#/definitions/admin.AddressBookForm' + produces: + - application/json + responses: + "200": + description: OK + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + $ref: '#/definitions/model.AddressBook' + type: object + "500": + description: Internal Server Error + schema: + $ref: '#/definitions/response.Response' + security: + - token: [] + summary: 创建地址簿 + tags: + - 我的地址簿 + /admin/my/address_book/delete: + post: + consumes: + - application/json + description: 地址簿删除 + parameters: + - description: 地址簿信息 + in: body + name: body + required: true + schema: + $ref: '#/definitions/admin.AddressBookForm' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/response.Response' + "500": + description: Internal Server Error + schema: + $ref: '#/definitions/response.Response' + security: + - token: [] + summary: 地址簿删除 + tags: + - 我的地址簿 + /admin/my/address_book/list: + get: + consumes: + - application/json + description: 地址簿列表 + parameters: + - description: 页码 + in: query + name: page + type: integer + - description: 页大小 + in: query + name: page_size + type: integer + - description: 用户id + in: query + name: user_id + type: integer + produces: + - application/json + responses: + "200": + description: OK + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + $ref: '#/definitions/model.AddressBookList' + type: object + "500": + description: Internal Server Error + schema: + $ref: '#/definitions/response.Response' + security: + - token: [] + summary: 地址簿列表 + tags: + - 我的地址簿 + /admin/my/address_book/update: + post: + consumes: + - application/json + description: 地址簿编辑 + parameters: + - description: 地址簿信息 + in: body + name: body + required: true + schema: + $ref: '#/definitions/admin.AddressBookForm' + produces: + - application/json + responses: + "200": + description: OK + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + $ref: '#/definitions/model.AddressBook' + type: object + "500": + description: Internal Server Error + schema: + $ref: '#/definitions/response.Response' + security: + - token: [] + summary: 地址簿编辑 + tags: + - 我的地址簿 + /admin/my/address_book_collection/create: + post: + consumes: + - application/json + description: 创建地址簿名称 + parameters: + - description: 地址簿名称信息 + in: body + name: body + required: true + schema: + $ref: '#/definitions/model.AddressBookCollection' + produces: + - application/json + responses: + "200": + description: OK + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + $ref: '#/definitions/model.AddressBookCollection' + type: object + "500": + description: Internal Server Error + schema: + $ref: '#/definitions/response.Response' + security: + - token: [] + summary: 创建地址簿名称 + tags: + - 我的地址簿名称 + /admin/my/address_book_collection/delete: + post: + consumes: + - application/json + description: 地址簿名称删除 + parameters: + - description: 地址簿名称信息 + in: body + name: body + required: true + schema: + $ref: '#/definitions/model.AddressBookCollection' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/response.Response' + "500": + description: Internal Server Error + schema: + $ref: '#/definitions/response.Response' + security: + - token: [] + summary: 地址簿名称删除 + tags: + - 我的地址簿名称 + /admin/my/address_book_collection/list: + get: + consumes: + - application/json + description: 地址簿名称列表 + parameters: + - description: 页码 + in: query + name: page + type: integer + - description: 页大小 + in: query + name: page_size + type: integer + produces: + - application/json + responses: + "200": + description: OK + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + $ref: '#/definitions/model.AddressBookCollectionList' + type: object + "500": + description: Internal Server Error + schema: + $ref: '#/definitions/response.Response' + security: + - token: [] + summary: 地址簿名称列表 + tags: + - 我的地址簿名称 + /admin/my/address_book_collection/update: + post: + consumes: + - application/json + description: 地址簿名称编辑 + parameters: + - description: 地址簿名称信息 + in: body + name: body + required: true + schema: + $ref: '#/definitions/model.AddressBookCollection' + produces: + - application/json + responses: + "200": + description: OK + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + $ref: '#/definitions/model.AddressBookCollection' + type: object + "500": + description: Internal Server Error + schema: + $ref: '#/definitions/response.Response' + security: + - token: [] + summary: 地址簿名称编辑 + tags: + - 我的地址簿名称 + /admin/my/address_book_collection_rule/create: + post: + consumes: + - application/json + description: 创建地址簿规则 + parameters: + - description: 地址簿规则信息 + in: body + name: body + required: true + schema: + $ref: '#/definitions/model.AddressBookCollectionRule' + produces: + - application/json + responses: + "200": + description: OK + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + $ref: '#/definitions/model.AddressBookCollection' + type: object + "500": + description: Internal Server Error + schema: + $ref: '#/definitions/response.Response' + security: + - token: [] + summary: 创建地址簿规则 + tags: + - 我的地址簿规则 + /admin/my/address_book_collection_rule/delete: + post: + consumes: + - application/json + description: 地址簿规则删除 + parameters: + - description: 地址簿规则信息 + in: body + name: body + required: true + schema: + $ref: '#/definitions/model.AddressBookCollectionRule' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/response.Response' + "500": + description: Internal Server Error + schema: + $ref: '#/definitions/response.Response' + security: + - token: [] + summary: 地址簿规则删除 + tags: + - 我的地址簿规则 + /admin/my/address_book_collection_rule/list: + get: + consumes: + - application/json + description: 地址簿规则列表 + parameters: + - description: 页码 + in: query + name: page + type: integer + - description: 页大小 + in: query + name: page_size + type: integer + - description: 是否是我的 + in: query + name: is_my + type: integer + - description: 用户id + in: query + name: user_id + type: integer + - description: 地址簿集合id + in: query + name: collection_id + type: integer + produces: + - application/json + responses: + "200": + description: OK + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + $ref: '#/definitions/model.AddressBookCollectionList' + type: object + "500": + description: Internal Server Error + schema: + $ref: '#/definitions/response.Response' + security: + - token: [] + summary: 地址簿规则列表 + tags: + - 我的地址簿规则 + /admin/my/address_book_collection_rule/update: + post: + consumes: + - application/json + description: 地址簿规则编辑 + parameters: + - description: 地址簿规则信息 + in: body + name: body + required: true + schema: + $ref: '#/definitions/model.AddressBookCollectionRule' + produces: + - application/json + responses: + "200": + description: OK + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + $ref: '#/definitions/model.AddressBookCollection' + type: object + "500": + description: Internal Server Error + schema: + $ref: '#/definitions/response.Response' + security: + - token: [] + summary: 地址簿规则编辑 + tags: + - 我的地址簿规则 + /admin/my/peer/list: + get: + consumes: + - application/json + description: 设备列表 + parameters: + - description: 页码 + in: query + name: page + type: integer + - description: 页大小 + in: query + name: page_size + type: integer + - description: 时间 + in: query + name: time_ago + type: integer + - description: ID + in: query + name: id + type: string + - description: 主机名 + in: query + name: hostname + type: string + - description: uuids 用逗号分隔 + in: query + name: uuids + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + $ref: '#/definitions/model.PeerList' + type: object + "500": + description: Internal Server Error + schema: + $ref: '#/definitions/response.Response' + security: + - token: [] + summary: 设备列表 + tags: + - 我的设备 /admin/my/share_record/batchDelete: post: consumes: @@ -2030,7 +2519,7 @@ paths: - token: [] summary: 分享记录删除 tags: - - 我的 + - 我的分享记录 /admin/my/share_record/list: get: consumes: @@ -2060,7 +2549,144 @@ paths: - token: [] summary: 分享记录列表 tags: - - 我的 + - 我的分享记录 + /admin/my/tag/create: + post: + consumes: + - application/json + description: 创建标签 + parameters: + - description: 标签信息 + in: body + name: body + required: true + schema: + $ref: '#/definitions/admin.TagForm' + produces: + - application/json + responses: + "200": + description: OK + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + $ref: '#/definitions/model.Tag' + type: object + "500": + description: Internal Server Error + schema: + $ref: '#/definitions/response.Response' + security: + - token: [] + summary: 创建标签 + tags: + - 我的标签 + /admin/my/tag/delete: + post: + consumes: + - application/json + description: 标签删除 + parameters: + - description: 标签信息 + in: body + name: body + required: true + schema: + $ref: '#/definitions/admin.TagForm' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/response.Response' + "500": + description: Internal Server Error + schema: + $ref: '#/definitions/response.Response' + security: + - token: [] + summary: 标签删除 + tags: + - 标签 + /admin/my/tag/list: + get: + consumes: + - application/json + description: 标签列表 + parameters: + - description: 页码 + in: query + name: page + type: integer + - description: 页大小 + in: query + name: page_size + type: integer + - description: 是否是我的 + in: query + name: is_my + type: integer + - description: 用户id + in: query + name: user_id + type: integer + produces: + - application/json + responses: + "200": + description: OK + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + $ref: '#/definitions/model.TagList' + type: object + "500": + description: Internal Server Error + schema: + $ref: '#/definitions/response.Response' + security: + - token: [] + summary: 标签列表 + tags: + - 我的标签 + /admin/my/tag/update: + post: + consumes: + - application/json + description: 标签编辑 + parameters: + - description: 标签信息 + in: body + name: body + required: true + schema: + $ref: '#/definitions/admin.TagForm' + produces: + - application/json + responses: + "200": + description: OK + schema: + allOf: + - $ref: '#/definitions/response.Response' + - properties: + data: + $ref: '#/definitions/model.Tag' + type: object + "500": + description: Internal Server Error + schema: + $ref: '#/definitions/response.Response' + security: + - token: [] + summary: 标签编辑 + tags: + - 我的标签 /admin/oauth/create: post: consumes: @@ -2956,57 +3582,6 @@ paths: summary: 我的授权 tags: - 用户 - /admin/user/myPeer: - get: - consumes: - - application/json - description: 我的设备列表 - parameters: - - description: 页码 - in: query - name: page - type: integer - - description: 页大小 - in: query - name: page_size - type: integer - - description: 时间 - in: query - name: time_ago - type: integer - - description: ID - in: query - name: id - type: string - - description: 主机名 - in: query - name: hostname - type: string - - description: uuids 用逗号分隔 - in: query - name: uuids - type: string - produces: - - application/json - responses: - "200": - description: OK - schema: - allOf: - - $ref: '#/definitions/response.Response' - - properties: - data: - $ref: '#/definitions/model.PeerList' - type: object - "500": - description: Internal Server Error - schema: - $ref: '#/definitions/response.Response' - security: - - token: [] - summary: 我的设备列表 - tags: - - 设备 /admin/user/update: post: consumes: