| | |
| | | description: 文件地址 |
| | | type: string |
| | | type: object |
| | | purchase.Purchase: |
| | | properties: |
| | | contact: |
| | | description: 联系人 |
| | | type: string |
| | | deliveryDate: |
| | | description: 交付日期 |
| | | type: string |
| | | id: |
| | | description: 主键ID |
| | | type: integer |
| | | name: |
| | | description: 采购名称 |
| | | type: string |
| | | phone: |
| | | description: 联系人电话 |
| | | type: string |
| | | purchaseTypeId: |
| | | description: 采购类型id |
| | | type: integer |
| | | remark: |
| | | description: 备注 |
| | | type: string |
| | | signingDate: |
| | | description: 签约日期 |
| | | type: string |
| | | supplierId: |
| | | description: 供应商id |
| | | type: integer |
| | | type: object |
| | | purchase.PurchaseProducts: |
| | | properties: |
| | | amount: |
| | | description: 采购数量 |
| | | type: number |
| | | 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 |
| | | type: object |
| | | purchaserequest.AddPurchase: |
| | | properties: |
| | | productList: |
| | | items: |
| | | $ref: '#/definitions/purchase.PurchaseProducts' |
| | | type: array |
| | | purchase: |
| | | $ref: '#/definitions/purchase.Purchase' |
| | | type: object |
| | | request.AddMenuAuthorityInfo: |
| | | properties: |
| | | authorityId: |
| | |
| | | items: |
| | | $ref: '#/definitions/request.CasbinInfo' |
| | | type: array |
| | | type: object |
| | | response.PurchaseResponse: |
| | | properties: |
| | | productList: |
| | | items: |
| | | $ref: '#/definitions/purchase.PurchaseProducts' |
| | | type: array |
| | | purchase: |
| | | $ref: '#/definitions/purchase.Purchase' |
| | | type: object |
| | | response.Response: |
| | | properties: |
| | |
| | | summary: 分页获取Product列表 |
| | | tags: |
| | | - Product |
| | | /p/getProductListFromGrpc: |
| | | get: |
| | | consumes: |
| | | - application/json |
| | | parameters: |
| | | - in: query |
| | | name: deliveryTime |
| | | type: integer |
| | | - in: query |
| | | name: endCreatedAt |
| | | type: string |
| | | - description: 主键ID |
| | | in: query |
| | | name: id |
| | | type: integer |
| | | - description: 关键字 |
| | | in: query |
| | | name: keyword |
| | | type: string |
| | | - in: query |
| | | name: maximumStock |
| | | type: integer |
| | | - in: query |
| | | name: minimumStock |
| | | type: integer |
| | | - 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: productType |
| | | type: string |
| | | - in: query |
| | | name: purchasePrice |
| | | type: number |
| | | - in: query |
| | | name: remark |
| | | type: string |
| | | - in: query |
| | | name: shippingDuration |
| | | type: integer |
| | | - in: query |
| | | name: startCreatedAt |
| | | 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: |
| | |
| | | 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.AddPurchase' |
| | | 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 |
| | | /s/changeSupplierStatus: |
| | | post: |
| | | consumes: |