{ "swagger": "2.0", "info": { "contact": {} }, "paths": { "/v1/notice/task/start": { "post": { "produces": [ "application/json" ], "tags": [ "Base" ], "summary": "任务开启通知", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.TaskInfo" } } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/v1/task/list": { "get": { "produces": [ "application/json" ], "tags": [ "Base" ], "summary": "任务开启通知", "parameters": [ { "type": "integer", "description": "页码", "name": "page", "in": "query" }, { "type": "integer", "description": "每页大小", "name": "pageSize", "in": "query" } ], "responses": { "200": { "description": "成功", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/model.ScheduleTask" } } } } ] } } } } } }, "definitions": { "contextx.Response": { "type": "object", "properties": { "code": { "type": "integer" }, "data": {}, "msg": { "type": "string" } } }, "model.ScheduleTask": { "type": "object", "properties": { "amount": { "description": "Parameter string `json:\"parameter\"` //产品名称\nCustomer string `json:\"customer\"`\nDeliverDate string `json:\"deliverDate\"`\nOrderAttr string `json:\"orderAttr\"`", "type": "number" }, "data": { "description": "排程任务json串", "type": "string" }, "endTime": { "type": "integer" }, "id": { "type": "integer" }, "orderId": { "description": "订单id", "type": "string" }, "productId": { "description": "订单id", "type": "string" }, "productName": { "description": "产品名称", "type": "string" }, "startTime": { "type": "integer" }, "unit": { "type": "string" } } }, "request.TaskInfo": { "type": "object", "properties": { "device": { "description": "设备", "type": "string" }, "orderId": { "description": "订单号", "type": "string" }, "password": { "description": "产品", "type": "string" }, "procedure": { "description": "工序", "type": "string" }, "workOrder": { "description": "工单", "type": "string" } } } } }