| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331 |
- // Code generated by swaggo/swag. DO NOT EDIT.
- package docs
- import "github.com/swaggo/swag"
- const docTemplate = `{
- "schemes": {{ marshal .Schemes }},
- "swagger": "2.0",
- "info": {
- "description": "{{escape .Description}}",
- "title": "{{.Title}}",
- "contact": {},
- "version": "{{.Version}}"
- },
- "host": "{{.Host}}",
- "basePath": "{{.BasePath}}",
- "paths": {
- "/api-sa/v1/audio/list": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "音频"
- ],
- "summary": "音频分析检索",
- "parameters": [
- {
- "type": "string",
- "description": "司机号",
- "name": "driverNumber",
- "in": "query"
- },
- {
- "type": "string",
- "description": "关键字",
- "name": "keyword",
- "in": "query"
- },
- {
- "type": "string",
- "description": "机车号",
- "name": "locomotiveNumber",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "页码",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "每页大小",
- "name": "pageSize",
- "in": "query"
- },
- {
- "type": "string",
- "description": "车站号",
- "name": "stationNumber",
- "in": "query"
- },
- {
- "type": "string",
- "description": "车次",
- "name": "trainNumber",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "description": "成功",
- "schema": {
- "allOf": [
- {
- "$ref": "#/definitions/util.ResponseList"
- },
- {
- "type": "object",
- "properties": {
- "data": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/models.Audio"
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- },
- "/api-sa/v1/audio/process": {
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "音频"
- ],
- "summary": "处理音频",
- "parameters": [
- {
- "description": "音频信息",
- "name": "object",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/request.ProcessAudio"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "成功",
- "schema": {
- "$ref": "#/definitions/util.Response"
- }
- }
- }
- }
- },
- "/api-sa/v1/audio/upload": {
- "post": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "音频"
- ],
- "summary": "上传音频",
- "parameters": [
- {
- "type": "file",
- "description": "音频文件",
- "name": "file",
- "in": "formData",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "description": "成功",
- "schema": {
- "$ref": "#/definitions/util.Response"
- }
- }
- }
- }
- }
- },
- "definitions": {
- "constvar.AudioStatus": {
- "type": "integer",
- "enum": [
- 0,
- 1,
- 2,
- 3,
- 4
- ],
- "x-enum-comments": {
- "AudioStatusFailed": "处理失败",
- "AudioStatusFinish": "处理完成",
- "AudioStatusProcessing": "处理中",
- "AudioStatusUploadOk": "上传成功 待处理",
- "AudioStatusUploading": "上传中"
- },
- "x-enum-varnames": [
- "AudioStatusUploading",
- "AudioStatusUploadOk",
- "AudioStatusProcessing",
- "AudioStatusFinish",
- "AudioStatusFailed"
- ]
- },
- "constvar.BoolType": {
- "type": "integer",
- "enum": [
- 1,
- 2
- ],
- "x-enum-comments": {
- "BoolTypeFalse": "false",
- "BoolTypeTrue": "true"
- },
- "x-enum-varnames": [
- "BoolTypeTrue",
- "BoolTypeFalse"
- ]
- },
- "gorm.DeletedAt": {
- "type": "object",
- "properties": {
- "time": {
- "type": "string"
- },
- "valid": {
- "description": "Valid is true if Time is not NULL",
- "type": "boolean"
- }
- }
- },
- "models.Audio": {
- "type": "object",
- "properties": {
- "audioStatus": {
- "description": "音频状态",
- "allOf": [
- {
- "$ref": "#/definitions/constvar.AudioStatus"
- }
- ]
- },
- "createdAt": {
- "type": "string"
- },
- "deletedAt": {
- "$ref": "#/definitions/gorm.DeletedAt"
- },
- "driverNumber": {
- "description": "司机号",
- "type": "string"
- },
- "id": {
- "type": "integer"
- },
- "isFollowed": {
- "description": "是否关注 1关注 2未关注",
- "allOf": [
- {
- "$ref": "#/definitions/constvar.BoolType"
- }
- ]
- },
- "locomotiveNumber": {
- "description": "机车号",
- "type": "string"
- },
- "name": {
- "description": "音频名称",
- "type": "string"
- },
- "occurrenceTime": {
- "type": "string"
- },
- "size": {
- "description": "音频大小",
- "type": "integer"
- },
- "stationNumber": {
- "description": "车站号",
- "type": "string"
- },
- "trainNumber": {
- "description": "车次",
- "type": "string"
- },
- "updatedAt": {
- "type": "string"
- }
- }
- },
- "request.ProcessAudio": {
- "type": "object",
- "required": [
- "id"
- ],
- "properties": {
- "id": {
- "type": "integer"
- }
- }
- },
- "util.Response": {
- "type": "object",
- "properties": {
- "code": {
- "type": "integer"
- },
- "data": {},
- "msg": {
- "type": "string"
- }
- }
- },
- "util.ResponseList": {
- "type": "object",
- "properties": {
- "code": {
- "type": "integer"
- },
- "data": {},
- "msg": {
- "type": "string"
- },
- "page": {
- "type": "integer"
- },
- "pageSize": {
- "type": "integer"
- },
- "total": {
- "type": "integer"
- }
- }
- }
- }
- }`
- // SwaggerInfo holds exported Swagger Info so clients can modify it
- var SwaggerInfo = &swag.Spec{
- Version: "",
- Host: "",
- BasePath: "",
- Schemes: []string{},
- Title: "",
- Description: "",
- InfoInstanceName: "swagger",
- SwaggerTemplate: docTemplate,
- LeftDelim: "{{",
- RightDelim: "}}",
- }
- func init() {
- swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
- }
|