// Code generated by swaggo/swag. DO NOT EDIT. package docs import "github.com/swaggo/swag" const docTemplate = `{ "schemes": {{ marshal .Schemes }}, "swagger": "2.0", "info": { "description": "{{escape .Description}}", "title": "{{.Title}}", "contact": {}, "version": "{{.Version}}" }, "host": "{{.Host}}", "basePath": "{{.BasePath}}", "paths": { "/v1/config/net": { "get": { "produces": [ "application/json" ], "tags": [ "Config" ], "summary": "获取网络配置", "responses": { "200": { "description": "成功", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/model.NetConfig" } } } } ] } } } }, "post": { "produces": [ "application/json" ], "tags": [ "Config" ], "summary": "设置网络配置", "parameters": [ { "description": "参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/model.NetConfig" } } ], "responses": { "200": { "description": "成功", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/response.ProcessParams" } } } } ] } } } } }, "/v1/config/plc": { "get": { "produces": [ "application/json" ], "tags": [ "Config" ], "summary": "获取plc配置", "responses": { "200": { "description": "成功", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/model.DevicePlc" } } } ] } } } }, "post": { "produces": [ "application/json" ], "tags": [ "Config" ], "summary": "更新plc配置", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdatePlc" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/v1/device/config": { "post": { "produces": [ "application/json" ], "tags": [ "设备" ], "summary": "设置设备一些配置", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.DeviceConfig" } } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/v1/device/list": { "get": { "produces": [ "application/json" ], "tags": [ "设备" ], "summary": "获取当前面板绑定的设备列表", "responses": { "200": { "description": "成功", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.DeviceListResponse" } } } ] } } } } }, "/v1/device/setCurrentDeviceId": { "post": { "produces": [ "application/json" ], "tags": [ "设备" ], "summary": "设置当前设备id", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.SetCurrentDevice" } } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/v1/plc/productProgress": { "post": { "produces": [ "application/json" ], "tags": [ "生产数量" ], "summary": "获取生产进度", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.GetProductProgress" } } ], "responses": { "200": { "description": "成功", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.ProductProgress" } } } ] } } } } }, "/v1/plc/setProductNumber": { "post": { "produces": [ "application/json" ], "tags": [ "生产数量" ], "summary": "设置生产总量", "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/v1/plcBrand/add": { "post": { "produces": [ "application/json" ], "tags": [ "plc品牌" ], "summary": "添加plc品牌", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddPlcBrand" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/v1/plcBrand/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "plc品牌" ], "summary": "删除plc品牌", "parameters": [ { "type": "integer", "description": "查询参数", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/v1/plcBrand/list": { "get": { "produces": [ "application/json" ], "tags": [ "plc品牌" ], "summary": "获取plc品牌列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/response.ListResponse" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/model.PlcBrand" } } } } ] } } } } }, "/v1/plcBrand/update": { "put": { "produces": [ "application/json" ], "tags": [ "plc品牌" ], "summary": "更新plc品牌", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdatePlcBrand" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/v1/processModel/list": { "get": { "produces": [ "application/json" ], "tags": [ "工艺模型" ], "summary": "获取工艺模型列表", "parameters": [ { "type": "integer", "description": "页码", "name": "page", "in": "query" }, { "type": "integer", "description": "每页大小", "name": "pageSize", "in": "query" }, { "type": "integer", "description": "当前的工序id", "name": "procedureId", "in": "query", "required": true } ], "responses": { "200": { "description": "成功", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/model.ProcessModel" } } } } ] } } } } }, "/v1/system/problemList": { "get": { "produces": [ "application/json" ], "tags": [ "系统" ], "summary": "问题诊断/问题列表", "responses": { "200": { "description": "成功", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/problem.CheckResult" } } } } ] } } } } }, "/v1/task/countdown": { "get": { "produces": [ "application/json" ], "tags": [ "Task" ], "summary": "新任务倒计时", "responses": { "200": { "description": "成功", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.TaskCountdown" } } } ] } } } } }, "/v1/task/finish/{id}": { "put": { "produces": [ "application/json" ], "tags": [ "Task" ], "summary": "任务结束", "parameters": [ { "type": "integer", "description": "工序id", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/v1/task/get": { "get": { "produces": [ "application/json" ], "tags": [ "Task" ], "summary": "获取任务", "parameters": [ { "type": "integer", "description": "页码", "name": "page", "in": "query" }, { "type": "integer", "description": "每页大小", "name": "pageSize", "in": "query" }, { "enum": [ 1, 2, 3 ], "type": "integer", "x-enum-comments": { "TaskModeCurrent": "未开始的和进行中的", "TaskModeLastFinished": "上一个结束的", "TaskModeUnStarted": "未开始的" }, "x-enum-varnames": [ "TaskModeUnStarted", "TaskModeCurrent", "TaskModeLastFinished" ], "name": "taskMode", "in": "query" } ], "responses": { "200": { "description": "成功", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.TaskResponse" } } } ] } } } } }, "/v1/task/list": { "get": { "produces": [ "application/json" ], "tags": [ "Task" ], "summary": "获取任务列表2", "parameters": [ { "type": "integer", "description": "通道号。不传取全部的", "name": "channel", "in": "query" }, { "type": "string", "name": "deviceID", "in": "query" }, { "type": "integer", "description": "默认3", "name": "limit", "in": "query" }, { "type": "integer", "description": "默认0", "name": "offset", "in": "query" }, { "enum": [ 1, 2, 3 ], "type": "integer", "x-enum-varnames": [ "QueryTypeUnFinish", "QueryTypeToday", "QueryTypeFinished" ], "description": "1 未完成 2 今天未完成 3 已完成", "name": "type", "in": "query" } ], "responses": { "200": { "description": "成功", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "type": "object", "additionalProperties": { "$ref": "#/definitions/response.TaskResponse" } } } } ] } } } } }, "/v1/task/sendProcessParams": { "post": { "produces": [ "application/json" ], "tags": [ "Task" ], "summary": "下发工艺参数(开始任务)", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.SendProcessParams" } } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/v1/task/start/{id}": { "get": { "produces": [ "application/json" ], "tags": [ "Task" ], "summary": "任务开始(获取工艺参数)", "parameters": [ { "type": "integer", "description": "工序id", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "成功", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.ProcessParamsResponse" } } } ] } } } } }, "/v1/task/updateProcessParams": { "post": { "produces": [ "application/json" ], "tags": [ "Task" ], "summary": "更新工艺参数(进行中的任务)", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.SendProcessParams" } } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/contextx.Response" } } } } } }, "definitions": { "common.ProcedureMaterial": { "type": "object", "properties": { "amount": { "type": "number" }, "materialId": { "type": "string" }, "materialName": { "type": "string" }, "unit": { "type": "string" } } }, "common.ProcedureWorker": { "type": "object", "properties": { "endTime": { "type": "integer" }, "phoneNum": { "type": "string" }, "startTime": { "type": "integer" }, "workerId": { "type": "string" }, "workerName": { "type": "string" } } }, "common.ProductProcedure": { "type": "object", "properties": { "allProcedureNames": { "description": "所属工单工序列表", "type": "array", "items": { "type": "string" } }, "channel": { "description": "通道序号", "type": "integer" }, "deviceId": { "type": "string" }, "deviceName": { "type": "string" }, "endTime": { "type": "integer" }, "inputMaterials": { "description": "输入物料列表", "type": "array", "items": { "$ref": "#/definitions/common.ProcedureMaterial" } }, "nextProcedureId": { "type": "string" }, "nextProcedureName": { "type": "string" }, "outputMaterials": { "description": "输出物料列表", "type": "array", "items": { "$ref": "#/definitions/common.ProcedureMaterial" } }, "procedureId": { "type": "string" }, "procedureName": { "type": "string" }, "startTime": { "type": "integer" }, "workHours": { "type": "number" }, "workers": { "description": "人员列表", "type": "array", "items": { "$ref": "#/definitions/common.ProcedureWorker" } } } }, "conf.Prompt": { "type": "object", "properties": { "plcNotConnected": { "type": "string" }, "safeProduce": { "type": "string" } } }, "constvar.Parity": { "type": "integer", "enum": [ 1, 2, 3 ], "x-enum-comments": { "ParityEven": "奇校验", "ParityNull": "无校验", "ParityOdd": "偶校验" }, "x-enum-varnames": [ "ParityEven", "ParityOdd", "ParityNull" ] }, "constvar.PlcMethod": { "type": "string", "enum": [ "modbusTCP", "modbusRTU", "serial", "网络", "串口" ], "x-enum-varnames": [ "PlcMethodModbusTCP", "PlcMethodModbusRTU", "PlcMethodSerial", "PlcMethodModbusTCPChinese", "PlcMethodSerialChinese" ] }, "constvar.PlcStartAddressType": { "type": "integer", "enum": [ 1, 2 ], "x-enum-varnames": [ "PlcStartAddressTypeFinishNumber", "PlcStartAddressTypeTotalNumber" ] }, "constvar.PlcStartAddressValueType": { "type": "string", "enum": [ "string", "int16", "int32" ], "x-enum-varnames": [ "PlcStartAddressValueTypeString", "PlcStartAddressValueTypeInt16", "PlcStartAddressValueTypeInt32" ] }, "constvar.ProblemCode": { "type": "string", "enum": [ "service", "network", "db", "serf", "cloud", "device", "process_model", "plc_config", "plc_address_list", "plc_process_model_address_list", "plc_connect" ], "x-enum-comments": { "ProblemCodeCloud": "未连接云端", "ProblemCodeDB": "数据库连接错误", "ProblemCodeDevice": "未绑定设备", "ProblemCodeNetwork": "网络错误", "ProblemCodePlcAddressList": "plc地址表缺失", "ProblemCodePlcConfig": "plc配置缺失", "ProblemCodePlcConnect": "plc连接失败", "ProblemCodePlcProcessModelAddressList": "plc地址表缺失", "ProblemCodeProcessModel": "工艺参数缺失", "ProblemCodeSerf": "未加入serf集群", "ProblemCodeService": "服务不可用" }, "x-enum-varnames": [ "ProblemCodeService", "ProblemCodeNetwork", "ProblemCodeDB", "ProblemCodeSerf", "ProblemCodeCloud", "ProblemCodeDevice", "ProblemCodeProcessModel", "ProblemCodePlcConfig", "ProblemCodePlcAddressList", "ProblemCodePlcProcessModelAddressList", "ProblemCodePlcConnect" ] }, "constvar.TaskMode": { "type": "integer", "enum": [ 1, 2, 3 ], "x-enum-comments": { "TaskModeCurrent": "未开始的和进行中的", "TaskModeLastFinished": "上一个结束的", "TaskModeUnStarted": "未开始的" }, "x-enum-varnames": [ "TaskModeUnStarted", "TaskModeCurrent", "TaskModeLastFinished" ] }, "contextx.Response": { "type": "object", "properties": { "code": { "type": "integer" }, "data": {}, "msg": { "type": "string" } } }, "model.DevicePlc": { "type": "object", "properties": { "address": { "description": "plc ip地址, method = modbusTCP用", "type": "string" }, "baudRate": { "description": "串口波特率, method = serial时 用", "type": "integer" }, "brand": { "type": "string" }, "createdAt": { "type": "string" }, "dataBit": { "description": "数据位,method = modbusRTU 用", "type": "integer" }, "deletedAt": { "type": "string" }, "details": { "type": "array", "items": { "$ref": "#/definitions/model.DevicePlcAddress" } }, "deviceID": { "description": "设备编号", "type": "string" }, "id": { "type": "integer" }, "isOpen": { "type": "boolean" }, "method": { "$ref": "#/definitions/constvar.PlcMethod" }, "parity": { "description": "校验方式,method = modbusRTU 用", "allOf": [ { "$ref": "#/definitions/constvar.Parity" } ] }, "port": { "description": "plc 端口号, method = modbusTCP用", "type": "integer" }, "serialName": { "description": "串口名称,method = serial时 用", "type": "string" }, "stopBit": { "description": "停止位,method = modbusRTU 用", "type": "integer" }, "updatedAt": { "type": "string" } } }, "model.DevicePlcAddress": { "type": "object", "properties": { "channel": { "description": "数据起始地址", "type": "integer" }, "fieldName": { "description": "对应系统字段", "allOf": [ { "$ref": "#/definitions/constvar.PlcStartAddressType" } ] }, "length": { "description": "数据长度", "type": "integer" }, "startAddress": { "description": "数据起始地址", "type": "integer" }, "type": { "description": "数据类型", "allOf": [ { "$ref": "#/definitions/constvar.PlcStartAddressValueType" } ] } } }, "model.NetConfig": { "type": "object", "required": [ "gateway", "ip", "mask", "networkCard" ], "properties": { "createdAt": { "type": "string" }, "deletedAt": { "type": "string" }, "dns": { "description": "dns", "type": "string" }, "gateway": { "description": "网关", "type": "string" }, "id": { "type": "integer" }, "ip": { "description": "本机ip", "type": "string" }, "mask": { "description": "子网掩码", "type": "string" }, "networkCard": { "description": "网卡", "type": "string" }, "status": { "description": "状态(1启用2禁用)", "allOf": [ { "$ref": "#/definitions/model.NetConfigStatus" } ] }, "updatedAt": { "type": "string" } } }, "model.NetConfigStatus": { "type": "integer", "enum": [ 1, 2 ], "x-enum-comments": { "NetConfigStatusDisabled": "关闭", "NetConfigStatusEnabled": "开启" }, "x-enum-varnames": [ "NetConfigStatusEnabled", "NetConfigStatusDisabled" ] }, "model.Order": { "type": "object", "properties": { "amount": { "type": "number" }, "createdAt": { "type": "string" }, "customer": { "type": "string" }, "deletedAt": { "type": "string" }, "deliverDate": { "type": "string" }, "endTime": { "type": "integer" }, "id": { "type": "integer" }, "orderAttr": { "description": "订单属性拼接的字符串,即货物描述", "type": "string" }, "orderId": { "type": "string" }, "parameter": { "type": "string" }, "productId": { "type": "string" }, "productName": { "type": "string" }, "startTime": { "type": "integer" }, "status": { "$ref": "#/definitions/model.OrderStatus" }, "unit": { "type": "string" }, "updatedAt": { "type": "string" }, "workOrderId": { "type": "string" } } }, "model.OrderStatus": { "type": "integer", "enum": [ 1, 2, 3 ], "x-enum-varnames": [ "OrderStatusWaitProcess", "OrderStatusProcessing", "OrderStatusFinished" ] }, "model.PlcBrand": { "type": "object", "properties": { "createdAt": { "type": "string" }, "deletedAt": { "type": "string" }, "id": { "type": "integer" }, "name": { "type": "string" }, "updatedAt": { "type": "string" } } }, "model.ProcedureStatus": { "type": "integer", "enum": [ 1, 2, 3 ], "x-enum-varnames": [ "ProcedureStatusWaitProcess", "ProcedureStatusProcessing", "ProcedureStatusFinished" ] }, "model.Procedures": { "type": "object", "properties": { "channel": { "description": "通道", "type": "integer" }, "createdAt": { "type": "string" }, "deletedAt": { "type": "string" }, "deviceId": { "type": "string" }, "endTime": { "type": "integer" }, "id": { "type": "integer" }, "procedure": { "description": "common.ProductProcedure 对象", "allOf": [ { "$ref": "#/definitions/common.ProductProcedure" } ] }, "procedureId": { "type": "string" }, "processModelNumber": { "description": "工艺模型编号", "type": "string" }, "realEndTime": { "type": "integer" }, "realStartTime": { "type": "integer" }, "startTime": { "type": "integer" }, "status": { "$ref": "#/definitions/model.ProcedureStatus" }, "updatedAt": { "type": "string" } } }, "model.ProcessModel": { "type": "object", "properties": { "createdAt": { "type": "string" }, "deletedAt": { "type": "string" }, "deviceId": { "description": "用于过滤获取nsq消息", "type": "string" }, "id": { "type": "integer" }, "isUpdate": { "description": "前端用", "type": "boolean" }, "newNumber": { "type": "string" }, "newParamsMap": { "type": "object", "additionalProperties": true }, "number": { "description": "工艺模型编号", "type": "string" }, "params": { "type": "string" }, "paramsMap": { "type": "object", "additionalProperties": true }, "procedure": { "description": "工序", "type": "string" }, "product": { "description": "产品名称", "type": "string" }, "updatedAt": { "type": "string" } } }, "problem.CheckResult": { "type": "object", "properties": { "checkResult": { "type": "boolean" }, "itemCode": { "$ref": "#/definitions/constvar.ProblemCode" }, "itemName": { "type": "string" } } }, "request.AddPlcBrand": { "type": "object", "properties": { "createdAt": { "type": "string" }, "deletedAt": { "type": "string" }, "id": { "type": "integer" }, "name": { "type": "string" }, "updatedAt": { "type": "string" } } }, "request.DeviceConfig": { "type": "object", "properties": { "needSetProcessParams": { "description": "是否需要设置工艺参数", "type": "boolean" } } }, "request.GetProductProgress": { "type": "object", "properties": { "channel": { "type": "integer" } } }, "request.QueryType": { "type": "integer", "enum": [ 1, 2, 3 ], "x-enum-varnames": [ "QueryTypeUnFinish", "QueryTypeToday", "QueryTypeFinished" ] }, "request.SendProcessParams": { "type": "object", "required": [ "procedureId" ], "properties": { "procedureId": { "type": "integer" } } }, "request.SetCurrentDevice": { "type": "object", "properties": { "currentDeviceID": { "description": "当前选定的生产设备", "type": "string" } } }, "request.UpdatePlc": { "type": "object", "properties": { "address": { "description": "plc ip地址, method = modbusTCP用", "type": "string" }, "baudRate": { "description": "串口波特率, method = serial时 用", "type": "integer" }, "brand": { "type": "string" }, "createdAt": { "type": "string" }, "dataBit": { "description": "数据位,method = modbusRTU 用", "type": "integer" }, "deletedAt": { "type": "string" }, "details": { "type": "array", "items": { "$ref": "#/definitions/model.DevicePlcAddress" } }, "deviceID": { "description": "设备编号", "type": "string" }, "id": { "type": "integer" }, "isOpen": { "type": "boolean" }, "method": { "$ref": "#/definitions/constvar.PlcMethod" }, "parity": { "description": "校验方式,method = modbusRTU 用", "allOf": [ { "$ref": "#/definitions/constvar.Parity" } ] }, "port": { "description": "plc 端口号, method = modbusTCP用", "type": "integer" }, "serialName": { "description": "串口名称,method = serial时 用", "type": "string" }, "stopBit": { "description": "停止位,method = modbusRTU 用", "type": "integer" }, "updatedAt": { "type": "string" } } }, "request.UpdatePlcBrand": { "type": "object", "properties": { "createdAt": { "type": "string" }, "deletedAt": { "type": "string" }, "id": { "type": "integer" }, "name": { "type": "string" }, "updatedAt": { "type": "string" } } }, "response.Device": { "type": "object", "properties": { "deviceID": { "type": "string" }, "deviceName": { "type": "string" } } }, "response.DeviceListResponse": { "type": "object", "properties": { "clusterNodeQuantity": { "description": "集群节点数量", "type": "integer" }, "clusterStatus": { "description": "集群状态", "type": "string" }, "currentDeviceID": { "description": "当前选定的生产设备", "type": "string" }, "deviceList": { "description": "生产设备id列表", "type": "array", "items": { "$ref": "#/definitions/response.Device" } }, "systemDeviceID": { "description": "工控机设备ID", "type": "string" }, "systemDeviceRunSince": { "description": "系统运行开始时间戳", "type": "integer" }, "systemDeviceStatus": { "description": "设备状态", "allOf": [ { "$ref": "#/definitions/response.SystemDeviceStatus" } ] } } }, "response.ListResponse": { "type": "object", "properties": { "code": { "type": "integer" }, "count": { "type": "integer" }, "data": {}, "msg": { "type": "string" } } }, "response.ProcessParams": { "type": "object", "properties": { "key": { "type": "string" }, "value": {} } }, "response.ProcessParamsResponse": { "type": "object", "properties": { "number": { "type": "string" }, "params": { "type": "array", "items": { "$ref": "#/definitions/response.ProcessParams" } } } }, "response.ProductProgress": { "type": "object", "properties": { "RealEndTime": { "type": "integer" }, "RealStartTime": { "type": "integer" }, "finishNumber": { "type": "integer" }, "plcStatus": { "type": "integer" }, "totalNumber": { "type": "integer" } } }, "response.SystemDeviceStatus": { "type": "integer", "enum": [ 1, 2 ], "x-enum-comments": { "SystemDeviceStatusNormal": "正常", "SystemDeviceStatusUnNormal": "异常" }, "x-enum-varnames": [ "SystemDeviceStatusNormal", "SystemDeviceStatusUnNormal" ] }, "response.TaskCountdown": { "type": "object", "properties": { "countDownHour": { "description": "倒计时 时", "type": "integer" }, "countDownMinute": { "description": "倒计时 分", "type": "integer" }, "showCountDown": { "description": "是否展示倒计时", "type": "boolean" } } }, "response.TaskData": { "type": "object", "properties": { "allProcedures": { "type": "array", "items": { "type": "string" } }, "canStarted": { "description": "是否可以开始生产", "type": "boolean" }, "channel": { "description": "当前任务在设备第几个通道", "type": "integer" }, "currentProcedureIndex": { "type": "integer" }, "order": { "$ref": "#/definitions/model.Order" }, "procedure": { "$ref": "#/definitions/model.Procedures" } } }, "response.TaskResponse": { "type": "object", "properties": { "channelAmount": { "description": "通道数量", "type": "integer" }, "prompt": { "description": "提示语", "allOf": [ { "$ref": "#/definitions/conf.Prompt" } ] }, "taskCount": { "description": "任务数量", "type": "integer" }, "tasks": { "description": "任务列表", "type": "array", "items": { "$ref": "#/definitions/response.TaskData" } }, "workers": { "description": "人员列表", "type": "array", "items": { "$ref": "#/definitions/common.ProcedureWorker" } } } } } }` // SwaggerInfo holds exported Swagger Info so clients can modify it var SwaggerInfo = &swag.Spec{ Version: "", Host: "", BasePath: "", Schemes: []string{}, Title: "", Description: "", InfoInstanceName: "swagger", SwaggerTemplate: docTemplate, LeftDelim: "{{", RightDelim: "}}", } func init() { swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo) }