| | |
| | | } |
| | | } |
| | | }, |
| | | "/v1/reportWork/list": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "报工" |
| | | ], |
| | | "summary": "报工列表", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.ReportWorkList" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/contextx.ResponseList" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/model.ReportWork" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/v1/reportWork/report": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "报工" |
| | | ], |
| | | "summary": "上报", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.ReportWork" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/v1/system/problemList": { |
| | | "get": { |
| | | "produces": [ |
| | |
| | | } |
| | | } |
| | | }, |
| | | "contextx.ResponseList": { |
| | | "type": "object", |
| | | "properties": { |
| | | "code": { |
| | | "type": "integer" |
| | | }, |
| | | "data": {}, |
| | | "msg": { |
| | | "type": "string" |
| | | }, |
| | | "total": { |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "model.DevicePlc": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "model.ReportWork": { |
| | | "type": "object", |
| | | "properties": { |
| | | "channel": { |
| | | "description": "通道", |
| | | "type": "integer" |
| | | }, |
| | | "createdAt": { |
| | | "type": "string" |
| | | }, |
| | | "deletedAt": { |
| | | "type": "string" |
| | | }, |
| | | "deviceId": { |
| | | "type": "string" |
| | | }, |
| | | "deviceName": { |
| | | "type": "string" |
| | | }, |
| | | "endTime": { |
| | | "type": "integer" |
| | | }, |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "procedureId": { |
| | | "type": "string" |
| | | }, |
| | | "proceduresId": { |
| | | "description": "procedures表的id", |
| | | "type": "integer" |
| | | }, |
| | | "startTime": { |
| | | "type": "integer" |
| | | }, |
| | | "updatedAt": { |
| | | "type": "string" |
| | | }, |
| | | "workOrderId": { |
| | | "type": "string" |
| | | }, |
| | | "workerID": { |
| | | "description": "报工人id", |
| | | "type": "string" |
| | | }, |
| | | "workerName": { |
| | | "description": "报工人姓名", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "problem.CheckResult": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | "QueryTypeFinished" |
| | | ] |
| | | }, |
| | | "request.ReportWork": { |
| | | "type": "object", |
| | | "required": [ |
| | | "procedureId", |
| | | "reportAmount", |
| | | "workerID" |
| | | ], |
| | | "properties": { |
| | | "procedureId": { |
| | | "description": "工序id", |
| | | "type": "integer" |
| | | }, |
| | | "reportAmount": { |
| | | "description": "报工数量", |
| | | "type": "integer" |
| | | }, |
| | | "workerID": { |
| | | "description": "报告者id", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "request.ReportWorkList": { |
| | | "type": "object", |
| | | "required": [ |
| | | "procedureId" |
| | | ], |
| | | "properties": { |
| | | "page": { |
| | | "description": "页码", |
| | | "type": "integer" |
| | | }, |
| | | "pageSize": { |
| | | "description": "每页大小", |
| | | "type": "integer" |
| | | }, |
| | | "procedureId": { |
| | | "description": "工序id", |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "request.SendProcessParams": { |
| | | "type": "object", |
| | | "required": [ |