From 03b791e466c5db94b196c465fc2e5ac91a2d9890 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期四, 10 八月 2023 16:38:07 +0800 Subject: [PATCH] 销售明细增删改查完善 --- docs/docs.go | 351 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 347 insertions(+), 4 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index e39c3f4..aa11e95 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -9483,6 +9483,169 @@ } } } + }, + "/api/wechatOrderStatus/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "寰俊璁㈠崟鐘舵��" + ], + "summary": "娣诲姞寰俊璁㈠崟鐘舵��", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddWechatOrderStatus" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/wechatOrderStatus/delete/{id}": { + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "寰俊璁㈠崟鐘舵��" + ], + "summary": "鍒犻櫎寰俊璁㈠崟鐘舵��", + "parameters": [ + { + "type": "integer", + "description": "鏌ヨ鍙傛暟", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/wechatOrderStatus/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "寰俊璁㈠崟鐘舵��" + ], + "summary": "鑾峰彇寰俊璁㈠崟鐘舵�佸垪琛�", + "parameters": [ + { + "type": "string", + "name": "keyword", + "in": "query" + }, + { + "enum": [ + "" + ], + "type": "string", + "x-enum-varnames": [ + "WechatOrderStatusKeywordCustomerName" + ], + "name": "keywordType", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + }, + { + "enum": [ + "" + ], + "type": "string", + "x-enum-varnames": [ + "WechatOrderStatusQueryClassExpireLessThen60Days" + ], + "name": "queryClass", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.ListResponse" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/model.WechatOrderStatus" + } + } + } + } + ] + } + } + } + } + }, + "/api/wechatOrderStatus/update": { + "put": { + "produces": [ + "application/json" + ], + "tags": [ + "寰俊璁㈠崟鐘舵��" + ], + "summary": "鏇存柊寰俊璁㈠崟鐘舵��", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateWechatOrderStatus" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } } }, "definitions": { @@ -9656,6 +9819,23 @@ "ReceiptQueryClassExpireLessThen60Days" ] }, + "constvar.SalesDetailsKeywordType": { + "type": "string", + "enum": [ + "瀹㈡埛鍚嶇О", + "璁㈠崟缂栧彿", + "绛剧害鏃ユ湡", + "閿�鍞礋璐d汉", + "浜у搧鍚嶇О" + ], + "x-enum-varnames": [ + "SalesDetailsKeywordTypeCustomerName", + "SalesDetailsKeywordTypeOrderNumber", + "SalesDetailsKeywordTypeSignTime", + "SalesDetailsKeywordTypePrincipal", + "SalesDetailsKeywordTypeProductName" + ] + }, "constvar.SalesStatus": { "type": "integer", "enum": [ @@ -9801,6 +9981,24 @@ "UserTypeSuper", "UserTypePrimary", "UserTypeSub" + ] + }, + "constvar.WechatOrderStatusKeywordType": { + "type": "string", + "enum": [ + "" + ], + "x-enum-varnames": [ + "WechatOrderStatusKeywordCustomerName" + ] + }, + "constvar.WechatOrderStatusQueryClass": { + "type": "string", + "enum": [ + "" + ], + "x-enum-varnames": [ + "WechatOrderStatusQueryClassExpireLessThen60Days" ] }, "contextx.Response": { @@ -10457,6 +10655,12 @@ "description": "閿�鍞礋璐d汉id", "type": "integer" }, + "products": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Product" + } + }, "sourceId": { "description": "婧愬崟id", "type": "integer" @@ -10706,7 +10910,7 @@ "type": "object", "properties": { "amount": { - "type": "integer" + "type": "number" }, "desc": { "type": "string" @@ -11073,6 +11277,22 @@ "addressee": { "type": "string" }, + "amountInvoiced": { + "description": "宸插紑绁ㄩ噾棰�", + "type": "number" + }, + "amountReceivable": { + "description": "搴旀敹閲戦", + "type": "number" + }, + "amountReceived": { + "description": "宸叉敹閲戦", + "type": "number" + }, + "amountUnInvoiced": { + "description": "鏈紑绁ㄩ噾棰�", + "type": "number" + }, "client": { "$ref": "#/definitions/model.Client" }, @@ -11115,6 +11335,9 @@ "remark": { "type": "string" }, + "saleChance": { + "$ref": "#/definitions/model.SaleChance" + }, "saleChanceId": { "type": "integer" }, @@ -11125,6 +11348,9 @@ "type": "string" }, "wechatOrderStatus": { + "$ref": "#/definitions/model.WechatOrderStatus" + }, + "wechatOrderStatusId": { "type": "integer" } } @@ -11380,6 +11606,13 @@ "amountReceived": { "description": "宸叉敹閲戦", "type": "number" + }, + "amountUnInvoiced": { + "description": "鏈紑绁ㄩ噾棰�", + "type": "number" + }, + "client": { + "$ref": "#/definitions/model.Client" }, "clientId": { "type": "integer" @@ -11837,6 +12070,17 @@ "type": "string" }, "uuid": { + "type": "string" + } + } + }, + "model.WechatOrderStatus": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { "type": "string" } } @@ -12312,6 +12556,13 @@ "description": "閿�鍞礋璐d汉id", "type": "integer" }, + "products": { + "description": "鍙戠エ瀵瑰簲浜у搧锛屼粠鐩稿簲婧愬崟閲岃幏鍙�", + "type": "array", + "items": { + "$ref": "#/definitions/model.Product" + } + }, "sourceId": { "description": "婧愬崟id", "type": "integer" @@ -12778,8 +13029,59 @@ "request.AddSalesDetails": { "type": "object", "properties": { - "salesDetails": { - "$ref": "#/definitions/request.SalesDetails" + "address": { + "type": "string" + }, + "addressee": { + "type": "string" + }, + "clientId": { + "type": "integer" + }, + "conditions": { + "type": "string" + }, + "deliveryDate": { + "type": "string" + }, + "logisticCompany": { + "type": "string" + }, + "logisticCost": { + "type": "number" + }, + "logisticNumber": { + "type": "string" + }, + "memberId": { + "type": "integer" + }, + "number": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "products": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Product" + } + }, + "remark": { + "type": "string" + }, + "saleChanceId": { + "type": "integer" + }, + "saleType": { + "type": "integer" + }, + "signTime": { + "type": "string" + }, + "wechatOrderStatusId": { + "type": "integer" } } }, @@ -12897,6 +13199,9 @@ }, "request.AddServiceContract": { "type": "object", + "required": [ + "memberId" + ], "properties": { "clientId": { "type": "integer" @@ -13345,6 +13650,17 @@ }, "vettingType": { "type": "integer" + } + } + }, + "request.AddWechatOrderStatus": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" } } }, @@ -13845,6 +14161,9 @@ "keyword": { "type": "string" }, + "keywordType": { + "$ref": "#/definitions/constvar.SalesDetailsKeywordType" + }, "page": { "description": "椤电爜", "type": "integer" @@ -14173,7 +14492,7 @@ "signTime": { "type": "string" }, - "wechatOrderStatus": { + "wechatOrderStatusId": { "type": "integer" } } @@ -14907,6 +15226,9 @@ }, "request.UpdateInvoice": { "type": "object", + "required": [ + "id" + ], "properties": { "clientId": { "description": "瀹㈡埛id", @@ -14942,6 +15264,13 @@ "principalId": { "description": "閿�鍞礋璐d汉id", "type": "integer" + }, + "products": { + "description": "鍙戠エ瀵瑰簲浜у搧锛屼粠鐩稿簲婧愬崟閲岃幏鍙�", + "type": "array", + "items": { + "$ref": "#/definitions/model.Product" + } }, "sourceId": { "description": "婧愬崟id", @@ -15896,6 +16225,9 @@ }, "request.UpdateServiceContract": { "type": "object", + "required": [ + "memberId" + ], "properties": { "clientId": { "type": "integer" @@ -16438,6 +16770,17 @@ } } }, + "request.UpdateWechatOrderStatus": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, "response.AccountIdResponse": { "type": "object", "properties": { -- Gitblit v1.8.0