From 5193dcb9336e853502baf8a539d3f45efebe2f86 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期六, 26 八月 2023 21:55:56 +0800 Subject: [PATCH] 采购单增删改查 --- docs/swagger.yaml | 561 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 543 insertions(+), 18 deletions(-) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 09a96c0..8c24038 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -377,7 +377,7 @@ $ref: '#/definitions/config.SpecializedDB' type: array email: - $ref: '#/definitions/github_com_flipped-aurora_gin-vue-admin_server_config.Email' + $ref: '#/definitions/srm_config.Email' excel: $ref: '#/definitions/config.Excel' hua-wei-obs: @@ -659,29 +659,68 @@ description: 鏂囦欢鍦板潃 type: string type: object - github_com_flipped-aurora_gin-vue-admin_server_config.Email: + purchase.Purchase: properties: - from: - description: 鍙戜欢浜� 浣犺嚜宸辫鍙戦偖浠剁殑閭 + contact: + description: 鑱旂郴浜� type: string - host: - description: 鏈嶅姟鍣ㄥ湴鍧� 渚嬪 smtp.qq.com 璇峰墠寰�QQ鎴栬�呬綘瑕佸彂閭欢鐨勯偖绠辨煡鐪嬪叾smtp鍗忚 + deliveryDate: + description: 浜や粯鏃ユ湡 type: string - is-ssl: - description: 鏄惁SSL 鏄惁寮�鍚疭SL - type: boolean - nickname: - description: 鏄电О 鍙戜欢浜烘樀绉� 閫氬父涓鸿嚜宸辩殑閭 - type: string - port: - description: 绔彛 璇峰墠寰�QQ鎴栬�呬綘瑕佸彂閭欢鐨勯偖绠辨煡鐪嬪叾smtp鍗忚 澶у涓� 465 + id: + description: 涓婚敭ID type: integer - secret: - description: 瀵嗛挜 鐢ㄤ簬鐧诲綍鐨勫瘑閽� 鏈�濂戒笉瑕佺敤閭瀵嗙爜 鍘婚偖绠眘mtp鐢宠涓�涓敤浜庣櫥褰曠殑瀵嗛挜 + name: + description: 閲囪喘鍚嶇О type: string - to: - description: 鏀朵欢浜�:澶氫釜浠ヨ嫳鏂囬�楀彿鍒嗛殧 渚嬶細a@qq.com b@qq.com 姝e紡寮�鍙戜腑璇锋妸姝ら」鐩綔涓哄弬鏁颁娇鐢� + phone: + description: 鑱旂郴浜虹數璇� type: string + purchaseTypeId: + description: 閲囪喘绫诲瀷id + type: integer + remark: + description: 澶囨敞 + type: string + signingDate: + description: 绛剧害鏃ユ湡 + type: string + supplierId: + description: 渚涘簲鍟唅d + 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: @@ -985,6 +1024,15 @@ $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: code: @@ -1064,6 +1112,30 @@ properties: user: $ref: '#/definitions/system.SysUser' + type: object + srm_config.Email: + properties: + from: + description: 鍙戜欢浜� 浣犺嚜宸辫鍙戦偖浠剁殑閭 + type: string + host: + description: 鏈嶅姟鍣ㄥ湴鍧� 渚嬪 smtp.qq.com 璇峰墠寰�QQ鎴栬�呬綘瑕佸彂閭欢鐨勯偖绠辨煡鐪嬪叾smtp鍗忚 + type: string + is-ssl: + description: 鏄惁SSL 鏄惁寮�鍚疭SL + type: boolean + nickname: + description: 鏄电О 鍙戜欢浜烘樀绉� 閫氬父涓鸿嚜宸辩殑閭 + type: string + port: + description: 绔彛 璇峰墠寰�QQ鎴栬�呬綘瑕佸彂閭欢鐨勯偖绠辨煡鐪嬪叾smtp鍗忚 澶у涓� 465 + type: integer + secret: + description: 瀵嗛挜 鐢ㄤ簬鐧诲綍鐨勫瘑閽� 鏈�濂戒笉瑕佺敤閭瀵嗙爜 鍘婚偖绠眘mtp鐢宠涓�涓敤浜庣櫥褰曠殑瀵嗛挜 + type: string + to: + description: 鏀朵欢浜�:澶氫釜浠ヨ嫳鏂囬�楀彿鍒嗛殧 渚嬶細a@qq.com b@qq.com 姝e紡寮�鍙戜腑璇锋妸姝ら」鐩綔涓哄弬鏁颁娇鐢� + type: string type: object system.AutoCodeStruct: properties: @@ -1507,6 +1579,32 @@ description: 涓婚敭ID type: integer name: + type: string + type: object + test.Product: + properties: + deliveryTime: + type: integer + id: + description: 涓婚敭ID + type: integer + maximumStock: + type: integer + minimumStock: + type: integer + name: + type: string + number: + type: string + productType: + type: string + purchasePrice: + type: number + remark: + type: string + shippingDuration: + type: integer + unit: type: string type: object test.Supplier: @@ -3614,6 +3712,433 @@ summary: 鏇存柊鑿滃崟 tags: - Menu + /p/createProduct: + post: + consumes: + - application/json + parameters: + - description: 鍒涘缓Product + in: body + name: data + required: true + schema: + $ref: '#/definitions/test.Product' + 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/test.Product' + 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: + - in: query + name: deliveryTime + type: integer + - description: 涓婚敭ID + in: query + name: id + type: integer + - in: query + name: maximumStock + type: integer + - in: query + name: minimumStock + type: integer + - in: query + name: name + type: string + - in: query + name: number + type: string + - 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: unit + type: string + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"鏌ヨ鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 鐢╥d鏌ヨProduct + tags: + - Product + /p/getProductList: + 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/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: + - application/json + parameters: + - description: 鏇存柊Product + in: body + name: data + required: true + schema: + $ref: '#/definitions/test.Product' + 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: 閲囪喘鍗旾D, 閲囪喘鍗曚俊鎭� + 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: 閲囪喘鍗旾D + 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: 閲囪喘鍗旾D + 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: -- Gitblit v1.8.0