| | |
| | | "basePath": "{{.BasePath}}", |
| | | "paths": { |
| | | "/api-sa/v1/audio/batchDelete": { |
| | | "post": { |
| | | "delete": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | |
| | | } |
| | | }, |
| | | "/api-sa/v1/audio/delete": { |
| | | "post": { |
| | | "delete": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-sa/v1/text/add": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "文字库" |
| | | ], |
| | | "summary": "新增文字", |
| | | "parameters": [ |
| | | { |
| | | "description": "参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.AddTextReq" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-sa/v1/text/list": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "文字库" |
| | | ], |
| | | "summary": "文字库列表", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "关键字", |
| | | "name": "keyword", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "integer", |
| | | "description": "页码", |
| | | "name": "page", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "integer", |
| | | "description": "每页大小", |
| | | "name": "pageSize", |
| | | "in": "query" |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/util.ResponseList" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/models.Text" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "definitions": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "models.Text": { |
| | | "type": "object", |
| | | "properties": { |
| | | "content": { |
| | | "description": "音频名称", |
| | | "type": "string" |
| | | }, |
| | | "createdAt": { |
| | | "type": "string" |
| | | }, |
| | | "deletedAt": { |
| | | "$ref": "#/definitions/gorm.DeletedAt" |
| | | }, |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "locomotiveNumber": { |
| | | "description": "机车号", |
| | | "type": "string" |
| | | }, |
| | | "updatedAt": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "request.AddTextReq": { |
| | | "type": "object", |
| | | "required": [ |
| | | "content", |
| | | "locomotiveNumber" |
| | | ], |
| | | "properties": { |
| | | "content": { |
| | | "description": "音频名称", |
| | | "type": "string" |
| | | }, |
| | | "locomotiveNumber": { |
| | | "description": "机车号", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "request.BatchProcessAudio": { |
| | | "type": "object", |
| | | "required": [ |