From 4e7484faafec2663eb75addac9f857be06a1be06 Mon Sep 17 00:00:00 2001
From: yinbangzhong <zhongbangyin@126.com>
Date: 星期一, 22 七月 2024 19:35:45 +0800
Subject: [PATCH] export
---
docs/swagger.yaml | 296 ++++++++++++++++++++++++++++++++++++++++++++++++++++++----
1 files changed, 273 insertions(+), 23 deletions(-)
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index fc611f7..dc3c614 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -58,6 +58,9 @@
allOf:
- $ref: '#/definitions/constvar.AudioStatus'
description: 闊抽鐘舵��
+ audioText:
+ description: 瑙f瀽鍑虹殑鏂囨湰
+ type: string
createdAt:
type: string
deletedAt:
@@ -71,6 +74,9 @@
allOf:
- $ref: '#/definitions/constvar.BoolType'
description: 鏄惁鍏虫敞 1鍏虫敞 2鏈叧娉�
+ kilometerMarker:
+ description: 鍏噷鏍�
+ type: string
locomotiveNumber:
description: 鏈鸿溅鍙�
type: string
@@ -78,6 +84,9 @@
description: 闊抽鍚嶇О
type: string
occurrenceTime:
+ type: string
+ routeNumber:
+ description: 浜よ矾鍙�
type: string
score:
description: 缃俊搴�
@@ -93,30 +102,18 @@
type: string
updatedAt:
type: string
- type: object
- models.Text:
- properties:
- content:
- description: 闊抽鍚嶇О
- type: string
- createdAt:
- type: string
- deletedAt:
- $ref: '#/definitions/gorm.DeletedAt'
- id:
- type: integer
- locomotiveNumber:
- description: 鏈鸿溅鍙�
- type: string
- updatedAt:
- type: string
+ words:
+ description: 鍖归厤鍒扮殑鏂囧瓧鏁扮粍
+ items:
+ type: string
+ type: array
type: object
models.TrainInfo:
properties:
class:
allOf:
- $ref: '#/definitions/constvar.Class'
- description: 鍒嗙被
+ description: 鍒嗙被 1 鏈鸿溅 2杞︽ 3 杞︾珯
createdAt:
type: string
deletedAt:
@@ -132,11 +129,30 @@
updatedAt:
type: string
type: object
+ models.Word:
+ properties:
+ content:
+ description: 鏂囧瓧
+ type: string
+ createdAt:
+ type: string
+ deletedAt:
+ $ref: '#/definitions/gorm.DeletedAt'
+ id:
+ type: integer
+ locomotiveNumber:
+ description: 鏈鸿溅鍙�
+ type: string
+ updatedAt:
+ type: string
+ type: object
request.AddTextReq:
properties:
content:
description: 闊抽鍚嶇О
type: string
+ id:
+ type: integer
locomotiveNumber:
description: 鏈鸿溅鍙�
type: string
@@ -162,6 +178,8 @@
type: object
request.ProcessAudio:
properties:
+ fileType:
+ type: integer
id:
type: integer
required:
@@ -170,7 +188,14 @@
response.FollowResp:
properties:
followStatus:
- $ref: '#/definitions/constvar.BoolType'
+ allOf:
+ - $ref: '#/definitions/constvar.BoolType'
+ description: 1 宸插叧娉� 2鏈叧娉�
+ type: object
+ response.PreLoadPathResp:
+ properties:
+ preLoadPath:
+ type: string
type: object
util.Response:
properties:
@@ -254,6 +279,113 @@
summary: 鍒犻櫎闊抽
tags:
- 闊抽
+ /api-sa/v1/audio/download:
+ get:
+ parameters:
+ - in: query
+ name: fileType
+ type: integer
+ - in: query
+ name: id
+ required: true
+ type: integer
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: 鎴愬姛
+ schema:
+ allOf:
+ - $ref: '#/definitions/util.Response'
+ - properties:
+ data:
+ $ref: '#/definitions/models.Audio'
+ type: object
+ summary: 闊抽涓嬭浇
+ tags:
+ - 闊抽
+ /api-sa/v1/audio/export:
+ get:
+ parameters:
+ - description: 寮�濮嬫椂闂�
+ in: query
+ name: beginTime
+ type: string
+ - description: 鍙告満鍙�
+ in: query
+ name: driverNumber
+ type: string
+ - description: 缁撴潫鏃堕棿
+ in: query
+ name: endTime
+ type: string
+ - description: 鏄惁鍏虫敞 1鍏虫敞 2鏈叧娉�
+ enum:
+ - 1
+ - 2
+ in: query
+ name: isFollowed
+ type: integer
+ x-enum-comments:
+ BoolTypeFalse: "false"
+ BoolTypeTrue: "true"
+ x-enum-varnames:
+ - BoolTypeTrue
+ - BoolTypeFalse
+ - description: 鍏抽敭瀛�
+ in: query
+ name: keyword
+ type: string
+ - description: 鏈鸿溅鍙�
+ in: query
+ name: locomotiveNumber
+ type: string
+ - description: 椤电爜
+ in: query
+ name: page
+ type: integer
+ - description: 姣忛〉澶у皬
+ in: query
+ name: pageSize
+ type: integer
+ - description: 杞︾珯鍙�
+ in: query
+ name: stationNumber
+ type: string
+ - collectionFormat: csv
+ description: 闊抽鐘舵�佹暟缁�
+ in: query
+ items:
+ enum:
+ - 0
+ - 1
+ - 2
+ - 3
+ - 4
+ type: integer
+ name: statusList
+ type: array
+ - description: 杞︽
+ in: query
+ name: trainNumber
+ type: string
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: 鎴愬姛
+ schema:
+ allOf:
+ - $ref: '#/definitions/util.ResponseList'
+ - properties:
+ data:
+ items:
+ $ref: '#/definitions/models.Audio'
+ type: array
+ type: object
+ summary: 闊抽妫�绱㈢粨鏋滃埌澶�
+ tags:
+ - 闊抽妫�绱㈢粨鏋滃埌澶�
/api-sa/v1/audio/follow:
post:
parameters:
@@ -278,13 +410,59 @@
summary: 鍏虫敞/鍙栨秷鍏虫敞
tags:
- 闊抽
+ /api-sa/v1/audio/info:
+ get:
+ parameters:
+ - in: query
+ name: fileType
+ type: integer
+ - in: query
+ name: id
+ required: true
+ type: integer
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: 鎴愬姛
+ schema:
+ allOf:
+ - $ref: '#/definitions/util.Response'
+ - properties:
+ data:
+ $ref: '#/definitions/models.Audio'
+ type: object
+ summary: 闊抽璇︽儏锛屽惈瑙f瀽缁撴灉
+ tags:
+ - 闊抽
/api-sa/v1/audio/list:
get:
parameters:
+ - description: 寮�濮嬫椂闂�
+ in: query
+ name: beginTime
+ type: string
- description: 鍙告満鍙�
in: query
name: driverNumber
type: string
+ - description: 缁撴潫鏃堕棿
+ in: query
+ name: endTime
+ type: string
+ - description: 鏄惁鍏虫敞 1鍏虫敞 2鏈叧娉�
+ enum:
+ - 1
+ - 2
+ in: query
+ name: isFollowed
+ type: integer
+ x-enum-comments:
+ BoolTypeFalse: "false"
+ BoolTypeTrue: "true"
+ x-enum-varnames:
+ - BoolTypeTrue
+ - BoolTypeFalse
- description: 鍏抽敭瀛�
in: query
name: keyword
@@ -305,6 +483,19 @@
in: query
name: stationNumber
type: string
+ - collectionFormat: csv
+ description: 闊抽鐘舵�佹暟缁�
+ in: query
+ items:
+ enum:
+ - 0
+ - 1
+ - 2
+ - 3
+ - 4
+ type: integer
+ name: statusList
+ type: array
- description: 杞︽
in: query
name: trainNumber
@@ -326,6 +517,23 @@
summary: 闊抽鍒嗘瀽妫�绱�
tags:
- 闊抽
+ /api-sa/v1/audio/preLoadPath:
+ get:
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: 鎴愬姛
+ schema:
+ allOf:
+ - $ref: '#/definitions/util.Response'
+ - properties:
+ data:
+ $ref: '#/definitions/response.PreLoadPathResp'
+ type: object
+ summary: 闊抽鑷姩鍔犺浇璺緞
+ tags:
+ - 闊抽鑷姩鍔犺浇璺緞
/api-sa/v1/audio/process:
post:
parameters:
@@ -395,12 +603,16 @@
- 闊抽
/api-sa/v1/audio/upload:
post:
+ consumes:
+ - multipart/form-data
parameters:
- - description: 闊抽鏂囦欢
+ - collectionFormat: csv
+ description: 澶氭枃浠朵笂浼�
in: formData
+ items:
+ type: file
name: file
- required: true
- type: file
+ type: array
produces:
- application/json
responses:
@@ -430,6 +642,25 @@
summary: 鏂板鏂囧瓧
tags:
- 鏂囧瓧搴�
+ /api-sa/v1/text/delete:
+ delete:
+ parameters:
+ - description: 鍙傛暟
+ in: body
+ name: object
+ required: true
+ schema:
+ $ref: '#/definitions/request.AddTextReq'
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: 鎴愬姛
+ schema:
+ $ref: '#/definitions/util.Response'
+ summary: 淇敼鏂囧瓧
+ tags:
+ - 鏂囧瓧搴�
/api-sa/v1/text/list:
get:
parameters:
@@ -456,10 +687,29 @@
- properties:
data:
items:
- $ref: '#/definitions/models.Text'
+ $ref: '#/definitions/models.Word'
type: array
type: object
summary: 鏂囧瓧搴撳垪琛�
tags:
- 鏂囧瓧搴�
+ /api-sa/v1/text/update:
+ post:
+ parameters:
+ - description: 鍙傛暟
+ in: body
+ name: object
+ required: true
+ schema:
+ $ref: '#/definitions/request.AddTextReq'
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: 鎴愬姛
+ schema:
+ $ref: '#/definitions/util.Response'
+ summary: 淇敼鏂囧瓧
+ tags:
+ - 鏂囧瓧搴�
swagger: "2.0"
--
Gitblit v1.8.0