add share record manage

This commit is contained in:
lejianwen
2024-12-13 12:32:36 +08:00
parent 3a430c72a2
commit ef0410a8b9
15 changed files with 1344 additions and 12 deletions

View File

@@ -2019,6 +2019,144 @@ const docTemplateadmin = `{
}
}
},
"/admin/my/share_record/batchDelete": {
"post": {
"security": [
{
"token": []
}
],
"description": "批量删除我的分享记录",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"我的"
],
"summary": "批量删除我的分享记录",
"parameters": [
{
"description": "id",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/admin.PeerShareRecordBatchDeleteForm"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/admin/my/share_record/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.ShareRecordForm"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/admin/my/share_record/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": {
"$ref": "#/definitions/response.Response"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/admin/oauth/create": {
"post": {
"security": [
@@ -2727,6 +2865,150 @@ const docTemplateadmin = `{
}
}
},
"/admin/share_record/batchDelete": {
"post": {
"security": [
{
"token": []
}
],
"description": "批量分享记录",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"分享记录"
],
"summary": "批量分享记录",
"parameters": [
{
"description": "id",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/admin.PeerShareRecordBatchDeleteForm"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/admin/share_record/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.ShareRecordForm"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/admin/share_record/list": {
"get": {
"security": [
{
"token": []
}
],
"description": "分享记录列表",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"分享记录"
],
"summary": "分享记录列表",
"parameters": [
{
"type": "integer",
"description": "用户ID",
"name": "user_id",
"in": "query"
},
{
"type": "integer",
"description": "页码",
"name": "page",
"in": "query"
},
{
"type": "integer",
"description": "页大小",
"name": "page_size",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/admin/tag/create": {
"post": {
"security": [
@@ -3562,7 +3844,7 @@ const docTemplateadmin = `{
}
}
},
"/admin/user_token/delete": {
"/admin/user_token/batchDelete": {
"post": {
"security": [
{
@@ -3607,6 +3889,51 @@ const docTemplateadmin = `{
}
}
},
"/admin/user_token/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.UserToken"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/response.Response"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/response.Response"
}
}
}
}
},
"/admin/user_token/list": {
"get": {
"security": [
@@ -3949,6 +4276,20 @@ const docTemplateadmin = `{
}
}
},
"admin.PeerShareRecordBatchDeleteForm": {
"type": "object",
"required": [
"ids"
],
"properties": {
"ids": {
"type": "array",
"items": {
"type": "integer"
}
}
}
},
"admin.ShareByWebClientForm": {
"type": "object",
"required": [
@@ -3976,6 +4317,17 @@ const docTemplateadmin = `{
}
}
},
"admin.ShareRecordForm": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"user_id": {
"type": "integer"
}
}
},
"admin.TagForm": {
"type": "object",
"required": [