From 03b791e466c5db94b196c465fc2e5ac91a2d9890 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期四, 10 八月 2023 16:38:07 +0800 Subject: [PATCH] 销售明细增删改查完善 --- docs/swagger.yaml | 233 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 229 insertions(+), 4 deletions(-) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 058fde4..f47fa36 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -114,6 +114,20 @@ type: string x-enum-varnames: - ReceiptQueryClassExpireLessThen60Days + constvar.SalesDetailsKeywordType: + enum: + - 瀹㈡埛鍚嶇О + - 璁㈠崟缂栧彿 + - 绛剧害鏃ユ湡 + - 閿�鍞礋璐d汉 + - 浜у搧鍚嶇О + type: string + x-enum-varnames: + - SalesDetailsKeywordTypeCustomerName + - SalesDetailsKeywordTypeOrderNumber + - SalesDetailsKeywordTypeSignTime + - SalesDetailsKeywordTypePrincipal + - SalesDetailsKeywordTypeProductName constvar.SalesStatus: enum: - 0 @@ -238,6 +252,18 @@ - UserTypeSuper - UserTypePrimary - UserTypeSub + constvar.WechatOrderStatusKeywordType: + enum: + - "" + type: string + x-enum-varnames: + - WechatOrderStatusKeywordCustomerName + constvar.WechatOrderStatusQueryClass: + enum: + - "" + type: string + x-enum-varnames: + - WechatOrderStatusQueryClassExpireLessThen60Days contextx.Response: properties: code: @@ -670,6 +696,10 @@ principalId: description: 閿�鍞礋璐d汉id type: integer + products: + items: + $ref: '#/definitions/model.Product' + type: array sourceId: description: 婧愬崟id type: integer @@ -832,7 +862,7 @@ model.Product: properties: amount: - type: integer + type: number desc: type: string id: @@ -1075,6 +1105,18 @@ type: string addressee: type: string + amountInvoiced: + description: 宸插紑绁ㄩ噾棰� + type: number + amountReceivable: + description: 搴旀敹閲戦 + type: number + amountReceived: + description: 宸叉敹閲戦 + type: number + amountUnInvoiced: + description: 鏈紑绁ㄩ噾棰� + type: number client: $ref: '#/definitions/model.Client' clientId: @@ -1103,6 +1145,8 @@ type: array remark: type: string + saleChance: + $ref: '#/definitions/model.SaleChance' saleChanceId: type: integer saleType: @@ -1110,6 +1154,8 @@ signTime: type: string wechatOrderStatus: + $ref: '#/definitions/model.WechatOrderStatus' + wechatOrderStatusId: type: integer type: object model.SalesLeads: @@ -1281,6 +1327,11 @@ amountReceived: description: 宸叉敹閲戦 type: number + amountUnInvoiced: + description: 鏈紑绁ㄩ噾棰� + type: number + client: + $ref: '#/definitions/model.Client' clientId: type: integer contactId: @@ -1590,6 +1641,13 @@ username: type: string uuid: + type: string + type: object + model.WechatOrderStatus: + properties: + id: + type: integer + name: type: string type: object product.Product: @@ -1916,6 +1974,11 @@ principalId: description: 閿�鍞礋璐d汉id type: integer + products: + description: 鍙戠エ瀵瑰簲浜у搧锛屼粠鐩稿簲婧愬崟閲岃幏鍙� + items: + $ref: '#/definitions/model.Product' + type: array sourceId: description: 婧愬崟id type: integer @@ -2222,8 +2285,42 @@ type: object request.AddSalesDetails: 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: + items: + $ref: '#/definitions/model.Product' + type: array + remark: + type: string + saleChanceId: + type: integer + saleType: + type: integer + signTime: + type: string + wechatOrderStatusId: + type: integer type: object request.AddSalesLeads: properties: @@ -2336,6 +2433,8 @@ type: string typeId: type: integer + required: + - memberId type: object request.AddServiceContractStatus: properties: @@ -2613,6 +2712,13 @@ - userId - vettingId - vettingType + type: object + request.AddWechatOrderStatus: + properties: + id: + type: integer + name: + type: string type: object request.Assign: properties: @@ -2965,6 +3071,8 @@ properties: keyword: type: string + keywordType: + $ref: '#/definitions/constvar.SalesDetailsKeywordType' page: description: 椤电爜 type: integer @@ -3189,7 +3297,7 @@ type: integer signTime: type: string - wechatOrderStatus: + wechatOrderStatusId: type: integer type: object request.SalesRefund: @@ -3711,6 +3819,11 @@ principalId: description: 閿�鍞礋璐d汉id type: integer + products: + description: 鍙戠エ瀵瑰簲浜у搧锛屼粠鐩稿簲婧愬崟閲岃幏鍙� + items: + $ref: '#/definitions/model.Product' + type: array sourceId: description: 婧愬崟id type: integer @@ -3723,6 +3836,8 @@ taxpayerIdNumber: description: 绾崇◣璇嗗埆鍙� type: string + required: + - id type: object request.UpdateInvoiceStatus: properties: @@ -4383,6 +4498,8 @@ type: string typeId: type: integer + required: + - memberId type: object request.UpdateServiceContractStatus: properties: @@ -4717,6 +4834,13 @@ required: - id - status + type: object + request.UpdateWechatOrderStatus: + properties: + id: + type: integer + name: + type: string type: object response.AccountIdResponse: properties: @@ -11139,4 +11263,105 @@ summary: 鏇存柊瀹℃壒 tags: - Vetting + /api/wechatOrderStatus/add: + post: + parameters: + - description: 鏌ヨ鍙傛暟 + in: body + name: object + required: true + schema: + $ref: '#/definitions/request.AddWechatOrderStatus' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/contextx.Response' + summary: 娣诲姞寰俊璁㈠崟鐘舵�� + tags: + - 寰俊璁㈠崟鐘舵�� + /api/wechatOrderStatus/delete/{id}: + delete: + parameters: + - description: 鏌ヨ鍙傛暟 + in: path + name: id + required: true + type: integer + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/contextx.Response' + summary: 鍒犻櫎寰俊璁㈠崟鐘舵�� + tags: + - 寰俊璁㈠崟鐘舵�� + /api/wechatOrderStatus/list: + get: + parameters: + - in: query + name: keyword + type: string + - enum: + - "" + in: query + name: keywordType + type: string + x-enum-varnames: + - WechatOrderStatusKeywordCustomerName + - description: 椤电爜 + in: query + name: page + type: integer + - description: 姣忛〉澶у皬 + in: query + name: pageSize + type: integer + - enum: + - "" + in: query + name: queryClass + type: string + x-enum-varnames: + - WechatOrderStatusQueryClassExpireLessThen60Days + produces: + - application/json + responses: + "200": + description: OK + schema: + allOf: + - $ref: '#/definitions/response.ListResponse' + - properties: + data: + items: + $ref: '#/definitions/model.WechatOrderStatus' + type: array + type: object + summary: 鑾峰彇寰俊璁㈠崟鐘舵�佸垪琛� + tags: + - 寰俊璁㈠崟鐘舵�� + /api/wechatOrderStatus/update: + put: + parameters: + - description: 鏌ヨ鍙傛暟 + in: body + name: object + required: true + schema: + $ref: '#/definitions/request.UpdateWechatOrderStatus' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/contextx.Response' + summary: 鏇存柊寰俊璁㈠崟鐘舵�� + tags: + - 寰俊璁㈠崟鐘舵�� swagger: "2.0" -- Gitblit v1.8.0