From c5a0eb549cba2cd358a2d0496c44f3a289f15d9c Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期一, 28 八月 2023 14:22:06 +0800
Subject: [PATCH] fix

---
 docs/docs.go |  354 ++++++++++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 267 insertions(+), 87 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index aa37bdd..a47945d 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -5520,22 +5520,6 @@
                 "summary": "鑾峰彇鏀舵鍗曞垪琛�",
                 "parameters": [
                     {
-                        "type": "string",
-                        "name": "keyword",
-                        "in": "query"
-                    },
-                    {
-                        "enum": [
-                            ""
-                        ],
-                        "type": "string",
-                        "x-enum-varnames": [
-                            "ReceiptKeywordCustomerName"
-                        ],
-                        "name": "keywordType",
-                        "in": "query"
-                    },
-                    {
                         "type": "integer",
                         "description": "椤电爜",
                         "name": "page",
@@ -5548,14 +5532,34 @@
                         "in": "query"
                     },
                     {
+                        "type": "integer",
+                        "name": "sourceId",
+                        "in": "query"
+                    },
+                    {
                         "enum": [
-                            ""
+                            1,
+                            2,
+                            3,
+                            4,
+                            5
                         ],
-                        "type": "string",
+                        "type": "integer",
+                        "x-enum-comments": {
+                            "ReceiptSourceTypeChuKuDan": "鍑哄簱鍗昳t",
+                            "ReceiptSourceTypeCollectionPlan": "鏀舵璁″垝",
+                            "ReceiptSourceTypeInvoice": "閿�鍞彂绁�",
+                            "ReceiptSourceTypeSalesDetails": "閿�鍞槑缁嗗崟",
+                            "ReceiptSourceTypeServiceContract": "鏈嶅姟鍚堝悓"
+                        },
                         "x-enum-varnames": [
-                            "ReceiptQueryClassExpireLessThen60Days"
+                            "ReceiptSourceTypeSalesDetails",
+                            "ReceiptSourceTypeServiceContract",
+                            "ReceiptSourceTypeInvoice",
+                            "ReceiptSourceTypeCollectionPlan",
+                            "ReceiptSourceTypeChuKuDan"
                         ],
-                        "name": "queryClass",
+                        "name": "sourceType",
                         "in": "query"
                     }
                 ],
@@ -6779,7 +6783,19 @@
                     "200": {
                         "description": "OK",
                         "schema": {
-                            "$ref": "#/definitions/contextx.Response"
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/contextx.Response"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "$ref": "#/definitions/request.AddSalesDetails"
+                                        }
+                                    }
+                                }
+                            ]
                         }
                     }
                 }
@@ -7824,9 +7840,27 @@
                 "parameters": [
                     {
                         "type": "integer",
-                        "description": "鏈嶅姟鍚堝悓id",
-                        "name": "serviceContractId",
-                        "in": "query"
+                        "name": "sourceId",
+                        "in": "query",
+                        "required": true
+                    },
+                    {
+                        "enum": [
+                            1,
+                            2
+                        ],
+                        "type": "integer",
+                        "x-enum-comments": {
+                            "CollectionSourceTypeSaleDetails": "閿�鍞槑缁�",
+                            "CollectionSourceTypeServiceContract": "鏈嶅姟鍚堝悓"
+                        },
+                        "x-enum-varnames": [
+                            "CollectionSourceTypeSaleDetails",
+                            "CollectionSourceTypeServiceContract"
+                        ],
+                        "name": "sourceType",
+                        "in": "query",
+                        "required": true
                     }
                 ],
                 "responses": {
@@ -8022,9 +8056,9 @@
                     "application/json"
                 ],
                 "tags": [
-                    "ServiceContractStatus"
+                    "鍚堝悓鐘舵��"
                 ],
-                "summary": "娣诲姞鏈嶅姟鍚堝悓鐘舵��",
+                "summary": "娣诲姞鍚堝悓鐘舵��",
                 "parameters": [
                     {
                         "description": "鏌ヨ鍙傛暟",
@@ -8052,9 +8086,9 @@
                     "application/json"
                 ],
                 "tags": [
-                    "ServiceContractStatus"
+                    "鍚堝悓鐘舵��"
                 ],
-                "summary": "鍒犻櫎鏈嶅姟鍚堝悓鐘舵��",
+                "summary": "鍒犻櫎鍚堝悓鐘舵��",
                 "parameters": [
                     {
                         "type": "integer",
@@ -8080,22 +8114,66 @@
                     "application/json"
                 ],
                 "tags": [
-                    "ServiceContractStatus"
+                    "鍚堝悓鐘舵��"
                 ],
-                "summary": "鑾峰彇鏈嶅姟鍚堝悓鐘舵�佸垪琛�",
+                "summary": "鑾峰彇鍚堝悓鐘舵�佸垪琛�",
+                "parameters": [
+                    {
+                        "type": "string",
+                        "name": "keyword",
+                        "in": "query"
+                    },
+                    {
+                        "enum": [
+                            ""
+                        ],
+                        "type": "string",
+                        "x-enum-varnames": [
+                            "ServiceContractStatusKeywordCustomerName"
+                        ],
+                        "name": "keywordType",
+                        "in": "query"
+                    },
+                    {
+                        "type": "integer",
+                        "description": "椤电爜",
+                        "name": "page",
+                        "in": "query"
+                    },
+                    {
+                        "type": "integer",
+                        "description": "姣忛〉澶у皬",
+                        "name": "pageSize",
+                        "in": "query"
+                    },
+                    {
+                        "enum": [
+                            ""
+                        ],
+                        "type": "string",
+                        "x-enum-varnames": [
+                            "ServiceContractStatusQueryClassExpireLessThen60Days"
+                        ],
+                        "name": "queryClass",
+                        "in": "query"
+                    }
+                ],
                 "responses": {
                     "200": {
                         "description": "OK",
                         "schema": {
                             "allOf": [
                                 {
-                                    "$ref": "#/definitions/contextx.Response"
+                                    "$ref": "#/definitions/response.ListResponse"
                                 },
                                 {
                                     "type": "object",
                                     "properties": {
                                         "data": {
-                                            "$ref": "#/definitions/response.ServiceContractStatusResponse"
+                                            "type": "array",
+                                            "items": {
+                                                "$ref": "#/definitions/model.ServiceContractStatus"
+                                            }
                                         }
                                     }
                                 }
@@ -8111,9 +8189,9 @@
                     "application/json"
                 ],
                 "tags": [
-                    "ServiceContractStatus"
+                    "鍚堝悓鐘舵��"
                 ],
-                "summary": "鏇存柊鏈嶅姟鍚堝悓鐘舵��",
+                "summary": "鏇存柊鍚堝悓鐘舵��",
                 "parameters": [
                     {
                         "description": "鏌ヨ鍙傛暟",
@@ -8121,7 +8199,7 @@
                         "in": "body",
                         "required": true,
                         "schema": {
-                            "$ref": "#/definitions/request.UpdateServiceContractStatuss"
+                            "$ref": "#/definitions/request.UpdateServiceContractStatus"
                         }
                     }
                 ],
@@ -10335,24 +10413,6 @@
                 "PaymentTypeQueryClassExpireLessThen60Days"
             ]
         },
-        "constvar.ReceiptKeywordType": {
-            "type": "string",
-            "enum": [
-                ""
-            ],
-            "x-enum-varnames": [
-                "ReceiptKeywordCustomerName"
-            ]
-        },
-        "constvar.ReceiptQueryClass": {
-            "type": "string",
-            "enum": [
-                ""
-            ],
-            "x-enum-varnames": [
-                "ReceiptQueryClassExpireLessThen60Days"
-            ]
-        },
         "constvar.ReceiptSourceType": {
             "type": "integer",
             "enum": [
@@ -10362,6 +10422,13 @@
                 4,
                 5
             ],
+            "x-enum-comments": {
+                "ReceiptSourceTypeChuKuDan": "鍑哄簱鍗昳t",
+                "ReceiptSourceTypeCollectionPlan": "鏀舵璁″垝",
+                "ReceiptSourceTypeInvoice": "閿�鍞彂绁�",
+                "ReceiptSourceTypeSalesDetails": "閿�鍞槑缁嗗崟",
+                "ReceiptSourceTypeServiceContract": "鏈嶅姟鍚堝悓"
+            },
             "x-enum-varnames": [
                 "ReceiptSourceTypeSalesDetails",
                 "ReceiptSourceTypeServiceContract",
@@ -10523,6 +10590,24 @@
                 "ServiceContractQueryClassExpireAfter60Day",
                 "ServiceContractQueryClassExpiredBefore15Day",
                 "ServiceContractQueryClassExpiredBefore60Day"
+            ]
+        },
+        "constvar.ServiceContractStatusKeywordType": {
+            "type": "string",
+            "enum": [
+                ""
+            ],
+            "x-enum-varnames": [
+                "ServiceContractStatusKeywordCustomerName"
+            ]
+        },
+        "constvar.ServiceContractStatusQueryClass": {
+            "type": "string",
+            "enum": [
+                ""
+            ],
+            "x-enum-varnames": [
+                "ServiceContractStatusQueryClassExpireLessThen60Days"
             ]
         },
         "constvar.ServiceFeeKeywordType": {
@@ -11167,6 +11252,9 @@
                 "quotationId": {
                     "type": "integer"
                 },
+                "serviceContractStatus": {
+                    "$ref": "#/definitions/model.ServiceContractStatus"
+                },
                 "statusId": {
                     "type": "integer"
                 },
@@ -11290,6 +11378,9 @@
                 },
                 "contact_id": {
                     "type": "integer"
+                },
+                "contact_information": {
+                    "$ref": "#/definitions/model.ContactInformation"
                 },
                 "contact_information_id": {
                     "type": "integer"
@@ -11777,6 +11868,14 @@
                     "description": "璐︽埛id",
                     "type": "integer"
                 },
+                "client": {
+                    "description": "瀹㈡埛id",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/model.Client"
+                        }
+                    ]
+                },
                 "clientId": {
                     "description": "瀹㈡埛id",
                     "type": "integer"
@@ -12165,6 +12264,9 @@
                 "signTime": {
                     "type": "string"
                 },
+                "updateTime": {
+                    "type": "string"
+                },
                 "wechatOrderStatus": {
                     "$ref": "#/definitions/model.WechatOrderStatus"
                 },
@@ -12198,6 +12300,9 @@
                     "type": "integer"
                 },
                 "desc": {
+                    "type": "string"
+                },
+                "detail_address": {
                     "type": "string"
                 },
                 "followRecord": {
@@ -12250,6 +12355,9 @@
         "model.SalesRefund": {
             "type": "object",
             "properties": {
+                "Source": {
+                    "$ref": "#/definitions/model.SalesReturn"
+                },
                 "amountTotal": {
                     "description": "浠风◣鍚堣",
                     "type": "number"
@@ -12318,6 +12426,9 @@
                             "$ref": "#/definitions/constvar.RefundSourceType"
                         }
                     ]
+                },
+                "updateTime": {
+                    "type": "string"
                 }
             }
         },
@@ -12397,6 +12508,9 @@
                             "$ref": "#/definitions/constvar.SalesReturnSourceType"
                         }
                     ]
+                },
+                "updateTime": {
+                    "type": "string"
                 }
             }
         },
@@ -12475,6 +12589,14 @@
                     "description": "姣斾緥",
                     "type": "number"
                 },
+                "principal": {
+                    "description": "鏀舵璐熻矗浜篒D",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/model.User"
+                        }
+                    ]
+                },
                 "principalId": {
                     "description": "鏀舵璐熻矗浜篒D",
                     "type": "integer"
@@ -12547,6 +12669,12 @@
                 "contactId": {
                     "type": "integer"
                 },
+                "createTime": {
+                    "type": "string"
+                },
+                "creatorName": {
+                    "type": "string"
+                },
                 "endTime": {
                     "type": "string"
                 },
@@ -12608,6 +12736,9 @@
                     "type": "string"
                 },
                 "terms": {
+                    "type": "string"
+                },
+                "updateTime": {
                     "type": "string"
                 }
             }
@@ -12678,6 +12809,12 @@
                 "contactId": {
                     "type": "integer"
                 },
+                "createTime": {
+                    "type": "string"
+                },
+                "creatorName": {
+                    "type": "string"
+                },
                 "file": {
                     "type": "string"
                 },
@@ -12731,6 +12868,9 @@
                 },
                 "timelyRateId": {
                     "type": "integer"
+                },
+                "updateTime": {
+                    "type": "string"
                 }
             }
         },
@@ -12766,6 +12906,12 @@
                 "contactId": {
                     "description": "鑱旂郴浜篿d",
                     "type": "integer"
+                },
+                "createTime": {
+                    "type": "string"
+                },
+                "creatorName": {
+                    "type": "string"
                 },
                 "expectTime": {
                     "description": "甯屾湜澶勭悊鏃堕棿",
@@ -12887,6 +13033,9 @@
                 "timeSpentId": {
                     "description": "鑺辫垂鏃堕棿",
                     "type": "integer"
+                },
+                "updateTime": {
+                    "type": "string"
                 }
             }
         },
@@ -13080,11 +13229,19 @@
                     "description": "鐗╂枡绫诲瀷",
                     "type": "string"
                 },
+                "MaxInventory": {
+                    "description": "鏈�澶у簱瀛�",
+                    "type": "integer"
+                },
                 "MinInventory": {
                     "description": "瀹夊叏搴撳瓨",
                     "type": "integer"
                 },
                 "Name": {
+                    "type": "string"
+                },
+                "Node": {
+                    "description": "澶囨敞",
                     "type": "string"
                 },
                 "Number": {
@@ -13097,6 +13254,14 @@
                 "SalePrice": {
                     "description": "閿�鍞环鏍�",
                     "type": "number"
+                },
+                "Specs": {
+                    "description": "瑙勬牸",
+                    "type": "string"
+                },
+                "Type": {
+                    "description": "鍨嬪彿",
+                    "type": "string"
                 },
                 "Unit": {
                     "type": "string"
@@ -13809,6 +13974,14 @@
                     "description": "璐︽埛id",
                     "type": "integer"
                 },
+                "client": {
+                    "description": "瀹㈡埛id",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/model.Client"
+                        }
+                    ]
+                },
                 "clientId": {
                     "description": "瀹㈡埛id",
                     "type": "integer"
@@ -14139,6 +14312,10 @@
                     "description": "澶囨敞",
                     "type": "string"
                 },
+                "detail_address": {
+                    "description": "璇︾粏鍦板潃",
+                    "type": "string"
+                },
                 "member_id": {
                     "description": "閿�鍞礋璐d汉ID",
                     "type": "integer"
@@ -14265,6 +14442,12 @@
                 "salesDetailsId": {
                     "type": "integer"
                 },
+                "serviceContractStatusId": {
+                    "type": "integer"
+                },
+                "serviceContractTypeId": {
+                    "type": "integer"
+                },
                 "serviceTimes": {
                     "type": "integer"
                 },
@@ -14287,10 +14470,10 @@
         },
         "request.AddServiceContractStatus": {
             "type": "object",
-            "required": [
-                "name"
-            ],
             "properties": {
+                "id": {
+                    "type": "integer"
+                },
                 "name": {
                     "type": "string"
                 }
@@ -15109,7 +15292,7 @@
                     "type": "integer"
                 },
                 "search_map": {
-                    "description": "鎼滅储鏉′欢: map[string]interface{}{\"name\": \"xxx\"}; {\"name\": \"瀹㈡埛鍚嶇О\", \"phone\": \"鎵嬫満鍙风爜\", \"detail_address\":\"璇︾粏鍦板潃\", \"next_visit_time\":\"涓嬪洖鍥炶鏃ユ湡\", \"member_name\": \"閿�鍞礋璐d汉\", \"client_status\": \"瀹㈡埛鐘舵�乗", \"client_level\": \"閲嶈绾у埆\"}",
+                    "description": "鎼滅储鏉′欢: map[string]interface{}{\"name\": \"xxx\"}; {\"name\": \"瀹㈡埛鍚嶇О\", \"phone\": \"鎵嬫満鍙风爜\", \"detail_address\":\"璇︾粏鍦板潃\", \"next_visit_time\":\"涓嬪洖鍥炶鏃ユ湡\", \"member_name\": \"閿�鍞礋璐d汉\", \"client_status\": \"瀹㈡埛鐘舵�乗", \"client_level\": \"閲嶈绾у埆\",\"representative\": \"娉曞畾浠h〃浜篭", \"registration_time\": \"娉ㄥ唽鏃堕棿\", \"business_scope\": \"缁忚惀鑼冨洿\", \"remark\": \"澶囨敞\", \"not_admin\":\"1:鎴戠殑瀹㈡埛; 2:admin瀹㈡埛\"}",
                     "type": "object",
                     "additionalProperties": true
                 }
@@ -15127,7 +15310,7 @@
                     "type": "integer"
                 },
                 "search_map": {
-                    "description": "鎼滅储鏉′欢: map[string]interface{}{\"name\": \"xxx\"}; {\"name\": \"瀹㈡埛鍚嶇О\", \"phone\": \"鎵嬫満鍙风爜\", \"detail_address\":\"璇︾粏鍦板潃\", \"next_visit_time\":\"涓嬪洖鍥炶鏃ユ湡\", \"member_name\": \"閿�鍞礋璐d汉\", \"client_status\": \"瀹㈡埛鐘舵�乗", \"client_level\": \"閲嶈绾у埆\", \"is_first\": \"鏄惁鏄瑕佽仈绯讳汉\"}",
+                    "description": "鎼滅储鏉′欢: map[string]interface{}{\"name\": \"xxx\"}; {\"name\": \"瀹㈡埛鍚嶇О\", \"phone\": \"鎵嬫満鍙风爜\", \"detail_address\":\"璇︾粏鍦板潃\", \"next_visit_time\":\"涓嬪洖鍥炶鏃ユ湡\", \"member_name\": \"閿�鍞礋璐d汉\", \"client_status\": \"瀹㈡埛鐘舵�乗", \"client_level\": \"閲嶈绾у埆\", \"is_first\": \"鏄惁鏄瑕佽仈绯讳汉\", \"client_id\": \"clientId 鐢ㄤ簬杩斿洖棣栬鑱旂郴浜篭"}",
                     "type": "object",
                     "additionalProperties": true
                 }
@@ -16862,6 +17045,14 @@
                     "description": "璐︽埛id",
                     "type": "integer"
                 },
+                "client": {
+                    "description": "瀹㈡埛id",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/model.Client"
+                        }
+                    ]
+                },
                 "clientId": {
                     "description": "瀹㈡埛id",
                     "type": "integer"
@@ -17289,6 +17480,10 @@
                     "description": "澶囨敞",
                     "type": "string"
                 },
+                "detail_address": {
+                    "description": "璇︾粏鍦板潃",
+                    "type": "string"
+                },
                 "id": {
                     "type": "integer"
                 },
@@ -17464,6 +17659,14 @@
                     "description": "姣斾緥",
                     "type": "number"
                 },
+                "principal": {
+                    "description": "鏀舵璐熻矗浜篒D",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/model.User"
+                        }
+                    ]
+                },
                 "principalId": {
                     "description": "鏀舵璐熻矗浜篒D",
                     "type": "integer"
@@ -17540,6 +17743,12 @@
                 "salesDetailsId": {
                     "type": "integer"
                 },
+                "serviceContractStatusId": {
+                    "type": "integer"
+                },
+                "serviceContractTypeId": {
+                    "type": "integer"
+                },
                 "serviceTimes": {
                     "type": "integer"
                 },
@@ -17562,30 +17771,12 @@
         },
         "request.UpdateServiceContractStatus": {
             "type": "object",
-            "required": [
-                "id",
-                "name"
-            ],
             "properties": {
                 "id": {
                     "type": "integer"
                 },
                 "name": {
                     "type": "string"
-                }
-            }
-        },
-        "request.UpdateServiceContractStatuss": {
-            "type": "object",
-            "required": [
-                "service_contract_status"
-            ],
-            "properties": {
-                "service_contract_status": {
-                    "type": "array",
-                    "items": {
-                        "$ref": "#/definitions/request.UpdateServiceContractStatus"
-                    }
                 }
             }
         },
@@ -18877,17 +19068,6 @@
                     "type": "array",
                     "items": {
                         "$ref": "#/definitions/model.Satisfaction"
-                    }
-                }
-            }
-        },
-        "response.ServiceContractStatusResponse": {
-            "type": "object",
-            "properties": {
-                "list": {
-                    "type": "array",
-                    "items": {
-                        "$ref": "#/definitions/model.ServiceContractStatus"
                     }
                 }
             }

--
Gitblit v1.8.0