From 046b6c88c5244a385c7fb9699aec84a02efdf316 Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期三, 08 十一月 2023 09:52:57 +0800 Subject: [PATCH] swagger更新 --- docs/swagger.yaml | 128 ++++++++++++++ docs/docs.go | 196 +++++++++++++++++++++ docs/swagger.json | 196 +++++++++++++++++++++ 3 files changed, 517 insertions(+), 3 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 8452e69..73b05bd 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -4917,6 +4917,49 @@ } } }, + "/api/product/getProductOrderInfo/{number}": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "浜у搧" + ], + "summary": "鑾峰彇浜у搧璁㈠崟淇℃伅", + "parameters": [ + { + "type": "string", + "description": "鏄庣粏缂栫爜", + "name": "number", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/contextx.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/product.WorkOrderInfo" + } + } + } + } + ] + } + } + } + } + }, "/api/product/info": { "get": { "produces": [ @@ -6919,6 +6962,36 @@ } } }, + "/api/salesDetails/createOperation": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "SalesDetails" + ], + "summary": "鍒涘缓浜у搧鍑哄簱淇℃伅", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.SalesDetails" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/response.ListResponse" + } + } + } + } + }, "/api/salesDetails/delete": { "delete": { "produces": [ @@ -6977,6 +7050,34 @@ } } }, + "/api/salesDetails/getProductInventoryInfo/{number}": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "SalesDetails" + ], + "summary": "鑾峰彇浜у搧搴撳瓨淇℃伅", + "parameters": [ + { + "type": "string", + "description": "鏄庣粏缂栫爜", + "name": "number", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/response.ListResponse" + } + } + } + } + }, "/api/salesDetails/list": { "post": { "produces": [ @@ -7028,6 +7129,34 @@ "SalesDetails" ], "summary": "鏇存柊閿�鍞槑缁�", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateSalesDetails" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + }, + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "SalesDetails" + ], + "summary": "鏇存柊閿�鍞槑缁嗙姸鎬�", "parameters": [ { "description": "鏌ヨ鍙傛暟", @@ -10361,6 +10490,27 @@ "SalesDetailsKeywordTypeProductName" ] }, + "constvar.SalesDetailsStatus": { + "type": "integer", + "enum": [ + 1, + 2, + 3, + 4 + ], + "x-enum-comments": { + "OverCLose": "宸插叧闂�", + "OverOutbound": "鍑哄簱瀹屾垚", + "WaitConfirmed": "寰呯‘璁�", + "WaitOutbound": "寰呭嚭搴�" + }, + "x-enum-varnames": [ + "WaitConfirmed", + "WaitOutbound", + "OverOutbound", + "OverCLose" + ] + }, "constvar.SalesRefundKeywordType": { "type": "string", "enum": [ @@ -12235,6 +12385,12 @@ "signTime": { "type": "string" }, + "source": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/constvar.SalesDetailsStatus" + }, "updateTime": { "type": "string" }, @@ -13278,6 +13434,32 @@ "type": "string" }, "Unit": { + "type": "string" + } + } + }, + "product.WorkOrderInfo": { + "type": "object", + "properties": { + "EndTime": { + "type": "string" + }, + "OrderId": { + "type": "string" + }, + "OrderStatus": { + "type": "string" + }, + "ProductName": { + "type": "string" + }, + "StartTime": { + "type": "string" + }, + "WorkOrderId": { + "type": "string" + }, + "WorkOrderStatus": { "type": "string" } } @@ -14374,6 +14556,12 @@ }, "signTime": { "type": "string" + }, + "source": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/constvar.SalesDetailsStatus" }, "wechatOrderStatusId": { "type": "integer" @@ -15571,7 +15759,7 @@ "$ref": "#/definitions/constvar.SalesDetailsKeywordType" }, "number": { - "description": "閿�鍞瓙鍗曞彿", + "description": "閿�鍞槑缁嗗崟鍙�", "type": "string" }, "page": { @@ -15938,6 +16126,12 @@ "signTime": { "type": "string" }, + "source": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/constvar.SalesDetailsStatus" + }, "wechatOrderStatusId": { "type": "integer" } diff --git a/docs/swagger.json b/docs/swagger.json index 64bc3af..0cb5b92 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -4905,6 +4905,49 @@ } } }, + "/api/product/getProductOrderInfo/{number}": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "浜у搧" + ], + "summary": "鑾峰彇浜у搧璁㈠崟淇℃伅", + "parameters": [ + { + "type": "string", + "description": "鏄庣粏缂栫爜", + "name": "number", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "鎴愬姛", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/contextx.Response" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/product.WorkOrderInfo" + } + } + } + } + ] + } + } + } + } + }, "/api/product/info": { "get": { "produces": [ @@ -6907,6 +6950,36 @@ } } }, + "/api/salesDetails/createOperation": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "SalesDetails" + ], + "summary": "鍒涘缓浜у搧鍑哄簱淇℃伅", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.SalesDetails" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/response.ListResponse" + } + } + } + } + }, "/api/salesDetails/delete": { "delete": { "produces": [ @@ -6965,6 +7038,34 @@ } } }, + "/api/salesDetails/getProductInventoryInfo/{number}": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "SalesDetails" + ], + "summary": "鑾峰彇浜у搧搴撳瓨淇℃伅", + "parameters": [ + { + "type": "string", + "description": "鏄庣粏缂栫爜", + "name": "number", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/response.ListResponse" + } + } + } + } + }, "/api/salesDetails/list": { "post": { "produces": [ @@ -7016,6 +7117,34 @@ "SalesDetails" ], "summary": "鏇存柊閿�鍞槑缁�", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateSalesDetails" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + }, + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "SalesDetails" + ], + "summary": "鏇存柊閿�鍞槑缁嗙姸鎬�", "parameters": [ { "description": "鏌ヨ鍙傛暟", @@ -10349,6 +10478,27 @@ "SalesDetailsKeywordTypeProductName" ] }, + "constvar.SalesDetailsStatus": { + "type": "integer", + "enum": [ + 1, + 2, + 3, + 4 + ], + "x-enum-comments": { + "OverCLose": "宸插叧闂�", + "OverOutbound": "鍑哄簱瀹屾垚", + "WaitConfirmed": "寰呯‘璁�", + "WaitOutbound": "寰呭嚭搴�" + }, + "x-enum-varnames": [ + "WaitConfirmed", + "WaitOutbound", + "OverOutbound", + "OverCLose" + ] + }, "constvar.SalesRefundKeywordType": { "type": "string", "enum": [ @@ -12223,6 +12373,12 @@ "signTime": { "type": "string" }, + "source": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/constvar.SalesDetailsStatus" + }, "updateTime": { "type": "string" }, @@ -13266,6 +13422,32 @@ "type": "string" }, "Unit": { + "type": "string" + } + } + }, + "product.WorkOrderInfo": { + "type": "object", + "properties": { + "EndTime": { + "type": "string" + }, + "OrderId": { + "type": "string" + }, + "OrderStatus": { + "type": "string" + }, + "ProductName": { + "type": "string" + }, + "StartTime": { + "type": "string" + }, + "WorkOrderId": { + "type": "string" + }, + "WorkOrderStatus": { "type": "string" } } @@ -14362,6 +14544,12 @@ }, "signTime": { "type": "string" + }, + "source": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/constvar.SalesDetailsStatus" }, "wechatOrderStatusId": { "type": "integer" @@ -15559,7 +15747,7 @@ "$ref": "#/definitions/constvar.SalesDetailsKeywordType" }, "number": { - "description": "閿�鍞瓙鍗曞彿", + "description": "閿�鍞槑缁嗗崟鍙�", "type": "string" }, "page": { @@ -15926,6 +16114,12 @@ "signTime": { "type": "string" }, + "source": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/constvar.SalesDetailsStatus" + }, "wechatOrderStatusId": { "type": "integer" } diff --git a/docs/swagger.yaml b/docs/swagger.yaml index a27c9b3..a6cfba3 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -187,6 +187,23 @@ - SalesDetailsKeywordTypeSignTime - SalesDetailsKeywordTypePrincipal - SalesDetailsKeywordTypeProductName + constvar.SalesDetailsStatus: + enum: + - 1 + - 2 + - 3 + - 4 + type: integer + x-enum-comments: + OverCLose: 宸插叧闂� + OverOutbound: 鍑哄簱瀹屾垚 + WaitConfirmed: 寰呯‘璁� + WaitOutbound: 寰呭嚭搴� + x-enum-varnames: + - WaitConfirmed + - WaitOutbound + - OverOutbound + - OverCLose constvar.SalesRefundKeywordType: enum: - 閿�鍞��璐у崟缂栧彿 @@ -1477,6 +1494,10 @@ type: integer signTime: type: string + source: + type: string + status: + $ref: '#/definitions/constvar.SalesDetailsStatus' updateTime: type: string wechatOrderStatus: @@ -2179,6 +2200,23 @@ description: 鍨嬪彿 type: string Unit: + type: string + type: object + product.WorkOrderInfo: + properties: + EndTime: + type: string + OrderId: + type: string + OrderStatus: + type: string + ProductName: + type: string + StartTime: + type: string + WorkOrderId: + type: string + WorkOrderStatus: type: string type: object request.AddAccountId: @@ -2914,6 +2952,10 @@ type: integer signTime: type: string + source: + type: string + status: + $ref: '#/definitions/constvar.SalesDetailsStatus' wechatOrderStatusId: type: integer type: object @@ -3755,7 +3797,7 @@ keywordType: $ref: '#/definitions/constvar.SalesDetailsKeywordType' number: - description: 閿�鍞瓙鍗曞彿 + description: 閿�鍞槑缁嗗崟鍙� type: string page: description: 椤电爜 @@ -4008,6 +4050,10 @@ type: integer signTime: type: string + source: + type: string + status: + $ref: '#/definitions/constvar.SalesDetailsStatus' wechatOrderStatusId: type: integer type: object @@ -9304,6 +9350,31 @@ summary: 鏇存柊浼樺厛绾у埆 tags: - 浼樺厛绾у埆绠$悊 + /api/product/getProductOrderInfo/{number}: + get: + parameters: + - description: 鏄庣粏缂栫爜 + in: path + name: number + required: true + type: string + produces: + - application/json + responses: + "200": + description: 鎴愬姛 + schema: + allOf: + - $ref: '#/definitions/contextx.Response' + - properties: + data: + items: + $ref: '#/definitions/product.WorkOrderInfo' + type: array + type: object + summary: 鑾峰彇浜у搧璁㈠崟淇℃伅 + tags: + - 浜у搧 /api/product/info: get: parameters: @@ -10540,6 +10611,25 @@ summary: 娣诲姞閿�鍞槑缁� tags: - SalesDetails + /api/salesDetails/createOperation: + post: + parameters: + - description: 鏌ヨ鍙傛暟 + in: body + name: object + required: true + schema: + $ref: '#/definitions/request.SalesDetails' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/response.ListResponse' + summary: 鍒涘缓浜у搧鍑哄簱淇℃伅 + tags: + - SalesDetails /api/salesDetails/delete: delete: parameters: @@ -10577,6 +10667,24 @@ summary: 鍒犻櫎閿�鍞槑缁� tags: - SalesDetails + /api/salesDetails/getProductInventoryInfo/{number}: + get: + parameters: + - description: 鏄庣粏缂栫爜 + in: path + name: number + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/response.ListResponse' + summary: 鑾峰彇浜у搧搴撳瓨淇℃伅 + tags: + - SalesDetails /api/salesDetails/list: post: parameters: @@ -10602,6 +10710,24 @@ tags: - SalesDetails /api/salesDetails/update: + post: + parameters: + - description: 鏌ヨ鍙傛暟 + in: body + name: object + required: true + schema: + $ref: '#/definitions/request.UpdateSalesDetails' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/contextx.Response' + summary: 鏇存柊閿�鍞槑缁嗙姸鎬� + tags: + - SalesDetails put: parameters: - description: 鏌ヨ鍙傛暟 -- Gitblit v1.8.0