From 18f5a87f2b647a27417aaffd62f48ff38be1d0d8 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期一, 14 八月 2023 13:35:29 +0800
Subject: [PATCH] fix

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

diff --git a/docs/docs.go b/docs/docs.go
index e22c0b6..f7c9456 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -1242,6 +1242,127 @@
                 }
             }
         },
+        "/api/collectionProjection/add": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "CollectionProjection"
+                ],
+                "summary": "娣诲姞鏀舵棰勬祴",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.AddCollectionProjection"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/collectionProjection/delete/{id}": {
+            "delete": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "CollectionProjection"
+                ],
+                "summary": "鍒犻櫎鏀舵棰勬祴",
+                "parameters": [
+                    {
+                        "type": "integer",
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/collectionProjection/list": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "CollectionProjection"
+                ],
+                "summary": "鑾峰彇鏀舵棰勬祴鍒楄〃",
+                "parameters": [
+                    {
+                        "type": "integer",
+                        "description": "椤电爜",
+                        "name": "page",
+                        "in": "query"
+                    },
+                    {
+                        "type": "integer",
+                        "description": "姣忛〉澶у皬",
+                        "name": "pageSize",
+                        "in": "query"
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/collectionProjection/update": {
+            "put": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "CollectionProjection"
+                ],
+                "summary": "鏇存柊鏀舵棰勬祴",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.UpdateCollectionProjection"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
         "/api/contact/add": {
             "post": {
                 "produces": [
@@ -6267,6 +6388,36 @@
                 }
             }
         },
+        "/api/saleChance/push": {
+            "put": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "SaleChance"
+                ],
+                "summary": "鎺ㄨ繘閿�鍞満浼�",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.PushSaleChance"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
         "/api/saleChance/update": {
             "put": {
                 "produces": [
@@ -10555,6 +10706,42 @@
                 }
             }
         },
+        "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"
+                },
+                "estimated_collection_amount": {
+                    "type": "number"
+                },
+                "estimated_collection_date": {
+                    "type": "string"
+                },
+                "id": {
+                    "description": "The ID of the item\nexample: 1",
+                    "type": "integer"
+                },
+                "modifier": {
+                    "type": "integer"
+                },
+                "sale_chance_id": {
+                    "type": "integer"
+                },
+                "updated_at": {
+                    "description": "The date when the item was last updated\nexample: 2023-08-10 15:48:25",
+                    "type": "string"
+                }
+            }
+        },
         "model.Contact": {
             "type": "object",
             "properties": {
@@ -10697,13 +10884,22 @@
         "model.Contract": {
             "type": "object",
             "properties": {
+                "_": {
+                    "description": "The date when the item was deleted\nexample: 2023-08-10 15:48:25",
+                    "type": "string"
+                },
                 "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"
                 },
                 "memberId": {
@@ -10720,6 +10916,10 @@
                 },
                 "statusId": {
                     "type": "integer"
+                },
+                "updated_at": {
+                    "description": "The date when the item was last updated\nexample: 2023-08-10 15:48:25",
+                    "type": "string"
                 }
             }
         },
@@ -10759,32 +10959,6 @@
                 },
                 "name": {
                     "type": "string"
-                }
-            }
-        },
-        "model.CustomerServiceSheet": {
-            "type": "object",
-            "properties": {
-                "handleStatus": {
-                    "type": "integer"
-                },
-                "id": {
-                    "type": "integer"
-                },
-                "memberId": {
-                    "type": "integer"
-                },
-                "number": {
-                    "type": "string"
-                },
-                "priority": {
-                    "type": "integer"
-                },
-                "serviceFollowupId": {
-                    "type": "integer"
-                },
-                "serviceMode": {
-                    "type": "integer"
                 }
             }
         },
@@ -11287,6 +11461,12 @@
                 "number": {
                     "type": "string"
                 },
+                "products": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/model.Product"
+                    }
+                },
                 "quotation_status_id": {
                     "type": "integer"
                 },
@@ -11471,6 +11651,12 @@
                 },
                 "client_id": {
                     "type": "integer"
+                },
+                "collection_projections": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/model.CollectionProjection"
+                    }
                 },
                 "competitors": {
                     "type": "string"
@@ -12189,9 +12375,6 @@
                 "contactId": {
                     "type": "integer"
                 },
-                "customerServiceSheet": {
-                    "$ref": "#/definitions/model.CustomerServiceSheet"
-                },
                 "file": {
                     "type": "string"
                 },
@@ -12228,11 +12411,11 @@
                 "satisfactionId": {
                     "type": "integer"
                 },
-                "serviceId": {
-                    "type": "integer"
-                },
                 "serviceOrder": {
                     "$ref": "#/definitions/model.ServiceOrder"
+                },
+                "serviceOrderId": {
+                    "type": "integer"
                 },
                 "solveRate": {
                     "$ref": "#/definitions/model.SolveRate"
@@ -12281,13 +12464,6 @@
                     "description": "鑱旂郴浜篿d",
                     "type": "integer"
                 },
-                "contract": {
-                    "$ref": "#/definitions/model.Contract"
-                },
-                "contractId": {
-                    "description": "鍚堝悓id",
-                    "type": "integer"
-                },
                 "expectTime": {
                     "description": "甯屾湜澶勭悊鏃堕棿",
                     "type": "string"
@@ -12308,13 +12484,6 @@
                 },
                 "id": {
                     "type": "integer"
-                },
-                "orderId": {
-                    "description": "閿�鍞鍗昳d",
-                    "type": "integer"
-                },
-                "orderManage": {
-                    "$ref": "#/definitions/model.OrderManage"
                 },
                 "priorityLevel": {
                     "$ref": "#/definitions/model.PriorityLevel"
@@ -12347,6 +12516,20 @@
                 },
                 "saleChanceId": {
                     "description": "閿�鍞満浼歩d",
+                    "type": "integer"
+                },
+                "salesDetails": {
+                    "$ref": "#/definitions/model.SalesDetails"
+                },
+                "salesDetailsId": {
+                    "description": "閿�鍞槑缁唅d",
+                    "type": "integer"
+                },
+                "serviceContract": {
+                    "$ref": "#/definitions/model.ServiceContract"
+                },
+                "serviceContractId": {
+                    "description": "鏈嶅姟鍚堝悓id",
                     "type": "integer"
                 },
                 "serviceManId": {
@@ -12780,6 +12963,23 @@
             "properties": {
                 "name": {
                     "type": "string"
+                }
+            }
+        },
+        "request.AddCollectionProjection": {
+            "type": "object",
+            "properties": {
+                "estimated_collection_amount": {
+                    "description": "棰勮鏀舵閲戦",
+                    "type": "number"
+                },
+                "estimated_collection_time": {
+                    "description": "棰勮鏀舵鏃堕棿",
+                    "type": "string"
+                },
+                "sale_chance_id": {
+                    "description": "閿�鍞満浼歩d",
+                    "type": "integer"
                 }
             }
         },
@@ -13244,6 +13444,12 @@
                 },
                 "number": {
                     "type": "string"
+                },
+                "products": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/model.Product"
+                    }
                 },
                 "quotation_status_id": {
                     "type": "integer"
@@ -13918,7 +14124,7 @@
                 "satisfaction": {
                     "type": "integer"
                 },
-                "serviceId": {
+                "serviceOrderId": {
                     "type": "integer"
                 },
                 "solveRate": {
@@ -13956,10 +14162,6 @@
                     "description": "鑱旂郴浜篿d",
                     "type": "integer"
                 },
-                "contractId": {
-                    "description": "鍚堝悓id",
-                    "type": "integer"
-                },
                 "expectTime": {
                     "description": "甯屾湜澶勭悊鏃堕棿",
                     "type": "string"
@@ -13970,10 +14172,6 @@
                 },
                 "faultTypeId": {
                     "description": "鏁呴殰绫诲埆id",
-                    "type": "integer"
-                },
-                "orderId": {
-                    "description": "閿�鍞鍗昳d",
                     "type": "integer"
                 },
                 "priorityLevelId": {
@@ -14000,6 +14198,14 @@
                     "description": "閿�鍞満浼歩d",
                     "type": "integer"
                 },
+                "salesDetailsId": {
+                    "description": "閿�鍞鍗昳d",
+                    "type": "integer"
+                },
+                "serviceContractId": {
+                    "description": "鍚堝悓id",
+                    "type": "integer"
+                },
                 "serviceManId": {
                     "description": "鏈嶅姟浜哄憳",
                     "type": "integer"
@@ -14007,6 +14213,10 @@
                 "serviceNumber": {
                     "description": "鏈嶅姟鍗曠紪鍙�",
                     "type": "string"
+                },
+                "serviceOrderStatusId": {
+                    "description": "澶勭悊鐘舵��",
+                    "type": "integer"
                 },
                 "serviceTypeId": {
                     "description": "鏈嶅姟鏂瑰紡id",
@@ -14023,10 +14233,6 @@
                 "solutionRemark": {
                     "description": "鍐呴儴澶囨敞",
                     "type": "string"
-                },
-                "status": {
-                    "description": "澶勭悊鐘舵��",
-                    "type": "integer"
                 },
                 "subject": {
                     "description": "涓婚",
@@ -14534,9 +14740,6 @@
         "request.GetContractList": {
             "type": "object",
             "properties": {
-                "keyword": {
-                    "type": "string"
-                },
                 "page": {
                     "description": "椤电爜",
                     "type": "integer"
@@ -14544,6 +14747,11 @@
                 "pageSize": {
                     "description": "姣忛〉澶у皬",
                     "type": "integer"
+                },
+                "search_map": {
+                    "description": "鎼滅储鏉′欢: map[string]interface{} {\"member_name\": \"閿�鍞礋璐d汉\", \"number\": \"鍚堝悓缂栧彿\", \"created_at\": \"鍒涘缓鏃堕棿\"}",
+                    "type": "object",
+                    "additionalProperties": true
                 }
             }
         },
@@ -14590,9 +14798,6 @@
         "request.GetMasterOrderList": {
             "type": "object",
             "properties": {
-                "keyword": {
-                    "type": "string"
-                },
                 "page": {
                     "description": "椤电爜",
                     "type": "integer"
@@ -14600,6 +14805,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
                 }
             }
         },
@@ -14638,9 +14848,6 @@
         "request.GetQuotationList": {
             "type": "object",
             "properties": {
-                "keyword": {
-                    "type": "string"
-                },
                 "page": {
                     "description": "椤电爜",
                     "type": "integer"
@@ -14648,15 +14855,17 @@
                 "pageSize": {
                     "description": "姣忛〉澶у皬",
                     "type": "integer"
+                },
+                "searchMap": {
+                    "description": "鎼滅储鏉′欢: map[string]interface{}{\"name\": \"xxx\"}; {\"sale_chance_id\": 閿�鍞嚎绱d, \"client_name\": \"瀹㈡埛鍚嶇О\", \"member_name\": \"閿�鍞礋璐d汉\", \"contact_name\": \"鑱旂郴浜篭", \"validity_date\": \"鏈夋晥鏈焅"}",
+                    "type": "object",
+                    "additionalProperties": true
                 }
             }
         },
         "request.GetSaleChanceList": {
             "type": "object",
             "properties": {
-                "keyword": {
-                    "type": "string"
-                },
                 "page": {
                     "description": "椤电爜",
                     "type": "integer"
@@ -14664,6 +14873,11 @@
                 "pageSize": {
                     "description": "姣忛〉澶у皬",
                     "type": "integer"
+                },
+                "search_map": {
+                    "description": "鎼滅储鏉′欢: map[string]interface{}{\"name\": \"xxx\"}; {\"name\": \"鏈轰細鍚嶇О\", \"client_name\": \"瀹㈡埛鍚嶇О\",\"number\":\"缂栧彿\", \"contact_name\":\"鑱旂郴浜哄鍚峔", \"member_name\": \"閿�鍞礋璐d汉\", \"status\": \"鐘舵�乗", \"sale_stage\": \"闃舵\", \"possibilities\": \"鍙兘鎬", \"expected_time\": \"棰勮鎴愪氦鏃堕棿\", \"budget\": \"璧勯噾缁濆鍊糪", \"projected_amount\": \"棰勮鍚堝悓閲戦\"}",
+                    "type": "object",
+                    "additionalProperties": true
                 }
             }
         },
@@ -14799,6 +15013,10 @@
                 "pageSize": {
                     "description": "姣忛〉澶у皬",
                     "type": "integer"
+                },
+                "serviceOrderId": {
+                    "description": "鏈嶅姟鍥炶鍗昳d",
+                    "type": "integer"
                 }
             }
         },
@@ -14821,15 +15039,18 @@
                 },
                 "queryClass": {
                     "$ref": "#/definitions/constvar.ServiceOrderQueryClass"
+                },
+                "salesDetailsId": {
+                    "type": "integer"
+                },
+                "serviceContractId": {
+                    "type": "integer"
                 }
             }
         },
         "request.GetSubOrderList": {
             "type": "object",
             "properties": {
-                "keyword": {
-                    "type": "string"
-                },
                 "page": {
                     "description": "椤电爜",
                     "type": "integer"
@@ -14837,6 +15058,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
                 }
             }
         },
@@ -14906,6 +15132,21 @@
                     "type": "string"
                 },
                 "subOrderId": {
+                    "type": "integer"
+                }
+            }
+        },
+        "request.PushSaleChance": {
+            "type": "object",
+            "required": [
+                "id",
+                "step"
+            ],
+            "properties": {
+                "id": {
+                    "type": "integer"
+                },
+                "step": {
                     "type": "integer"
                 }
             }
@@ -15471,6 +15712,22 @@
                     "items": {
                         "$ref": "#/definitions/request.UpdateClientType"
                     }
+                }
+            }
+        },
+        "request.UpdateCollectionProjection": {
+            "type": "object",
+            "properties": {
+                "estimated_collection_amount": {
+                    "description": "棰勮鏀舵閲戦",
+                    "type": "number"
+                },
+                "estimated_collection_time": {
+                    "description": "棰勮鏀舵鏃堕棿",
+                    "type": "string"
+                },
+                "id": {
+                    "type": "integer"
                 }
             }
         },
@@ -16137,6 +16394,12 @@
                 },
                 "number": {
                     "type": "string"
+                },
+                "products": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/model.Product"
+                    }
                 },
                 "quotation_status_id": {
                     "type": "integer"
@@ -17091,7 +17354,7 @@
                 "satisfaction": {
                     "type": "integer"
                 },
-                "serviceId": {
+                "serviceOrderId": {
                     "type": "integer"
                 },
                 "solveRate": {
@@ -17129,10 +17392,6 @@
                     "description": "鑱旂郴浜篿d",
                     "type": "integer"
                 },
-                "contractId": {
-                    "description": "鍚堝悓id",
-                    "type": "integer"
-                },
                 "expectTime": {
                     "description": "甯屾湜澶勭悊鏃堕棿",
                     "type": "string"
@@ -17146,10 +17405,6 @@
                     "type": "integer"
                 },
                 "id": {
-                    "type": "integer"
-                },
-                "orderId": {
-                    "description": "閿�鍞鍗昳d",
                     "type": "integer"
                 },
                 "priorityLevelId": {
@@ -17176,6 +17431,14 @@
                     "description": "閿�鍞満浼歩d",
                     "type": "integer"
                 },
+                "salesDetailsId": {
+                    "description": "閿�鍞鍗昳d",
+                    "type": "integer"
+                },
+                "serviceContractId": {
+                    "description": "鍚堝悓id",
+                    "type": "integer"
+                },
                 "serviceManId": {
                     "description": "鏈嶅姟浜哄憳",
                     "type": "integer"
@@ -17183,6 +17446,10 @@
                 "serviceNumber": {
                     "description": "鏈嶅姟鍗曠紪鍙�",
                     "type": "string"
+                },
+                "serviceOrderStatusId": {
+                    "description": "澶勭悊鐘舵��",
+                    "type": "integer"
                 },
                 "serviceTypeId": {
                     "description": "鏈嶅姟鏂瑰紡id",
@@ -17199,10 +17466,6 @@
                 "solutionRemark": {
                     "description": "鍐呴儴澶囨敞",
                     "type": "string"
-                },
-                "status": {
-                    "description": "澶勭悊鐘舵��",
-                    "type": "integer"
                 },
                 "subject": {
                     "description": "涓婚",

--
Gitblit v1.8.0