add file conn log

This commit is contained in:
ljw
2024-10-21 21:08:25 +08:00
parent cbb3764b60
commit 47ab3958c9
14 changed files with 579 additions and 32 deletions

View File

@@ -387,7 +387,7 @@ const docTemplateadmin = `{
"token": []
}
],
"description": "链接日志删除",
"description": "文件日志删除",
"consumes": [
"application/json"
],
@@ -395,17 +395,17 @@ const docTemplateadmin = `{
"application/json"
],
"tags": [
"链接日志"
"文件日志"
],
"summary": "链接日志删除",
"summary": "文件日志删除",
"parameters": [
{
"description": "链接日志信息",
"description": "文件日志信息",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/model.AuditConn"
"$ref": "#/definitions/model.AuditFile"
}
}
],
@@ -432,7 +432,7 @@ const docTemplateadmin = `{
"token": []
}
],
"description": "链接日志列表",
"description": "文件日志列表",
"consumes": [
"application/json"
],
@@ -440,9 +440,9 @@ const docTemplateadmin = `{
"application/json"
],
"tags": [
"链接日志"
"文件日志"
],
"summary": "链接日志列表",
"summary": "文件日志列表",
"parameters": [
{
"type": "integer",
@@ -481,7 +481,7 @@ const docTemplateadmin = `{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/model.AuditConnList"
"$ref": "#/definitions/model.AuditFileList"
}
}
}
@@ -2566,6 +2566,9 @@ const docTemplateadmin = `{
},
"name": {
"type": "string"
},
"type": {
"type": "integer"
}
}
},
@@ -2925,6 +2928,70 @@ const docTemplateadmin = `{
}
}
},
"model.AuditFile": {
"type": "object",
"properties": {
"created_at": {
"type": "string"
},
"from_name": {
"type": "string"
},
"from_peer": {
"type": "string"
},
"id": {
"type": "integer"
},
"info": {
"type": "string"
},
"ip": {
"type": "string"
},
"is_file": {
"type": "boolean"
},
"num": {
"type": "integer"
},
"path": {
"type": "string"
},
"peer_id": {
"type": "string"
},
"type": {
"type": "integer"
},
"updated_at": {
"type": "string"
},
"uuid": {
"type": "string"
}
}
},
"model.AuditFileList": {
"type": "object",
"properties": {
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/model.AuditFile"
}
},
"page": {
"type": "integer"
},
"page_size": {
"type": "integer"
},
"total": {
"type": "integer"
}
}
},
"model.Group": {
"type": "object",
"properties": {

View File

@@ -380,7 +380,7 @@
"token": []
}
],
"description": "链接日志删除",
"description": "文件日志删除",
"consumes": [
"application/json"
],
@@ -388,17 +388,17 @@
"application/json"
],
"tags": [
"链接日志"
"文件日志"
],
"summary": "链接日志删除",
"summary": "文件日志删除",
"parameters": [
{
"description": "链接日志信息",
"description": "文件日志信息",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/model.AuditConn"
"$ref": "#/definitions/model.AuditFile"
}
}
],
@@ -425,7 +425,7 @@
"token": []
}
],
"description": "链接日志列表",
"description": "文件日志列表",
"consumes": [
"application/json"
],
@@ -433,9 +433,9 @@
"application/json"
],
"tags": [
"链接日志"
"文件日志"
],
"summary": "链接日志列表",
"summary": "文件日志列表",
"parameters": [
{
"type": "integer",
@@ -474,7 +474,7 @@
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/model.AuditConnList"
"$ref": "#/definitions/model.AuditFileList"
}
}
}
@@ -2559,6 +2559,9 @@
},
"name": {
"type": "string"
},
"type": {
"type": "integer"
}
}
},
@@ -2918,6 +2921,70 @@
}
}
},
"model.AuditFile": {
"type": "object",
"properties": {
"created_at": {
"type": "string"
},
"from_name": {
"type": "string"
},
"from_peer": {
"type": "string"
},
"id": {
"type": "integer"
},
"info": {
"type": "string"
},
"ip": {
"type": "string"
},
"is_file": {
"type": "boolean"
},
"num": {
"type": "integer"
},
"path": {
"type": "string"
},
"peer_id": {
"type": "string"
},
"type": {
"type": "integer"
},
"updated_at": {
"type": "string"
},
"uuid": {
"type": "string"
}
}
},
"model.AuditFileList": {
"type": "object",
"properties": {
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/model.AuditFile"
}
},
"page": {
"type": "integer"
},
"page_size": {
"type": "integer"
},
"total": {
"type": "integer"
}
}
},
"model.Group": {
"type": "object",
"properties": {

View File

@@ -75,6 +75,8 @@ definitions:
type: integer
name:
type: string
type:
type: integer
required:
- name
type: object
@@ -315,6 +317,48 @@ definitions:
total:
type: integer
type: object
model.AuditFile:
properties:
created_at:
type: string
from_name:
type: string
from_peer:
type: string
id:
type: integer
info:
type: string
ip:
type: string
is_file:
type: boolean
num:
type: integer
path:
type: string
peer_id:
type: string
type:
type: integer
updated_at:
type: string
uuid:
type: string
type: object
model.AuditFileList:
properties:
list:
items:
$ref: '#/definitions/model.AuditFile'
type: array
page:
type: integer
page_size:
type: integer
total:
type: integer
type: object
model.Group:
properties:
created_at:
@@ -765,14 +809,14 @@ paths:
post:
consumes:
- application/json
description: 链接日志删除
description: 文件日志删除
parameters:
- description: 链接日志信息
- description: 文件日志信息
in: body
name: body
required: true
schema:
$ref: '#/definitions/model.AuditConn'
$ref: '#/definitions/model.AuditFile'
produces:
- application/json
responses:
@@ -786,14 +830,14 @@ paths:
$ref: '#/definitions/response.Response'
security:
- token: []
summary: 链接日志删除
summary: 文件日志删除
tags:
- 链接日志
- 文件日志
/admin/audit_conn/list:
get:
consumes:
- application/json
description: 链接日志列表
description: 文件日志列表
parameters:
- description: 页码
in: query
@@ -821,7 +865,7 @@ paths:
- $ref: '#/definitions/response.Response'
- properties:
data:
$ref: '#/definitions/model.AuditConnList'
$ref: '#/definitions/model.AuditFileList'
type: object
"500":
description: Internal Server Error
@@ -829,9 +873,9 @@ paths:
$ref: '#/definitions/response.Response'
security:
- token: []
summary: 链接日志列表
summary: 文件日志列表
tags:
- 链接日志
- 文件日志
/admin/file/oss_token:
get:
consumes: