| | |
| | | worker: |
| | | allOf: |
| | | - $ref: '#/definitions/models.Worker' |
| | | description: 工人ID |
| | | description: 工人 |
| | | workerId: |
| | | description: 工人ID |
| | | type: string |
| | |
| | | workType: |
| | | type: string |
| | | workTypeId: |
| | | type: integer |
| | | type: object |
| | | models.WorkerPosition: |
| | | properties: |
| | | createdAt: |
| | | type: string |
| | | creator: |
| | | type: string |
| | | deletedAt: |
| | | $ref: '#/definitions/gorm.DeletedAt' |
| | | endDate: |
| | | description: 结束日期 |
| | | type: string |
| | | endWorkerPosition: |
| | | description: 结束车号 |
| | | type: integer |
| | | id: |
| | | type: integer |
| | | name: |
| | | description: 车间 |
| | | type: string |
| | | startDate: |
| | | description: 开始日期 |
| | | type: string |
| | | startWorkerPosition: |
| | | description: 开始车号 |
| | | type: integer |
| | | updatedAt: |
| | | type: string |
| | | worker: |
| | | allOf: |
| | | - $ref: '#/definitions/models.Worker' |
| | | description: 工人 |
| | | workerId: |
| | | description: 工人ID |
| | | type: string |
| | | workshopGroup: |
| | | description: 车组 |
| | | type: integer |
| | | type: object |
| | | models.WorkshopManage: |
| | |
| | | description: 工人ID |
| | | type: string |
| | | type: object |
| | | request.AddWorkPositionRequest: |
| | | properties: |
| | | endDate: |
| | | description: 结束日期 |
| | | type: string |
| | | endWorkerPosition: |
| | | description: 结束车号 |
| | | type: integer |
| | | startDate: |
| | | description: 开始日期 |
| | | type: string |
| | | startWorkerPosition: |
| | | description: 开始车号 |
| | | type: integer |
| | | workerId: |
| | | description: 工人ID |
| | | type: string |
| | | workshop: |
| | | description: 车间 |
| | | type: string |
| | | workshopGroup: |
| | | description: 车组 |
| | | type: integer |
| | | required: |
| | | - endDate |
| | | - endWorkerPosition |
| | | - startDate |
| | | - startWorkerPosition |
| | | - workerId |
| | | - workshop |
| | | - workshopGroup |
| | | type: object |
| | | request.ChangeYieldRegister: |
| | | properties: |
| | | createTime: |
| | |
| | | type: integer |
| | | type: object |
| | | request.GetWorkerList: |
| | | properties: |
| | | keyword: |
| | | type: string |
| | | page: |
| | | description: 页码 |
| | | type: integer |
| | | pageSize: |
| | | description: 每页大小 |
| | | type: integer |
| | | type: object |
| | | request.GetWorkerPositionList: |
| | | properties: |
| | | keyword: |
| | | type: string |
| | |
| | | workerId: |
| | | description: 工人ID |
| | | type: string |
| | | type: object |
| | | request.UpdateWorkerPositionRequest: |
| | | properties: |
| | | endDate: |
| | | description: 结束日期 |
| | | type: string |
| | | endWorkerPosition: |
| | | description: 结束车号 |
| | | type: integer |
| | | id: |
| | | type: integer |
| | | startDate: |
| | | description: 开始日期 |
| | | type: string |
| | | startWorkerPosition: |
| | | description: 开始车号 |
| | | type: integer |
| | | workerId: |
| | | description: 工人ID |
| | | type: string |
| | | workshop: |
| | | description: 车间 |
| | | type: string |
| | | workshopGroup: |
| | | description: 车组 |
| | | type: integer |
| | | required: |
| | | - endDate |
| | | - endWorkerPosition |
| | | - startDate |
| | | - startWorkerPosition |
| | | - workerId |
| | | - workshop |
| | | - workshopGroup |
| | | type: object |
| | | request.YieldRegisterCircleInfo: |
| | | properties: |
| | |
| | | summary: 更新人员信息 |
| | | tags: |
| | | - 员工管理/员工信息 |
| | | /api-jl/v1/workerPosition/createWorkerPositionInfo: |
| | | post: |
| | | parameters: |
| | | - description: 参数 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.AddWorkPositionRequest' |
| | | - description: token |
| | | in: header |
| | | name: Authorization |
| | | required: true |
| | | type: string |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/util.Response' |
| | | summary: 创建机台信息 |
| | | tags: |
| | | - 机台管理 |
| | | /api-jl/v1/workerPosition/deleteWorkerPositionInfo/{id}: |
| | | delete: |
| | | parameters: |
| | | - description: id |
| | | in: path |
| | | name: id |
| | | required: true |
| | | type: string |
| | | - description: token |
| | | in: header |
| | | name: Authorization |
| | | required: true |
| | | type: string |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/util.Response' |
| | | summary: 删除机台信息 |
| | | tags: |
| | | - 机台管理 |
| | | /api-jl/v1/workerPosition/getWorkerPositionList: |
| | | post: |
| | | parameters: |
| | | - description: 参数 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.GetWorkerPositionList' |
| | | - description: token |
| | | in: header |
| | | name: Authorization |
| | | required: true |
| | | type: string |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | allOf: |
| | | - $ref: '#/definitions/util.ResponseList' |
| | | - properties: |
| | | data: |
| | | items: |
| | | $ref: '#/definitions/models.WorkerPosition' |
| | | type: array |
| | | type: object |
| | | summary: 获取机台信息列表 |
| | | tags: |
| | | - 机台管理 |
| | | /api-jl/v1/workerPosition/updateWorkerPositionInfo: |
| | | post: |
| | | parameters: |
| | | - description: 参数 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.UpdateWorkerPositionRequest' |
| | | - description: token |
| | | in: header |
| | | name: Authorization |
| | | required: true |
| | | type: string |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/util.Response' |
| | | summary: 更新机台信息 |
| | | tags: |
| | | - 机台管理 |
| | | swagger: "2.0" |