| | |
| | | "host": "{{.Host}}", |
| | | "basePath": "{{.BasePath}}", |
| | | "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": [ |
| | |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.GetById" |
| | | "$ref": "#/definitions/srm_model_common_request.GetById" |
| | | } |
| | | } |
| | | ], |
| | |
| | | "description": "{\"success\":true,\"data\":{},\"msg\":\"预览成功\"}", |
| | | "schema": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/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/purchase_wms.SrmGetWarehouseInfoResponse" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/purchase/getWarehouseInfo": { |
| | | "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": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/purchase_wms.SrmGetWarehouseInfoResponse" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "integer", |
| | | "type": "string", |
| | | "example": "0", |
| | | "description": "主键ID", |
| | | "name": "id", |
| | | "in": "query" |
| | |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "integer", |
| | | "type": "string", |
| | | "example": "0", |
| | | "description": "主键ID", |
| | | "name": "id", |
| | | "in": "query" |
| | |
| | | } |
| | | }, |
| | | "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": { |
| | |
| | | }, |
| | | "id": { |
| | | "description": "主键ID", |
| | | "type": "integer" |
| | | "type": "string", |
| | | "example": "0" |
| | | }, |
| | | "invoiceAmount": { |
| | | "description": "已收票金额", |
| | |
| | | ] |
| | | }, |
| | | "principal": { |
| | | "description": "采购负责人", |
| | | "description": "仓库负责人", |
| | | "type": "string" |
| | | }, |
| | | "purchaseType": { |
| | |
| | | }, |
| | | "purchaseTypeId": { |
| | | "description": "采购类型id", |
| | | "type": "integer" |
| | | "type": "string", |
| | | "example": "0" |
| | | }, |
| | | "quantity": { |
| | | "description": "采购数量", |
| | |
| | | "description": "签约日期", |
| | | "type": "string" |
| | | }, |
| | | "sourceOrder": { |
| | | "description": "来源单据", |
| | | "type": "string" |
| | | }, |
| | | "status": { |
| | | "description": "状态", |
| | | "allOf": [ |
| | |
| | | }, |
| | | "supplierId": { |
| | | "description": "供应商id", |
| | | "type": "integer" |
| | | "type": "string", |
| | | "example": "0" |
| | | }, |
| | | "totalPrice": { |
| | | "description": "价税合计", |
| | |
| | | }, |
| | | "warehouse": { |
| | | "description": "收货仓库", |
| | | "type": "string" |
| | | }, |
| | | "warehouseAddress": { |
| | | "description": "收货仓库地址", |
| | | "type": "string" |
| | | }, |
| | | "wholeDiscount": { |
| | |
| | | }, |
| | | "id": { |
| | | "description": "主键ID", |
| | | "type": "integer" |
| | | "type": "string", |
| | | "example": "0" |
| | | }, |
| | | "name": { |
| | | "description": "采购类型", |
| | |
| | | "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": { |
| | |
| | | }, |
| | | "id": { |
| | | "description": "主键ID", |
| | | "type": "integer" |
| | | "type": "string", |
| | | "example": "0" |
| | | }, |
| | | "name": { |
| | | "description": "采购名称", |
| | |
| | | } |
| | | ] |
| | | }, |
| | | "principal": { |
| | | "description": "仓库负责人", |
| | | "type": "string" |
| | | }, |
| | | "purchaseTypeId": { |
| | | "description": "采购类型id", |
| | | "type": "integer" |
| | | "type": "string", |
| | | "example": "0" |
| | | }, |
| | | "quantity": { |
| | | "description": "采购数量", |
| | |
| | | "description": "签约日期", |
| | | "type": "string" |
| | | }, |
| | | "sourceOrder": { |
| | | "description": "来源单据", |
| | | "type": "string" |
| | | }, |
| | | "status": { |
| | | "description": "状态", |
| | | "allOf": [ |
| | |
| | | }, |
| | | "supplierId": { |
| | | "description": "供应商id", |
| | | "type": "integer" |
| | | "type": "string", |
| | | "example": "0" |
| | | }, |
| | | "totalPrice": { |
| | | "description": "价税合计", |
| | | "type": "number" |
| | | }, |
| | | "warehouse": { |
| | | "description": "收货仓库", |
| | | "type": "string" |
| | | }, |
| | | "warehouseAddress": { |
| | | "description": "收货仓库地址", |
| | | "type": "string" |
| | | }, |
| | | "wholeDiscount": { |
| | | "description": "整单折扣值", |
| | |
| | | "properties": { |
| | | "id": { |
| | | "description": "主键ID", |
| | | "type": "integer" |
| | | "type": "string", |
| | | "example": "0" |
| | | }, |
| | | "name": { |
| | | "description": "采购类型", |
| | |
| | | }, |
| | | "purchase": { |
| | | "$ref": "#/definitions/purchaserequest.Purchase" |
| | | } |
| | | } |
| | | }, |
| | | "request.GetById": { |
| | | "type": "object", |
| | | "properties": { |
| | | "id": { |
| | | "description": "主键ID", |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "purchasePrice": { |
| | | "type": "number" |
| | | }, |
| | | "remark": { |
| | | "description": "描述", |
| | | "type": "string" |
| | | }, |
| | | "shippingDuration": { |
| | | "type": "integer" |
| | | }, |
| | |
| | | "data": {}, |
| | | "msg": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "srm_model_common_request.GetById": { |
| | | "type": "object", |
| | | "properties": { |
| | | "id": { |
| | | "description": "主键ID", |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | |
| | | }, |
| | | "id": { |
| | | "description": "主键ID", |
| | | "type": "integer" |
| | | "type": "string", |
| | | "example": "0" |
| | | }, |
| | | "industry": { |
| | | "type": "string" |