From 2def11ba83760b5be1361f10c3756cc0e9cfd165 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期一, 14 八月 2023 09:32:13 +0800 Subject: [PATCH] merge --- docs/swagger.yaml | 237 +++++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 221 insertions(+), 16 deletions(-) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 65383ab..4ab2384 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -11,16 +11,30 @@ type: string x-enum-varnames: - BankAccountQueryClassExpireLessThen60Days - constvar.CollectionStatus: + constvar.CollectionSourceType: enum: - 1 - 2 type: integer x-enum-comments: + CollectionSourceTypeSaleDetails: 閿�鍞槑缁� + CollectionSourceTypeServiceContract: 鏈嶅姟鍚堝悓 + x-enum-varnames: + - CollectionSourceTypeSaleDetails + - CollectionSourceTypeServiceContract + constvar.CollectionStatus: + enum: + - 1 + - 2 + - 3 + type: integer + x-enum-comments: CollectionStatusCollected: 宸叉敹娆� + CollectionStatusSubCollected: 閮ㄥ垎鏀舵 CollectionStatusUnCollected: 寰呮敹娆� x-enum-varnames: - CollectionStatusUnCollected + - CollectionStatusSubCollected - CollectionStatusCollected constvar.CourierCompanyKeywordType: enum: @@ -114,6 +128,28 @@ type: string x-enum-varnames: - ReceiptQueryClassExpireLessThen60Days + constvar.ReceiptSourceType: + enum: + - 1 + - 2 + - 3 + - 4 + - 5 + type: integer + x-enum-varnames: + - ReceiptSourceTypeSalesDetails + - ReceiptSourceTypeServiceContract + - ReceiptSourceTypeInvoice + - ReceiptSourceTypeCollectionPlan + - ReceiptSourceTypeChuKuDan + constvar.RefundSourceType: + enum: + - 1 + type: integer + x-enum-comments: + RefundSourceTypeSalesReturn: 閿�鍞��璐� + x-enum-varnames: + - RefundSourceTypeSalesReturn constvar.SalesDetailsKeywordType: enum: - 瀹㈡埛鍚嶇О @@ -128,6 +164,36 @@ - SalesDetailsKeywordTypeSignTime - SalesDetailsKeywordTypePrincipal - SalesDetailsKeywordTypeProductName + constvar.SalesRefundKeywordType: + enum: + - 閿�鍞��璐у崟缂栧彿 + - 瀹㈡埛鍚嶇О + - 閫�娆炬棩鏈� + - 璐︽埛 + - 鏄惁寮�绁� + - 浠樻鏂瑰紡 + - 閿�鍞礋璐d汉 + - 淇敼鏃堕棿 + - 浠风◣鍚堣 + type: string + x-enum-varnames: + - SalesRefundKeywordRefundNumber + - SalesRefundKeywordClientName + - SalesRefundKeywordRefundDate + - SalesRefundKeywordAccount + - SalesRefundKeywordIsInvoice + - SalesRefundKeywordPaymentType + - SalesRefundKeywordPrincipal + - SalesRefundKeywordUpdateAt + - SalesRefundKeywordPriceTotal + constvar.SalesReturnSourceType: + enum: + - 1 + type: integer + x-enum-comments: + SalesReturnSourceTypeSaleDetails: 閿�鍞槑缁� + x-enum-varnames: + - SalesReturnSourceTypeSaleDetails constvar.SalesStatus: enum: - 0 @@ -983,6 +1049,11 @@ type: object model.Receipt: properties: + amount: + description: 鏀舵閲戦 + type: number + bankAccount: + $ref: '#/definitions/model.BankAccount' bankAccountId: description: 璐︽埛id type: integer @@ -997,9 +1068,15 @@ moneyType: description: 甯佺 type: string + paymentType: + $ref: '#/definitions/model.PaymentType' paymentTypeId: description: 鏀舵鏂瑰紡ID type: integer + principal: + allOf: + - $ref: '#/definitions/model.User' + description: 璐熻矗浜篿d principalId: description: 璐熻矗浜篿d type: integer @@ -1013,8 +1090,9 @@ description: 婧愬崟id type: integer sourceType: + allOf: + - $ref: '#/definitions/constvar.ReceiptSourceType' description: 鏉ユ簮绫诲瀷锛�1閿�鍞槑缁嗗崟2鏈嶅姟鍚堝悓3閿�鍞彂绁�4鏀舵璁″垝5鍑哄簱鍗曪級 - type: integer type: object model.RefundMethod: properties: @@ -1163,6 +1241,8 @@ type: object model.SalesDetails: properties: + Member: + $ref: '#/definitions/model.User' address: type: string addressee: @@ -1176,6 +1256,9 @@ amountReceived: description: 宸叉敹閲戦 type: number + amountTotal: + description: 浠风◣鍚堣 + type: number amountUnInvoiced: description: 鏈紑绁ㄩ噾棰� type: number @@ -1184,6 +1267,12 @@ clientId: type: integer conditions: + type: string + createTime: + type: string + creatorId: + type: integer + creatorName: type: string deliveryDate: type: string @@ -1267,18 +1356,37 @@ type: object model.SalesRefund: properties: - accountId: + amountTotal: + description: 浠风◣鍚堣 + type: number + bankAccount: + $ref: '#/definitions/model.BankAccount' + bankAccountId: + description: 璐︽埛id type: integer + client: + $ref: '#/definitions/model.Client' clientId: type: integer + createTime: + type: string + creatorName: + type: string id: type: integer isInvoice: type: integer + member: + $ref: '#/definitions/model.User' memberId: type: integer number: type: string + paymentType: + $ref: '#/definitions/model.PaymentType' + paymentTypeId: + description: 鏀舵鏂瑰紡ID + type: integer products: items: $ref: '#/definitions/model.Product' @@ -1287,13 +1395,30 @@ type: string refundDate: type: string - refundMethod: - type: string + sourceId: + description: 婧愬崟id + type: integer + sourceType: + allOf: + - $ref: '#/definitions/constvar.RefundSourceType' + description: 鏉ユ簮绫诲瀷锛�1閿�鍞槑缁嗗崟2鏈嶅姟鍚堝悓3閿�鍞彂绁�4鏀舵璁″垝5鍑哄簱鍗曪級 type: object model.SalesReturn: properties: + Member: + $ref: '#/definitions/model.User' + SalesReturnStatus: + allOf: + - $ref: '#/definitions/model.SalesReturnStatus' + description: 閫�璐х姸鎬� + client: + $ref: '#/definitions/model.Client' clientId: type: integer + createTime: + type: string + creatorName: + type: string id: type: integer memberId: @@ -1301,17 +1426,28 @@ number: type: string products: + description: 閫�璐т骇鍝� items: $ref: '#/definitions/model.Product' type: array reason: + description: 閫�璐у師鍥� type: string repository: type: string returnDate: + description: 閫�璐ф棩鏈� type: string - salesReturnStatus: + salesReturnStatusId: + description: 閫�璐х姸鎬乮d type: integer + sourceId: + description: 婧愬崟id + type: integer + sourceType: + allOf: + - $ref: '#/definitions/constvar.SalesReturnSourceType' + description: 婧愬崟绫诲瀷锛�1閿�鍞槑缁嗭級 type: object model.SalesReturnStatus: properties: @@ -1338,6 +1474,15 @@ properties: amount: description: 閲戦 + type: number + amountReceivable: + description: 搴旀敹閲戦 + type: number + amountReceived: + description: 宸叉敹閲戦 + type: number + amountTotal: + description: 鎬婚 type: number collectionDate: description: 璁″垝鏀舵鏃ユ湡 @@ -1366,12 +1511,13 @@ description: 婧愬崟id type: integer sourceType: + allOf: + - $ref: '#/definitions/constvar.CollectionSourceType' description: 婧愬崟绫诲瀷锛�1閿�鍞槑缁�2鏈嶅姟鍚堝悓3閿�鍞彂绁級 - type: integer status: allOf: - $ref: '#/definitions/constvar.CollectionStatus' - description: 鐘舵�侊紙1鏈敹2宸叉敹锛� + description: 鐘舵�侊紙1鏈敹2閮ㄥ垎宸叉敹3宸叉敹锛� term: description: 鏈熸 type: integer @@ -1388,6 +1534,9 @@ type: number amountReceived: description: 宸叉敹閲戦 + type: number + amountTotal: + description: 浠风◣鍚堣 type: number amountUnInvoiced: description: 鏈紑绁ㄩ噾棰� @@ -2231,6 +2380,11 @@ type: object request.AddReceipt: properties: + amount: + description: 鏀舵閲戦 + type: number + bankAccount: + $ref: '#/definitions/model.BankAccount' bankAccountId: description: 璐︽埛id type: integer @@ -2245,9 +2399,15 @@ moneyType: description: 甯佺 type: string + paymentType: + $ref: '#/definitions/model.PaymentType' paymentTypeId: description: 鏀舵鏂瑰紡ID type: integer + principal: + allOf: + - $ref: '#/definitions/model.User' + description: 璐熻矗浜篿d principalId: description: 璐熻矗浜篿d type: integer @@ -2261,8 +2421,9 @@ description: 婧愬崟id type: integer sourceType: + allOf: + - $ref: '#/definitions/constvar.ReceiptSourceType' description: 鏉ユ簮绫诲瀷锛�1閿�鍞槑缁嗗崟2鏈嶅姟鍚堝悓3閿�鍞彂绁�4鏀舵璁″垝5鍑哄簱鍗曪級 - type: integer type: object request.AddRefundMethod: properties: @@ -3219,6 +3380,8 @@ properties: keyword: type: string + keywordType: + $ref: '#/definitions/constvar.SalesRefundKeywordType' page: description: 椤电爜 type: integer @@ -3454,7 +3617,8 @@ type: object request.SalesRefund: properties: - accountId: + bankAccountId: + description: 璐︽埛id type: integer clientId: type: integer @@ -3464,6 +3628,9 @@ type: integer number: type: string + paymentTypeId: + description: 鏀舵鏂瑰紡ID + type: integer products: items: $ref: '#/definitions/model.Product' @@ -3472,8 +3639,13 @@ type: string refundDate: type: string - refundMethod: - type: string + sourceId: + description: 婧愬崟id + type: integer + sourceType: + allOf: + - $ref: '#/definitions/constvar.RefundSourceType' + description: 鏉ユ簮绫诲瀷锛�1閿�鍞槑缁嗗崟2鏈嶅姟鍚堝悓3閿�鍞彂绁�4鏀舵璁″垝5鍑哄簱鍗曪級 type: object request.SalesReturn: properties: @@ -3484,17 +3656,28 @@ number: type: string products: + description: 閫�璐т骇鍝� items: $ref: '#/definitions/model.Product' type: array reason: + description: 閫�璐у師鍥� type: string repository: type: string returnDate: + description: 閫�璐ф棩鏈� type: string - status: + salesReturnStatusId: + description: 閫�璐х姸鎬乮d type: integer + sourceId: + description: 婧愬崟id + type: integer + sourceType: + allOf: + - $ref: '#/definitions/constvar.SalesReturnSourceType' + description: 婧愬崟绫诲瀷锛�1閿�鍞槑缁嗭級 type: object request.SetAuthorityMenu: properties: @@ -4218,6 +4401,11 @@ type: object request.UpdateReceipt: properties: + amount: + description: 鏀舵閲戦 + type: number + bankAccount: + $ref: '#/definitions/model.BankAccount' bankAccountId: description: 璐︽埛id type: integer @@ -4232,9 +4420,15 @@ moneyType: description: 甯佺 type: string + paymentType: + $ref: '#/definitions/model.PaymentType' paymentTypeId: description: 鏀舵鏂瑰紡ID type: integer + principal: + allOf: + - $ref: '#/definitions/model.User' + description: 璐熻矗浜篿d principalId: description: 璐熻矗浜篿d type: integer @@ -4248,8 +4442,9 @@ description: 婧愬崟id type: integer sourceType: + allOf: + - $ref: '#/definitions/constvar.ReceiptSourceType' description: 鏉ユ簮绫诲瀷锛�1閿�鍞槑缁嗗崟2鏈嶅姟鍚堝悓3閿�鍞彂绁�4鏀舵璁″垝5鍑哄簱鍗曪級 - type: integer type: object request.UpdateRefundMethod: properties: @@ -4590,6 +4785,15 @@ amount: description: 閲戦 type: number + amountReceivable: + description: 搴旀敹閲戦 + type: number + amountReceived: + description: 宸叉敹閲戦 + type: number + amountTotal: + description: 鎬婚 + type: number collectionDate: description: 璁″垝鏀舵鏃ユ湡 type: string @@ -4617,12 +4821,13 @@ description: 婧愬崟id type: integer sourceType: + allOf: + - $ref: '#/definitions/constvar.CollectionSourceType' description: 婧愬崟绫诲瀷锛�1閿�鍞槑缁�2鏈嶅姟鍚堝悓3閿�鍞彂绁級 - type: integer status: allOf: - $ref: '#/definitions/constvar.CollectionStatus' - description: 鐘舵�侊紙1鏈敹2宸叉敹锛� + description: 鐘舵�侊紙1鏈敹2閮ㄥ垎宸叉敹3宸叉敹锛� term: description: 鏈熸 type: integer -- Gitblit v1.8.0