definitions: config.CORS: properties: mode: type: string whitelist: items: $ref: '#/definitions/config.CORSWhitelist' type: array type: object config.CORSWhitelist: properties: allow-credentials: type: boolean allow-headers: type: string allow-methods: type: string allow-origin: type: string expose-headers: type: string type: object config.Mssql: properties: config: description: 高级配置 type: string db-name: description: 数据库名 type: string engine: default: InnoDB description: 数据库引擎,默认InnoDB type: string 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 type: object config.Mysql: properties: config: description: 高级配置 type: string db-name: description: 数据库名 type: string engine: default: InnoDB description: 数据库引擎,默认InnoDB type: string 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 type: object config.Oracle: properties: config: description: 高级配置 type: string db-name: description: 数据库名 type: string engine: default: InnoDB description: 数据库引擎,默认InnoDB type: string 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 type: object config.Pgsql: properties: config: description: 高级配置 type: string db-name: description: 数据库名 type: string engine: default: InnoDB description: 数据库引擎,默认InnoDB type: string 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 type: object config.Server: properties: cors: allOf: - $ref: '#/definitions/config.CORS' description: 跨域配置 db-list: items: $ref: '#/definitions/config.SpecializedDB' type: array mssql: $ref: '#/definitions/config.Mssql' mysql: allOf: - $ref: '#/definitions/config.Mysql' description: gorm oracle: $ref: '#/definitions/config.Oracle' pgsql: $ref: '#/definitions/config.Pgsql' sqlite: $ref: '#/definitions/config.Sqlite' system: $ref: '#/definitions/config.System' zap: allOf: - $ref: '#/definitions/config.Zap' description: JWT JWT `mapstructure:"jwt" json:"jwt" yaml:"jwt"` type: object config.SpecializedDB: properties: alias-name: type: string config: description: 高级配置 type: string db-name: description: 数据库名 type: string disable: type: boolean engine: default: InnoDB description: 数据库引擎,默认InnoDB type: string 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 type: object config.Sqlite: properties: config: description: 高级配置 type: string db-name: description: 数据库名 type: string engine: default: InnoDB description: 数据库引擎,默认InnoDB type: string 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 type: object config.System: 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 type: object config.Zap: 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 type: object purchase.OrderStatus: enum: - 1 - 2 - 3 - 4 - 5 type: integer x-enum-comments: OrderStatusCanceled: 已取消 OrderStatusCompleted: 已完成 OrderStatusConfirmed: 待确认 OrderStatusReceived: 待入库 OrderStatusStored: 已入库 x-enum-varnames: - OrderStatusConfirmed - OrderStatusReceived - OrderStatusStored - OrderStatusCompleted - OrderStatusCanceled purchase.PriceAdjustmentType: enum: - 1 - 2 type: integer x-enum-comments: PriceAdjustmentTypeAdd: 增加 PriceAdjustmentTypeSub: 减少 x-enum-varnames: - PriceAdjustmentTypeAdd - PriceAdjustmentTypeSub purchase.Purchase: 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: integer 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: allOf: - $ref: '#/definitions/purchase.PriceAdjustmentType' description: 价格调整类型 principal: description: 采购负责人 type: string purchaseType: $ref: '#/definitions/purchase.PurchaseType' purchaseTypeId: description: 采购类型id type: integer quantity: description: 采购数量 type: number realTotalPrice: description: 最终价格 type: number remark: description: 备注 type: string shouldPayAmount: description: 应付金额 type: number signingDate: description: 签约日期 type: string status: allOf: - $ref: '#/definitions/purchase.OrderStatus' description: 状态 supplier: $ref: '#/definitions/test.Supplier' supplierId: description: 供应商id type: integer totalPrice: description: 价税合计 type: number unInvoiceAmount: description: 未收票金额 type: number updated_at: type: string warehouse: description: 收货仓库 type: string wholeDiscount: description: 整单折扣值 type: number wholeDiscountType: allOf: - $ref: '#/definitions/purchase.WholeDiscountType' description: 整单折扣类型 type: object purchase.PurchaseProducts: properties: amount: description: 采购数量 type: number created_at: type: string id: description: 主键ID type: integer price: description: 采购单价 type: number productId: description: 产品id type: string purchaseId: description: 采购id type: integer remark: description: 描述 type: string total: description: 采购总价 type: number updated_at: type: string type: object purchase.PurchaseType: properties: created_at: type: string id: description: 主键ID type: integer name: description: 采购类型 type: string pin: description: 是否置顶 type: boolean sort: description: 排序 type: integer updated_at: type: string type: object purchase.WholeDiscountType: enum: - 1 - 2 type: integer x-enum-comments: WholeDiscountTypeDiscount: 直接降价 WholeDiscountTypePercent: 百分比降价 x-enum-varnames: - WholeDiscountTypePercent - WholeDiscountTypeDiscount purchaserequest.AddPurchase: properties: productList: items: $ref: '#/definitions/purchase.PurchaseProducts' type: array purchase: $ref: '#/definitions/purchaserequest.Purchase' type: object purchaserequest.Purchase: properties: contact: description: 联系人 type: string deliveryDate: description: 交付日期 type: string id: description: 主键ID type: integer name: description: 采购名称 type: string number: description: 采购编号 type: string phone: description: 联系人电话 type: string priceAdjustment: description: 价格调整值 type: number priceAdjustmentType: allOf: - $ref: '#/definitions/purchase.PriceAdjustmentType' description: 价格调整类型 purchaseTypeId: description: 采购类型id type: integer quantity: description: 采购数量 type: number realTotalPrice: description: 最终价格 type: number remark: description: 备注 type: string signingDate: description: 签约日期 type: string status: allOf: - $ref: '#/definitions/purchase.OrderStatus' description: 状态 supplierId: description: 供应商id type: integer totalPrice: description: 价税合计 type: number wholeDiscount: description: 整单折扣值 type: number wholeDiscountType: allOf: - $ref: '#/definitions/purchase.WholeDiscountType' description: 整单折扣类型 type: object purchaserequest.PurchaseType: properties: id: description: 主键ID type: integer name: description: 采购类型 type: string pin: description: 是否置顶 type: boolean sort: description: 排序 type: integer type: object purchaserequest.UpdatePurchase: properties: productList: items: $ref: '#/definitions/purchase.PurchaseProducts' type: array purchase: $ref: '#/definitions/purchaserequest.Purchase' type: object request.GetById: properties: id: description: 主键ID type: integer type: object request.IdsReq: properties: ids: items: type: integer type: array type: object request.IndustryList: properties: industries: items: $ref: '#/definitions/test.Industry' type: array type: object request.Product: 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 type: object request.ProductCreate: properties: list: items: $ref: '#/definitions/request.Product' type: array type: object request.SupplierStatus: properties: id: type: integer status: type: integer type: object request.SupplierTypeList: properties: supplierTypes: items: $ref: '#/definitions/test.SupplierType' type: array type: object response.PageResult: properties: list: {} page: type: integer pageSize: type: integer total: type: integer type: object response.PurchaseProducts: 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 shippingDuration: type: integer specifications: type: string total: description: 采购总价 type: number unit: type: string type: object response.PurchaseResponse: properties: productList: items: $ref: '#/definitions/response.PurchaseProducts' type: array purchase: $ref: '#/definitions/purchase.Purchase' type: object response.Response: properties: code: type: integer data: {} msg: type: string type: object system.System: properties: config: $ref: '#/definitions/config.Server' type: object test.Contract: properties: created_at: type: string fileName: type: string id: description: 主键ID type: integer supplierID: type: integer updated_at: type: string type: object test.Industry: properties: created_at: type: string id: description: 主键ID type: integer name: type: string updated_at: type: string type: object test.Member: properties: created_at: type: string id: description: 主键ID type: integer nickname: type: string updated_at: type: string userName: type: string uuid: type: string type: object test.Supplier: 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: integer 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 type: object test.SupplierMaterial: 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 type: object test.SupplierType: properties: created_at: type: string id: description: 主键ID type: integer name: type: string updated_at: type: string type: object info: contact: {} description: This is a sample Server pets title: Swagger Example API version: 0.0.1 paths: /con/createContract: post: consumes: - multipart/form-data parameters: - description: 上传文件 in: formData name: file required: true type: file - description: 文件名称 in: formData name: name required: true type: string produces: - multipart/form-data responses: "200": description: '{"success":true,"data":{},"msg":"获取成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 创建Contract tags: - Contract /con/deleteContract: delete: consumes: - application/json parameters: - description: 删除Contract in: body name: data required: true schema: $ref: '#/definitions/test.Contract' produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"删除成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 删除Contract tags: - Contract /con/deleteContractByIds: delete: consumes: - application/json parameters: - description: 批量删除Contract in: body name: data required: true schema: $ref: '#/definitions/request.IdsReq' produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"批量删除成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 批量删除Contract tags: - Contract /con/downloadContract: get: consumes: - application/json parameters: - in: query name: created_at type: string - in: query name: fileName type: string - description: 主键ID in: query name: id type: integer - in: query name: supplierID type: integer - in: query name: updated_at type: string produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"下载成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 下载Contract tags: - Contract /con/findContract: get: consumes: - application/json parameters: - in: query name: created_at type: string - in: query name: fileName type: string - description: 主键ID in: query name: id type: integer - in: query name: supplierID type: integer - in: query name: updated_at type: string produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"查询成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 用id查询Contract tags: - Contract /con/getContractList: get: consumes: - application/json parameters: - in: query name: created_at type: string - in: query name: endCreatedAt type: string - in: query name: fileName type: string - description: 主键ID in: query name: id type: integer - description: 关键字 in: query name: keyword type: string - description: 页码 in: query name: page type: integer - description: 每页大小 in: query name: pageSize type: integer - in: query name: startCreatedAt type: string - in: query name: supplierID type: integer - in: query name: updated_at type: string produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"获取成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 分页获取Contract列表 tags: - Contract /con/previewContract: get: consumes: - application/json parameters: - in: query name: created_at type: string - in: query name: fileName type: string - description: 主键ID in: query name: id type: integer - in: query name: supplierID type: integer - in: query name: updated_at type: string produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"预览成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 预览Contract tags: - Contract /con/updateContract: put: consumes: - application/json parameters: - description: 更新Contract in: body name: data required: true schema: $ref: '#/definitions/test.Contract' produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"更新成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 更新Contract tags: - Contract /i/createIndustry: post: consumes: - application/json parameters: - description: 创建Industry in: body name: data required: true schema: $ref: '#/definitions/test.Industry' produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"获取成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 创建Industry tags: - Industry /i/deleteIndustry: delete: consumes: - application/json parameters: - description: 删除Industry in: body name: data required: true schema: $ref: '#/definitions/test.Industry' produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"删除成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 删除Industry tags: - Industry /i/deleteIndustryByIds: delete: consumes: - application/json parameters: - description: 批量删除Industry in: body name: data required: true schema: $ref: '#/definitions/request.IdsReq' produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"批量删除成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 批量删除Industry tags: - Industry /i/findIndustry: get: consumes: - application/json parameters: - in: query name: created_at type: string - description: 主键ID in: query name: id type: integer - in: query name: name type: string - in: query name: updated_at type: string produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"查询成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 用id查询Industry tags: - Industry /i/getIndustryList: get: consumes: - application/json parameters: - in: query name: created_at type: string - in: query name: endCreatedAt type: string - description: 主键ID in: query name: id type: integer - description: 关键字 in: query name: keyword type: string - in: query name: name type: string - description: 页码 in: query name: page type: integer - description: 每页大小 in: query name: pageSize type: integer - in: query name: startCreatedAt type: string - in: query name: updated_at type: string produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"获取成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 分页获取Industry列表 tags: - Industry /i/updateIndustry: put: consumes: - application/json parameters: - description: 更新Industry in: body name: data required: true schema: $ref: '#/definitions/request.IndustryList' produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"更新成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 更新Industry tags: - Industry /m/createMember: post: consumes: - application/json parameters: - description: 创建Member in: body name: data required: true schema: $ref: '#/definitions/test.Member' produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"获取成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 创建Member tags: - Member /m/deleteMember: delete: consumes: - application/json parameters: - description: 删除Member in: body name: data required: true schema: $ref: '#/definitions/test.Member' produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"删除成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 删除Member tags: - Member /m/deleteMemberByIds: delete: consumes: - application/json parameters: - description: 批量删除Member in: body name: data required: true schema: $ref: '#/definitions/request.IdsReq' produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"批量删除成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 批量删除Member tags: - Member /m/findMember: get: consumes: - application/json parameters: - in: query name: created_at type: string - description: 主键ID in: query name: id type: integer - in: query name: nickname type: string - in: query name: updated_at type: string - in: query name: userName type: string - in: query name: uuid type: string produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"查询成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 用id查询Member tags: - Member /m/getMemberList: get: consumes: - application/json parameters: - in: query name: created_at type: string - in: query name: endCreatedAt type: string - description: 主键ID in: query name: id type: integer - description: 关键字 in: query name: keyword type: string - in: query name: nickname type: string - description: 页码 in: query name: page type: integer - description: 每页大小 in: query name: pageSize type: integer - in: query name: startCreatedAt type: string - in: query name: updated_at type: string - in: query name: userName type: string - in: query name: uuid type: string produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"获取成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 分页获取Member列表 tags: - Member /m/getMemberListFromGrpc: get: consumes: - application/json parameters: - in: query name: created_at type: string - in: query name: endCreatedAt type: string - description: 主键ID in: query name: id type: integer - description: 关键字 in: query name: keyword type: string - in: query name: nickname type: string - description: 页码 in: query name: page type: integer - description: 每页大小 in: query name: pageSize type: integer - in: query name: startCreatedAt type: string - in: query name: updated_at type: string - in: query name: userName type: string - in: query name: uuid type: string produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"获取成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 分页获取Member列表 tags: - Member /m/updateMember: put: consumes: - application/json parameters: - description: 更新Member in: body name: data required: true schema: $ref: '#/definitions/test.Member' produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"更新成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 更新Member tags: - Member /p/createProduct: post: consumes: - application/json parameters: - description: 创建Product in: body name: data required: true schema: $ref: '#/definitions/request.ProductCreate' produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"获取成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 创建Product tags: - Product /p/deleteProduct: delete: consumes: - application/json parameters: - description: 删除Product in: body name: data required: true schema: $ref: '#/definitions/request.GetById' produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"删除成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 删除Product tags: - Product /p/deleteProductByIds: delete: consumes: - application/json parameters: - description: 批量删除Product in: body name: data required: true schema: $ref: '#/definitions/request.IdsReq' produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"批量删除成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 批量删除Product tags: - Product /p/findProduct: get: consumes: - application/json parameters: - description: 主键ID in: query name: id type: integer produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"查询成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 用id查询Product tags: - Product /p/getProductList: get: consumes: - application/json parameters: - in: query name: categoryName type: string - in: query name: deliveryTime type: integer - description: 关键字 in: query name: keyword type: string - in: query name: modelNumber type: string - in: query name: name type: string - in: query name: number type: string - description: 页码 in: query name: page type: integer - description: 每页大小 in: query name: pageSize type: integer - in: query name: purchasePrice type: number - in: query name: shippingDuration type: integer - in: query name: specifications type: string - in: query name: supplier type: string - in: query name: supplierId type: integer - in: query name: supplierName type: string - in: query name: supplierNumber type: string - in: query name: unit type: string produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"获取成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 分页获取Product列表 tags: - Product /p/getProductListFromGrpc: get: consumes: - application/json parameters: - in: query name: categoryName type: string - in: query name: deliveryTime type: integer - description: 关键字 in: query name: keyword type: string - in: query name: modelNumber type: string - in: query name: name type: string - in: query name: number type: string - description: 页码 in: query name: page type: integer - description: 每页大小 in: query name: pageSize type: integer - in: query name: purchasePrice type: number - in: query name: shippingDuration type: integer - in: query name: specifications type: string - in: query name: supplier type: string - in: query name: supplierId type: integer - in: query name: supplierName type: string - in: query name: supplierNumber type: string - in: query name: unit type: string produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"获取成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 分页获取Product列表 tags: - Product /p/updateProduct: put: consumes: - application/json parameters: - description: 更新Product in: body name: data required: true schema: $ref: '#/definitions/test.SupplierMaterial' produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"更新成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 更新Product tags: - Product /purchase/purchase: post: consumes: - application/json parameters: - description: 采购单,采购单产品 in: body name: data required: true schema: $ref: '#/definitions/purchaserequest.AddPurchase' produces: - application/json responses: "200": description: 创建采购单 schema: allOf: - $ref: '#/definitions/response.Response' - properties: msg: type: string type: object security: - ApiKeyAuth: [] summary: 创建采购单 tags: - Purchase put: consumes: - application/json parameters: - description: 采购单ID, 采购单信息 in: body name: data required: true schema: $ref: '#/definitions/purchaserequest.UpdatePurchase' produces: - application/json responses: "200": description: 更新采购单信息 schema: allOf: - $ref: '#/definitions/response.Response' - properties: msg: type: string type: object security: - ApiKeyAuth: [] summary: 更新采购单信息 tags: - Purchase /purchase/purchase/{id}: delete: consumes: - application/json parameters: - description: 采购单ID in: path name: id required: true type: integer produces: - application/json responses: "200": description: 删除采购单 schema: allOf: - $ref: '#/definitions/response.Response' - properties: msg: type: string type: object security: - ApiKeyAuth: [] summary: 删除采购单 tags: - Purchase get: consumes: - application/json parameters: - description: 采购单ID in: path name: id required: true type: integer produces: - application/json responses: "200": description: 获取单一采购单信息,返回包括采购单详情 schema: allOf: - $ref: '#/definitions/response.Response' - properties: data: $ref: '#/definitions/response.PurchaseResponse' msg: type: string type: object security: - ApiKeyAuth: [] summary: 获取单一采购单信息 tags: - Purchase /purchase/purchaseList: get: consumes: - application/json parameters: - description: 关键字 in: query name: keyword type: string - description: 页码 in: query name: page type: integer - description: 每页大小 in: query name: pageSize type: integer produces: - application/json responses: "200": description: 分页获取采购单列表,返回包括列表,总数,页码,每页数量 schema: allOf: - $ref: '#/definitions/response.Response' - properties: data: $ref: '#/definitions/response.PageResult' msg: type: string type: object security: - ApiKeyAuth: [] summary: 分页获取采购单列表 tags: - Purchase /purchase/purchaseType: post: consumes: - application/json parameters: - description: 采购类型list in: body name: data required: true schema: items: $ref: '#/definitions/purchaserequest.PurchaseType' type: array produces: - application/json responses: "200": description: 创建采购类型 schema: allOf: - $ref: '#/definitions/response.Response' - properties: msg: type: string type: object security: - ApiKeyAuth: [] summary: 创建采购类型 tags: - Purchase /purchase/purchaseTypeList: get: consumes: - application/json produces: - application/json responses: "200": description: 获取采购类型列表 schema: allOf: - $ref: '#/definitions/response.Response' - properties: data: items: $ref: '#/definitions/purchase.PurchaseType' type: array msg: type: string type: object security: - ApiKeyAuth: [] summary: 获取采购类型列表 tags: - Purchase /purchase/qualityInspectList: get: consumes: - application/json parameters: - description: 关键字 in: query name: keyword type: string - description: 页码 in: query name: page type: integer - description: 每页大小 in: query name: pageSize type: integer produces: - application/json responses: "200": description: 分页获取质检单列表,返回包括列表,总数,页码,每页数量 schema: allOf: - $ref: '#/definitions/response.Response' - properties: data: $ref: '#/definitions/response.PageResult' msg: type: string type: object security: - ApiKeyAuth: [] summary: 分页获取质检单列表 tags: - QualityInspect /purchase/submit: post: consumes: - application/json parameters: - description: 采购单ID in: path name: id required: true type: integer produces: - application/json responses: "200": description: 提交采购单 schema: allOf: - $ref: '#/definitions/response.Response' - properties: msg: type: string type: object security: - ApiKeyAuth: [] summary: 提交采购单 tags: - Purchase /s/changeSupplierStatus: post: consumes: - application/json parameters: - description: 修改Supplier状态 in: body name: data required: true schema: $ref: '#/definitions/request.SupplierStatus' produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"修改成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 修改Supplier状态 tags: - Supplier /s/createSupplier: post: consumes: - application/json parameters: - description: 创建Supplier in: body name: data required: true schema: $ref: '#/definitions/test.Supplier' produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"获取成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 创建Supplier tags: - Supplier /s/deleteSupplier: delete: consumes: - application/json parameters: - description: 删除Supplier in: body name: data required: true schema: $ref: '#/definitions/test.Supplier' produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"删除成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 删除Supplier tags: - Supplier /s/deleteSupplierByIds: delete: consumes: - application/json parameters: - description: 批量删除Supplier in: body name: data required: true schema: $ref: '#/definitions/request.IdsReq' produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"批量删除成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 批量删除Supplier tags: - Supplier /s/findSupplier: get: consumes: - application/json parameters: - in: query name: account type: string - in: query name: accountName type: string - in: query name: bank type: string - in: query name: contact type: string - in: query name: created_at type: string - in: query name: detailAddress type: string - in: query name: email type: string - in: query name: fileId type: integer - description: 主键ID in: query name: id type: integer - in: query name: industry type: string - in: query name: name type: string - in: query name: number type: string - in: query name: phone type: string - in: query name: responsiblePersonName type: string - in: query name: status type: integer - in: query name: supplierType type: string - in: query name: updated_at type: string - in: query name: url type: string produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"查询成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 用id查询Supplier tags: - Supplier /s/getSupplierList: get: consumes: - application/json parameters: - in: query name: account type: string - in: query name: accountName type: string - in: query name: bank type: string - in: query name: contact type: string - in: query name: created_at type: string - in: query name: detailAddress type: string - in: query name: email type: string - in: query name: endCreatedAt type: string - in: query name: fileId type: integer - description: 主键ID in: query name: id type: integer - in: query name: industry type: string - description: 关键字 in: query name: keyword type: string - in: query name: name type: string - in: query name: number type: string - description: 页码 in: query name: page type: integer - description: 每页大小 in: query name: pageSize type: integer - in: query name: phone type: string - in: query name: responsiblePersonName type: string - in: query name: startCreatedAt type: string - in: query name: status type: integer - in: query name: supplierType type: string - in: query name: updated_at type: string - in: query name: url type: string produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"获取成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 分页获取Supplier列表 tags: - Supplier /s/updateSupplier: put: consumes: - application/json parameters: - description: 更新Supplier in: body name: data required: true schema: $ref: '#/definitions/test.Supplier' produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"更新成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 更新Supplier tags: - Supplier /st/createSupplierType: post: consumes: - application/json parameters: - description: 创建SupplierType in: body name: data required: true schema: $ref: '#/definitions/test.SupplierType' produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"获取成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 创建SupplierType tags: - SupplierType /st/deleteSupplierType: delete: consumes: - application/json parameters: - description: 删除SupplierType in: body name: data required: true schema: $ref: '#/definitions/test.SupplierType' produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"删除成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 删除SupplierType tags: - SupplierType /st/deleteSupplierTypeByIds: delete: consumes: - application/json parameters: - description: 批量删除SupplierType in: body name: data required: true schema: $ref: '#/definitions/request.IdsReq' produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"批量删除成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 批量删除SupplierType tags: - SupplierType /st/findSupplierType: get: consumes: - application/json parameters: - in: query name: created_at type: string - description: 主键ID in: query name: id type: integer - in: query name: name type: string - in: query name: updated_at type: string produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"查询成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 用id查询SupplierType tags: - SupplierType /st/getSupplierTypeList: get: consumes: - application/json parameters: - in: query name: created_at type: string - in: query name: endCreatedAt type: string - description: 主键ID in: query name: id type: integer - description: 关键字 in: query name: keyword type: string - in: query name: name type: string - description: 页码 in: query name: page type: integer - description: 每页大小 in: query name: pageSize type: integer - in: query name: startCreatedAt type: string - in: query name: updated_at type: string produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"获取成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 分页获取SupplierType列表 tags: - SupplierType /st/updateSupplierType: put: consumes: - application/json parameters: - description: 更新SupplierType in: body name: data required: true schema: $ref: '#/definitions/request.SupplierTypeList' produces: - application/json responses: "200": description: '{"success":true,"data":{},"msg":"更新成功"}' schema: type: string security: - ApiKeyAuth: [] summary: 更新SupplierType tags: - SupplierType /system/getServerInfo: post: produces: - application/json responses: "200": description: 获取服务器信息 schema: allOf: - $ref: '#/definitions/response.Response' - properties: data: additionalProperties: true type: object msg: type: string type: object security: - ApiKeyAuth: [] summary: 获取服务器信息 tags: - System /system/getSystemConfig: post: produces: - application/json responses: "200": description: 获取配置文件内容,返回包括系统配置 schema: allOf: - $ref: '#/definitions/response.Response' - properties: data: $ref: '#/definitions/system.System' msg: type: string type: object security: - ApiKeyAuth: [] summary: 获取配置文件内容 tags: - System /system/reloadSystem: post: produces: - application/json responses: "200": description: 重启系统 schema: allOf: - $ref: '#/definitions/response.Response' - properties: msg: type: string type: object security: - ApiKeyAuth: [] summary: 重启系统 tags: - System /system/setSystemConfig: post: parameters: - description: 设置配置文件内容 in: body name: data required: true schema: $ref: '#/definitions/system.System' produces: - application/json responses: "200": description: 设置配置文件内容 schema: allOf: - $ref: '#/definitions/response.Response' - properties: data: type: string type: object security: - ApiKeyAuth: [] summary: 设置配置文件内容 tags: - System securityDefinitions: ApiKeyAuth: in: header name: x-token type: apiKey swagger: "2.0"