From d52defafc50d1a103199711d5151e24fc4a4d6b1 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期一, 28 八月 2023 12:47:27 +0800
Subject: [PATCH] update swag
---
docs/swagger.yaml | 100 +++--------
docs/docs.go | 165 ++++++--------------
docs/swagger.json | 165 ++++++--------------
3 files changed, 129 insertions(+), 301 deletions(-)
diff --git a/docs/docs.go b/docs/docs.go
index a341b7b..5052c01 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -4428,119 +4428,6 @@
}
}
},
- "/p/getProductListFromGrpc": {
- "get": {
- "security": [
- {
- "ApiKeyAuth": []
- }
- ],
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "Product"
- ],
- "summary": "鍒嗛〉鑾峰彇Product鍒楄〃",
- "parameters": [
- {
- "type": "integer",
- "name": "deliveryTime",
- "in": "query"
- },
- {
- "type": "string",
- "name": "endCreatedAt",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "涓婚敭ID",
- "name": "id",
- "in": "query"
- },
- {
- "type": "string",
- "description": "鍏抽敭瀛�",
- "name": "keyword",
- "in": "query"
- },
- {
- "type": "integer",
- "name": "maximumStock",
- "in": "query"
- },
- {
- "type": "integer",
- "name": "minimumStock",
- "in": "query"
- },
- {
- "type": "string",
- "name": "name",
- "in": "query"
- },
- {
- "type": "string",
- "name": "number",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "椤电爜",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "姣忛〉澶у皬",
- "name": "pageSize",
- "in": "query"
- },
- {
- "type": "string",
- "name": "productType",
- "in": "query"
- },
- {
- "type": "number",
- "name": "purchasePrice",
- "in": "query"
- },
- {
- "type": "string",
- "name": "remark",
- "in": "query"
- },
- {
- "type": "integer",
- "name": "shippingDuration",
- "in": "query"
- },
- {
- "type": "string",
- "name": "startCreatedAt",
- "in": "query"
- },
- {
- "type": "string",
- "name": "unit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- },
"/p/updateProduct": {
"put": {
"security": [
@@ -4790,7 +4677,7 @@
"tags": [
"Purchase"
],
- "summary": "鍒嗛〉鑾峰彇鏉冮檺閲囪喘鍗曞垪琛�",
+ "summary": "鍒嗛〉鑾峰彇閲囪喘鍗曞垪琛�",
"parameters": [
{
"type": "string",
@@ -4813,7 +4700,7 @@
],
"responses": {
"200": {
- "description": "鍒嗛〉鑾峰彇鏉冮檺閲囪喘鍗曞垪琛�,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺",
+ "description": "鍒嗛〉鑾峰彇閲囪喘鍗曞垪琛�,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺",
"schema": {
"allOf": [
{
@@ -4836,6 +4723,54 @@
}
}
},
+ "/purchase/submit/{id}": {
+ "post": {
+ "security": [
+ {
+ "ApiKeyAuth": []
+ }
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "Purchase"
+ ],
+ "summary": "鎻愪氦閲囪喘鍗�",
+ "parameters": [
+ {
+ "type": "integer",
+ "description": "閲囪喘鍗旾D",
+ "name": "id",
+ "in": "path",
+ "required": true
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "鎻愪氦閲囪喘鍗�",
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/response.Response"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "msg": {
+ "type": "string"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
"/s/changeSupplierStatus": {
"post": {
"security": [
diff --git a/docs/swagger.json b/docs/swagger.json
index 80abf03..96f9360 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -4419,119 +4419,6 @@
}
}
},
- "/p/getProductListFromGrpc": {
- "get": {
- "security": [
- {
- "ApiKeyAuth": []
- }
- ],
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "tags": [
- "Product"
- ],
- "summary": "鍒嗛〉鑾峰彇Product鍒楄〃",
- "parameters": [
- {
- "type": "integer",
- "name": "deliveryTime",
- "in": "query"
- },
- {
- "type": "string",
- "name": "endCreatedAt",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "涓婚敭ID",
- "name": "id",
- "in": "query"
- },
- {
- "type": "string",
- "description": "鍏抽敭瀛�",
- "name": "keyword",
- "in": "query"
- },
- {
- "type": "integer",
- "name": "maximumStock",
- "in": "query"
- },
- {
- "type": "integer",
- "name": "minimumStock",
- "in": "query"
- },
- {
- "type": "string",
- "name": "name",
- "in": "query"
- },
- {
- "type": "string",
- "name": "number",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "椤电爜",
- "name": "page",
- "in": "query"
- },
- {
- "type": "integer",
- "description": "姣忛〉澶у皬",
- "name": "pageSize",
- "in": "query"
- },
- {
- "type": "string",
- "name": "productType",
- "in": "query"
- },
- {
- "type": "number",
- "name": "purchasePrice",
- "in": "query"
- },
- {
- "type": "string",
- "name": "remark",
- "in": "query"
- },
- {
- "type": "integer",
- "name": "shippingDuration",
- "in": "query"
- },
- {
- "type": "string",
- "name": "startCreatedAt",
- "in": "query"
- },
- {
- "type": "string",
- "name": "unit",
- "in": "query"
- }
- ],
- "responses": {
- "200": {
- "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}",
- "schema": {
- "type": "string"
- }
- }
- }
- }
- },
"/p/updateProduct": {
"put": {
"security": [
@@ -4781,7 +4668,7 @@
"tags": [
"Purchase"
],
- "summary": "鍒嗛〉鑾峰彇鏉冮檺閲囪喘鍗曞垪琛�",
+ "summary": "鍒嗛〉鑾峰彇閲囪喘鍗曞垪琛�",
"parameters": [
{
"type": "string",
@@ -4804,7 +4691,7 @@
],
"responses": {
"200": {
- "description": "鍒嗛〉鑾峰彇鏉冮檺閲囪喘鍗曞垪琛�,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺",
+ "description": "鍒嗛〉鑾峰彇閲囪喘鍗曞垪琛�,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺",
"schema": {
"allOf": [
{
@@ -4827,6 +4714,54 @@
}
}
},
+ "/purchase/submit/{id}": {
+ "post": {
+ "security": [
+ {
+ "ApiKeyAuth": []
+ }
+ ],
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "Purchase"
+ ],
+ "summary": "鎻愪氦閲囪喘鍗�",
+ "parameters": [
+ {
+ "type": "integer",
+ "description": "閲囪喘鍗旾D",
+ "name": "id",
+ "in": "path",
+ "required": true
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "鎻愪氦閲囪喘鍗�",
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/response.Response"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "msg": {
+ "type": "string"
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
"/s/changeSupplierStatus": {
"post": {
"security": [
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index e310fbc..a58da37 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -4248,75 +4248,6 @@
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:
@@ -4471,7 +4402,7 @@
- application/json
responses:
"200":
- description: 鍒嗛〉鑾峰彇鏉冮檺閲囪喘鍗曞垪琛�,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺
+ description: 鍒嗛〉鑾峰彇閲囪喘鍗曞垪琛�,杩斿洖鍖呮嫭鍒楄〃,鎬绘暟,椤电爜,姣忛〉鏁伴噺
schema:
allOf:
- $ref: '#/definitions/response.Response'
@@ -4483,7 +4414,34 @@
type: object
security:
- ApiKeyAuth: []
- summary: 鍒嗛〉鑾峰彇鏉冮檺閲囪喘鍗曞垪琛�
+ summary: 鍒嗛〉鑾峰彇閲囪喘鍗曞垪琛�
+ tags:
+ - Purchase
+ /purchase/submit/{id}:
+ post:
+ 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
/s/changeSupplierStatus:
--
Gitblit v1.8.0