{ "swagger": "2.0", "info": { "description": "This is a sample Server pets", "title": "Swagger Example API", "contact": {}, "version": "0.0.1" }, "paths": { "/code/getAutoCode": { "post": { "produces": [ "application/json" ], "tags": [ "编码" ], "summary": "获取自动编码", "parameters": [ { "description": "参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/code.CodeStandard" } } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "type": "object", "additionalProperties": true } } } ] } } } } }, "/code/getCodeList": { "get": { "produces": [ "application/json" ], "tags": [ "编码" ], "summary": "获取编码列表", "parameters": [ { "type": "string", "name": "codeStandID", "in": "query" }, { "type": "string", "name": "name", "in": "query" }, { "type": "integer", "description": "页码", "name": "page", "in": "query" }, { "type": "integer", "description": "每页大小", "name": "pageSize", "in": "query" }, { "type": "string", "name": "type", "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/code.CodeStandard" } } } } ] } } } } }, "/con/createContract": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "multipart/form-data" ], "produces": [ "multipart/form-data" ], "tags": [ "Contract" ], "summary": "创建Contract", "parameters": [ { "type": "file", "description": "上传文件", "name": "file", "in": "formData", "required": true }, { "type": "string", "description": "文件名称", "name": "name", "in": "formData", "required": true } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/con/deleteContract": { "delete": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Contract" ], "summary": "删除Contract", "parameters": [ { "description": "删除Contract", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/test.Contract" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } } } } }, "/con/deleteContractByIds": { "delete": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Contract" ], "summary": "批量删除Contract", "parameters": [ { "description": "批量删除Contract", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.IdsReq" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"批量删除成功\"}", "schema": { "type": "string" } } } } }, "/con/findContract": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Contract" ], "summary": "用id查询Contract", "parameters": [ { "type": "string", "name": "created_at", "in": "query" }, { "type": "string", "name": "fileName", "in": "query" }, { "type": "integer", "description": "主键ID", "name": "id", "in": "query" }, { "type": "integer", "name": "supplierID", "in": "query" }, { "type": "string", "name": "updated_at", "in": "query" } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", "schema": { "type": "string" } } } } }, "/con/getContractList": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Contract" ], "summary": "分页获取Contract列表", "parameters": [ { "type": "string", "name": "created_at", "in": "query" }, { "type": "string", "name": "endCreatedAt", "in": "query" }, { "type": "string", "name": "fileName", "in": "query" }, { "type": "integer", "description": "主键ID", "name": "id", "in": "query" }, { "type": "string", "description": "关键字", "name": "keyword", "in": "query" }, { "type": "integer", "description": "页码", "name": "page", "in": "query" }, { "type": "integer", "description": "每页大小", "name": "pageSize", "in": "query" }, { "type": "string", "name": "startCreatedAt", "in": "query" }, { "type": "integer", "name": "supplierID", "in": "query" }, { "type": "string", "name": "updated_at", "in": "query" } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/con/updateContract": { "put": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Contract" ], "summary": "更新Contract", "parameters": [ { "description": "更新Contract", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/test.Contract" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", "schema": { "type": "string" } } } } }, "/downloadContract": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Contract" ], "summary": "下载Contract", "parameters": [ { "type": "string", "name": "created_at", "in": "query" }, { "type": "string", "name": "fileName", "in": "query" }, { "type": "integer", "description": "主键ID", "name": "id", "in": "query" }, { "type": "integer", "name": "supplierID", "in": "query" }, { "type": "string", "name": "updated_at", "in": "query" } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"下载成功\"}", "schema": { "type": "string" } } } } }, "/i/createIndustry": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Industry" ], "summary": "创建Industry", "parameters": [ { "description": "创建Industry", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/test.Industry" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/i/deleteIndustry": { "delete": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Industry" ], "summary": "删除Industry", "parameters": [ { "description": "删除Industry", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/test.Industry" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } } } } }, "/i/deleteIndustryByIds": { "delete": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Industry" ], "summary": "批量删除Industry", "parameters": [ { "description": "批量删除Industry", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.IdsReq" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"批量删除成功\"}", "schema": { "type": "string" } } } } }, "/i/findIndustry": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Industry" ], "summary": "用id查询Industry", "parameters": [ { "type": "string", "name": "created_at", "in": "query" }, { "type": "integer", "description": "主键ID", "name": "id", "in": "query" }, { "type": "string", "name": "name", "in": "query" }, { "type": "string", "name": "updated_at", "in": "query" } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", "schema": { "type": "string" } } } } }, "/i/getIndustryList": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Industry" ], "summary": "分页获取Industry列表", "parameters": [ { "type": "string", "name": "created_at", "in": "query" }, { "type": "string", "name": "endCreatedAt", "in": "query" }, { "type": "integer", "description": "主键ID", "name": "id", "in": "query" }, { "type": "string", "description": "关键字", "name": "keyword", "in": "query" }, { "type": "string", "name": "name", "in": "query" }, { "type": "integer", "description": "页码", "name": "page", "in": "query" }, { "type": "integer", "description": "每页大小", "name": "pageSize", "in": "query" }, { "type": "string", "name": "startCreatedAt", "in": "query" }, { "type": "string", "name": "updated_at", "in": "query" } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/i/updateIndustry": { "put": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Industry" ], "summary": "更新Industry", "parameters": [ { "description": "更新Industry", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.IndustryList" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", "schema": { "type": "string" } } } } }, "/m/createMember": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Member" ], "summary": "创建Member", "parameters": [ { "description": "创建Member", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/test.Member" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/m/deleteMember": { "delete": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Member" ], "summary": "删除Member", "parameters": [ { "description": "删除Member", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/test.Member" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } } } } }, "/m/deleteMemberByIds": { "delete": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Member" ], "summary": "批量删除Member", "parameters": [ { "description": "批量删除Member", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.IdsReq" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"批量删除成功\"}", "schema": { "type": "string" } } } } }, "/m/findMember": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Member" ], "summary": "用id查询Member", "parameters": [ { "type": "string", "name": "created_at", "in": "query" }, { "type": "integer", "description": "主键ID", "name": "id", "in": "query" }, { "type": "string", "name": "nickname", "in": "query" }, { "type": "string", "name": "updated_at", "in": "query" }, { "type": "string", "name": "userName", "in": "query" }, { "type": "string", "name": "uuid", "in": "query" } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", "schema": { "type": "string" } } } } }, "/m/getMemberList": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Member" ], "summary": "分页获取Member列表", "parameters": [ { "type": "string", "name": "created_at", "in": "query" }, { "type": "string", "name": "endCreatedAt", "in": "query" }, { "type": "integer", "description": "主键ID", "name": "id", "in": "query" }, { "type": "string", "description": "关键字", "name": "keyword", "in": "query" }, { "type": "string", "name": "nickname", "in": "query" }, { "type": "integer", "description": "页码", "name": "page", "in": "query" }, { "type": "integer", "description": "每页大小", "name": "pageSize", "in": "query" }, { "type": "string", "name": "startCreatedAt", "in": "query" }, { "type": "string", "name": "updated_at", "in": "query" }, { "type": "string", "name": "userName", "in": "query" }, { "type": "string", "name": "uuid", "in": "query" } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/m/getMemberListFromGrpc": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Member" ], "summary": "分页获取Member列表", "parameters": [ { "type": "string", "name": "created_at", "in": "query" }, { "type": "string", "name": "endCreatedAt", "in": "query" }, { "type": "integer", "description": "主键ID", "name": "id", "in": "query" }, { "type": "string", "description": "关键字", "name": "keyword", "in": "query" }, { "type": "string", "name": "nickname", "in": "query" }, { "type": "integer", "description": "页码", "name": "page", "in": "query" }, { "type": "integer", "description": "每页大小", "name": "pageSize", "in": "query" }, { "type": "string", "name": "startCreatedAt", "in": "query" }, { "type": "string", "name": "updated_at", "in": "query" }, { "type": "string", "name": "userName", "in": "query" }, { "type": "string", "name": "uuid", "in": "query" } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/m/updateMember": { "put": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Member" ], "summary": "更新Member", "parameters": [ { "description": "更新Member", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/test.Member" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", "schema": { "type": "string" } } } } }, "/p/createProduct": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Product" ], "summary": "创建Product", "parameters": [ { "description": "创建Product", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.ProductCreate" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/p/deleteProduct": { "delete": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Product" ], "summary": "删除Product", "parameters": [ { "description": "删除Product", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/srm_model_common_request.GetById" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } } } } }, "/p/deleteProductByIds": { "delete": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Product" ], "summary": "批量删除Product", "parameters": [ { "description": "批量删除Product", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.IdsReq" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"批量删除成功\"}", "schema": { "type": "string" } } } } }, "/p/findProduct": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Product" ], "summary": "用id查询Product", "parameters": [ { "type": "integer", "description": "主键ID", "name": "id", "in": "query" } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", "schema": { "type": "string" } } } } }, "/p/getProductList": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Product" ], "summary": "分页获取Product列表", "parameters": [ { "type": "string", "name": "categoryName", "in": "query" }, { "type": "integer", "name": "deliveryTime", "in": "query" }, { "type": "string", "description": "关键字", "name": "keyword", "in": "query" }, { "type": "string", "name": "modelNumber", "in": "query" }, { "type": "string", "name": "name", "in": "query" }, { "type": "string", "name": "number", "in": "query" }, { "type": "integer", "description": "页码", "name": "page", "in": "query" }, { "type": "integer", "description": "每页大小", "name": "pageSize", "in": "query" }, { "type": "number", "name": "purchasePrice", "in": "query" }, { "type": "integer", "name": "shippingDuration", "in": "query" }, { "type": "string", "name": "specifications", "in": "query" }, { "type": "string", "name": "supplier", "in": "query" }, { "type": "integer", "name": "supplierId", "in": "query" }, { "type": "string", "name": "supplierName", "in": "query" }, { "type": "string", "name": "supplierNumber", "in": "query" }, { "type": "string", "name": "unit", "in": "query" }, { "type": "string", "description": "token", "name": "Authorization", "in": "header", "required": true } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/p/getProductListFromGrpc": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Product" ], "summary": "分页获取Product列表", "parameters": [ { "type": "string", "name": "categoryName", "in": "query" }, { "type": "integer", "name": "deliveryTime", "in": "query" }, { "type": "string", "description": "关键字", "name": "keyword", "in": "query" }, { "type": "string", "name": "modelNumber", "in": "query" }, { "type": "string", "name": "name", "in": "query" }, { "type": "string", "name": "number", "in": "query" }, { "type": "integer", "description": "页码", "name": "page", "in": "query" }, { "type": "integer", "description": "每页大小", "name": "pageSize", "in": "query" }, { "type": "number", "name": "purchasePrice", "in": "query" }, { "type": "integer", "name": "shippingDuration", "in": "query" }, { "type": "string", "name": "specifications", "in": "query" }, { "type": "string", "name": "supplier", "in": "query" }, { "type": "integer", "name": "supplierId", "in": "query" }, { "type": "string", "name": "supplierName", "in": "query" }, { "type": "string", "name": "supplierNumber", "in": "query" }, { "type": "string", "name": "unit", "in": "query" } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/p/updateProduct": { "put": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Product" ], "summary": "更新Product", "parameters": [ { "description": "更新Product", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/test.SupplierMaterial" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", "schema": { "type": "string" } } } } }, "/previewContract": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Contract" ], "summary": "预览Contract", "parameters": [ { "type": "string", "name": "created_at", "in": "query" }, { "type": "string", "name": "fileName", "in": "query" }, { "type": "integer", "description": "主键ID", "name": "id", "in": "query" }, { "type": "integer", "name": "supplierID", "in": "query" }, { "type": "string", "name": "updated_at", "in": "query" } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"预览成功\"}", "schema": { "type": "string" } } } } }, "/purchase/allProductInWarehouse": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Purchase" ], "summary": "全部合格入库", "parameters": [ { "description": "参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/purchaserequest.PurchaseProductConfirmInfo" } } ], "responses": { "200": { "description": "获取确认信息", "schema": { "$ref": "#/definitions/response.Response" } } } } }, "/purchase/getOperationInfo/{id}": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Purchase" ], "summary": "获取操作信息", "responses": { "200": { "description": "获取操作信息", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/response.OperationInfo" } } } } ] } } } } }, "/purchase/getPurchaseProductConfirmInfo/{number}": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Purchase" ], "summary": "获取确认信息", "parameters": [ { "type": "string", "description": "采购单编码", "name": "number", "in": "path", "required": true } ], "responses": { "200": { "description": "获取确认信息", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/purchase.PurchaseProductConfirm" } } } } ] } } } } }, "/purchase/getPurchaseQualityInspectionInfo": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Purchase" ], "summary": "获取采购质检信息信息", "parameters": [ { "description": "参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/purchaserequest.GetQualityInspectionInfo" } } ], "responses": { "200": { "description": "获取确认信息", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/purchase.PurchaseProductConfirm" } } } } ] } } } } }, "/purchase/getWarehouseInfo": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Purchase" ], "summary": "获取仓库列表", "responses": { "200": { "description": "获取采购类型列表", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/purchase_wms.SrmGetWarehouseInfoResponse" } } } } ] } } } } }, "/purchase/newSubmit": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Purchase" ], "summary": "新版提交", "parameters": [ { "description": "参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/purchaserequest.SubmitPurchase" } } ], "responses": { "200": { "description": "新版提交", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "msg": { "type": "string" } } } ] } } } } }, "/purchase/purchase": { "put": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Purchase" ], "summary": "更新采购单信息", "parameters": [ { "description": "采购单ID, 采购单信息", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/purchaserequest.UpdatePurchase" } } ], "responses": { "200": { "description": "更新采购单信息", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "msg": { "type": "string" } } } ] } } } }, "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Purchase" ], "summary": "创建采购单", "parameters": [ { "description": "采购单,采购单产品", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/purchaserequest.AddPurchase" } } ], "responses": { "200": { "description": "创建采购单", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "msg": { "type": "string" } } } ] } } } } }, "/purchase/purchase/{id}": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Purchase" ], "summary": "获取单一采购单信息", "parameters": [ { "type": "integer", "description": "采购单ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "获取单一采购单信息,返回包括采购单详情", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.PurchaseResponse" }, "msg": { "type": "string" } } } ] } } } }, "delete": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Purchase" ], "summary": "删除采购单", "parameters": [ { "type": "integer", "description": "采购单ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "删除采购单", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "msg": { "type": "string" } } } ] } } } } }, "/purchase/purchaseList": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Purchase" ], "summary": "分页获取采购单列表", "parameters": [ { "type": "string", "description": "关键字", "name": "keyword", "in": "query" }, { "type": "integer", "description": "页码", "name": "page", "in": "query" }, { "type": "integer", "description": "每页大小", "name": "pageSize", "in": "query" }, { "type": "integer", "description": "供应商id", "name": "supplierId", "in": "query" } ], "responses": { "200": { "description": "分页获取采购单列表,返回包括列表,总数,页码,每页数量", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.PageResult" }, "msg": { "type": "string" } } } ] } } } } }, "/purchase/purchaseType": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Purchase" ], "summary": "创建采购类型", "parameters": [ { "description": "采购类型list", "name": "data", "in": "body", "required": true, "schema": { "type": "array", "items": { "$ref": "#/definitions/purchaserequest.PurchaseType" } } } ], "responses": { "200": { "description": "创建采购类型", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "msg": { "type": "string" } } } ] } } } } }, "/purchase/purchaseTypeList": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Purchase" ], "summary": "获取采购类型列表", "responses": { "200": { "description": "获取采购类型列表", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/purchase.PurchaseType" } }, "msg": { "type": "string" } } } ] } } } } }, "/purchase/qualityInspectList": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "QualityInspect" ], "summary": "分页获取质检单列表", "parameters": [ { "type": "string", "description": "关键字", "name": "keyword", "in": "query" }, { "type": "integer", "description": "页码", "name": "page", "in": "query" }, { "type": "integer", "description": "每页大小", "name": "pageSize", "in": "query" }, { "type": "integer", "description": "供应商id", "name": "supplierId", "in": "query" } ], "responses": { "200": { "description": "分页获取质检单列表,返回包括列表,总数,页码,每页数量", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.PageResult" }, "msg": { "type": "string" } } } ] } } } } }, "/purchase/savePurchaseProductConfirm": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Purchase" ], "summary": "确认收货", "parameters": [ { "description": "list", "name": "data", "in": "body", "required": true, "schema": { "type": "array", "items": { "$ref": "#/definitions/purchaserequest.PurchaseProductConfirmInfo" } } } ], "responses": { "200": { "description": "确认收货", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "msg": { "type": "string" } } } ] } } } } }, "/purchase/savePurchaseQualityInspectionInfo": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Purchase" ], "summary": "保存采购质检信息信息", "parameters": [ { "description": "参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/purchaserequest.SaveQualityInspectionInfo" } } ], "responses": { "200": { "description": "获取确认信息", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/purchase.PurchaseProductConfirm" } } } } ] } } } } }, "/purchase/submit": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Purchase" ], "summary": "提交采购单", "parameters": [ { "description": "参数", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/purchaserequest.SubmitPurchase" } } ], "responses": { "200": { "description": "提交采购单", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "msg": { "type": "string" } } } ] } } } } }, "/s/changeSupplierStatus": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Supplier" ], "summary": "修改Supplier状态", "parameters": [ { "description": "修改Supplier状态", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.SupplierStatus" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}", "schema": { "type": "string" } } } } }, "/s/createSupplier": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Supplier" ], "summary": "创建Supplier", "parameters": [ { "description": "创建Supplier", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/test.Supplier" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/s/deleteSupplier": { "delete": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Supplier" ], "summary": "删除Supplier", "parameters": [ { "description": "删除Supplier", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/test.Supplier" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } } } } }, "/s/deleteSupplierByIds": { "delete": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Supplier" ], "summary": "批量删除Supplier", "parameters": [ { "description": "批量删除Supplier", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.IdsReq" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"批量删除成功\"}", "schema": { "type": "string" } } } } }, "/s/findSupplier": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Supplier" ], "summary": "用id查询Supplier", "parameters": [ { "type": "string", "name": "account", "in": "query" }, { "type": "string", "name": "accountName", "in": "query" }, { "type": "string", "name": "bank", "in": "query" }, { "type": "string", "name": "contact", "in": "query" }, { "type": "string", "name": "created_at", "in": "query" }, { "type": "string", "name": "detailAddress", "in": "query" }, { "type": "string", "name": "email", "in": "query" }, { "type": "integer", "name": "fileId", "in": "query" }, { "type": "string", "example": "0", "description": "主键ID", "name": "id", "in": "query" }, { "type": "string", "name": "industry", "in": "query" }, { "type": "string", "name": "name", "in": "query" }, { "type": "string", "name": "number", "in": "query" }, { "type": "string", "name": "phone", "in": "query" }, { "type": "string", "name": "responsiblePersonName", "in": "query" }, { "type": "integer", "name": "status", "in": "query" }, { "type": "string", "name": "supplierType", "in": "query" }, { "type": "string", "name": "updated_at", "in": "query" }, { "type": "string", "name": "url", "in": "query" } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", "schema": { "type": "string" } } } } }, "/s/getSupplierByNumber/{number}": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Supplier" ], "summary": "用编码查询Supplier", "parameters": [ { "type": "string", "description": "供应商编码", "name": "number", "in": "path", "required": true } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", "schema": { "type": "string" } } } } }, "/s/getSupplierList": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Supplier" ], "summary": "分页获取Supplier列表", "parameters": [ { "type": "string", "name": "account", "in": "query" }, { "type": "string", "name": "accountName", "in": "query" }, { "type": "string", "name": "bank", "in": "query" }, { "type": "string", "name": "contact", "in": "query" }, { "type": "string", "name": "created_at", "in": "query" }, { "type": "string", "name": "detailAddress", "in": "query" }, { "type": "string", "name": "email", "in": "query" }, { "type": "string", "name": "endCreatedAt", "in": "query" }, { "type": "integer", "name": "fileId", "in": "query" }, { "type": "string", "example": "0", "description": "主键ID", "name": "id", "in": "query" }, { "type": "string", "name": "industry", "in": "query" }, { "type": "string", "description": "关键字", "name": "keyword", "in": "query" }, { "type": "string", "name": "name", "in": "query" }, { "type": "string", "name": "number", "in": "query" }, { "type": "integer", "description": "页码", "name": "page", "in": "query" }, { "type": "integer", "description": "每页大小", "name": "pageSize", "in": "query" }, { "type": "string", "name": "phone", "in": "query" }, { "type": "string", "name": "responsiblePersonName", "in": "query" }, { "type": "string", "name": "startCreatedAt", "in": "query" }, { "type": "integer", "name": "status", "in": "query" }, { "type": "string", "name": "supplierType", "in": "query" }, { "type": "string", "name": "updated_at", "in": "query" }, { "type": "string", "name": "url", "in": "query" } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/s/updateSupplier": { "put": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "Supplier" ], "summary": "更新Supplier", "parameters": [ { "description": "更新Supplier", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/test.Supplier" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", "schema": { "type": "string" } } } } }, "/st/createSupplierType": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "SupplierType" ], "summary": "创建SupplierType", "parameters": [ { "description": "创建SupplierType", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/test.SupplierType" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/st/deleteSupplierType": { "delete": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "SupplierType" ], "summary": "删除SupplierType", "parameters": [ { "description": "删除SupplierType", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/test.SupplierType" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}", "schema": { "type": "string" } } } } }, "/st/deleteSupplierTypeByIds": { "delete": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "SupplierType" ], "summary": "批量删除SupplierType", "parameters": [ { "description": "批量删除SupplierType", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.IdsReq" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"批量删除成功\"}", "schema": { "type": "string" } } } } }, "/st/findSupplierType": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "SupplierType" ], "summary": "用id查询SupplierType", "parameters": [ { "type": "string", "name": "created_at", "in": "query" }, { "type": "integer", "description": "主键ID", "name": "id", "in": "query" }, { "type": "string", "name": "name", "in": "query" }, { "type": "string", "name": "updated_at", "in": "query" } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}", "schema": { "type": "string" } } } } }, "/st/getSupplierTypeList": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "SupplierType" ], "summary": "分页获取SupplierType列表", "parameters": [ { "type": "string", "name": "created_at", "in": "query" }, { "type": "string", "name": "endCreatedAt", "in": "query" }, { "type": "integer", "description": "主键ID", "name": "id", "in": "query" }, { "type": "string", "description": "关键字", "name": "keyword", "in": "query" }, { "type": "string", "name": "name", "in": "query" }, { "type": "integer", "description": "页码", "name": "page", "in": "query" }, { "type": "integer", "description": "每页大小", "name": "pageSize", "in": "query" }, { "type": "string", "name": "startCreatedAt", "in": "query" }, { "type": "string", "name": "updated_at", "in": "query" } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}", "schema": { "type": "string" } } } } }, "/st/updateSupplierType": { "put": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "SupplierType" ], "summary": "更新SupplierType", "parameters": [ { "description": "更新SupplierType", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.SupplierTypeList" } } ], "responses": { "200": { "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}", "schema": { "type": "string" } } } } }, "/system/getServerInfo": { "post": { "security": [ { "ApiKeyAuth": [] } ], "produces": [ "application/json" ], "tags": [ "System" ], "summary": "获取服务器信息", "responses": { "200": { "description": "获取服务器信息", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "type": "object", "additionalProperties": true }, "msg": { "type": "string" } } } ] } } } } }, "/system/getSystemConfig": { "post": { "security": [ { "ApiKeyAuth": [] } ], "produces": [ "application/json" ], "tags": [ "System" ], "summary": "获取配置文件内容", "responses": { "200": { "description": "获取配置文件内容,返回包括系统配置", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/system.System" }, "msg": { "type": "string" } } } ] } } } } }, "/system/reloadSystem": { "post": { "security": [ { "ApiKeyAuth": [] } ], "produces": [ "application/json" ], "tags": [ "System" ], "summary": "重启系统", "responses": { "200": { "description": "重启系统", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "msg": { "type": "string" } } } ] } } } } }, "/system/setSystemConfig": { "post": { "security": [ { "ApiKeyAuth": [] } ], "produces": [ "application/json" ], "tags": [ "System" ], "summary": "设置配置文件内容", "parameters": [ { "description": "设置配置文件内容", "name": "data", "in": "body", "required": true, "schema": { "$ref": "#/definitions/system.System" } } ], "responses": { "200": { "description": "设置配置文件内容", "schema": { "allOf": [ { "$ref": "#/definitions/response.Response" }, { "type": "object", "properties": { "data": { "type": "string" } } } ] } } } } } }, "definitions": { "code.CodeAuto": { "type": "object", "properties": { "AutoLength": { "type": "integer" }, "Desc": { "type": "string" }, "PrefixMethod": { "type": "integer" }, "PrefixValue": { "type": "string" }, "SuffixMethod": { "type": "integer" } } }, "code.CodeRule": { "type": "object", "properties": { "Desc": { "type": "string" }, "Length": { "type": "integer" }, "Name": { "type": "string" } } }, "code.CodeStandard": { "type": "object", "properties": { "AutoRule": { "$ref": "#/definitions/code.CodeAuto" }, "ID": { "type": "string" }, "List": { "type": "array", "items": { "$ref": "#/definitions/code.CodeRule" } }, "Method": { "type": "integer" }, "Name": { "type": "string" }, "Status": { "type": "string" }, "Type": { "type": "string" } } }, "config.CORS": { "type": "object", "properties": { "mode": { "type": "string" }, "whitelist": { "type": "array", "items": { "$ref": "#/definitions/config.CORSWhitelist" } } } }, "config.CORSWhitelist": { "type": "object", "properties": { "allow-credentials": { "type": "boolean" }, "allow-headers": { "type": "string" }, "allow-methods": { "type": "string" }, "allow-origin": { "type": "string" }, "expose-headers": { "type": "string" } } }, "config.Mssql": { "type": "object", "properties": { "config": { "description": "高级配置", "type": "string" }, "db-name": { "description": "数据库名", "type": "string" }, "engine": { "description": "数据库引擎,默认InnoDB", "type": "string", "default": "InnoDB" }, "log-mode": { "description": "是否开启Gorm全局日志", "type": "string" }, "log-zap": { "description": "是否通过zap写入日志文件", "type": "boolean" }, "max-idle-conns": { "description": "空闲中的最大连接数", "type": "integer" }, "max-open-conns": { "description": "打开到数据库的最大连接数", "type": "integer" }, "password": { "description": "数据库密码", "type": "string" }, "path": { "type": "string" }, "port": { "type": "string" }, "prefix": { "type": "string" }, "singular": { "description": "是否开启全局禁用复数,true表示开启", "type": "boolean" }, "username": { "description": "数据库密码", "type": "string" } } }, "config.Mysql": { "type": "object", "properties": { "config": { "description": "高级配置", "type": "string" }, "db-name": { "description": "数据库名", "type": "string" }, "engine": { "description": "数据库引擎,默认InnoDB", "type": "string", "default": "InnoDB" }, "log-mode": { "description": "是否开启Gorm全局日志", "type": "string" }, "log-zap": { "description": "是否通过zap写入日志文件", "type": "boolean" }, "max-idle-conns": { "description": "空闲中的最大连接数", "type": "integer" }, "max-open-conns": { "description": "打开到数据库的最大连接数", "type": "integer" }, "password": { "description": "数据库密码", "type": "string" }, "path": { "type": "string" }, "port": { "type": "string" }, "prefix": { "type": "string" }, "singular": { "description": "是否开启全局禁用复数,true表示开启", "type": "boolean" }, "username": { "description": "数据库密码", "type": "string" } } }, "config.Oracle": { "type": "object", "properties": { "config": { "description": "高级配置", "type": "string" }, "db-name": { "description": "数据库名", "type": "string" }, "engine": { "description": "数据库引擎,默认InnoDB", "type": "string", "default": "InnoDB" }, "log-mode": { "description": "是否开启Gorm全局日志", "type": "string" }, "log-zap": { "description": "是否通过zap写入日志文件", "type": "boolean" }, "max-idle-conns": { "description": "空闲中的最大连接数", "type": "integer" }, "max-open-conns": { "description": "打开到数据库的最大连接数", "type": "integer" }, "password": { "description": "数据库密码", "type": "string" }, "path": { "type": "string" }, "port": { "type": "string" }, "prefix": { "type": "string" }, "singular": { "description": "是否开启全局禁用复数,true表示开启", "type": "boolean" }, "username": { "description": "数据库密码", "type": "string" } } }, "config.Pgsql": { "type": "object", "properties": { "config": { "description": "高级配置", "type": "string" }, "db-name": { "description": "数据库名", "type": "string" }, "engine": { "description": "数据库引擎,默认InnoDB", "type": "string", "default": "InnoDB" }, "log-mode": { "description": "是否开启Gorm全局日志", "type": "string" }, "log-zap": { "description": "是否通过zap写入日志文件", "type": "boolean" }, "max-idle-conns": { "description": "空闲中的最大连接数", "type": "integer" }, "max-open-conns": { "description": "打开到数据库的最大连接数", "type": "integer" }, "password": { "description": "数据库密码", "type": "string" }, "path": { "type": "string" }, "port": { "type": "string" }, "prefix": { "type": "string" }, "singular": { "description": "是否开启全局禁用复数,true表示开启", "type": "boolean" }, "username": { "description": "数据库密码", "type": "string" } } }, "config.Server": { "type": "object", "properties": { "cors": { "description": "跨域配置", "allOf": [ { "$ref": "#/definitions/config.CORS" } ] }, "db-list": { "type": "array", "items": { "$ref": "#/definitions/config.SpecializedDB" } }, "mssql": { "$ref": "#/definitions/config.Mssql" }, "mysql": { "description": "gorm", "allOf": [ { "$ref": "#/definitions/config.Mysql" } ] }, "oracle": { "$ref": "#/definitions/config.Oracle" }, "pgsql": { "$ref": "#/definitions/config.Pgsql" }, "sqlite": { "$ref": "#/definitions/config.Sqlite" }, "system": { "$ref": "#/definitions/config.System" }, "zap": { "description": "JWT JWT `mapstructure:\"jwt\" json:\"jwt\" yaml:\"jwt\"`", "allOf": [ { "$ref": "#/definitions/config.Zap" } ] } } }, "config.SpecializedDB": { "type": "object", "properties": { "alias-name": { "type": "string" }, "config": { "description": "高级配置", "type": "string" }, "db-name": { "description": "数据库名", "type": "string" }, "disable": { "type": "boolean" }, "engine": { "description": "数据库引擎,默认InnoDB", "type": "string", "default": "InnoDB" }, "log-mode": { "description": "是否开启Gorm全局日志", "type": "string" }, "log-zap": { "description": "是否通过zap写入日志文件", "type": "boolean" }, "max-idle-conns": { "description": "空闲中的最大连接数", "type": "integer" }, "max-open-conns": { "description": "打开到数据库的最大连接数", "type": "integer" }, "password": { "description": "数据库密码", "type": "string" }, "path": { "type": "string" }, "port": { "type": "string" }, "prefix": { "type": "string" }, "singular": { "description": "是否开启全局禁用复数,true表示开启", "type": "boolean" }, "type": { "type": "string" }, "username": { "description": "数据库密码", "type": "string" } } }, "config.Sqlite": { "type": "object", "properties": { "config": { "description": "高级配置", "type": "string" }, "db-name": { "description": "数据库名", "type": "string" }, "engine": { "description": "数据库引擎,默认InnoDB", "type": "string", "default": "InnoDB" }, "log-mode": { "description": "是否开启Gorm全局日志", "type": "string" }, "log-zap": { "description": "是否通过zap写入日志文件", "type": "boolean" }, "max-idle-conns": { "description": "空闲中的最大连接数", "type": "integer" }, "max-open-conns": { "description": "打开到数据库的最大连接数", "type": "integer" }, "password": { "description": "数据库密码", "type": "string" }, "path": { "type": "string" }, "port": { "type": "string" }, "prefix": { "type": "string" }, "singular": { "description": "是否开启全局禁用复数,true表示开启", "type": "boolean" }, "username": { "description": "数据库密码", "type": "string" } } }, "config.System": { "type": "object", "properties": { "addr": { "description": "端口值", "type": "integer" }, "db-type": { "description": "数据库类型:mysql(默认)|sqlite|sqlserver|postgresql", "type": "string" }, "env": { "description": "环境值", "type": "string" }, "grpc-admin-url": { "description": "admin grpc服务地址", "type": "string" }, "grpc-port": { "description": "对外提供服务grpc端口", "type": "string" }, "grpc-url": { "description": "aps grpc服务地址", "type": "string" }, "grpc-wms-url": { "description": "wms grpc服务地址", "type": "string" }, "router-prefix": { "type": "string" } } }, "config.Zap": { "type": "object", "properties": { "director": { "description": "日志文件夹", "type": "string" }, "encode-level": { "description": "编码级", "type": "string" }, "format": { "description": "输出", "type": "string" }, "level": { "description": "级别", "type": "string" }, "log-in-console": { "description": "输出控制台", "type": "boolean" }, "max-age": { "description": "日志留存时间", "type": "integer" }, "prefix": { "description": "日志前缀", "type": "string" }, "show-line": { "description": "显示行", "type": "boolean" }, "stacktrace-key": { "description": "栈名", "type": "string" } } }, "purchase.OrderStatus": { "type": "integer", "enum": [ 1, 2, 3, 4, 5, 6, 7, 8 ], "x-enum-comments": { "OrderStatusCanceled": "已取消", "OrderStatusCompleted": "已完成", "OrderStatusConfirmed": "待确认", "OrderStatusPartReceive": "部分收货", "OrderStatusReceived": "待入库", "OrderStatusStored": "已入库", "OrderStatusWaitQuality": "待质检", "OrderStatusWaitReceive": "待收货" }, "x-enum-varnames": [ "OrderStatusConfirmed", "OrderStatusReceived", "OrderStatusStored", "OrderStatusCompleted", "OrderStatusCanceled", "OrderStatusWaitReceive", "OrderStatusPartReceive", "OrderStatusWaitQuality" ] }, "purchase.PriceAdjustmentType": { "type": "integer", "enum": [ 1, 2 ], "x-enum-comments": { "PriceAdjustmentTypeAdd": "增加", "PriceAdjustmentTypeSub": "减少" }, "x-enum-varnames": [ "PriceAdjustmentTypeAdd", "PriceAdjustmentTypeSub" ] }, "purchase.Purchase": { "type": "object", "properties": { "contact": { "description": "联系人", "type": "string" }, "created_at": { "type": "string" }, "creator": { "description": "制单人", "type": "string" }, "deliveryDate": { "description": "交付日期", "type": "string" }, "handledBy": { "description": "经办人", "type": "string" }, "id": { "description": "主键ID", "type": "string", "example": "0" }, "invoiceAmount": { "description": "已收票金额", "type": "number" }, "name": { "description": "采购名称", "type": "string" }, "number": { "description": "采购编号", "type": "string" }, "orderSource": { "description": "单据来源", "type": "string" }, "orderType": { "description": "单据类型", "type": "string" }, "paidAmount": { "description": "已付金额", "type": "number" }, "phone": { "description": "联系人电话", "type": "string" }, "priceAdjustment": { "description": "价格调整值", "type": "number" }, "priceAdjustmentType": { "description": "价格调整类型", "allOf": [ { "$ref": "#/definitions/purchase.PriceAdjustmentType" } ] }, "principal": { "description": "仓库负责人", "type": "string" }, "purchaseType": { "$ref": "#/definitions/purchase.PurchaseType" }, "purchaseTypeId": { "description": "采购类型id", "type": "string", "example": "0" }, "quantity": { "description": "采购数量", "type": "number" }, "realTotalPrice": { "description": "最终价格", "type": "number" }, "remark": { "description": "备注", "type": "string" }, "shouldPayAmount": { "description": "应付金额", "type": "number" }, "signingDate": { "description": "签约日期", "type": "string" }, "sourceOrder": { "description": "来源单据 ,销售明细编码", "type": "string" }, "status": { "description": "状态", "allOf": [ { "$ref": "#/definitions/purchase.OrderStatus" } ] }, "supplier": { "$ref": "#/definitions/test.Supplier" }, "supplierId": { "description": "供应商id", "type": "string", "example": "0" }, "totalPrice": { "description": "价税合计", "type": "number" }, "unInvoiceAmount": { "description": "未收票金额", "type": "number" }, "updated_at": { "type": "string" }, "warehouse": { "description": "收货仓库", "type": "string" }, "warehouseAddress": { "description": "收货仓库地址", "type": "string" }, "wholeDiscount": { "description": "整单折扣值", "type": "number" }, "wholeDiscountType": { "description": "整单折扣类型", "allOf": [ { "$ref": "#/definitions/purchase.WholeDiscountType" } ] } } }, "purchase.PurchaseProductConfirm": { "type": "object", "properties": { "amount": { "type": "number" }, "created_at": { "type": "string" }, "id": { "description": "主键ID", "type": "string", "example": "0" }, "notReceiveAmount": { "type": "number" }, "nowReceiveAmount": { "description": "本次收货数量", "type": "number" }, "overReceiveAmount": { "type": "number" }, "principal": { "type": "string" }, "productId": { "type": "string" }, "productName": { "type": "string" }, "purchaseNumber": { "type": "string" }, "specs": { "type": "string" }, "surplusReceiveAmount": { "type": "number" }, "type": { "type": "string" }, "unit": { "type": "string" }, "updated_at": { "type": "string" } } }, "purchase.PurchaseProducts": { "type": "object", "properties": { "amount": { "description": "采购数量", "type": "number" }, "created_at": { "type": "string" }, "id": { "description": "主键ID", "type": "integer" }, "price": { "description": "采购单价", "type": "number" }, "productId": { "description": "产品id", "type": "integer" }, "purchaseId": { "description": "采购id", "type": "integer" }, "remark": { "description": "描述", "type": "string" }, "total": { "description": "采购总价", "type": "number" }, "updated_at": { "type": "string" } } }, "purchase.PurchaseType": { "type": "object", "properties": { "created_at": { "type": "string" }, "id": { "description": "主键ID", "type": "string", "example": "0" }, "name": { "description": "采购类型", "type": "string" }, "pin": { "description": "是否置顶", "type": "boolean" }, "sort": { "description": "排序", "type": "integer" }, "updated_at": { "type": "string" } } }, "purchase.WholeDiscountType": { "type": "integer", "enum": [ 1, 2 ], "x-enum-comments": { "WholeDiscountTypeDiscount": "直接降价", "WholeDiscountTypePercent": "百分比降价" }, "x-enum-varnames": [ "WholeDiscountTypePercent", "WholeDiscountTypeDiscount" ] }, "purchase_wms.SrmGetWarehouseInfoResponse": { "type": "object", "properties": { "info": { "type": "array", "items": { "$ref": "#/definitions/purchase_wms.SrmWarehouseInfo" } } } }, "purchase_wms.SrmWarehouseInfo": { "type": "object", "properties": { "address": { "description": "仓库地址", "type": "string" }, "name": { "description": "仓库名", "type": "string" }, "principal": { "description": "仓库负责人", "type": "string" } } }, "purchaserequest.AddPurchase": { "type": "object", "properties": { "productList": { "type": "array", "items": { "$ref": "#/definitions/purchase.PurchaseProducts" } }, "purchase": { "$ref": "#/definitions/purchaserequest.Purchase" } } }, "purchaserequest.GetQualityInspectionInfo": { "type": "object", "properties": { "purchaseNumber": { "type": "string" }, "status": { "type": "array", "items": { "type": "integer" } }, "times": { "type": "array", "items": { "type": "string" } } } }, "purchaserequest.Purchase": { "type": "object", "properties": { "contact": { "description": "联系人", "type": "string" }, "deliveryDate": { "description": "交付日期", "type": "string" }, "id": { "description": "主键ID", "type": "string", "example": "0" }, "name": { "description": "采购名称", "type": "string" }, "number": { "description": "采购编号", "type": "string" }, "orderSource": { "description": "单据来源", "type": "string" }, "phone": { "description": "联系人电话", "type": "string" }, "priceAdjustment": { "description": "价格调整值", "type": "number" }, "priceAdjustmentType": { "description": "价格调整类型", "allOf": [ { "$ref": "#/definitions/purchase.PriceAdjustmentType" } ] }, "principal": { "description": "仓库负责人", "type": "string" }, "purchaseTypeId": { "description": "采购类型id", "type": "string", "example": "0" }, "quantity": { "description": "采购数量", "type": "number" }, "realTotalPrice": { "description": "最终价格", "type": "number" }, "remark": { "description": "备注", "type": "string" }, "signingDate": { "description": "签约日期", "type": "string" }, "sourceOrder": { "description": "来源单据", "type": "string" }, "status": { "description": "状态", "allOf": [ { "$ref": "#/definitions/purchase.OrderStatus" } ] }, "supplierId": { "description": "供应商id", "type": "string", "example": "0" }, "totalPrice": { "description": "价税合计", "type": "number" }, "warehouse": { "description": "收货仓库", "type": "string" }, "warehouseAddress": { "description": "收货仓库地址", "type": "string" }, "wholeDiscount": { "description": "整单折扣值", "type": "number" }, "wholeDiscountType": { "description": "整单折扣类型", "allOf": [ { "$ref": "#/definitions/purchase.WholeDiscountType" } ] } } }, "purchaserequest.PurchaseProductConfirmInfo": { "type": "object", "properties": { "amount": { "type": "number" }, "notReceiveAmount": { "type": "number" }, "nowReceiveAmount": { "type": "number" }, "overReceiveAmount": { "type": "number" }, "principal": { "type": "string" }, "productId": { "type": "string" }, "productName": { "type": "string" }, "purchaseNumber": { "type": "string" }, "specs": { "type": "string" }, "surplusReceiveAmount": { "type": "number" }, "type": { "type": "string" }, "unit": { "type": "string" } } }, "purchaserequest.PurchaseType": { "type": "object", "properties": { "id": { "description": "主键ID", "type": "string", "example": "0" }, "name": { "description": "采购类型", "type": "string" }, "pin": { "description": "是否置顶", "type": "boolean" }, "sort": { "description": "排序", "type": "integer" } } }, "purchaserequest.SaveQualityInspectionInfo": { "type": "object", "properties": { "ids": { "type": "array", "items": { "type": "integer" } }, "purchaseId": { "type": "integer" }, "status": { "type": "integer" } } }, "purchaserequest.SubmitPurchase": { "type": "object", "properties": { "id": { "type": "integer" }, "status": { "$ref": "#/definitions/purchase.OrderStatus" } } }, "purchaserequest.UpdatePurchase": { "type": "object", "properties": { "productList": { "type": "array", "items": { "$ref": "#/definitions/purchase.PurchaseProducts" } }, "purchase": { "$ref": "#/definitions/purchaserequest.Purchase" } } }, "request.IdsReq": { "type": "object", "properties": { "ids": { "type": "array", "items": { "type": "integer" } } } }, "request.IndustryList": { "type": "object", "properties": { "industries": { "type": "array", "items": { "$ref": "#/definitions/test.Industry" } } } }, "request.Product": { "type": "object", "properties": { "categoryName": { "type": "string" }, "deliveryTime": { "type": "integer" }, "modelNumber": { "type": "string" }, "name": { "type": "string" }, "number": { "type": "string" }, "purchasePrice": { "type": "number" }, "shippingDuration": { "type": "integer" }, "specifications": { "type": "string" }, "supplier": { "type": "string" }, "supplierId": { "type": "integer" }, "supplierName": { "type": "string" }, "supplierNumber": { "type": "string" }, "unit": { "type": "string" } } }, "request.ProductCreate": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/request.Product" } } } }, "request.SupplierStatus": { "type": "object", "properties": { "id": { "type": "integer" }, "status": { "type": "integer" } } }, "request.SupplierTypeList": { "type": "object", "properties": { "supplierTypes": { "type": "array", "items": { "$ref": "#/definitions/test.SupplierType" } } } }, "response.InWarehouseInfo": { "type": "object", "properties": { "name": { "description": "产品名称", "type": "string" }, "number": { "description": "产品编码", "type": "string" }, "operationNumber": { "description": "入库单号", "type": "string" }, "overAmount": { "description": "入库数", "type": "integer" }, "overTime": { "description": "入库时间", "type": "string" }, "principal": { "description": "负责人", "type": "string" }, "status": { "type": "integer" }, "warehouseName": { "description": "仓库名", "type": "string" } } }, "response.OperationInfo": { "type": "object", "properties": { "inWarehouseInfos": { "type": "array", "items": { "$ref": "#/definitions/response.InWarehouseInfo" } }, "productInfos": { "type": "array", "items": { "$ref": "#/definitions/response.ProductInfo" } } } }, "response.PageResult": { "type": "object", "properties": { "list": {}, "page": { "type": "integer" }, "pageSize": { "type": "integer" }, "total": { "type": "integer" } } }, "response.ProductInfo": { "type": "object", "properties": { "amount": { "description": "采购数", "type": "number" }, "modelNumber": { "description": "型号", "type": "string" }, "name": { "description": "产品名称", "type": "string" }, "number": { "description": "产品编码", "type": "string" }, "overAmount": { "description": "入库数", "type": "integer" }, "purchasePrice": { "description": "单价", "type": "number" }, "sendAmount": { "description": "收货数", "type": "integer" }, "specifications": { "description": "规格", "type": "string" }, "total": { "description": "总价", "type": "number" }, "unit": { "description": "单位", "type": "string" } } }, "response.PurchaseProducts": { "type": "object", "properties": { "amount": { "description": "采购数量", "type": "number" }, "deliveryTime": { "type": "integer" }, "modelNumber": { "type": "string" }, "name": { "type": "string" }, "number": { "type": "string" }, "price": { "description": "采购单价", "type": "number" }, "productId": { "description": "产品id", "type": "integer" }, "productType": { "type": "string" }, "purchaseId": { "description": "采购id", "type": "integer" }, "purchasePrice": { "type": "number" }, "remark": { "description": "描述", "type": "string" }, "shippingDuration": { "type": "integer" }, "specifications": { "type": "string" }, "total": { "description": "采购总价", "type": "number" }, "unit": { "type": "string" } } }, "response.PurchaseResponse": { "type": "object", "properties": { "productList": { "type": "array", "items": { "$ref": "#/definitions/response.PurchaseProducts" } }, "purchase": { "$ref": "#/definitions/purchase.Purchase" } } }, "response.Response": { "type": "object", "properties": { "code": { "type": "integer" }, "data": {}, "msg": { "type": "string" } } }, "srm_model_common_request.GetById": { "type": "object", "properties": { "id": { "description": "主键ID", "type": "integer" } } }, "system.System": { "type": "object", "properties": { "config": { "$ref": "#/definitions/config.Server" } } }, "test.Contract": { "type": "object", "properties": { "created_at": { "type": "string" }, "fileName": { "type": "string" }, "id": { "description": "主键ID", "type": "integer" }, "supplierID": { "type": "integer" }, "updated_at": { "type": "string" } } }, "test.Industry": { "type": "object", "properties": { "created_at": { "type": "string" }, "id": { "description": "主键ID", "type": "integer" }, "name": { "type": "string" }, "updated_at": { "type": "string" } } }, "test.Member": { "type": "object", "properties": { "created_at": { "type": "string" }, "id": { "description": "主键ID", "type": "integer" }, "nickname": { "type": "string" }, "updated_at": { "type": "string" }, "userName": { "type": "string" }, "uuid": { "type": "string" } } }, "test.Supplier": { "type": "object", "properties": { "account": { "type": "string" }, "accountName": { "type": "string" }, "bank": { "type": "string" }, "contact": { "type": "string" }, "contract": { "$ref": "#/definitions/test.Contract" }, "created_at": { "type": "string" }, "detailAddress": { "type": "string" }, "email": { "type": "string" }, "fileId": { "type": "integer" }, "id": { "description": "主键ID", "type": "string", "example": "0" }, "industry": { "type": "string" }, "name": { "type": "string" }, "number": { "type": "string" }, "phone": { "type": "string" }, "responsiblePersonName": { "type": "string" }, "status": { "type": "integer" }, "supplierType": { "type": "string" }, "updated_at": { "type": "string" }, "url": { "type": "string" } } }, "test.SupplierMaterial": { "type": "object", "properties": { "categoryName": { "description": "产品类别名称", "type": "string" }, "created_at": { "type": "string" }, "deliveryTime": { "description": "供货时长", "type": "integer" }, "id": { "description": "主键ID", "type": "integer" }, "maximumStock": { "type": "integer" }, "minimumStock": { "type": "integer" }, "modelNumber": { "type": "string" }, "name": { "type": "string" }, "number": { "type": "string" }, "purchasePrice": { "type": "number" }, "shippingDuration": { "description": "物流时长", "type": "integer" }, "specifications": { "type": "string" }, "supplier": { "$ref": "#/definitions/test.Supplier" }, "supplierId": { "type": "integer" }, "unit": { "type": "string" }, "updated_at": { "type": "string" } } }, "test.SupplierType": { "type": "object", "properties": { "created_at": { "type": "string" }, "id": { "description": "主键ID", "type": "integer" }, "name": { "type": "string" }, "updated_at": { "type": "string" } } } }, "securityDefinitions": { "ApiKeyAuth": { "type": "apiKey", "name": "x-token", "in": "header" } } }