// 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": { "/api-outsourcing/v1/order/changeStatus": { "post": { "produces": [ "application/json" ], "tags": [ "订单管理" ], "summary": "修改状态", "parameters": [ { "description": "参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.ChangeStatus" } } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/util.Response" } } } } }, "/api-outsourcing/v1/order/deliveryList": { "post": { "produces": [ "application/json" ], "tags": [ "订单管理" ], "summary": "获取发货列表", "parameters": [ { "description": "参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.GetDeliveryList" } } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/util.ResponseList" } } } } }, "/api-outsourcing/v1/order/deliveryPrepare": { "get": { "produces": [ "application/json" ], "tags": [ "订单管理" ], "summary": "发货准备", "parameters": [ { "type": "integer", "description": "委外订单ID", "name": "outsourcingOrderID", "in": "query" } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/util.Response" } } } } }, "/api-outsourcing/v1/order/getMaterialApplyList": { "post": { "produces": [ "application/json" ], "tags": [ "订单管理" ], "summary": "获取物料申请单", "parameters": [ { "description": "参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.GetMaterialApplyList" } } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/util.ResponseList" } } } } }, "/api-outsourcing/v1/order/list": { "get": { "produces": [ "application/json" ], "tags": [ "订单管理" ], "summary": "委外订单列表", "parameters": [ { "type": "string", "name": "keyword", "in": "query" }, { "type": "integer", "description": "页码", "name": "page", "in": "query" }, { "type": "integer", "description": "每页大小", "name": "pageSize", "in": "query" } ], "responses": { "200": { "description": "成功", "schema": { "allOf": [ { "$ref": "#/definitions/util.ResponseList" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/models.OutsourcingOrder" } } } } ] } } } } }, "/api-outsourcing/v1/order/materialSearch": { "post": { "produces": [ "application/json" ], "tags": [ "订单管理" ], "summary": "物料搜索", "parameters": [ { "description": "参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.MaterialSearch" } } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/util.ResponseList" } } } } }, "/api-outsourcing/v1/order/overview": { "get": { "produces": [ "application/json" ], "tags": [ "订单管理" ], "summary": "订单统计", "responses": { "200": { "description": "成功", "schema": { "allOf": [ { "$ref": "#/definitions/util.ResponseList" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/request.OutsourcingOrderOverview" } } } ] } } } } }, "/api-outsourcing/v1/order/productList": { "get": { "produces": [ "application/json" ], "tags": [ "订单管理" ], "summary": "委外订单产品列表", "parameters": [ { "type": "string", "name": "keyword", "in": "query" }, { "type": "integer", "name": "outsourcingOrderId", "in": "query", "required": true }, { "type": "integer", "description": "页码", "name": "page", "in": "query" }, { "type": "integer", "description": "每页大小", "name": "pageSize", "in": "query" } ], "responses": { "200": { "description": "成功", "schema": { "allOf": [ { "$ref": "#/definitions/util.ResponseList" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/models.OutsourcingOrderProduct" } } } } ] } } } } }, "/api-outsourcing/v1/order/saveDelivery": { "post": { "produces": [ "application/json" ], "tags": [ "订单管理" ], "summary": "保存发货信息", "parameters": [ { "description": "参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.SaveDelivery" } } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/util.Response" } } } } }, "/api-outsourcing/v1/order/saveMaterialApply": { "post": { "produces": [ "application/json" ], "tags": [ "订单管理" ], "summary": "保存物料申请单", "parameters": [ { "description": "参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.SaveMaterialApply" } } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/util.Response" } } } } } }, "definitions": { "constvar.OutsourcingOrderStatus": { "type": "integer", "enum": [ 0, 1, 2, 3, 4, 5, 6, 7 ], "x-enum-comments": { "OutsourcingOrderStatusAssigned": "已分配委外商", "OutsourcingOrderStatusCreate": "新建待分配委外商", "OutsourcingOrderStatusDeliveryFinish": "发货完成", "OutsourcingOrderStatusFinish": "生产完成", "OutsourcingOrderStatusMaterialApplying": "物料申请中/待领料审核", "OutsourcingOrderStatusMaterialExamineRefused": "领料审核拒绝", "OutsourcingOrderStatusProducing": "生产中", "OutsourcingOrderStatusWaitProduce": "待生产" }, "x-enum-varnames": [ "OutsourcingOrderStatusCreate", "OutsourcingOrderStatusAssigned", "OutsourcingOrderStatusWaitProduce", "OutsourcingOrderStatusMaterialApplying", "OutsourcingOrderStatusMaterialExamineRefused", "OutsourcingOrderStatusProducing", "OutsourcingOrderStatusFinish", "OutsourcingOrderStatusDeliveryFinish" ] }, "models.OutsourcingOrder": { "type": "object", "properties": { "deliveryDate": { "type": "string" }, "enterpriseID": { "description": "供应商ID", "type": "integer" }, "enterpriseName": { "description": "供应商名称", "type": "string" }, "enterpriseType": { "description": "供应商类型", "type": "string" }, "id": { "type": "integer" }, "number": { "description": "订单编号", "type": "string" }, "productQuantity": { "description": "产品数量", "type": "integer" }, "projectId": { "type": "string" }, "projectOrderID": { "type": "string" }, "reason": { "type": "string" }, "signTime": { "type": "string" }, "status": { "description": "状态", "allOf": [ { "$ref": "#/definitions/constvar.OutsourcingOrderStatus" } ] } } }, "models.OutsourcingOrderProduct": { "type": "object", "properties": { "amount": { "type": "integer" }, "bomID": { "type": "string" }, "enterpriseID": { "description": "供应商ID", "type": "integer" }, "id": { "type": "integer" }, "outsourcingOrderID": { "type": "integer" }, "productId": { "type": "string" }, "productName": { "type": "string" }, "sendAmount": { "type": "number" }, "specs": { "type": "string" }, "type": { "type": "string" }, "unit": { "type": "string" } } }, "request.ChangeStatus": { "type": "object", "properties": { "outsourcingOrderNumber": { "description": "委外订单编码", "type": "string" }, "reason": { "type": "string" }, "status": { "$ref": "#/definitions/constvar.OutsourcingOrderStatus" } } }, "request.DeliveryItem": { "type": "object", "properties": { "outsourcingOrderProductID": { "description": "委外订单产品表ID", "type": "integer" }, "sendAmount": { "description": "发货数量", "type": "number" } } }, "request.GetDeliveryList": { "type": "object", "properties": { "outsourcingOrderID": { "description": "委外订单ID", "type": "integer" } } }, "request.GetMaterialApplyList": { "type": "object", "properties": { "number": { "description": "委外订单编码", "type": "string" }, "page": { "description": "页码", "type": "integer" }, "pageSize": { "description": "每页大小", "type": "integer" } } }, "request.MaterialApply": { "type": "object", "properties": { "amount": { "type": "number" }, "materialName": { "type": "string" }, "materialNumber": { "type": "string" }, "outsourcingOrderNumber": { "type": "string" }, "specs": { "type": "string" }, "type": { "type": "string" }, "unit": { "type": "string" } } }, "request.MaterialSearch": { "type": "object", "properties": { "keyword": { "description": "关键字", "type": "string" }, "page": { "description": "页码", "type": "integer" }, "pageSize": { "description": "每页大小", "type": "integer" } } }, "request.OutsourcingOrderOverview": { "type": "object", "properties": { "hasAssigned": { "description": "已分配数量", "type": "integer" }, "total": { "description": "总量", "type": "integer" }, "waitAssigned": { "description": "待分配数量", "type": "integer" } } }, "request.SaveDelivery": { "type": "object", "properties": { "carrier": { "description": "承运商", "type": "string" }, "deliveryList": { "type": "array", "items": { "$ref": "#/definitions/request.DeliveryItem" } }, "number": { "description": "发货单号", "type": "string" }, "outsourcingOrderID": { "description": "委外订单ID", "type": "integer" }, "waybillNumber": { "description": "运单号", "type": "string" } } }, "request.SaveMaterialApply": { "type": "object", "properties": { "applyList": { "type": "array", "items": { "$ref": "#/definitions/request.MaterialApply" } } } }, "util.Response": { "type": "object", "properties": { "code": { "type": "integer" }, "data": {}, "msg": { "type": "string" } } }, "util.ResponseList": { "type": "object", "properties": { "code": { "type": "integer" }, "data": {}, "msg": { "type": "string" }, "page": { "type": "integer" }, "pageSize": { "type": "integer" }, "total": { "type": "integer" } } } } }` // 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) }