// 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-s/v1/organize/department": { "get": { "produces": [ "application/json" ], "tags": [ "部门信息" ], "summary": "查询部门信息列表", "parameters": [ { "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.Department" } } } } ] } } } }, "post": { "produces": [ "application/json" ], "tags": [ "部门信息" ], "summary": "添加部门信息", "parameters": [ { "description": "部门信息信息", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddDepartment" } } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/util.Response" } } } } }, "/api-s/v1/organize/department/{id}": { "put": { "produces": [ "application/json" ], "tags": [ "部门信息" ], "summary": "编辑部门信息", "parameters": [ { "description": "部门信息信息", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateDepartment" } } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/util.Response" } } } }, "delete": { "produces": [ "application/json" ], "tags": [ "部门信息" ], "summary": "编辑部门信息", "parameters": [ { "description": "部门信息信息", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateDepartment" } } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/util.Response" } } } } }, "/api-wms/v1/company/company": { "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.Company" } } } } ] } } } }, "post": { "produces": [ "application/json" ], "tags": [ "公司" ], "summary": "添加公司", "parameters": [ { "description": "公司信息", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddCompany" } } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/util.Response" } } } } }, "/api-wms/v1/company/company/{id}": { "put": { "produces": [ "application/json" ], "tags": [ "公司" ], "summary": "编辑公司", "parameters": [ { "description": "公司信息", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateCompany" } }, { "type": "string", "description": "公司id", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/util.Response" } } } }, "delete": { "produces": [ "application/json" ], "tags": [ "公司" ], "summary": "删除公司", "parameters": [ { "type": "string", "description": "公司id", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/util.Response" } } } } }, "/api-wms/v1/product/addProduct": { "post": { "produces": [ "application/json" ], "tags": [ "产品" ], "summary": "添加产品", "parameters": [ { "description": "产品信息", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/models.Product" } } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/util.Response" } } } } }, "/api-wms/v1/warehouse/operationType": { "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.OperationType" } } } } ] } } } }, "post": { "produces": [ "application/json" ], "tags": [ "作业类型" ], "summary": "添加作业类型", "parameters": [ { "description": "作业类型信息", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddOperationType" } } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/util.Response" } } } } }, "/api-wms/v1/warehouse/operationType/{id}": { "put": { "produces": [ "application/json" ], "tags": [ "作业类型" ], "summary": "编辑作业类型", "parameters": [ { "description": "作业类型信息", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateOperationType" } }, { "type": "string", "description": "作业类型id", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/util.Response" } } } }, "delete": { "produces": [ "application/json" ], "tags": [ "作业类型" ], "summary": "删除作业类型", "parameters": [ { "type": "string", "description": "作业类型id", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/util.Response" } } } } }, "/api-wms/v1/warehouse/warehouse": { "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.Warehouse" } } } } ] } } } }, "post": { "produces": [ "application/json" ], "tags": [ "仓库" ], "summary": "添加仓库", "parameters": [ { "description": "仓库信息", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddWarehouse" } } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/util.Response" } } } } }, "/api-wms/v1/warehouse/warehouse/{id}": { "put": { "produces": [ "application/json" ], "tags": [ "仓库" ], "summary": "编辑仓库", "parameters": [ { "description": "仓库信息", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateWarehouse" } }, { "type": "string", "description": "仓库id", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/util.Response" } } } }, "delete": { "produces": [ "application/json" ], "tags": [ "仓库" ], "summary": "删除仓库", "parameters": [ { "type": "string", "description": "仓库id", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/util.Response" } } } } } }, "definitions": { "constvar.BaseOperationType": { "type": "integer", "enum": [ 1, 2, 3 ], "x-enum-comments": { "BaseOperationTypeIncoming": "收货", "BaseOperationTypeInternal": "内部调拨", "BaseOperationTypeOutgoing": "交货" }, "x-enum-varnames": [ "BaseOperationTypeIncoming", "BaseOperationTypeOutgoing", "BaseOperationTypeInternal" ] }, "constvar.InvoicingStrategy": { "type": "integer", "enum": [ 1, 2, 3, 4, 5 ], "x-enum-comments": { "BasedDeliverNumber": "基于交付数量", "DeliverNumber": "交付数量", "IndentNumber": "订购数量", "Milestones": "基于里程碑", "PrepaidPrice": "预付\\固定价格" }, "x-enum-varnames": [ "IndentNumber", "DeliverNumber", "PrepaidPrice", "Milestones", "BasedDeliverNumber" ] }, "constvar.LocationType": { "type": "integer", "enum": [ 1, 2, 3, 4, 5, 6, 7 ], "x-enum-comments": { "LocationTypeCustomer": "客户位置", "LocationTypeInternal": "内部位置", "LocationTypeInventoryLoss": "库存损失", "LocationTypeProduction": "生产", "LocationTypeTransit": "中转位置", "LocationTypeVendor": "供应商位置", "LocationTypeView": "视图" }, "x-enum-varnames": [ "LocationTypeVendor", "LocationTypeView", "LocationTypeInternal", "LocationTypeCustomer", "LocationTypeInventoryLoss", "LocationTypeProduction", "LocationTypeTransit" ] }, "constvar.OrderCreation": { "type": "integer", "enum": [ 1, 2, 3, 4 ], "x-enum-comments": { "Nothing": "不操作", "Object": "项目", "Task": "任务", "TaskAndObject": "任务和项目" }, "x-enum-varnames": [ "Nothing", "Task", "Object", "TaskAndObject" ] }, "constvar.ProductType": { "type": "integer", "enum": [ 1, 2, 3 ], "x-enum-comments": { "Consumables": "消耗品", "Server": "服务", "StoredProduct": "可储存的产品" }, "x-enum-varnames": [ "Consumables", "Server", "StoredProduct" ] }, "constvar.ReservationMethod": { "type": "integer", "enum": [ 1, 2, 3 ], "x-enum-comments": { "ReservationMethodAtConfirm": "在确认时", "ReservationMethodByDate": "在预定日期之前", "ReservationMethodManual": "手动" }, "x-enum-varnames": [ "ReservationMethodAtConfirm", "ReservationMethodManual", "ReservationMethodByDate" ] }, "constvar.WhetherType": { "type": "integer", "enum": [ 1, 2, 3 ], "x-enum-comments": { "ReservationNever": "从不", "WhetherTypeAlways": "总是", "WhetherTypeAsk": "询问" }, "x-enum-varnames": [ "WhetherTypeAsk", "WhetherTypeAlways", "ReservationNever" ] }, "models.Company": { "type": "object", "properties": { "createTime": { "type": "string" }, "id": { "type": "integer" }, "name": { "description": "公司名称", "type": "string" }, "updateTime": { "type": "string" } } }, "models.Department": { "type": "object", "properties": { "children": { "type": "array", "items": { "$ref": "#/definitions/models.Department" } }, "head": { "description": "部门负责人", "type": "string" }, "id": { "type": "integer" }, "name": { "description": "部门名称", "type": "string" }, "number": { "description": "部门编号", "type": "string" }, "parentId": { "description": "上级部门ID", "type": "integer" }, "remark": { "description": "备注", "type": "string" }, "sort": { "description": "排序", "type": "integer" } } }, "models.Location": { "type": "object", "properties": { "company": { "description": "公司", "allOf": [ { "$ref": "#/definitions/models.Company" } ] }, "companyId": { "description": "公司id", "type": "integer" }, "countFrequency": { "description": "盘点频率(天)", "type": "integer" }, "createTime": { "type": "string" }, "id": { "type": "integer" }, "isReturnLocation": { "description": "是否退货位置", "type": "boolean" }, "isScrapLocation": { "description": "是否报废位置", "type": "boolean" }, "name": { "description": "位置名称", "type": "string" }, "parentId": { "description": "上级id", "type": "integer" }, "replenishLocation": { "description": "是否补充位置", "type": "boolean" }, "type": { "description": "位置类型", "allOf": [ { "$ref": "#/definitions/constvar.LocationType" } ] }, "updateTime": { "type": "string" } } }, "models.OperationType": { "type": "object", "properties": { "ReservationDaysBeforePriority": { "description": "在优先级的前几天", "type": "integer" }, "baseOperationType": { "description": "基础作业类型", "allOf": [ { "$ref": "#/definitions/constvar.BaseOperationType" } ] }, "company": { "description": "公司", "allOf": [ { "$ref": "#/definitions/models.Company" } ] }, "companyId": { "description": "公司id", "type": "integer" }, "createBackorder": { "description": "创建欠单", "allOf": [ { "$ref": "#/definitions/constvar.WhetherType" } ] }, "createTime": { "type": "string" }, "defaultLocationDest": { "description": "默认目标位置", "allOf": [ { "$ref": "#/definitions/models.Location" } ] }, "defaultLocationDestId": { "description": "默认目标位置id", "type": "integer" }, "defaultLocationSrc": { "description": "默认源位置", "allOf": [ { "$ref": "#/definitions/models.Location" } ] }, "defaultLocationSrcId": { "description": "默认源位置id", "type": "integer" }, "id": { "type": "integer" }, "name": { "description": "仓库名称", "type": "string" }, "printLabel": { "description": "是否打印标签", "type": "boolean" }, "reservationDaysBefore": { "description": "收货前几天", "type": "integer" }, "reservationMethod": { "description": "保留方式", "allOf": [ { "$ref": "#/definitions/constvar.ReservationMethod" } ] }, "returnOperationType": { "description": "退货类型名称", "type": "string" }, "returnOperationTypeID": { "description": "退货类型ID", "type": "integer" }, "showOperations": { "description": "显示作业详情", "type": "boolean" }, "updateTime": { "type": "string" }, "warehouse": { "description": "仓库", "allOf": [ { "$ref": "#/definitions/models.Warehouse" } ] }, "warehouseId": { "description": "仓库id", "type": "integer" } } }, "models.Product": { "type": "object", "properties": { "HSCode": { "type": "string" }, "barcode": { "description": "条码", "type": "string" }, "buyExplain": { "type": "string" }, "canBePurchased": { "description": "是否可采购", "type": "boolean" }, "canBeSell": { "description": "是否销售", "type": "boolean" }, "categoryId": { "description": "产品分类id", "type": "integer" }, "companyId": { "type": "integer" }, "companyName": { "type": "string" }, "controlStrategy": { "$ref": "#/definitions/constvar.InvoicingStrategy" }, "cost": { "description": "成本", "type": "number" }, "createTime": { "type": "string" }, "currencyId": { "type": "integer" }, "currencyName": { "type": "string" }, "customerAdvanceTime": { "type": "number" }, "customerTaxes": { "description": "客户税百分比", "type": "number" }, "deliveryAdvanceTime": { "type": "number" }, "id": { "type": "integer" }, "inStorageExplain": { "type": "string" }, "internalNotes": { "description": "内部说明", "type": "string" }, "internalReference": { "description": "内部参考", "type": "string" }, "internalTransferExplain": { "type": "string" }, "invoicingStrategy": { "$ref": "#/definitions/constvar.InvoicingStrategy" }, "name": { "description": "产品名称", "type": "string" }, "objectTemplateId": { "type": "string" }, "orderCreation": { "$ref": "#/definitions/constvar.OrderCreation" }, "originCountryId": { "type": "integer" }, "originCountryName": { "type": "string" }, "outStorageExplain": { "type": "string" }, "price": { "type": "number" }, "principal": { "description": "负责人", "type": "string" }, "productTagId": { "description": "产品标签", "type": "integer" }, "productTagName": { "type": "string" }, "salePrice": { "description": "销售价格", "type": "number" }, "selectProduct": { "type": "integer" }, "sellExplain": { "type": "string" }, "supplierId": { "type": "integer" }, "supplierName": { "type": "string" }, "type": { "description": "产品类型", "allOf": [ { "$ref": "#/definitions/constvar.ProductType" } ] }, "updateTime": { "type": "string" }, "volume": { "description": "体积", "type": "number" }, "weight": { "description": "重量", "type": "number" } } }, "models.Warehouse": { "type": "object", "required": [ "code" ], "properties": { "active": { "description": "是否启用,传true就行", "type": "boolean" }, "buyToResupply": { "description": "是否购买补给,已购买产品能够发送到此仓库", "type": "boolean" }, "code": { "description": "仓库编码", "type": "string", "maxLength": 5, "minLength": 1 }, "company": { "$ref": "#/definitions/models.Company" }, "companyId": { "type": "integer" }, "createTime": { "type": "string" }, "id": { "type": "integer" }, "name": { "description": "仓库名称", "type": "string" }, "partnerId": { "description": "合作伙伴id", "type": "integer" }, "resupplyWh": { "description": "补给来源仓库", "type": "array", "items": { "$ref": "#/definitions/models.Warehouse" } }, "resupplyWhIds": { "description": "补给来源仓库ID", "type": "array", "items": { "type": "string" } }, "updateTime": { "type": "string" } } }, "request.AddCompany": { "type": "object", "properties": { "name": { "description": "公司名称", "type": "string" } } }, "request.AddDepartment": { "type": "object", "properties": { "name": { "description": "部门名称", "type": "string" }, "number": { "description": "部门编号", "type": "string" }, "parentId": { "description": "上级部门ID 一级部门传0", "type": "integer" }, "remark": { "description": "备注", "type": "string" } } }, "request.AddOperationType": { "type": "object", "properties": { "ReservationDaysBeforePriority": { "description": "在优先级的前几天", "type": "integer" }, "baseOperationType": { "description": "基础作业类型", "allOf": [ { "$ref": "#/definitions/constvar.BaseOperationType" } ] }, "companyId": { "description": "公司id", "type": "integer" }, "createBackorder": { "description": "创建欠单", "allOf": [ { "$ref": "#/definitions/constvar.WhetherType" } ] }, "defaultLocationDestId": { "description": "默认目标位置id", "type": "integer" }, "defaultLocationSrcId": { "description": "默认源位置id", "type": "integer" }, "id": { "type": "integer" }, "name": { "description": "仓库名称", "type": "string" }, "printLabel": { "description": "是否打印标签", "type": "boolean" }, "reservationDaysBefore": { "description": "收货前几天", "type": "integer" }, "reservationMethod": { "description": "保留方式", "allOf": [ { "$ref": "#/definitions/constvar.ReservationMethod" } ] }, "returnOperationTypeID": { "description": "退货类型ID", "type": "integer" }, "showOperations": { "description": "显示作业详情", "type": "boolean" }, "warehouseId": { "description": "仓库id", "type": "integer" } } }, "request.AddWarehouse": { "type": "object", "required": [ "code" ], "properties": { "active": { "description": "是否启用,传true就行", "type": "boolean" }, "buyToResupply": { "description": "购买补给,已购买产品能够发送到此仓库", "type": "boolean" }, "code": { "description": "仓库编码", "type": "string", "maxLength": 5, "minLength": 1 }, "name": { "description": "仓库名称", "type": "string" }, "partnerId": { "description": "合作伙伴id", "type": "integer" }, "resupplyWhIds": { "description": "补给来源仓库ID", "type": "array", "items": { "type": "string" } } } }, "request.UpdateCompany": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "description": "公司名称", "type": "string" } } }, "request.UpdateDepartment": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "description": "部门名称", "type": "string" }, "number": { "description": "部门编号", "type": "string" }, "parentId": { "description": "上级部门ID 一级部门传0", "type": "integer" }, "remark": { "description": "备注", "type": "string" } } }, "request.UpdateOperationType": { "type": "object", "properties": { "ReservationDaysBeforePriority": { "description": "在优先级的前几天", "type": "integer" }, "baseOperationType": { "description": "基础作业类型", "allOf": [ { "$ref": "#/definitions/constvar.BaseOperationType" } ] }, "companyId": { "description": "公司id", "type": "integer" }, "createBackorder": { "description": "创建欠单", "allOf": [ { "$ref": "#/definitions/constvar.WhetherType" } ] }, "defaultLocationDestId": { "description": "默认目标位置id", "type": "integer" }, "defaultLocationSrcId": { "description": "默认源位置id", "type": "integer" }, "id": { "type": "integer" }, "name": { "description": "仓库名称", "type": "string" }, "printLabel": { "description": "是否打印标签", "type": "boolean" }, "reservationDaysBefore": { "description": "收货前几天", "type": "integer" }, "reservationMethod": { "description": "保留方式", "allOf": [ { "$ref": "#/definitions/constvar.ReservationMethod" } ] }, "returnOperationTypeID": { "description": "退货类型ID", "type": "integer" }, "showOperations": { "description": "显示作业详情", "type": "boolean" }, "warehouseId": { "description": "仓库id", "type": "integer" } } }, "request.UpdateWarehouse": { "type": "object", "required": [ "code" ], "properties": { "active": { "description": "是否启用,传true就行", "type": "boolean" }, "buyToResupply": { "description": "购买补给,已购买产品能够发送到此仓库", "type": "boolean" }, "code": { "description": "仓库编码", "type": "string", "maxLength": 5, "minLength": 1 }, "id": { "type": "integer" }, "name": { "description": "仓库名称", "type": "string" }, "partnerId": { "description": "合作伙伴id", "type": "integer" }, "resupplyWhIds": { "description": "补给来源仓库ID", "type": "array", "items": { "type": "string" } } } }, "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) }