3744 lines
87 KiB
YAML
3744 lines
87 KiB
YAML
basePath: /
|
||
definitions:
|
||
dto.AddTrainReqDto:
|
||
properties:
|
||
devicePort:
|
||
description: 道岔端口
|
||
type: string
|
||
headLinkId:
|
||
description: 车头所在link的索引
|
||
type: string
|
||
headLinkOffset:
|
||
description: 车头所在link内的偏移量,单位为mm
|
||
type: integer
|
||
headOffset:
|
||
description: 车头所在link内的偏移量,单位为mm
|
||
type: integer
|
||
id:
|
||
description: 物理区段、道岔ID
|
||
type: string
|
||
mapId:
|
||
description: 场景ID
|
||
type: integer
|
||
simulationId:
|
||
description: 仿真id
|
||
type: string
|
||
trainLength:
|
||
description: 列车长度
|
||
type: integer
|
||
up:
|
||
description: 列车方向,true-上行,false-下行
|
||
type: boolean
|
||
wheelDiameter:
|
||
description: 列车轮径
|
||
type: integer
|
||
type: object
|
||
dto.AddTrainRspDto:
|
||
properties:
|
||
mapId:
|
||
description: 场景ID
|
||
type: integer
|
||
simulationId:
|
||
description: 仿真id
|
||
type: string
|
||
trainId:
|
||
description: 新添加的列车的索引
|
||
type: string
|
||
type: object
|
||
dto.AuthRoleDetailRspDto:
|
||
properties:
|
||
id:
|
||
type: integer
|
||
name:
|
||
type: string
|
||
paths:
|
||
items:
|
||
$ref: '#/definitions/model.AuthAPIPath'
|
||
type: array
|
||
type: object
|
||
dto.AuthRoleRspDto:
|
||
properties:
|
||
id:
|
||
type: integer
|
||
name:
|
||
type: string
|
||
type: object
|
||
dto.AxleSectionOperationReqDto:
|
||
properties:
|
||
id:
|
||
type: string
|
||
mapId:
|
||
type: integer
|
||
operation:
|
||
$ref: '#/definitions/request_proto.Section_Operation'
|
||
simulationId:
|
||
type: string
|
||
trainIn:
|
||
type: boolean
|
||
trainOut:
|
||
type: boolean
|
||
required:
|
||
- id
|
||
- mapId
|
||
- simulationId
|
||
type: object
|
||
dto.CheckMapDataReqDto:
|
||
properties:
|
||
data:
|
||
items:
|
||
type: integer
|
||
type: array
|
||
required:
|
||
- data
|
||
type: object
|
||
dto.CheckMapDataRspDto:
|
||
properties:
|
||
errors:
|
||
items:
|
||
type: string
|
||
type: array
|
||
success:
|
||
type: boolean
|
||
type: object
|
||
dto.ErrorDto:
|
||
properties:
|
||
code:
|
||
type: integer
|
||
detail:
|
||
type: string
|
||
title:
|
||
type: string
|
||
type: object
|
||
dto.EsbButtonOperationReqDto:
|
||
properties:
|
||
down:
|
||
type: boolean
|
||
id:
|
||
type: string
|
||
mapId:
|
||
type: integer
|
||
simulationId:
|
||
type: string
|
||
required:
|
||
- id
|
||
- mapId
|
||
- simulationId
|
||
type: object
|
||
dto.IBPButtonOperationReqDto:
|
||
properties:
|
||
buttonCode:
|
||
type: string
|
||
down:
|
||
type: boolean
|
||
mapId:
|
||
type: integer
|
||
simulationId:
|
||
type: string
|
||
stationId:
|
||
type: string
|
||
required:
|
||
- buttonCode
|
||
- mapId
|
||
- simulationId
|
||
- stationId
|
||
type: object
|
||
dto.KeyOperationReqDto:
|
||
properties:
|
||
gear:
|
||
type: integer
|
||
keyCode:
|
||
type: string
|
||
mapId:
|
||
type: integer
|
||
simulationId:
|
||
type: string
|
||
stationId:
|
||
type: string
|
||
required:
|
||
- mapId
|
||
- simulationId
|
||
- stationId
|
||
type: object
|
||
dto.LoginDto:
|
||
properties:
|
||
account:
|
||
description: 账号
|
||
example: "17791995809"
|
||
type: string
|
||
password:
|
||
description: 加密密码
|
||
example: 95129dbaace576e46f41a629e6f35d5c
|
||
type: string
|
||
required:
|
||
- account
|
||
- password
|
||
type: object
|
||
dto.OrderItem:
|
||
properties:
|
||
asc:
|
||
type: boolean
|
||
column:
|
||
type: string
|
||
type: object
|
||
dto.PageDto:
|
||
properties:
|
||
orders:
|
||
description: 排序项
|
||
items:
|
||
$ref: '#/definitions/dto.OrderItem'
|
||
type: array
|
||
page:
|
||
description: 页码
|
||
example: 1
|
||
type: integer
|
||
records: {}
|
||
size:
|
||
description: 页面行数
|
||
example: 10
|
||
type: integer
|
||
total:
|
||
type: integer
|
||
required:
|
||
- page
|
||
- size
|
||
type: object
|
||
dto.ProjectLinkRspDto:
|
||
properties:
|
||
code:
|
||
type: string
|
||
mapInfoLinks:
|
||
items:
|
||
$ref: '#/definitions/dto.PublishedGiLinkDto'
|
||
type: array
|
||
name:
|
||
type: string
|
||
pid:
|
||
type: integer
|
||
type: object
|
||
dto.ProjectRunConfigDto:
|
||
properties:
|
||
config:
|
||
type: string
|
||
createdAt:
|
||
type: string
|
||
description:
|
||
type: string
|
||
id:
|
||
type: integer
|
||
name:
|
||
type: string
|
||
updateAt:
|
||
type: string
|
||
type: object
|
||
dto.PslOperationReqDto:
|
||
properties:
|
||
buttonCode:
|
||
type: string
|
||
down:
|
||
type: boolean
|
||
gateBoxId:
|
||
type: string
|
||
mapId:
|
||
type: integer
|
||
simulationId:
|
||
type: string
|
||
required:
|
||
- buttonCode
|
||
- mapId
|
||
- simulationId
|
||
type: object
|
||
dto.PublishHistoryDto:
|
||
properties:
|
||
id:
|
||
type: integer
|
||
note:
|
||
type: string
|
||
publishAt:
|
||
type: string
|
||
publisher:
|
||
type: string
|
||
version:
|
||
type: integer
|
||
type: object
|
||
dto.PublishedDto:
|
||
properties:
|
||
category:
|
||
type: string
|
||
id:
|
||
type: integer
|
||
name:
|
||
type: string
|
||
note:
|
||
type: string
|
||
proto:
|
||
items:
|
||
type: integer
|
||
type: array
|
||
publishAt:
|
||
type: string
|
||
type:
|
||
type: integer
|
||
userID:
|
||
type: integer
|
||
type: object
|
||
dto.PublishedGiLinkDto:
|
||
properties:
|
||
category:
|
||
type: string
|
||
id:
|
||
type: integer
|
||
name:
|
||
type: string
|
||
type:
|
||
type: integer
|
||
type: object
|
||
dto.RegisterUser:
|
||
properties:
|
||
id:
|
||
type: integer
|
||
mobile:
|
||
description: 手机号
|
||
type: string
|
||
name:
|
||
description: 名字
|
||
type: string
|
||
password:
|
||
description: 密码
|
||
type: string
|
||
register_time:
|
||
description: 注册时间
|
||
type: string
|
||
type: object
|
||
dto.RelayOperationReqDto:
|
||
properties:
|
||
id:
|
||
type: string
|
||
mapId:
|
||
type: integer
|
||
simulationId:
|
||
type: string
|
||
td:
|
||
type: boolean
|
||
required:
|
||
- id
|
||
- mapId
|
||
- simulationId
|
||
type: object
|
||
dto.RemoveTrainDto:
|
||
properties:
|
||
mapId:
|
||
description: 场景ID
|
||
type: integer
|
||
simulationId:
|
||
description: 仿真id
|
||
type: string
|
||
trainId:
|
||
description: 新添加的列车的索引
|
||
type: string
|
||
type: object
|
||
dto.SignalOperationReqDto:
|
||
properties:
|
||
aspect:
|
||
allOf:
|
||
- $ref: '#/definitions/state.Signal_Aspect'
|
||
description: 当操作为Operation.Display时有效,表示显示的信号
|
||
id:
|
||
type: string
|
||
mapId:
|
||
type: integer
|
||
operation:
|
||
allOf:
|
||
- $ref: '#/definitions/request_proto.Signal_Operation'
|
||
description: 信号机操作类型
|
||
simulationId:
|
||
type: string
|
||
required:
|
||
- aspect
|
||
- id
|
||
- mapId
|
||
- operation
|
||
- simulationId
|
||
type: object
|
||
dto.SimulationCreateReqDto:
|
||
properties:
|
||
mapId:
|
||
description: 地图id
|
||
type: integer
|
||
projectId:
|
||
description: 项目id
|
||
type: integer
|
||
runConfigId:
|
||
description: 运行环境ID
|
||
type: integer
|
||
type: object
|
||
dto.SimulationCreateRspDto:
|
||
properties:
|
||
mapId:
|
||
description: 地图id
|
||
type: integer
|
||
mapIds:
|
||
description: 地图列表
|
||
items:
|
||
type: integer
|
||
type: array
|
||
projectId:
|
||
description: 项目ID
|
||
type: integer
|
||
runConfigId:
|
||
description: 运行环境ID
|
||
type: integer
|
||
simulationId:
|
||
description: 仿真id
|
||
type: string
|
||
type: object
|
||
dto.SimulationInfoRspDto:
|
||
properties:
|
||
mapId:
|
||
type: integer
|
||
mapIds:
|
||
items:
|
||
type: integer
|
||
type: array
|
||
projectId:
|
||
type: integer
|
||
runConfigId:
|
||
description: 运行环境ID
|
||
type: integer
|
||
simulationId:
|
||
type: string
|
||
type: object
|
||
dto.TokenRespDto:
|
||
properties:
|
||
code:
|
||
type: integer
|
||
expire:
|
||
type: string
|
||
token:
|
||
type: string
|
||
type: object
|
||
dto.TrainInfoDto:
|
||
properties:
|
||
carriage_length:
|
||
type: integer
|
||
description:
|
||
type: string
|
||
id:
|
||
type: integer
|
||
max_diameter:
|
||
type: integer
|
||
min_diameter:
|
||
type: integer
|
||
name:
|
||
type: string
|
||
total_length:
|
||
type: integer
|
||
train_model:
|
||
type: integer
|
||
train_sets:
|
||
type: string
|
||
type: object
|
||
dto.UpdateTrainReqDto:
|
||
properties:
|
||
id:
|
||
description: 列车Id
|
||
type: string
|
||
simulationId:
|
||
description: 仿真id
|
||
type: string
|
||
trainLength:
|
||
description: 列车长度
|
||
type: integer
|
||
wheelDiameter:
|
||
description: 列车轮径
|
||
type: integer
|
||
type: object
|
||
dto.UserRspDto:
|
||
properties:
|
||
id:
|
||
type: integer
|
||
mobile:
|
||
description: 手机号
|
||
type: string
|
||
name:
|
||
description: 名字
|
||
type: string
|
||
paths:
|
||
description: 权限路径
|
||
items:
|
||
$ref: '#/definitions/model.AuthAPIPath'
|
||
type: array
|
||
register_time:
|
||
description: 注册时间
|
||
type: string
|
||
roles:
|
||
description: 用户角色
|
||
items:
|
||
$ref: '#/definitions/dto.AuthRoleRspDto'
|
||
type: array
|
||
type: object
|
||
graphicData.PictureType:
|
||
enum:
|
||
- 0
|
||
- 1
|
||
- 2
|
||
- 3
|
||
- 4
|
||
type: integer
|
||
x-enum-varnames:
|
||
- PictureType_StationLayout
|
||
- PictureType_Psl
|
||
- PictureType_RelayCabinetLayout
|
||
- PictureType_IBP
|
||
- PictureType_TrainData
|
||
model.AuthAPIPath:
|
||
properties:
|
||
id:
|
||
description: 主键
|
||
type: integer
|
||
method:
|
||
description: 请求方式
|
||
type: string
|
||
name:
|
||
description: 功能名称
|
||
type: string
|
||
path:
|
||
description: 请求路径
|
||
type: string
|
||
type: object
|
||
model.Category:
|
||
properties:
|
||
code:
|
||
description: 编码
|
||
type: string
|
||
config:
|
||
description: 厂家配置
|
||
type: string
|
||
created_at:
|
||
description: 创建时间
|
||
type: string
|
||
id:
|
||
description: id
|
||
type: integer
|
||
name:
|
||
description: 厂家名
|
||
type: string
|
||
update_at:
|
||
description: 修改时间
|
||
type: string
|
||
type: object
|
||
model.Drafting:
|
||
properties:
|
||
category:
|
||
description: 厂家编码
|
||
type: string
|
||
created_at:
|
||
description: 创建时间
|
||
type: string
|
||
creator_id:
|
||
description: 创建人id
|
||
type: integer
|
||
id:
|
||
description: id
|
||
type: integer
|
||
name:
|
||
description: 草稿图名称
|
||
type: string
|
||
proto:
|
||
description: 绘图数据
|
||
items:
|
||
type: integer
|
||
type: array
|
||
type:
|
||
description: 数据类型
|
||
type: integer
|
||
update_at:
|
||
description: 修改时间
|
||
type: string
|
||
type: object
|
||
model.Project:
|
||
properties:
|
||
code:
|
||
description: 项目编码
|
||
type: string
|
||
created_at:
|
||
description: 创建时间
|
||
type: string
|
||
id:
|
||
description: 主键
|
||
type: integer
|
||
name:
|
||
description: 名称
|
||
type: string
|
||
update_at:
|
||
description: 更新时间
|
||
type: string
|
||
type: object
|
||
model.Published:
|
||
properties:
|
||
category:
|
||
description: 厂家信息
|
||
type: string
|
||
code:
|
||
description: 发布名称
|
||
type: string
|
||
data_id:
|
||
description: 版本Id
|
||
type: integer
|
||
id:
|
||
description: id
|
||
type: integer
|
||
status:
|
||
description: 显示状态
|
||
type: integer
|
||
type:
|
||
description: 数据类型
|
||
type: integer
|
||
type: object
|
||
request_proto.Psd_Operation:
|
||
enum:
|
||
- 0
|
||
- 1
|
||
- 2
|
||
- 3
|
||
- 4
|
||
- 5
|
||
- 6
|
||
- 7
|
||
- 8
|
||
- 9
|
||
- 10
|
||
- 11
|
||
- 12
|
||
- 13
|
||
- 14
|
||
- 15
|
||
- 16
|
||
- 17
|
||
- 18
|
||
type: integer
|
||
x-enum-comments:
|
||
Psd_AsdCannotClose: 滑动门无法关闭
|
||
Psd_AsdCannotOpen: 滑动门无法开门
|
||
Psd_CancelAsdCannotClose: 取消滑动门无法关闭
|
||
Psd_CancelAsdCannotOpen: 取消滑动门无法开门
|
||
Psd_CancelForce: 取消强制
|
||
Psd_CancelGm: 取消关门
|
||
Psd_CancelKm4: 取消四编组开门
|
||
Psd_CancelKm8: 取消八编组开门
|
||
Psd_CancelQDTC: 取消启动探测
|
||
Psd_CancelTZTC: 取消停止探测
|
||
Psd_ForceGm: 强制关门
|
||
Psd_ForceKm4: 强制四编组开门
|
||
Psd_ForceKm8: 强制八编组开门
|
||
Psd_Gm: 关门
|
||
Psd_Km4: 四编组开门
|
||
Psd_Km8: 八编组开门
|
||
Psd_QDTC: 启动探测
|
||
Psd_TZTC: 停止探测
|
||
x-enum-varnames:
|
||
- Psd_Undefined
|
||
- Psd_Km4
|
||
- Psd_CancelKm4
|
||
- Psd_Km8
|
||
- Psd_CancelKm8
|
||
- Psd_Gm
|
||
- Psd_CancelGm
|
||
- Psd_ForceKm4
|
||
- Psd_ForceKm8
|
||
- Psd_ForceGm
|
||
- Psd_CancelForce
|
||
- Psd_AsdCannotOpen
|
||
- Psd_CancelAsdCannotOpen
|
||
- Psd_AsdCannotClose
|
||
- Psd_CancelAsdCannotClose
|
||
- Psd_QDTC
|
||
- Psd_CancelQDTC
|
||
- Psd_TZTC
|
||
- Psd_CancelTZTC
|
||
request_proto.PsdOperationReq:
|
||
properties:
|
||
asdCodes:
|
||
description: 无法关闭/无法开启故障涉及的滑动门的编号
|
||
items:
|
||
type: integer
|
||
type: array
|
||
deviceId:
|
||
description: 设备id
|
||
type: string
|
||
mapId:
|
||
description: 图id
|
||
type: integer
|
||
operation:
|
||
allOf:
|
||
- $ref: '#/definitions/request_proto.Psd_Operation'
|
||
description: 操作
|
||
simulationId:
|
||
description: 仿真id
|
||
type: string
|
||
type: object
|
||
request_proto.Section_Operation:
|
||
enum:
|
||
- 0
|
||
- 1
|
||
- 2
|
||
- 3
|
||
- 4
|
||
- 5
|
||
type: integer
|
||
x-enum-comments:
|
||
Section_CancelDrst: 取消计轴直接复位
|
||
Section_CancelFaultOcc: 取消故障占用
|
||
Section_CancelPdrst: 取消计轴预复位
|
||
Section_SetDrst: 设置计轴直接复位
|
||
Section_SetFaultOcc: 设置故障占用
|
||
Section_SetPdrst: 设置计轴预复位
|
||
x-enum-varnames:
|
||
- Section_SetDrst
|
||
- Section_CancelDrst
|
||
- Section_SetPdrst
|
||
- Section_CancelPdrst
|
||
- Section_SetFaultOcc
|
||
- Section_CancelFaultOcc
|
||
request_proto.Signal_Operation:
|
||
enum:
|
||
- 0
|
||
- 1
|
||
- 2
|
||
- 3
|
||
- 4
|
||
- 5
|
||
- 6
|
||
- 7
|
||
- 8
|
||
- 9
|
||
- 10
|
||
- 11
|
||
type: integer
|
||
x-enum-comments:
|
||
Signal_Display: 显示操作,如设置绿色、设置红黄色
|
||
Signal_LightACancelDs: 取消蓝灯断丝故障
|
||
Signal_LightAFaultDs: 设置蓝灯断丝故障
|
||
Signal_LightBCancelDs: 取消白灯断丝故障
|
||
Signal_LightBFaultDs: 设置白灯断丝故障
|
||
Signal_LightHCancelDs: 取消红灯断丝故障
|
||
Signal_LightHFaultDs: 设置红灯断丝故障
|
||
Signal_LightLCancelDs: 取消绿灯断丝故障
|
||
Signal_LightLFaultDs: 设置绿灯断丝故障
|
||
Signal_LightUCancelDs: 取消黄灯断丝故障
|
||
Signal_LightUFaultDs: 设置黄灯断丝故障
|
||
Signal_Undefined: 未定义
|
||
x-enum-varnames:
|
||
- Signal_Undefined
|
||
- Signal_Display
|
||
- Signal_LightHFaultDs
|
||
- Signal_LightUFaultDs
|
||
- Signal_LightLFaultDs
|
||
- Signal_LightAFaultDs
|
||
- Signal_LightBFaultDs
|
||
- Signal_LightHCancelDs
|
||
- Signal_LightUCancelDs
|
||
- Signal_LightLCancelDs
|
||
- Signal_LightACancelDs
|
||
- Signal_LightBCancelDs
|
||
request_proto.Turnout_Operation:
|
||
enum:
|
||
- 0
|
||
- 1
|
||
- 2
|
||
- 3
|
||
- 4
|
||
- 5
|
||
- 6
|
||
- 7
|
||
- 8
|
||
- 9
|
||
- 10
|
||
- 11
|
||
type: integer
|
||
x-enum-comments:
|
||
Turnout_CancelDC: 取消定操
|
||
Turnout_CancelFC: 取消反操
|
||
Turnout_CancelForce: 取消强制
|
||
Turnout_CancelJC: 取消挤岔故障
|
||
Turnout_CancelSB: 取消失表故障
|
||
Turnout_DC: 定操
|
||
Turnout_FC: 反操
|
||
Turnout_ForceDw: 强制定位
|
||
Turnout_ForceFw: 强制反位
|
||
Turnout_SetJC: 设置挤岔故障
|
||
Turnout_SetSB: 设置失表故障
|
||
Turnout_Undefined: 未定义
|
||
x-enum-varnames:
|
||
- Turnout_Undefined
|
||
- Turnout_DC
|
||
- Turnout_CancelDC
|
||
- Turnout_FC
|
||
- Turnout_CancelFC
|
||
- Turnout_SetSB
|
||
- Turnout_CancelSB
|
||
- Turnout_SetJC
|
||
- Turnout_CancelJC
|
||
- Turnout_ForceDw
|
||
- Turnout_ForceFw
|
||
- Turnout_CancelForce
|
||
request_proto.TurnoutOperationReq:
|
||
properties:
|
||
deviceId:
|
||
description: 设备id
|
||
type: string
|
||
mapId:
|
||
description: 图id
|
||
type: integer
|
||
operation:
|
||
allOf:
|
||
- $ref: '#/definitions/request_proto.Turnout_Operation'
|
||
description: 道岔操作
|
||
simulationId:
|
||
description: 仿真id
|
||
type: string
|
||
type: object
|
||
state.Signal_Aspect:
|
||
enum:
|
||
- 0
|
||
- 1
|
||
- 2
|
||
- 3
|
||
- 4
|
||
- 5
|
||
- 6
|
||
- 7
|
||
type: integer
|
||
x-enum-varnames:
|
||
- Signal_Non
|
||
- Signal_OFF
|
||
- Signal_L
|
||
- Signal_H
|
||
- Signal_U
|
||
- Signal_HU
|
||
- Signal_B
|
||
- Signal_A
|
||
host: localhost:9091
|
||
info:
|
||
contact: {}
|
||
description: CBTC测试服务.
|
||
title: CBTC测试系统API
|
||
version: "1.0"
|
||
paths:
|
||
/api/v1/auth/path:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: 创建接口路径
|
||
parameters:
|
||
- in: query
|
||
name: id
|
||
type: integer
|
||
- in: query
|
||
name: method
|
||
type: string
|
||
- in: query
|
||
name: name
|
||
type: string
|
||
- in: query
|
||
name: path
|
||
type: string
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
type: boolean
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 创建接口路径
|
||
tags:
|
||
- 权限Api
|
||
/api/v1/auth/path/{id}:
|
||
delete:
|
||
consumes:
|
||
- application/json
|
||
description: 删除接口路径
|
||
parameters:
|
||
- description: 接口路径ID
|
||
in: path
|
||
name: id
|
||
required: true
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
type: boolean
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 删除接口路径
|
||
tags:
|
||
- 权限Api
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 查询接口路径
|
||
parameters:
|
||
- description: 接口路径ID
|
||
in: path
|
||
name: id
|
||
required: true
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/model.AuthAPIPath'
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 查询接口路径
|
||
tags:
|
||
- 权限Api
|
||
put:
|
||
consumes:
|
||
- application/json
|
||
description: 修改接口路径
|
||
parameters:
|
||
- description: 接口路径ID
|
||
in: path
|
||
name: id
|
||
required: true
|
||
type: integer
|
||
- in: query
|
||
name: id
|
||
type: integer
|
||
- in: query
|
||
name: method
|
||
type: string
|
||
- in: query
|
||
name: name
|
||
type: string
|
||
- in: query
|
||
name: path
|
||
type: string
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
type: boolean
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 修改接口路径
|
||
tags:
|
||
- 权限Api
|
||
/api/v1/auth/path/list:
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 查询接口路径列表
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/model.AuthAPIPath'
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 查询接口路径列表
|
||
tags:
|
||
- 权限Api
|
||
/api/v1/auth/path/paging:
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 分页查询接口路径信息
|
||
parameters:
|
||
- in: query
|
||
name: name
|
||
type: string
|
||
- description: 页码
|
||
example: 1
|
||
in: query
|
||
name: current
|
||
required: true
|
||
type: integer
|
||
- description: 页面行数
|
||
example: 10
|
||
in: query
|
||
name: size
|
||
required: true
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/dto.PageDto'
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 分页查询接口路径信息
|
||
tags:
|
||
- 权限Api
|
||
/api/v1/auth/role:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: 创建角色
|
||
parameters:
|
||
- collectionFormat: csv
|
||
in: query
|
||
items:
|
||
type: integer
|
||
name: addPaths
|
||
type: array
|
||
- collectionFormat: csv
|
||
in: query
|
||
items:
|
||
type: integer
|
||
name: delPaths
|
||
type: array
|
||
- in: query
|
||
name: id
|
||
type: integer
|
||
- in: query
|
||
name: name
|
||
type: string
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
type: boolean
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 创建角色
|
||
tags:
|
||
- 权限Api
|
||
/api/v1/auth/role/{id}:
|
||
delete:
|
||
consumes:
|
||
- application/json
|
||
description: 删除角色信息
|
||
parameters:
|
||
- description: 角色ID
|
||
in: path
|
||
name: id
|
||
required: true
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
type: boolean
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 删除角色信息
|
||
tags:
|
||
- 权限Api
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 查询角色详情
|
||
parameters:
|
||
- description: 角色ID
|
||
in: path
|
||
name: id
|
||
required: true
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/dto.AuthRoleDetailRspDto'
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 查询角色详情
|
||
tags:
|
||
- 权限Api
|
||
put:
|
||
consumes:
|
||
- application/json
|
||
description: 修改角色信息
|
||
parameters:
|
||
- description: 角色信息ID
|
||
in: path
|
||
name: id
|
||
required: true
|
||
type: integer
|
||
- collectionFormat: csv
|
||
in: query
|
||
items:
|
||
type: integer
|
||
name: addPaths
|
||
type: array
|
||
- collectionFormat: csv
|
||
in: query
|
||
items:
|
||
type: integer
|
||
name: delPaths
|
||
type: array
|
||
- in: query
|
||
name: id
|
||
type: integer
|
||
- in: query
|
||
name: name
|
||
type: string
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
type: boolean
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 修改角色信息
|
||
tags:
|
||
- 权限Api
|
||
/api/v1/auth/role/list:
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 查询角色列表
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/dto.AuthRoleRspDto'
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 查询角色列表
|
||
tags:
|
||
- 权限Api
|
||
/api/v1/auth/role/paging:
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 分页查询角色信息
|
||
parameters:
|
||
- description: 页码
|
||
example: 1
|
||
in: query
|
||
name: current
|
||
required: true
|
||
type: integer
|
||
- description: 页面行数
|
||
example: 10
|
||
in: query
|
||
name: size
|
||
required: true
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/dto.PageDto'
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 分页查询角色信息
|
||
tags:
|
||
- 权限Api
|
||
/api/v1/auth/userLinkRole:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: 用户关联角色
|
||
parameters:
|
||
- collectionFormat: csv
|
||
in: query
|
||
items:
|
||
type: integer
|
||
name: addRids
|
||
type: array
|
||
- collectionFormat: csv
|
||
in: query
|
||
items:
|
||
type: integer
|
||
name: delRids
|
||
type: array
|
||
- in: query
|
||
name: uid
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
type: boolean
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 用户关联角色
|
||
tags:
|
||
- 权限Api
|
||
/api/v1/category:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: 创建厂家数据
|
||
parameters:
|
||
- in: query
|
||
name: code
|
||
type: string
|
||
- in: query
|
||
name: config
|
||
type: string
|
||
- in: query
|
||
name: id
|
||
type: integer
|
||
- in: query
|
||
name: name
|
||
type: string
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 创建厂家信息
|
||
tags:
|
||
- 厂家信息Api
|
||
/api/v1/category/{id}:
|
||
delete:
|
||
consumes:
|
||
- application/json
|
||
description: 删除厂家信息
|
||
parameters:
|
||
- description: 厂家信息ID
|
||
in: path
|
||
name: id
|
||
required: true
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 删除厂家信息
|
||
tags:
|
||
- 厂家信息Api
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 查询厂家信息
|
||
parameters:
|
||
- description: 厂家ID
|
||
in: path
|
||
name: id
|
||
required: true
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/model.Category'
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 查询厂家信息
|
||
tags:
|
||
- 厂家信息Api
|
||
put:
|
||
consumes:
|
||
- application/json
|
||
description: 修改厂家信息
|
||
parameters:
|
||
- description: 厂家信息ID
|
||
in: path
|
||
name: id
|
||
required: true
|
||
type: integer
|
||
- in: query
|
||
name: code
|
||
type: string
|
||
- in: query
|
||
name: config
|
||
type: string
|
||
- in: query
|
||
name: id
|
||
type: integer
|
||
- in: query
|
||
name: name
|
||
type: string
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 修改厂家信息
|
||
tags:
|
||
- 厂家信息Api
|
||
/api/v1/category/list:
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 可以通过厂家名称过滤,查询厂家信息列表
|
||
parameters:
|
||
- in: query
|
||
name: name
|
||
type: string
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/dto.PageDto'
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 查询厂家信息列表
|
||
tags:
|
||
- 厂家信息Api
|
||
/api/v1/category/paging:
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 可以通过厂家名称过滤,分页查询厂家信息
|
||
parameters:
|
||
- in: query
|
||
name: name
|
||
type: string
|
||
- description: 页码
|
||
example: 1
|
||
in: query
|
||
name: current
|
||
required: true
|
||
type: integer
|
||
- description: 页面行数
|
||
example: 10
|
||
in: query
|
||
name: size
|
||
required: true
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/dto.PageDto'
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 分页查询厂家信息
|
||
tags:
|
||
- 厂家信息Api
|
||
/api/v1/drafting:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: 创建草稿数据
|
||
parameters:
|
||
- in: query
|
||
name: category
|
||
type: string
|
||
- in: query
|
||
name: id
|
||
type: integer
|
||
- in: query
|
||
name: name
|
||
type: string
|
||
- collectionFormat: csv
|
||
in: query
|
||
items:
|
||
type: integer
|
||
name: proto
|
||
type: array
|
||
- enum:
|
||
- 0
|
||
- 1
|
||
- 2
|
||
- 3
|
||
- 4
|
||
in: query
|
||
name: type
|
||
type: integer
|
||
x-enum-varnames:
|
||
- PictureType_StationLayout
|
||
- PictureType_Psl
|
||
- PictureType_RelayCabinetLayout
|
||
- PictureType_IBP
|
||
- PictureType_TrainData
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 创建草稿
|
||
tags:
|
||
- 草稿Api
|
||
/api/v1/drafting/{id}:
|
||
delete:
|
||
consumes:
|
||
- application/json
|
||
description: 删除草稿数据
|
||
parameters:
|
||
- description: 草稿ID
|
||
in: path
|
||
name: id
|
||
required: true
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 删除草稿数据
|
||
tags:
|
||
- 草稿Api
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 查询草稿详情
|
||
parameters:
|
||
- description: 草稿ID
|
||
in: path
|
||
name: id
|
||
required: true
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/model.Drafting'
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 查询草稿详情
|
||
tags:
|
||
- 草稿Api
|
||
put:
|
||
consumes:
|
||
- application/json
|
||
description: 修改草稿信息
|
||
parameters:
|
||
- description: 草稿ID
|
||
in: path
|
||
name: id
|
||
required: true
|
||
type: integer
|
||
- in: query
|
||
name: category
|
||
type: string
|
||
- in: query
|
||
name: id
|
||
type: integer
|
||
- in: query
|
||
name: name
|
||
type: string
|
||
- collectionFormat: csv
|
||
in: query
|
||
items:
|
||
type: integer
|
||
name: proto
|
||
type: array
|
||
- enum:
|
||
- 0
|
||
- 1
|
||
- 2
|
||
- 3
|
||
- 4
|
||
in: query
|
||
name: type
|
||
type: integer
|
||
x-enum-varnames:
|
||
- PictureType_StationLayout
|
||
- PictureType_Psl
|
||
- PictureType_RelayCabinetLayout
|
||
- PictureType_IBP
|
||
- PictureType_TrainData
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 修改草稿信息
|
||
tags:
|
||
- 草稿Api
|
||
/api/v1/drafting/{id}/saveAs:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: 草稿另存为
|
||
parameters:
|
||
- description: 源草稿id
|
||
in: path
|
||
name: id
|
||
required: true
|
||
type: integer
|
||
- in: query
|
||
name: category
|
||
type: string
|
||
- in: query
|
||
name: id
|
||
type: integer
|
||
- in: query
|
||
name: name
|
||
type: string
|
||
- collectionFormat: csv
|
||
in: query
|
||
items:
|
||
type: integer
|
||
name: proto
|
||
type: array
|
||
- enum:
|
||
- 0
|
||
- 1
|
||
- 2
|
||
- 3
|
||
- 4
|
||
in: query
|
||
name: type
|
||
type: integer
|
||
x-enum-varnames:
|
||
- PictureType_StationLayout
|
||
- PictureType_Psl
|
||
- PictureType_RelayCabinetLayout
|
||
- PictureType_IBP
|
||
- PictureType_TrainData
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 草稿另存为
|
||
tags:
|
||
- 草稿Api
|
||
/api/v1/drafting/list:
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 可以通过草稿类型过滤,列表查询草稿
|
||
parameters:
|
||
- in: query
|
||
name: type
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/dto.PageDto'
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 列表查询草稿
|
||
tags:
|
||
- 草稿Api
|
||
/api/v1/drafting/paging:
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 可以通过草稿名称过滤,分页查询草稿
|
||
parameters:
|
||
- in: query
|
||
name: name
|
||
type: string
|
||
- description: 页码
|
||
example: 1
|
||
in: query
|
||
name: current
|
||
required: true
|
||
type: integer
|
||
- description: 页面行数
|
||
example: 10
|
||
in: query
|
||
name: size
|
||
required: true
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/dto.PageDto'
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 分页查询草稿
|
||
tags:
|
||
- 草稿Api
|
||
/api/v1/project:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: 创建项目数据
|
||
parameters:
|
||
- in: query
|
||
name: code
|
||
type: string
|
||
- in: query
|
||
name: id
|
||
type: integer
|
||
- in: query
|
||
name: name
|
||
type: string
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 创建项目信息
|
||
tags:
|
||
- 项目信息Api
|
||
/api/v1/project/{id}:
|
||
delete:
|
||
consumes:
|
||
- application/json
|
||
description: 删除项目信息
|
||
parameters:
|
||
- description: 项目信息ID
|
||
in: path
|
||
name: id
|
||
required: true
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 删除项目信息
|
||
tags:
|
||
- 项目信息Api
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 查询项目信息
|
||
parameters:
|
||
- description: 项目ID
|
||
in: path
|
||
name: id
|
||
required: true
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/model.Project'
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 查询项目信息
|
||
tags:
|
||
- 项目信息Api
|
||
put:
|
||
consumes:
|
||
- application/json
|
||
description: 修改项目信息
|
||
parameters:
|
||
- description: 项目信息ID
|
||
in: path
|
||
name: id
|
||
required: true
|
||
type: integer
|
||
- in: query
|
||
name: code
|
||
type: string
|
||
- in: query
|
||
name: id
|
||
type: integer
|
||
- in: query
|
||
name: name
|
||
type: string
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 修改项目信息
|
||
tags:
|
||
- 项目信息Api
|
||
/api/v1/project/list:
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 可以通过项目名称过滤,查询项目信息列表
|
||
parameters:
|
||
- in: query
|
||
name: code
|
||
type: string
|
||
- in: query
|
||
name: name
|
||
type: string
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/model.Project'
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 查询项目信息列表
|
||
tags:
|
||
- 项目信息Api
|
||
/api/v1/project/paging:
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 可以通过项目名称过滤,分页查询项目信息
|
||
parameters:
|
||
- in: query
|
||
name: code
|
||
type: string
|
||
- in: query
|
||
name: name
|
||
type: string
|
||
- description: 页码
|
||
example: 1
|
||
in: query
|
||
name: current
|
||
required: true
|
||
type: integer
|
||
- description: 页面行数
|
||
example: 10
|
||
in: query
|
||
name: size
|
||
required: true
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/dto.PageDto'
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 分页查询项目信息
|
||
tags:
|
||
- 项目信息Api
|
||
/api/v1/projectLink:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: 保存项目的所有关联信息
|
||
parameters:
|
||
- collectionFormat: csv
|
||
in: query
|
||
items:
|
||
type: integer
|
||
name: mids
|
||
type: array
|
||
- in: query
|
||
name: pid
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
type: boolean
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 保存项目的所有关联信息
|
||
tags:
|
||
- 项目关联信息Api
|
||
/api/v1/projectLink/info/{id}:
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 查询项目的所有关联信息
|
||
parameters:
|
||
- description: 项目ID
|
||
in: path
|
||
name: id
|
||
required: true
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/dto.ProjectLinkRspDto'
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 查询项目的所有关联信息
|
||
tags:
|
||
- 项目关联信息Api
|
||
/api/v1/publishedGi/:id/history:
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 查询发布历史版本信息
|
||
parameters:
|
||
- description: id
|
||
in: path
|
||
name: id
|
||
required: true
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/dto.PublishHistoryDto'
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 查询发布历史版本信息
|
||
tags:
|
||
- 发布的图形数据Api
|
||
/api/v1/publishedGi/{id}:
|
||
delete:
|
||
consumes:
|
||
- application/json
|
||
description: 可以通过名称过滤
|
||
parameters:
|
||
- description: id
|
||
in: path
|
||
name: id
|
||
required: true
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: id删除发布的图形数据
|
||
tags:
|
||
- 发布的图形数据Api
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 可以通过名称过滤
|
||
parameters:
|
||
- description: id
|
||
in: path
|
||
name: id
|
||
required: true
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/dto.PublishedDto'
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: id查询发布的图形数据
|
||
tags:
|
||
- 发布的图形数据Api
|
||
/api/v1/publishedGi/list:
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 可以通过名称过滤
|
||
parameters:
|
||
- in: query
|
||
name: category
|
||
type: string
|
||
- in: query
|
||
name: name
|
||
type: string
|
||
- in: query
|
||
name: type
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
items:
|
||
$ref: '#/definitions/model.Published'
|
||
type: array
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 列表查询发布的图形数据
|
||
tags:
|
||
- 发布的图形数据Api
|
||
/api/v1/publishedGi/name:
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 可以通过名称过滤
|
||
parameters:
|
||
- in: query
|
||
name: detail
|
||
type: boolean
|
||
- in: query
|
||
name: name
|
||
type: string
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/dto.PublishedDto'
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 根据Code查询发布地图数据
|
||
tags:
|
||
- 发布的图形数据Api
|
||
/api/v1/publishedGi/paging:
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 可以通过名称过滤
|
||
parameters:
|
||
- in: query
|
||
name: name
|
||
type: string
|
||
- description: 页码
|
||
example: 1
|
||
in: query
|
||
name: current
|
||
required: true
|
||
type: integer
|
||
- description: 页面行数
|
||
example: 10
|
||
in: query
|
||
name: size
|
||
required: true
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/dto.PageDto'
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 分页查询发布的图形数据
|
||
tags:
|
||
- 发布的图形数据Api
|
||
/api/v1/publishedGi/publish:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
parameters:
|
||
- description: 草稿数据的id
|
||
in: query
|
||
name: draftId
|
||
type: integer
|
||
- description: 强制覆盖
|
||
in: query
|
||
name: force
|
||
type: boolean
|
||
- description: 发布后的名称
|
||
in: query
|
||
name: name
|
||
type: string
|
||
- in: query
|
||
name: note
|
||
type: string
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 从草稿发布数据
|
||
tags:
|
||
- 发布的图形数据Api
|
||
/api/v1/publishedGi/release:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: 上下架发布数据
|
||
parameters:
|
||
- in: query
|
||
name: id
|
||
type: integer
|
||
- in: query
|
||
name: name
|
||
type: string
|
||
- in: query
|
||
name: release
|
||
type: boolean
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 上下架发布数据
|
||
tags:
|
||
- 发布的图形数据Api
|
||
/api/v1/publishedGi/rename:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: 修改发布数据名称
|
||
parameters:
|
||
- in: query
|
||
name: id
|
||
type: integer
|
||
- in: query
|
||
name: name
|
||
type: string
|
||
- in: query
|
||
name: release
|
||
type: boolean
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 修改发布数据名称
|
||
tags:
|
||
- 发布的图形数据Api
|
||
/api/v1/publishedGi/saveAsDrafting/{id}:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: 从发布数据拉取信息到草稿
|
||
parameters:
|
||
- description: id
|
||
in: path
|
||
name: id
|
||
required: true
|
||
type: integer
|
||
- description: 草稿数据的id
|
||
in: query
|
||
name: draftId
|
||
type: integer
|
||
- description: 强制覆盖
|
||
in: query
|
||
name: force
|
||
type: boolean
|
||
- description: 发布后的名称
|
||
in: query
|
||
name: name
|
||
type: string
|
||
- in: query
|
||
name: note
|
||
type: string
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 从发布数据拉取信息到草稿
|
||
tags:
|
||
- 发布的图形数据Api
|
||
/api/v1/runconfig:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: 创建项目运行环境配置数据
|
||
parameters:
|
||
- in: query
|
||
name: config
|
||
required: true
|
||
type: string
|
||
- in: query
|
||
name: description
|
||
type: string
|
||
- in: query
|
||
name: id
|
||
type: integer
|
||
- in: query
|
||
name: name
|
||
required: true
|
||
type: string
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 创建项目运行环境配置信息
|
||
tags:
|
||
- 项目运行环境配置Api
|
||
/api/v1/runconfig/{id}:
|
||
delete:
|
||
consumes:
|
||
- application/json
|
||
description: 删除项目运行环境信息
|
||
parameters:
|
||
- description: 项目运行环境信息ID
|
||
in: path
|
||
name: id
|
||
required: true
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 删除项目运行环境信息
|
||
tags:
|
||
- 项目运行环境配置Api
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 查询项目运行环境信息
|
||
parameters:
|
||
- description: 项目运行环境ID
|
||
in: path
|
||
name: id
|
||
required: true
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/dto.ProjectRunConfigDto'
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 查询项目运行环境信息
|
||
tags:
|
||
- 项目运行环境配置Api
|
||
put:
|
||
consumes:
|
||
- application/json
|
||
description: 修改项目运行环境信息
|
||
parameters:
|
||
- description: 项目运行环境信息ID
|
||
in: path
|
||
name: id
|
||
required: true
|
||
type: integer
|
||
- in: query
|
||
name: code
|
||
type: string
|
||
- in: query
|
||
name: id
|
||
type: integer
|
||
- in: query
|
||
name: name
|
||
type: string
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 修改项目运行环境信息
|
||
tags:
|
||
- 项目运行环境配置Api
|
||
/api/v1/runconfig/description:
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 获取项目运行环境信息结构说明
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 获取项目运行环境信息结构说明
|
||
tags:
|
||
- 项目运行环境配置Api
|
||
/api/v1/runconfig/list:
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 无参数,查询项目运行环境配置列表
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/dto.ProjectRunConfigDto'
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 查询项目运行环境配置信息列表
|
||
tags:
|
||
- 项目运行环境配置Api
|
||
/api/v1/runconfig/paging:
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 可以通过项目名称过滤,分页查询项目运行环境配置信息
|
||
parameters:
|
||
- in: query
|
||
name: name
|
||
type: string
|
||
- description: 页码
|
||
example: 1
|
||
in: query
|
||
name: current
|
||
required: true
|
||
type: integer
|
||
- description: 页面行数
|
||
example: 10
|
||
in: query
|
||
name: size
|
||
required: true
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/dto.PageDto'
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 分页查询项目运行环境配置信息
|
||
tags:
|
||
- 项目运行环境配置Api
|
||
/api/v1/simulation/:id/getMapKilometerRange:
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 获取仿真地图的公里标范围
|
||
parameters:
|
||
- description: JWT Token
|
||
in: header
|
||
name: Authorization
|
||
required: true
|
||
type: string
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
type: string
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 获取仿真地图的公里标范围
|
||
tags:
|
||
- ATS测试仿真Api
|
||
/api/v1/simulation/axleSection/operation:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: ATS测试-计轴区段操作
|
||
parameters:
|
||
- description: JWT Token
|
||
in: header
|
||
name: Authorization
|
||
required: true
|
||
type: string
|
||
- description: ATS测试仿真-操作计轴区段
|
||
in: body
|
||
name: AxleSectionOperationReqDto
|
||
required: true
|
||
schema:
|
||
$ref: '#/definitions/dto.AxleSectionOperationReqDto'
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
type: string
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: ATS测试-计轴区段操作
|
||
tags:
|
||
- ATS测试仿真Api
|
||
/api/v1/simulation/check/data:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: 地图数据校验
|
||
parameters:
|
||
- description: JWT Token
|
||
in: header
|
||
name: Authorization
|
||
required: true
|
||
type: string
|
||
- description: ATS测试仿真-地图数据
|
||
in: body
|
||
name: RemoveTrainDto
|
||
required: true
|
||
schema:
|
||
$ref: '#/definitions/dto.CheckMapDataReqDto'
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/dto.CheckMapDataRspDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: ATS测试仿真地图数据校验
|
||
tags:
|
||
- ATS测试仿真Api
|
||
/api/v1/simulation/createByProject:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: 创建ATS测试仿真通过项目ID
|
||
parameters:
|
||
- description: JWT Token
|
||
in: header
|
||
name: Authorization
|
||
required: true
|
||
type: string
|
||
- description: 创建仿真请求
|
||
in: body
|
||
name: SimulationCreateReqDto
|
||
required: true
|
||
schema:
|
||
$ref: '#/definitions/dto.SimulationCreateReqDto'
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/dto.SimulationCreateRspDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 创建ATS测试仿真
|
||
tags:
|
||
- ATS测试仿真Api
|
||
/api/v1/simulation/destroy/{id}:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: ATS测试仿真-添加列车
|
||
parameters:
|
||
- description: JWT Token
|
||
in: header
|
||
name: Authorization
|
||
required: true
|
||
type: string
|
||
- description: 仿真id
|
||
in: path
|
||
name: id
|
||
required: true
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
type: string
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: ATS仿真销毁
|
||
tags:
|
||
- ATS测试仿真Api
|
||
/api/v1/simulation/esbBtn/operation:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: ATS测试-ESB按钮操作
|
||
parameters:
|
||
- description: JWT Token
|
||
in: header
|
||
name: Authorization
|
||
required: true
|
||
type: string
|
||
- description: ATS测试仿真-ESB按钮操作
|
||
in: body
|
||
name: EsbButtonOperationReqDto
|
||
required: true
|
||
schema:
|
||
$ref: '#/definitions/dto.EsbButtonOperationReqDto'
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
type: string
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: ATS测试-ESB按钮操作
|
||
tags:
|
||
- ATS测试仿真Api
|
||
/api/v1/simulation/ibp/btn/operation:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: ATS测试-IBP按钮操作
|
||
parameters:
|
||
- description: JWT Token
|
||
in: header
|
||
name: Authorization
|
||
required: true
|
||
type: string
|
||
- description: ATS测试仿真-IBP按钮操作
|
||
in: body
|
||
name: IBPButtonOperationReqDto
|
||
required: true
|
||
schema:
|
||
$ref: '#/definitions/dto.IBPButtonOperationReqDto'
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
type: string
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: ATS测试-IBP按钮操作
|
||
tags:
|
||
- ATS测试仿真Api
|
||
/api/v1/simulation/ibp/key/operation:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: ATS测试-IBP钥匙操作
|
||
parameters:
|
||
- description: JWT Token
|
||
in: header
|
||
name: Authorization
|
||
required: true
|
||
type: string
|
||
- description: ATS测试仿真-IBP钥匙操作
|
||
in: body
|
||
name: KeyOperationReqDto
|
||
required: true
|
||
schema:
|
||
$ref: '#/definitions/dto.KeyOperationReqDto'
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
type: string
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: ATS测试-IBP钥匙操作
|
||
tags:
|
||
- ATS测试仿真Api
|
||
/api/v1/simulation/list:
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 获取ATS测试系统所有仿真实例的基本信息
|
||
parameters:
|
||
- description: JWT Token
|
||
in: header
|
||
name: Authorization
|
||
required: true
|
||
type: string
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
items:
|
||
$ref: '#/definitions/dto.SimulationInfoRspDto'
|
||
type: array
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 获取ATS测试系统所有仿真实例的基本信息
|
||
tags:
|
||
- ATS测试仿真Api
|
||
/api/v1/simulation/psd/operation:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: 屏蔽门操作
|
||
parameters:
|
||
- description: JWT Token
|
||
in: header
|
||
name: Authorization
|
||
required: true
|
||
type: string
|
||
- description: 屏蔽门操作
|
||
in: body
|
||
name: PsdOperationReq
|
||
required: true
|
||
schema:
|
||
$ref: '#/definitions/request_proto.PsdOperationReq'
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
type: string
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 屏蔽门操作
|
||
tags:
|
||
- ATS测试仿真Api
|
||
/api/v1/simulation/psl/operation:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: PSL操作
|
||
parameters:
|
||
- description: JWT Token
|
||
in: header
|
||
name: Authorization
|
||
required: true
|
||
type: string
|
||
- description: PSL操作
|
||
in: body
|
||
name: PslOperationReqDto
|
||
required: true
|
||
schema:
|
||
$ref: '#/definitions/dto.PslOperationReqDto'
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
type: string
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: PSL操作
|
||
tags:
|
||
- ATS测试仿真Api
|
||
/api/v1/simulation/relay/operation:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: ATS测试-操作继电器
|
||
parameters:
|
||
- description: JWT Token
|
||
in: header
|
||
name: Authorization
|
||
required: true
|
||
type: string
|
||
- description: ATS测试仿真-操作继电器
|
||
in: body
|
||
name: RelayOperationReqDto
|
||
required: true
|
||
schema:
|
||
$ref: '#/definitions/dto.RelayOperationReqDto'
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
type: string
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 获取ATS测试-操作继电器
|
||
tags:
|
||
- ATS测试仿真Api
|
||
/api/v1/simulation/signal/operation:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: ATS测试-信号机操作
|
||
parameters:
|
||
- description: JWT Token
|
||
in: header
|
||
name: Authorization
|
||
required: true
|
||
type: string
|
||
- description: ATS测试仿真-操作信号机
|
||
in: body
|
||
name: SignalOperationReqDto
|
||
required: true
|
||
schema:
|
||
$ref: '#/definitions/dto.SignalOperationReqDto'
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
type: string
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: ATS测试-信号机操作
|
||
tags:
|
||
- ATS测试仿真Api
|
||
/api/v1/simulation/switch/operation:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: ATS测试-操作道岔
|
||
parameters:
|
||
- description: JWT Token
|
||
in: header
|
||
name: Authorization
|
||
required: true
|
||
type: string
|
||
- description: ATS测试仿真-操作道岔
|
||
in: body
|
||
name: TurnoutOperationReq
|
||
required: true
|
||
schema:
|
||
$ref: '#/definitions/request_proto.TurnoutOperationReq'
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
type: string
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 获取ATS测试-操作道岔
|
||
tags:
|
||
- ATS测试仿真Api
|
||
/api/v1/simulation/train/add:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: ATS测试仿真-添加列车
|
||
parameters:
|
||
- description: JWT Token
|
||
in: header
|
||
name: Authorization
|
||
required: true
|
||
type: string
|
||
- description: ATS测试仿真-添加列车
|
||
in: body
|
||
name: AddTrainReqDto
|
||
required: true
|
||
schema:
|
||
$ref: '#/definitions/dto.AddTrainReqDto'
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/dto.AddTrainRspDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: ATS测试仿真-添加列车
|
||
tags:
|
||
- ATS测试仿真Api
|
||
/api/v1/simulation/train/remove:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: ATS测试仿真-移除列车
|
||
parameters:
|
||
- description: JWT Token
|
||
in: header
|
||
name: Authorization
|
||
required: true
|
||
type: string
|
||
- description: ATS测试仿真-移除列车
|
||
in: body
|
||
name: RemoveTrainDto
|
||
required: true
|
||
schema:
|
||
$ref: '#/definitions/dto.RemoveTrainDto'
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
type: string
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: ATS测试仿真-移除列车
|
||
tags:
|
||
- ATS测试仿真Api
|
||
/api/v1/simulation/train/update:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: ATS测试仿真-修改列车基础信息
|
||
parameters:
|
||
- description: JWT Token
|
||
in: header
|
||
name: Authorization
|
||
required: true
|
||
type: string
|
||
- description: ATS测试仿真-修改列车基础信息
|
||
in: body
|
||
name: UpdateTrainReqDto
|
||
required: true
|
||
schema:
|
||
$ref: '#/definitions/dto.UpdateTrainReqDto'
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/dto.AddTrainRspDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: ATS测试仿真-修改列车基础信息
|
||
tags:
|
||
- ATS测试仿真Api
|
||
/api/v1/trainManage:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: 创建列车数据
|
||
parameters:
|
||
- in: query
|
||
name: carriage_length
|
||
type: integer
|
||
- in: query
|
||
name: description
|
||
type: string
|
||
- in: query
|
||
name: id
|
||
type: integer
|
||
- in: query
|
||
name: max_diameter
|
||
type: integer
|
||
- in: query
|
||
name: min_diameter
|
||
type: integer
|
||
- in: query
|
||
name: name
|
||
type: string
|
||
- in: query
|
||
name: total_length
|
||
type: integer
|
||
- in: query
|
||
name: train_model
|
||
type: integer
|
||
- in: query
|
||
name: train_sets
|
||
type: string
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 创建列车
|
||
tags:
|
||
- 列车管理Api
|
||
/api/v1/trainManage/{id}:
|
||
delete:
|
||
consumes:
|
||
- application/json
|
||
description: 删除列车数据
|
||
parameters:
|
||
- description: 列车ID
|
||
in: path
|
||
name: id
|
||
required: true
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 删除列车数据
|
||
tags:
|
||
- 列车管理Api
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 查询列车详情
|
||
parameters:
|
||
- description: 列车ID
|
||
in: path
|
||
name: id
|
||
required: true
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/dto.TrainInfoDto'
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 查询列车详情
|
||
tags:
|
||
- 列车管理Api
|
||
put:
|
||
consumes:
|
||
- application/json
|
||
description: 修改列车信息
|
||
parameters:
|
||
- description: 列车ID
|
||
in: path
|
||
name: id
|
||
required: true
|
||
type: integer
|
||
- in: query
|
||
name: carriage_length
|
||
type: integer
|
||
- in: query
|
||
name: description
|
||
type: string
|
||
- in: query
|
||
name: id
|
||
type: integer
|
||
- in: query
|
||
name: max_diameter
|
||
type: integer
|
||
- in: query
|
||
name: min_diameter
|
||
type: integer
|
||
- in: query
|
||
name: name
|
||
type: string
|
||
- in: query
|
||
name: total_length
|
||
type: integer
|
||
- in: query
|
||
name: train_model
|
||
type: integer
|
||
- in: query
|
||
name: train_sets
|
||
type: string
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 修改列车信息
|
||
tags:
|
||
- 列车管理Api
|
||
/api/v1/trainManage/list:
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 可以通过列车名称过滤,查询列车信息列表
|
||
parameters:
|
||
- in: query
|
||
name: name
|
||
type: string
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/dto.TrainInfoDto'
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 查询列车信息列表
|
||
tags:
|
||
- 列车管理Api
|
||
/api/v1/trainManage/paging:
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 可以通过列车名称过滤,分页查询列车信息列表
|
||
parameters:
|
||
- in: query
|
||
name: name
|
||
type: string
|
||
- description: 页码
|
||
example: 1
|
||
in: query
|
||
name: current
|
||
required: true
|
||
type: integer
|
||
- description: 页面行数
|
||
example: 10
|
||
in: query
|
||
name: size
|
||
required: true
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/dto.PageDto'
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 分页查询列车信息列表
|
||
tags:
|
||
- 列车管理Api
|
||
/api/v1/user/current:
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 获取当前登录用户信息
|
||
parameters:
|
||
- description: JWT Token
|
||
in: header
|
||
name: Authorization
|
||
required: true
|
||
type: string
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/dto.UserRspDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
summary: 获取当前登录用户信息
|
||
tags:
|
||
- 用户Api
|
||
/api/v1/user/login:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: 用户登录
|
||
parameters:
|
||
- description: 登录信息
|
||
in: body
|
||
name: loginInfo
|
||
required: true
|
||
schema:
|
||
$ref: '#/definitions/dto.LoginDto'
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/dto.TokenRespDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
summary: 用户登录
|
||
tags:
|
||
- 用户Api
|
||
/api/v1/user/paging:
|
||
get:
|
||
consumes:
|
||
- application/json
|
||
description: 可以通过用户名称过滤,分页查询用户
|
||
parameters:
|
||
- description: 手机号
|
||
in: query
|
||
name: mobile
|
||
type: string
|
||
- description: 用户名
|
||
in: query
|
||
name: name
|
||
type: string
|
||
- description: 页码
|
||
example: 1
|
||
in: query
|
||
name: current
|
||
required: true
|
||
type: integer
|
||
- description: 页面行数
|
||
example: 10
|
||
in: query
|
||
name: size
|
||
required: true
|
||
type: integer
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
$ref: '#/definitions/dto.PageDto'
|
||
"401":
|
||
description: Unauthorized
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"404":
|
||
description: Not Found
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
security:
|
||
- JwtAuth: []
|
||
summary: 分页查询用户
|
||
tags:
|
||
- 用户Api
|
||
/api/v1/user/register:
|
||
post:
|
||
consumes:
|
||
- application/json
|
||
description: 用户注册
|
||
parameters:
|
||
- description: 用户注册信息
|
||
in: body
|
||
name: loginInfo
|
||
required: true
|
||
schema:
|
||
$ref: '#/definitions/dto.RegisterUser'
|
||
produces:
|
||
- application/json
|
||
responses:
|
||
"200":
|
||
description: OK
|
||
schema:
|
||
type: string
|
||
"500":
|
||
description: Internal Server Error
|
||
schema:
|
||
$ref: '#/definitions/dto.ErrorDto'
|
||
summary: 用户注册
|
||
tags:
|
||
- 用户Api
|
||
securityDefinitions:
|
||
JwtAuth:
|
||
in: header
|
||
name: Authorization
|
||
type: apiKey
|
||
swagger: "2.0"
|