【删除Index】

This commit is contained in:
weizhihong 2023-11-17 18:15:27 +08:00
parent b4859a7339
commit 0c581d815e
5 changed files with 347 additions and 2263 deletions

View File

@ -77,7 +77,7 @@ func pageQueryTrainInfo(c *gin.Context) {
// @Accept json // @Accept json
// @Produce json // @Produce json
// @Param trainInfoReqDto query dto.TrainInfoReqDto true "列车查询条件" // @Param trainInfoReqDto query dto.TrainInfoReqDto true "列车查询条件"
// @Success 200 {object} dto.PageDto // @Success 200 {object} model.TrainInfo
// @Failure 401 {object} dto.ErrorDto // @Failure 401 {object} dto.ErrorDto
// @Failure 404 {object} dto.ErrorDto // @Failure 404 {object} dto.ErrorDto
// @Failure 500 {object} dto.ErrorDto // @Failure 500 {object} dto.ErrorDto

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -215,6 +215,7 @@ definitions:
pid: pid:
type: integer type: integer
trainSizeLinks: trainSizeLinks:
description: TODO:前端修改完成后删除
items: items:
$ref: '#/definitions/dto.TrainSizeDto' $ref: '#/definitions/dto.TrainSizeDto'
type: array type: array
@ -251,6 +252,27 @@ definitions:
- mapId - mapId
- simulationId - simulationId
type: object 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: dto.PublishedGiLinkDto:
properties: properties:
category: category:
@ -565,6 +587,23 @@ definitions:
description: 发布用户id description: 发布用户id
type: integer type: integer
type: object type: object
model.TrainInfo:
properties:
description:
description: 其他描述内容
type: string
id:
description: id
type: integer
name:
description: 列车信息
type: string
proto:
description: 列车参数信息
items:
type: integer
type: array
type: object
model.TrainModel: model.TrainModel:
properties: properties:
created_at: created_at:
@ -579,38 +618,6 @@ definitions:
description: 更新时间 description: 更新时间
type: string type: string
type: object type: object
model.TrainSize:
properties:
carriage_length:
description: 列车车厢长度
type: integer
description:
description: 其他描述内容
type: string
id:
description: 主键
type: integer
name:
description: 名称
type: string
total_length:
description: 总长度
type: integer
type: object
model.TrainWheel:
properties:
id:
type: integer
max_diameter:
description: 车轮的最大直径(mm)
type: integer
min_diameter:
description: 车轮的最小直径(mm)
type: integer
name:
description: 名称
type: string
type: object
request_proto.Psd_Operation: request_proto.Psd_Operation:
enum: enum:
- 0 - 0
@ -1830,40 +1837,6 @@ paths:
summary: 草稿另存为 summary: 草稿另存为
tags: tags:
- 草稿Api - 草稿Api
/api/v1/drafting/calculatelink:
post:
consumes:
- application/json
description: 根据地图数据新生成计算的link信息
parameters:
- collectionFormat: csv
in: query
items:
type: integer
name: proto
type: array
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: 根据地图数据新生成计算的link信息
tags:
- 草稿Api
/api/v1/drafting/list: /api/v1/drafting/list:
get: get:
consumes: consumes:
@ -2187,6 +2160,7 @@ paths:
name: pid name: pid
type: integer type: integer
- collectionFormat: csv - collectionFormat: csv
description: TODO:前端修改完成后删除
in: query in: query
items: items:
type: integer type: integer
@ -2366,7 +2340,7 @@ paths:
"200": "200":
description: OK description: OK
schema: schema:
$ref: '#/definitions/model.PublishedGi' $ref: '#/definitions/dto.PublishedDto'
"401": "401":
description: Unauthorized description: Unauthorized
schema: schema:
@ -2386,18 +2360,9 @@ paths:
- application/json - application/json
description: 可以通过名称过滤 description: 可以通过名称过滤
parameters: parameters:
- in: query
name: category
type: string
- in: query - in: query
name: name name: name
type: string type: string
- in: query
name: time
type: string
- in: query
name: type
type: integer
produces: produces:
- application/json - application/json
responses: responses:
@ -2475,9 +2440,6 @@ paths:
name: size name: size
required: true required: true
type: integer type: integer
- in: query
name: time
type: string
produces: produces:
- application/json - application/json
responses: responses:
@ -3373,18 +3335,39 @@ paths:
summary: ATS测试仿真-修改列车基础信息 summary: ATS测试仿真-修改列车基础信息
tags: tags:
- ATS测试仿真Api - ATS测试仿真Api
/api/v1/trainManage/model: /api/v1/trainManage:
post: post:
consumes: consumes:
- application/json - application/json
description: 创建列车型号数据 description: 创建列车数据
parameters: parameters:
- in: query
name: carriage_length
type: integer
- in: query
name: description
type: string
- in: query - in: query
name: id name: id
type: integer type: integer
- in: query
name: max_diameter
type: integer
- in: query
name: min_diameter
type: integer
- in: query - in: query
name: name name: name
type: string type: string
- in: query
name: total_length
type: integer
- in: query
name: train_model
type: integer
- in: query
name: train_sets
type: string
produces: produces:
- application/json - application/json
responses: responses:
@ -3404,16 +3387,16 @@ paths:
$ref: '#/definitions/dto.ErrorDto' $ref: '#/definitions/dto.ErrorDto'
security: security:
- JwtAuth: [] - JwtAuth: []
summary: 创建列车型号 summary: 创建列车
tags: tags:
- 列车管理Api - 列车管理Api
/api/v1/trainManage/model/{id}: /api/v1/trainManage/{id}:
delete: delete:
consumes: consumes:
- application/json - application/json
description: 删除列车型号数据 description: 删除列车数据
parameters: parameters:
- description: 列车型号ID - description: 列车ID
in: path in: path
name: id name: id
required: true required: true
@ -3437,15 +3420,15 @@ paths:
$ref: '#/definitions/dto.ErrorDto' $ref: '#/definitions/dto.ErrorDto'
security: security:
- JwtAuth: [] - JwtAuth: []
summary: 删除列车型号数据 summary: 删除列车数据
tags: tags:
- 列车管理Api - 列车管理Api
get: get:
consumes: consumes:
- application/json - application/json
description: 查询列车型号详情 description: 查询列车详情
parameters: parameters:
- description: 列车型号ID - description: 列车ID
in: path in: path
name: id name: id
required: true required: true
@ -3471,241 +3454,15 @@ paths:
$ref: '#/definitions/dto.ErrorDto' $ref: '#/definitions/dto.ErrorDto'
security: security:
- JwtAuth: [] - JwtAuth: []
summary: 查询列车型号详情 summary: 查询列车详情
tags: tags:
- 列车管理Api - 列车管理Api
put: put:
consumes: consumes:
- application/json - application/json
description: 修改列车型号信息 description: 修改列车信息
parameters: parameters:
- description: 列车型号ID - description: 列车ID
in: path
name: id
required: true
type: integer
- 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/trainManage/model/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/trainManage/model/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/trainManage/size:
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: name
type: string
- in: query
name: total_length
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
/api/v1/trainManage/size/{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.TrainSize'
"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 in: path
name: id name: id
required: true required: true
@ -3719,12 +3476,24 @@ paths:
- in: query - in: query
name: id name: id
type: integer type: integer
- in: query
name: max_diameter
type: integer
- in: query
name: min_diameter
type: integer
- in: query - in: query
name: name name: name
type: string type: string
- in: query - in: query
name: total_length name: total_length
type: integer type: integer
- in: query
name: train_model
type: integer
- in: query
name: train_sets
type: string
produces: produces:
- application/json - application/json
responses: responses:
@ -3744,14 +3513,14 @@ paths:
$ref: '#/definitions/dto.ErrorDto' $ref: '#/definitions/dto.ErrorDto'
security: security:
- JwtAuth: [] - JwtAuth: []
summary: 修改列车尺寸信息 summary: 修改列车信息
tags: tags:
- 列车管理Api - 列车管理Api
/api/v1/trainManage/size/list: /api/v1/trainManage/list:
get: get:
consumes: consumes:
- application/json - application/json
description: 可以通过列车尺寸名称过滤,查询列车尺寸信息列表 description: 可以通过列车名称过滤,查询列车信息列表
parameters: parameters:
- in: query - in: query
name: name name: name
@ -3762,7 +3531,7 @@ paths:
"200": "200":
description: OK description: OK
schema: schema:
$ref: '#/definitions/dto.PageDto' $ref: '#/definitions/model.TrainInfo'
"401": "401":
description: Unauthorized description: Unauthorized
schema: schema:
@ -3777,14 +3546,14 @@ paths:
$ref: '#/definitions/dto.ErrorDto' $ref: '#/definitions/dto.ErrorDto'
security: security:
- JwtAuth: [] - JwtAuth: []
summary: 查询列车尺寸信息列表 summary: 查询列车信息列表
tags: tags:
- 列车管理Api - 列车管理Api
/api/v1/trainManage/size/paging: /api/v1/trainManage/paging:
get: get:
consumes: consumes:
- application/json - application/json
description: 可以通过列车尺寸名称过滤,分页查询列车尺寸信息列表 description: 可以通过列车名称过滤,分页查询列车信息列表
parameters: parameters:
- in: query - in: query
name: name name: name
@ -3822,236 +3591,7 @@ paths:
$ref: '#/definitions/dto.ErrorDto' $ref: '#/definitions/dto.ErrorDto'
security: security:
- JwtAuth: [] - JwtAuth: []
summary: 分页查询列车尺寸信息列表 summary: 分页查询列车信息列表
tags:
- 列车管理Api
/api/v1/trainManage/wheelDiameter:
post:
consumes:
- application/json
description: 创建列车轮径数据
parameters:
- 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
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/wheelDiameter/{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.TrainWheel'
"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: max_diameter
type: integer
- in: query
name: min_diameter
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/trainManage/wheelDiameter/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/trainManage/wheelDiameter/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: tags:
- 列车管理Api - 列车管理Api
/api/v1/user/current: /api/v1/user/current:

View File

@ -13,7 +13,6 @@ var giUidMap sync.Map
type elementIdStructure struct { type elementIdStructure struct {
CommonId string CommonId string
Index int32
Code string Code string
Uid string Uid string
} }
@ -88,7 +87,6 @@ func initStationUid(data *graphicData.RtssGraphicStorage) *StationUidStructure {
for _, a := range data.AxleCountings { for _, a := range data.AxleCountings {
gus.AxlePointIds[a.Common.Id] = &elementIdStructure{ gus.AxlePointIds[a.Common.Id] = &elementIdStructure{
CommonId: a.Common.Id, CommonId: a.Common.Id,
Index: a.Index,
Uid: GenerateElementUid(city, lineId, a.CentralizedStations, a.Code), Uid: GenerateElementUid(city, lineId, a.CentralizedStations, a.Code),
} }
} }
@ -96,7 +94,6 @@ func initStationUid(data *graphicData.RtssGraphicStorage) *StationUidStructure {
for _, t := range data.Turnouts { for _, t := range data.Turnouts {
gus.TurnoutIds[t.Common.Id] = &elementIdStructure{ gus.TurnoutIds[t.Common.Id] = &elementIdStructure{
CommonId: t.Common.Id, CommonId: t.Common.Id,
Index: t.Index,
Uid: GenerateElementUid(city, lineId, t.CentralizedStations, t.Code), Uid: GenerateElementUid(city, lineId, t.CentralizedStations, t.Code),
} }
} }
@ -104,7 +101,6 @@ func initStationUid(data *graphicData.RtssGraphicStorage) *StationUidStructure {
for _, s := range data.Section { for _, s := range data.Section {
gus.PhysicalSectionIds[s.Common.Id] = &elementIdStructure{ gus.PhysicalSectionIds[s.Common.Id] = &elementIdStructure{
CommonId: s.Common.Id, CommonId: s.Common.Id,
Index: s.Index,
Uid: GenerateElementUid(city, lineId, s.CentralizedStations, s.Code), Uid: GenerateElementUid(city, lineId, s.CentralizedStations, s.Code),
} }
} }
@ -112,7 +108,6 @@ func initStationUid(data *graphicData.RtssGraphicStorage) *StationUidStructure {
for _, s := range data.Signals { for _, s := range data.Signals {
gus.SignalIds[s.Common.Id] = &elementIdStructure{ gus.SignalIds[s.Common.Id] = &elementIdStructure{
CommonId: s.Common.Id, CommonId: s.Common.Id,
Index: s.Index,
Uid: GenerateElementUid(city, lineId, s.CentralizedStations, s.Code), Uid: GenerateElementUid(city, lineId, s.CentralizedStations, s.Code),
} }
} }
@ -120,7 +115,6 @@ func initStationUid(data *graphicData.RtssGraphicStorage) *StationUidStructure {
for _, t := range data.Transponders { for _, t := range data.Transponders {
gus.TransponderIds[t.Common.Id] = &elementIdStructure{ gus.TransponderIds[t.Common.Id] = &elementIdStructure{
CommonId: t.Common.Id, CommonId: t.Common.Id,
Index: t.Index,
Uid: GenerateElementUid(city, lineId, t.CentralizedStations, t.Code), Uid: GenerateElementUid(city, lineId, t.CentralizedStations, t.Code),
} }
} }