切换批次和文件的 ID 类型为 UUID,更新相关逻辑和文档
This commit is contained in:
24
docs/docs.go
24
docs/docs.go
@@ -291,8 +291,8 @@ const docTemplate = `{
|
||||
"summary": "获取批次详情",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "批次 ID",
|
||||
"type": "string",
|
||||
"description": "批次 ID (UUID)",
|
||||
"name": "batch_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
@@ -344,8 +344,8 @@ const docTemplate = `{
|
||||
"summary": "修改批次信息",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "批次 ID",
|
||||
"type": "string",
|
||||
"description": "批次 ID (UUID)",
|
||||
"name": "batch_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
@@ -403,8 +403,8 @@ const docTemplate = `{
|
||||
"summary": "删除批次",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "批次 ID",
|
||||
"type": "string",
|
||||
"description": "批次 ID (UUID)",
|
||||
"name": "batch_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
@@ -710,8 +710,8 @@ const docTemplate = `{
|
||||
"summary": "下载单个文件",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "文件 ID",
|
||||
"type": "string",
|
||||
"description": "文件 ID (UUID)",
|
||||
"name": "file_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
@@ -883,7 +883,7 @@ const docTemplate = `{
|
||||
}
|
||||
},
|
||||
"id": {
|
||||
"type": "integer"
|
||||
"type": "string"
|
||||
},
|
||||
"max_downloads": {
|
||||
"type": "integer"
|
||||
@@ -911,13 +911,13 @@ const docTemplate = `{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"batch_id": {
|
||||
"type": "integer"
|
||||
"type": "string"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"type": "integer"
|
||||
"type": "string"
|
||||
},
|
||||
"mime_type": {
|
||||
"type": "string"
|
||||
@@ -983,7 +983,7 @@ const docTemplate = `{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"batch_id": {
|
||||
"type": "integer"
|
||||
"type": "string"
|
||||
},
|
||||
"expire_at": {
|
||||
"type": "string"
|
||||
|
||||
Reference in New Issue
Block a user