From a53591167bf111ffc0eb2cb129aa7ff8b4cb470d Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期二, 15 八月 2023 19:34:22 +0800
Subject: [PATCH] add

---
 docs/docs.go |  579 ++++++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 545 insertions(+), 34 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index 414e949..6282947 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -664,6 +664,36 @@
                 }
             }
         },
+        "/api/client/checkName": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "Client"
+                ],
+                "summary": "妫�鏌ュ鎴峰悕绉版槸鍚﹂噸澶�",
+                "parameters": [
+                    {
+                        "description": "鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.CheckClientName"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
         "/api/client/delete": {
             "delete": {
                 "produces": [
@@ -1490,6 +1520,37 @@
                         "description": "OK",
                         "schema": {
                             "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/contactInformation/list": {
+            "get": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "ContactInformation"
+                ],
+                "summary": "鑱旂郴鏂瑰紡鍒楄〃",
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/contextx.Response"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "$ref": "#/definitions/response.ContactInformationResponse"
+                                        }
+                                    }
+                                }
+                            ]
                         }
                     }
                 }
@@ -9992,18 +10053,36 @@
                 "BankAccountQueryClassExpireLessThen60Days"
             ]
         },
-        "constvar.CollectionStatus": {
+        "constvar.CollectionSourceType": {
             "type": "integer",
             "enum": [
                 1,
                 2
             ],
             "x-enum-comments": {
+                "CollectionSourceTypeSaleDetails": "閿�鍞槑缁�",
+                "CollectionSourceTypeServiceContract": "鏈嶅姟鍚堝悓"
+            },
+            "x-enum-varnames": [
+                "CollectionSourceTypeSaleDetails",
+                "CollectionSourceTypeServiceContract"
+            ]
+        },
+        "constvar.CollectionStatus": {
+            "type": "integer",
+            "enum": [
+                1,
+                2,
+                3
+            ],
+            "x-enum-comments": {
                 "CollectionStatusCollected": "宸叉敹娆�",
+                "CollectionStatusSubCollected": "閮ㄥ垎鏀舵",
                 "CollectionStatusUnCollected": "寰呮敹娆�"
             },
             "x-enum-varnames": [
                 "CollectionStatusUnCollected",
+                "CollectionStatusSubCollected",
                 "CollectionStatusCollected"
             ]
         },
@@ -10144,6 +10223,35 @@
                 "ReceiptQueryClassExpireLessThen60Days"
             ]
         },
+        "constvar.ReceiptSourceType": {
+            "type": "integer",
+            "enum": [
+                1,
+                2,
+                3,
+                4,
+                5
+            ],
+            "x-enum-varnames": [
+                "ReceiptSourceTypeSalesDetails",
+                "ReceiptSourceTypeServiceContract",
+                "ReceiptSourceTypeInvoice",
+                "ReceiptSourceTypeCollectionPlan",
+                "ReceiptSourceTypeChuKuDan"
+            ]
+        },
+        "constvar.RefundSourceType": {
+            "type": "integer",
+            "enum": [
+                1
+            ],
+            "x-enum-comments": {
+                "RefundSourceTypeSalesReturn": "閿�鍞��璐�"
+            },
+            "x-enum-varnames": [
+                "RefundSourceTypeSalesReturn"
+            ]
+        },
         "constvar.SalesDetailsKeywordType": {
             "type": "string",
             "enum": [
@@ -10159,6 +10267,66 @@
                 "SalesDetailsKeywordTypeSignTime",
                 "SalesDetailsKeywordTypePrincipal",
                 "SalesDetailsKeywordTypeProductName"
+            ]
+        },
+        "constvar.SalesRefundKeywordType": {
+            "type": "string",
+            "enum": [
+                "閿�鍞��璐у崟缂栧彿",
+                "瀹㈡埛鍚嶇О",
+                "閫�娆炬棩鏈�",
+                "璐︽埛",
+                "鏄惁寮�绁�",
+                "浠樻鏂瑰紡",
+                "閿�鍞礋璐d汉",
+                "淇敼鏃堕棿",
+                "浠风◣鍚堣"
+            ],
+            "x-enum-varnames": [
+                "SalesRefundKeywordRefundNumber",
+                "SalesRefundKeywordClientName",
+                "SalesRefundKeywordRefundDate",
+                "SalesRefundKeywordAccount",
+                "SalesRefundKeywordIsInvoice",
+                "SalesRefundKeywordPaymentType",
+                "SalesRefundKeywordPrincipal",
+                "SalesRefundKeywordUpdateAt",
+                "SalesRefundKeywordPriceTotal"
+            ]
+        },
+        "constvar.SalesReturnKeywordType": {
+            "type": "string",
+            "enum": [
+                "閿�鍞��璐у崟缂栧彿",
+                "瀹㈡埛鍚嶇О",
+                "閫�娆炬棩鏈�",
+                "鐘舵��",
+                "閫�鍏ヤ粨搴�",
+                "搴旈��娆�",
+                "宸查��娆�",
+                "閿�鍞礋璐d汉"
+            ],
+            "x-enum-varnames": [
+                "SalesReturnKeywordReturnNumber",
+                "SalesReturnKeywordClientName",
+                "SalesReturnKeywordReturnDate",
+                "SalesReturnKeywordStatus",
+                "SalesReturnKeywordRepository",
+                "SalesReturnKeywordAmountShouldRefund",
+                "SalesReturnKeywordAmountHasRefund",
+                "SalesReturnKeywordPrincipal"
+            ]
+        },
+        "constvar.SalesReturnSourceType": {
+            "type": "integer",
+            "enum": [
+                1
+            ],
+            "x-enum-comments": {
+                "SalesReturnSourceTypeSaleDetails": "閿�鍞槑缁�"
+            },
+            "x-enum-varnames": [
+                "SalesReturnSourceTypeSaleDetails"
             ]
         },
         "constvar.SalesStatus": {
@@ -10625,16 +10793,16 @@
         "model.CollectionProjection": {
             "type": "object",
             "properties": {
+                "_": {
+                    "description": "The date when the item was deleted\nexample: 2023-08-10 15:48:25",
+                    "type": "string"
+                },
                 "created_at": {
                     "description": "The date when the item was created\nexample: 2023-08-10 15:48:25",
                     "type": "string"
                 },
                 "creator": {
                     "type": "integer"
-                },
-                "deleted_at": {
-                    "description": "The date when the item was deleted\nexample: 2023-08-10 15:48:25",
-                    "type": "string"
                 },
                 "estimated_collection_amount": {
                     "type": "number"
@@ -10690,6 +10858,9 @@
                 },
                 "is_first": {
                     "type": "boolean"
+                },
+                "member": {
+                    "$ref": "#/definitions/model.User"
                 },
                 "member_id": {
                     "type": "integer"
@@ -10765,6 +10936,9 @@
                 "is_first": {
                     "type": "boolean"
                 },
+                "member": {
+                    "$ref": "#/definitions/model.User"
+                },
                 "member_id": {
                     "type": "integer"
                 },
@@ -10797,17 +10971,43 @@
                 }
             }
         },
+        "model.ContactInformation": {
+            "type": "object",
+            "properties": {
+                "id": {
+                    "type": "integer"
+                },
+                "name": {
+                    "type": "string"
+                }
+            }
+        },
         "model.Contract": {
             "type": "object",
             "properties": {
+                "_": {
+                    "description": "The date when the item was deleted\nexample: 2023-08-10 15:48:25",
+                    "type": "string"
+                },
+                "client": {
+                    "$ref": "#/definitions/model.Client"
+                },
                 "clientId": {
                     "type": "integer"
+                },
+                "created_at": {
+                    "description": "The date when the item was created\nexample: 2023-08-10 15:48:25",
+                    "type": "string"
                 },
                 "file": {
                     "type": "string"
                 },
                 "id": {
+                    "description": "The ID of the item\nexample: 1",
                     "type": "integer"
+                },
+                "member": {
+                    "$ref": "#/definitions/model.User"
                 },
                 "memberId": {
                     "type": "integer"
@@ -10823,6 +11023,10 @@
                 },
                 "statusId": {
                     "type": "integer"
+                },
+                "updated_at": {
+                    "description": "The date when the item was last updated\nexample: 2023-08-10 15:48:25",
+                    "type": "string"
                 }
             }
         },
@@ -10929,6 +11133,9 @@
                 "client_id": {
                     "type": "integer"
                 },
+                "client_status": {
+                    "$ref": "#/definitions/model.ClientStatus"
+                },
                 "client_status_id": {
                     "type": "integer"
                 },
@@ -10968,8 +11175,14 @@
                 "record": {
                     "type": "string"
                 },
+                "sale_chance": {
+                    "$ref": "#/definitions/model.SaleChance"
+                },
                 "sale_chance_id": {
                     "type": "integer"
+                },
+                "sales_leads": {
+                    "$ref": "#/definitions/model.SalesLeads"
                 },
                 "sales_leads_id": {
                     "type": "integer"
@@ -11126,6 +11339,9 @@
                 },
                 "id": {
                     "type": "integer"
+                },
+                "member": {
+                    "$ref": "#/definitions/model.User"
                 },
                 "member_id": {
                     "type": "integer"
@@ -11358,6 +11574,9 @@
                 "id": {
                     "type": "integer"
                 },
+                "member": {
+                    "$ref": "#/definitions/model.User"
+                },
                 "member_id": {
                     "type": "integer"
                 },
@@ -11369,6 +11588,9 @@
                     "items": {
                         "$ref": "#/definitions/model.Product"
                     }
+                },
+                "quotation_status": {
+                    "$ref": "#/definitions/model.QuotationStatus"
                 },
                 "quotation_status_id": {
                     "type": "integer"
@@ -11398,6 +11620,13 @@
         "model.Receipt": {
             "type": "object",
             "properties": {
+                "amount": {
+                    "description": "鏀舵閲戦",
+                    "type": "number"
+                },
+                "bankAccount": {
+                    "$ref": "#/definitions/model.BankAccount"
+                },
                 "bankAccountId": {
                     "description": "璐︽埛id",
                     "type": "integer"
@@ -11417,9 +11646,20 @@
                     "description": "甯佺",
                     "type": "string"
                 },
+                "paymentType": {
+                    "$ref": "#/definitions/model.PaymentType"
+                },
                 "paymentTypeId": {
                     "description": "鏀舵鏂瑰紡ID",
                     "type": "integer"
+                },
+                "principal": {
+                    "description": "璐熻矗浜篿d",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/model.User"
+                        }
+                    ]
                 },
                 "principalId": {
                     "description": "璐熻矗浜篿d",
@@ -11439,7 +11679,11 @@
                 },
                 "sourceType": {
                     "description": "鏉ユ簮绫诲瀷锛�1閿�鍞槑缁嗗崟2鏈嶅姟鍚堝悓3閿�鍞彂绁�4鏀舵璁″垝5鍑哄簱鍗曪級",
-                    "type": "integer"
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/constvar.ReceiptSourceType"
+                        }
+                    ]
                 }
             }
         },
@@ -11575,6 +11819,9 @@
                 "key_maker": {
                     "type": "string"
                 },
+                "member": {
+                    "$ref": "#/definitions/model.User"
+                },
                 "member_id": {
                     "type": "integer"
                 },
@@ -11592,6 +11839,9 @@
                 },
                 "possibilities_id": {
                     "type": "integer"
+                },
+                "possibility": {
+                    "$ref": "#/definitions/model.Possibility"
                 },
                 "process": {
                     "type": "string"
@@ -11611,19 +11861,28 @@
                 "region_id": {
                     "type": "integer"
                 },
+                "regular_customers": {
+                    "$ref": "#/definitions/model.RegularCustomers"
+                },
                 "regular_customers_id": {
                     "type": "integer"
                 },
                 "remark": {
                     "type": "string"
                 },
+                "sale_stage": {
+                    "$ref": "#/definitions/model.SaleStage"
+                },
                 "sale_stage_id": {
                     "type": "integer"
+                },
+                "sale_type": {
+                    "$ref": "#/definitions/model.SaleType"
                 },
                 "sale_type_id": {
                     "type": "integer"
                 },
-                "salesSources": {
+                "sales_sources": {
                     "$ref": "#/definitions/model.SalesSources"
                 },
                 "sales_sources_id": {
@@ -11668,6 +11927,9 @@
         "model.SalesDetails": {
             "type": "object",
             "properties": {
+                "Member": {
+                    "$ref": "#/definitions/model.User"
+                },
                 "address": {
                     "type": "string"
                 },
@@ -11686,6 +11948,10 @@
                     "description": "宸叉敹閲戦",
                     "type": "number"
                 },
+                "amountTotal": {
+                    "description": "浠风◣鍚堣",
+                    "type": "number"
+                },
                 "amountUnInvoiced": {
                     "description": "鏈紑绁ㄩ噾棰�",
                     "type": "number"
@@ -11697,6 +11963,15 @@
                     "type": "integer"
                 },
                 "conditions": {
+                    "type": "string"
+                },
+                "createTime": {
+                    "type": "string"
+                },
+                "creatorId": {
+                    "type": "integer"
+                },
+                "creatorName": {
                     "type": "string"
                 },
                 "deliveryDate": {
@@ -11788,6 +12063,9 @@
                 "id": {
                     "type": "integer"
                 },
+                "member": {
+                    "$ref": "#/definitions/model.User"
+                },
                 "member_id": {
                     "type": "integer"
                 },
@@ -11812,6 +12090,9 @@
                 "region_id": {
                     "type": "integer"
                 },
+                "sales_sources": {
+                    "$ref": "#/definitions/model.SalesSources"
+                },
                 "sales_sources_id": {
                     "type": "integer"
                 },
@@ -11823,23 +12104,50 @@
         "model.SalesRefund": {
             "type": "object",
             "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"
+                    "type": "string"
+                },
+                "member": {
+                    "$ref": "#/definitions/model.User"
                 },
                 "memberId": {
                     "type": "integer"
                 },
                 "number": {
                     "type": "string"
+                },
+                "paymentType": {
+                    "$ref": "#/definitions/model.PaymentType"
+                },
+                "paymentTypeId": {
+                    "description": "鏀舵鏂瑰紡ID",
+                    "type": "integer"
                 },
                 "products": {
                     "type": "array",
@@ -11853,16 +12161,53 @@
                 "refundDate": {
                     "type": "string"
                 },
-                "refundMethod": {
-                    "type": "string"
+                "sourceId": {
+                    "description": "婧愬崟id",
+                    "type": "integer"
+                },
+                "sourceType": {
+                    "description": "鏉ユ簮绫诲瀷锛�1閿�鍞槑缁嗗崟2鏈嶅姟鍚堝悓3閿�鍞彂绁�4鏀舵璁″垝5鍑哄簱鍗曪級",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/constvar.RefundSourceType"
+                        }
+                    ]
                 }
             }
         },
         "model.SalesReturn": {
             "type": "object",
             "properties": {
+                "Member": {
+                    "$ref": "#/definitions/model.User"
+                },
+                "SalesReturnStatus": {
+                    "description": "閫�璐х姸鎬�",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/model.SalesReturnStatus"
+                        }
+                    ]
+                },
+                "amountHasRefund": {
+                    "description": "宸查��娆鹃噾棰�",
+                    "type": "number"
+                },
+                "amountShouldRefund": {
+                    "description": "搴旈��娆鹃噾棰�",
+                    "type": "number"
+                },
+                "client": {
+                    "$ref": "#/definitions/model.Client"
+                },
                 "clientId": {
                     "type": "integer"
+                },
+                "createTime": {
+                    "type": "string"
+                },
+                "creatorName": {
+                    "type": "string"
                 },
                 "id": {
                     "type": "integer"
@@ -11874,22 +12219,38 @@
                     "type": "string"
                 },
                 "products": {
+                    "description": "閫�璐т骇鍝�",
                     "type": "array",
                     "items": {
                         "$ref": "#/definitions/model.Product"
                     }
                 },
                 "reason": {
+                    "description": "閫�璐у師鍥�",
                     "type": "string"
                 },
                 "repository": {
                     "type": "string"
                 },
                 "returnDate": {
+                    "description": "閫�璐ф棩鏈�",
                     "type": "string"
                 },
-                "salesReturnStatus": {
+                "salesReturnStatusId": {
+                    "description": "閫�璐х姸鎬乮d",
                     "type": "integer"
+                },
+                "sourceId": {
+                    "description": "婧愬崟id",
+                    "type": "integer"
+                },
+                "sourceType": {
+                    "description": "婧愬崟绫诲瀷锛�1閿�鍞槑缁嗭級",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/constvar.SalesReturnSourceType"
+                        }
+                    ]
                 }
             }
         },
@@ -11933,6 +12294,18 @@
                     "description": "閲戦",
                     "type": "number"
                 },
+                "amountReceivable": {
+                    "description": "搴旀敹閲戦",
+                    "type": "number"
+                },
+                "amountReceived": {
+                    "description": "宸叉敹閲戦",
+                    "type": "number"
+                },
+                "amountTotal": {
+                    "description": "鎬婚",
+                    "type": "number"
+                },
                 "collectionDate": {
                     "description": "璁″垝鏀舵鏃ユ湡",
                     "type": "string"
@@ -11970,10 +12343,14 @@
                 },
                 "sourceType": {
                     "description": "婧愬崟绫诲瀷锛�1閿�鍞槑缁�2鏈嶅姟鍚堝悓3閿�鍞彂绁級",
-                    "type": "integer"
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/constvar.CollectionSourceType"
+                        }
+                    ]
                 },
                 "status": {
-                    "description": "鐘舵�侊紙1鏈敹2宸叉敹锛�",
+                    "description": "鐘舵�侊紙1鏈敹2閮ㄥ垎宸叉敹3宸叉敹锛�",
                     "allOf": [
                         {
                             "$ref": "#/definitions/constvar.CollectionStatus"
@@ -12004,6 +12381,10 @@
                     "description": "宸叉敹閲戦",
                     "type": "number"
                 },
+                "amountTotal": {
+                    "description": "浠风◣鍚堣",
+                    "type": "number"
+                },
                 "amountUnInvoiced": {
                     "description": "鏈紑绁ㄩ噾棰�",
                     "type": "number"
@@ -12025,6 +12406,9 @@
                 },
                 "id": {
                     "type": "integer"
+                },
+                "member": {
+                    "$ref": "#/definitions/model.User"
                 },
                 "memberId": {
                     "type": "integer"
@@ -12418,8 +12802,14 @@
                 "id": {
                     "type": "integer"
                 },
+                "masterOrder": {
+                    "$ref": "#/definitions/model.MasterOrder"
+                },
                 "masterOrderId": {
                     "type": "integer"
+                },
+                "member": {
+                    "$ref": "#/definitions/model.User"
                 },
                 "memberId": {
                     "type": "integer"
@@ -13249,6 +13639,13 @@
         "request.AddReceipt": {
             "type": "object",
             "properties": {
+                "amount": {
+                    "description": "鏀舵閲戦",
+                    "type": "number"
+                },
+                "bankAccount": {
+                    "$ref": "#/definitions/model.BankAccount"
+                },
                 "bankAccountId": {
                     "description": "璐︽埛id",
                     "type": "integer"
@@ -13268,9 +13665,20 @@
                     "description": "甯佺",
                     "type": "string"
                 },
+                "paymentType": {
+                    "$ref": "#/definitions/model.PaymentType"
+                },
                 "paymentTypeId": {
                     "description": "鏀舵鏂瑰紡ID",
                     "type": "integer"
+                },
+                "principal": {
+                    "description": "璐熻矗浜篿d",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/model.User"
+                        }
+                    ]
                 },
                 "principalId": {
                     "description": "璐熻矗浜篿d",
@@ -13290,7 +13698,11 @@
                 },
                 "sourceType": {
                     "description": "鏉ユ簮绫诲瀷锛�1閿�鍞槑缁嗗崟2鏈嶅姟鍚堝悓3閿�鍞彂绁�4鏀舵璁″垝5鍑哄簱鍗曪級",
-                    "type": "integer"
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/constvar.ReceiptSourceType"
+                        }
+                    ]
                 }
             }
         },
@@ -14206,6 +14618,14 @@
                 }
             }
         },
+        "request.CheckClientName": {
+            "type": "object",
+            "properties": {
+                "name": {
+                    "type": "string"
+                }
+            }
+        },
         "request.Contact": {
             "type": "object",
             "properties": {
@@ -14491,9 +14911,6 @@
         "request.GetContractList": {
             "type": "object",
             "properties": {
-                "keyword": {
-                    "type": "string"
-                },
                 "page": {
                     "description": "椤电爜",
                     "type": "integer"
@@ -14501,6 +14918,11 @@
                 "pageSize": {
                     "description": "姣忛〉澶у皬",
                     "type": "integer"
+                },
+                "search_map": {
+                    "description": "鎼滅储鏉′欢: map[string]interface{} {\"member_name\": \"閿�鍞礋璐d汉\", \"number\": \"鍚堝悓缂栧彿\", \"created_at\": \"鍒涘缓鏃堕棿\"}",
+                    "type": "object",
+                    "additionalProperties": true
                 }
             }
         },
@@ -14547,9 +14969,6 @@
         "request.GetMasterOrderList": {
             "type": "object",
             "properties": {
-                "keyword": {
-                    "type": "string"
-                },
                 "page": {
                     "description": "椤电爜",
                     "type": "integer"
@@ -14557,6 +14976,11 @@
                 "pageSize": {
                     "description": "姣忛〉澶у皬",
                     "type": "integer"
+                },
+                "search_map": {
+                    "description": "鎼滅储鏉′欢: map[string]interface{}{\"name\": \"xxx\"}; {\"number\": \"閿�鍞�诲崟鍙穃", \"client_name\": \"瀹㈡埛鍚嶇О\", \"member_name\": \"閿�鍞礋璐d汉\", \"start_time\": \"寮�濮嬫椂闂碶", \"end_time\": \"缁撴潫鏃堕棿\", \"money\": \"鎬婚噾棰漒", \"member_name\": \"璐熻矗浜篭"}",
+                    "type": "object",
+                    "additionalProperties": true
                 }
             }
         },
@@ -14603,8 +15027,8 @@
                     "description": "姣忛〉澶у皬",
                     "type": "integer"
                 },
-                "searchMap": {
-                    "description": "鎼滅储鏉′欢: map[string]interface{}{\"name\": \"xxx\"}; {\"sale_chance_id\": 閿�鍞嚎绱d}",
+                "search_map": {
+                    "description": "鎼滅储鏉′欢: map[string]interface{}{\"name\": \"xxx\"}; {\"sale_chance_id\": 閿�鍞嚎绱d, \"client_name\": \"瀹㈡埛鍚嶇О\", \"member_name\": \"閿�鍞礋璐d汉\", \"contact_name\": \"鑱旂郴浜篭", \"validity_date\": \"鏈夋晥鏈焅"}",
                     "type": "object",
                     "additionalProperties": true
                 }
@@ -14671,6 +15095,9 @@
                 "keyword": {
                     "type": "string"
                 },
+                "keywordType": {
+                    "$ref": "#/definitions/constvar.SalesRefundKeywordType"
+                },
                 "page": {
                     "description": "椤电爜",
                     "type": "integer"
@@ -14686,6 +15113,9 @@
             "properties": {
                 "keyword": {
                     "type": "string"
+                },
+                "keywordType": {
+                    "$ref": "#/definitions/constvar.SalesReturnKeywordType"
                 },
                 "page": {
                     "description": "椤电爜",
@@ -14795,9 +15225,6 @@
         "request.GetSubOrderList": {
             "type": "object",
             "properties": {
-                "keyword": {
-                    "type": "string"
-                },
                 "page": {
                     "description": "椤电爜",
                     "type": "integer"
@@ -14805,6 +15232,11 @@
                 "pageSize": {
                     "description": "姣忛〉澶у皬",
                     "type": "integer"
+                },
+                "search_map": {
+                    "description": "鎼滅储鏉′欢: map[string]interface{}{\"name\": \"xxx\"}; {\"number\": \"閿�鍞瓙鍗曞彿\", \"client_name\": \"瀹㈡埛鍚嶇О\", \"master_order_number\": \"閿�鍞�诲崟鍙穃", \"member_name\": \"閿�鍞礋璐d汉\", \"master_order_id\": \"閿�鍞�诲崟id\"}",
+                    "type": "object",
+                    "additionalProperties": true
                 }
             }
         },
@@ -15020,20 +15452,25 @@
         "request.SalesRefund": {
             "type": "object",
             "properties": {
-                "accountId": {
+                "bankAccountId": {
+                    "description": "璐︽埛id",
                     "type": "integer"
                 },
                 "clientId": {
                     "type": "integer"
                 },
                 "isInvoice": {
-                    "type": "integer"
+                    "type": "string"
                 },
                 "memberId": {
                     "type": "integer"
                 },
                 "number": {
                     "type": "string"
+                },
+                "paymentTypeId": {
+                    "description": "鏀舵鏂瑰紡ID",
+                    "type": "integer"
                 },
                 "products": {
                     "type": "array",
@@ -15047,8 +15484,17 @@
                 "refundDate": {
                     "type": "string"
                 },
-                "refundMethod": {
-                    "type": "string"
+                "sourceId": {
+                    "description": "婧愬崟id",
+                    "type": "integer"
+                },
+                "sourceType": {
+                    "description": "鏉ユ簮绫诲瀷锛�1閿�鍞槑缁嗗崟2鏈嶅姟鍚堝悓3閿�鍞彂绁�4鏀舵璁″垝5鍑哄簱鍗曪級",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/constvar.RefundSourceType"
+                        }
+                    ]
                 }
             }
         },
@@ -15065,22 +15511,38 @@
                     "type": "string"
                 },
                 "products": {
+                    "description": "閫�璐т骇鍝�",
                     "type": "array",
                     "items": {
                         "$ref": "#/definitions/model.Product"
                     }
                 },
                 "reason": {
+                    "description": "閫�璐у師鍥�",
                     "type": "string"
                 },
                 "repository": {
                     "type": "string"
                 },
                 "returnDate": {
+                    "description": "閫�璐ф棩鏈�",
                     "type": "string"
                 },
-                "status": {
+                "salesReturnStatusId": {
+                    "description": "閫�璐х姸鎬乮d",
                     "type": "integer"
+                },
+                "sourceId": {
+                    "description": "婧愬崟id",
+                    "type": "integer"
+                },
+                "sourceType": {
+                    "description": "婧愬崟绫诲瀷锛�1閿�鍞槑缁嗭級",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/constvar.SalesReturnSourceType"
+                        }
+                    ]
                 }
             }
         },
@@ -16156,6 +16618,13 @@
         "request.UpdateReceipt": {
             "type": "object",
             "properties": {
+                "amount": {
+                    "description": "鏀舵閲戦",
+                    "type": "number"
+                },
+                "bankAccount": {
+                    "$ref": "#/definitions/model.BankAccount"
+                },
                 "bankAccountId": {
                     "description": "璐︽埛id",
                     "type": "integer"
@@ -16175,9 +16644,20 @@
                     "description": "甯佺",
                     "type": "string"
                 },
+                "paymentType": {
+                    "$ref": "#/definitions/model.PaymentType"
+                },
                 "paymentTypeId": {
                     "description": "鏀舵鏂瑰紡ID",
                     "type": "integer"
+                },
+                "principal": {
+                    "description": "璐熻矗浜篿d",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/model.User"
+                        }
+                    ]
                 },
                 "principalId": {
                     "description": "璐熻矗浜篿d",
@@ -16197,7 +16677,11 @@
                 },
                 "sourceType": {
                     "description": "鏉ユ簮绫诲瀷锛�1閿�鍞槑缁嗗崟2鏈嶅姟鍚堝悓3閿�鍞彂绁�4鏀舵璁″垝5鍑哄簱鍗曪級",
-                    "type": "integer"
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/constvar.ReceiptSourceType"
+                        }
+                    ]
                 }
             }
         },
@@ -16712,6 +17196,18 @@
                     "description": "閲戦",
                     "type": "number"
                 },
+                "amountReceivable": {
+                    "description": "搴旀敹閲戦",
+                    "type": "number"
+                },
+                "amountReceived": {
+                    "description": "宸叉敹閲戦",
+                    "type": "number"
+                },
+                "amountTotal": {
+                    "description": "鎬婚",
+                    "type": "number"
+                },
                 "collectionDate": {
                     "description": "璁″垝鏀舵鏃ユ湡",
                     "type": "string"
@@ -16749,10 +17245,14 @@
                 },
                 "sourceType": {
                     "description": "婧愬崟绫诲瀷锛�1閿�鍞槑缁�2鏈嶅姟鍚堝悓3閿�鍞彂绁級",
-                    "type": "integer"
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/constvar.CollectionSourceType"
+                        }
+                    ]
                 },
                 "status": {
-                    "description": "鐘舵�侊紙1鏈敹2宸叉敹锛�",
+                    "description": "鐘舵�侊紙1鏈敹2閮ㄥ垎宸叉敹3宸叉敹锛�",
                     "allOf": [
                         {
                             "$ref": "#/definitions/constvar.CollectionStatus"
@@ -17414,6 +17914,17 @@
                 }
             }
         },
+        "response.ContactInformationResponse": {
+            "type": "object",
+            "properties": {
+                "list": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/model.ContactInformation"
+                    }
+                }
+            }
+        },
         "response.ContactResponse": {
             "type": "object",
             "properties": {

--
Gitblit v1.8.0