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 | 351 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 342 insertions(+), 9 deletions(-)
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 53b00ca..dc3c614 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -30,6 +30,20 @@
x-enum-varnames:
- BoolTypeTrue
- BoolTypeFalse
+ constvar.Class:
+ enum:
+ - 1
+ - 2
+ - 3
+ type: integer
+ x-enum-comments:
+ ClassLocomotive: 鏈鸿溅
+ ClassStation: 杞︾珯
+ ClassTrain: 杞︽
+ x-enum-varnames:
+ - ClassLocomotive
+ - ClassTrain
+ - ClassStation
gorm.DeletedAt:
properties:
time:
@@ -44,6 +58,9 @@
allOf:
- $ref: '#/definitions/constvar.AudioStatus'
description: 闊抽鐘舵��
+ audioText:
+ description: 瑙f瀽鍑虹殑鏂囨湰
+ type: string
createdAt:
type: string
deletedAt:
@@ -57,6 +74,9 @@
allOf:
- $ref: '#/definitions/constvar.BoolType'
description: 鏄惁鍏虫敞 1鍏虫敞 2鏈叧娉�
+ kilometerMarker:
+ description: 鍏噷鏍�
+ type: string
locomotiveNumber:
description: 鏈鸿溅鍙�
type: string
@@ -65,25 +85,54 @@
type: string
occurrenceTime:
type: string
+ routeNumber:
+ description: 浜よ矾鍙�
+ type: string
score:
description: 缃俊搴�
type: number
size:
description: 闊抽澶у皬
type: integer
- stationNumber:
- description: 杞︾珯鍙�
+ station:
+ description: 杞︾珯
type: string
trainNumber:
description: 杞︽
type: string
updatedAt:
type: string
+ words:
+ description: 鍖归厤鍒扮殑鏂囧瓧鏁扮粍
+ items:
+ type: string
+ type: array
type: object
- models.Text:
+ models.TrainInfo:
+ properties:
+ class:
+ allOf:
+ - $ref: '#/definitions/constvar.Class'
+ description: 鍒嗙被 1 鏈鸿溅 2杞︽ 3 杞︾珯
+ createdAt:
+ type: string
+ deletedAt:
+ $ref: '#/definitions/gorm.DeletedAt'
+ id:
+ type: integer
+ name:
+ description: 鍚嶇О
+ type: string
+ parentID:
+ description: 涓婄骇id
+ type: integer
+ updatedAt:
+ type: string
+ type: object
+ models.Word:
properties:
content:
- description: 闊抽鍚嶇О
+ description: 鏂囧瓧
type: string
createdAt:
type: string
@@ -102,6 +151,8 @@
content:
description: 闊抽鍚嶇О
type: string
+ id:
+ type: integer
locomotiveNumber:
description: 鏈鸿溅鍙�
type: string
@@ -127,6 +178,8 @@
type: object
request.ProcessAudio:
properties:
+ fileType:
+ type: integer
id:
type: integer
required:
@@ -135,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:
@@ -219,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:
@@ -243,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
@@ -270,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
@@ -291,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:
@@ -310,14 +553,66 @@
summary: 澶勭悊闊抽
tags:
- 闊抽
+ /api-sa/v1/audio/trainInfoList:
+ get:
+ parameters:
+ - description: 淇℃伅鍒嗙被 1鏈鸿溅2杞︽3杞︾珯
+ enum:
+ - 1
+ - 2
+ - 3
+ in: query
+ name: class
+ type: integer
+ x-enum-comments:
+ ClassLocomotive: 鏈鸿溅
+ ClassStation: 杞︾珯
+ ClassTrain: 杞︽
+ x-enum-varnames:
+ - ClassLocomotive
+ - ClassTrain
+ - ClassStation
+ - description: 椤电爜
+ in: query
+ name: page
+ type: integer
+ - description: 姣忛〉澶у皬
+ in: query
+ name: pageSize
+ type: integer
+ - description: 涓婄骇id
+ in: query
+ name: parentID
+ type: integer
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: 鎴愬姛
+ schema:
+ allOf:
+ - $ref: '#/definitions/util.ResponseList'
+ - properties:
+ data:
+ items:
+ $ref: '#/definitions/models.TrainInfo'
+ type: array
+ type: object
+ summary: 鑾峰彇鐏溅淇℃伅
+ tags:
+ - 闊抽
/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:
@@ -347,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:
@@ -373,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