From d3c6646d3d2c7297a2f857bca63d23423c892b7c Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期六, 05 八月 2023 15:19:12 +0800
Subject: [PATCH] 回访单关联服务单

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

diff --git a/docs/docs.go b/docs/docs.go
index 041b0a8..181b30a 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -2196,6 +2196,128 @@
                 }
             }
         },
+        "/api/faultType/add": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "鏁呴殰绫诲埆绠$悊"
+                ],
+                "summary": "娣诲姞鏁呴殰绫诲埆",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.AddFaultType"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/faultType/delete/{id}": {
+            "delete": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "鏁呴殰绫诲埆绠$悊"
+                ],
+                "summary": "鍒犻櫎鏁呴殰绫诲埆",
+                "parameters": [
+                    {
+                        "type": "integer",
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/faultType/list": {
+            "get": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "鏁呴殰绫诲埆绠$悊"
+                ],
+                "summary": "鑾峰彇鏁呴殰绫诲埆鍒楄〃",
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/response.ListResponse"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "type": "array",
+                                            "items": {
+                                                "$ref": "#/definitions/model.FaultType"
+                                            }
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        },
+        "/api/faultType/update": {
+            "put": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "鏁呴殰绫诲埆绠$悊"
+                ],
+                "summary": "鏇存柊鏁呴殰绫诲埆",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.UpdateFaultType"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
         "/api/followRecord/add": {
             "post": {
                 "produces": [
@@ -6658,9 +6780,9 @@
                     "application/json"
                 ],
                 "tags": [
-                    "鏈嶅姟绫诲瀷绠$悊"
+                    "鏈嶅姟鏂瑰紡绠$悊"
                 ],
-                "summary": "娣诲姞鏈嶅姟绫诲瀷",
+                "summary": "娣诲姞鏈嶅姟鏂瑰紡",
                 "parameters": [
                     {
                         "description": "鏌ヨ鍙傛暟",
@@ -6688,9 +6810,9 @@
                     "application/json"
                 ],
                 "tags": [
-                    "鏈嶅姟绫诲瀷绠$悊"
+                    "鏈嶅姟鏂瑰紡绠$悊"
                 ],
-                "summary": "鍒犻櫎鏈嶅姟绫诲瀷",
+                "summary": "鍒犻櫎鏈嶅姟鏂瑰紡",
                 "parameters": [
                     {
                         "type": "integer",
@@ -6716,9 +6838,9 @@
                     "application/json"
                 ],
                 "tags": [
-                    "鏈嶅姟绫诲瀷绠$悊"
+                    "鏈嶅姟鏂瑰紡绠$悊"
                 ],
-                "summary": "鑾峰彇鏈嶅姟绫诲瀷鍒楄〃",
+                "summary": "鑾峰彇鏈嶅姟鏂瑰紡鍒楄〃",
                 "responses": {
                     "200": {
                         "description": "OK",
@@ -6750,9 +6872,9 @@
                     "application/json"
                 ],
                 "tags": [
-                    "鏈嶅姟绫诲瀷绠$悊"
+                    "鏈嶅姟鏂瑰紡绠$悊"
                 ],
-                "summary": "鏇存柊鏈嶅姟绫诲瀷",
+                "summary": "鏇存柊鏈嶅姟鏂瑰紡",
                 "parameters": [
                     {
                         "description": "鏌ヨ鍙傛暟",
@@ -7239,6 +7361,128 @@
                         "required": true,
                         "schema": {
                             "$ref": "#/definitions/request.UpdateSubOrder"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/timeSpent/add": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "鑺辫垂鏃堕棿绠$悊"
+                ],
+                "summary": "娣诲姞鑺辫垂鏃堕棿",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.AddTimeSpent"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/timeSpent/delete/{id}": {
+            "delete": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "鑺辫垂鏃堕棿绠$悊"
+                ],
+                "summary": "鍒犻櫎鑺辫垂鏃堕棿",
+                "parameters": [
+                    {
+                        "type": "integer",
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/timeSpent/list": {
+            "get": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "鑺辫垂鏃堕棿绠$悊"
+                ],
+                "summary": "鑾峰彇鑺辫垂鏃堕棿鍒楄〃",
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/response.ListResponse"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "type": "array",
+                                            "items": {
+                                                "$ref": "#/definitions/model.TimeSpent"
+                                            }
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        },
+        "/api/timeSpent/update": {
+            "put": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "鑺辫垂鏃堕棿绠$悊"
+                ],
+                "summary": "鏇存柊鑺辫垂鏃堕棿",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.UpdateTimeSpent"
                         }
                     }
                 ],
@@ -8333,6 +8577,17 @@
                 }
             }
         },
+        "model.FaultType": {
+            "type": "object",
+            "properties": {
+                "id": {
+                    "type": "integer"
+                },
+                "name": {
+                    "type": "string"
+                }
+            }
+        },
         "model.FollowRecord": {
             "type": "object",
             "properties": {
@@ -9304,76 +9559,86 @@
                     "description": "涓婇棬鍦板潃",
                     "type": "string"
                 },
-                "appointment_time": {
+                "appointmentTime": {
                     "description": "棰勭害涓婇棬鏃堕棿",
                     "type": "string"
                 },
-                "car_fare": {
+                "carFare": {
                     "description": "浜ら�氳垂",
                     "type": "number"
                 },
-                "charge_amount": {
+                "chargeAmount": {
                     "description": "鏀惰垂閲戦",
                     "type": "number"
                 },
                 "client": {
                     "$ref": "#/definitions/model.Client"
                 },
-                "client_id": {
+                "clientId": {
                     "description": "瀹㈡埛id",
+                    "type": "integer"
+                },
+                "contact": {
+                    "$ref": "#/definitions/model.Contact"
+                },
+                "contactId": {
+                    "description": "鑱旂郴浜篿d",
                     "type": "integer"
                 },
                 "contract": {
                     "$ref": "#/definitions/model.Contract"
                 },
-                "contract_id": {
+                "contractId": {
                     "description": "鍚堝悓id",
                     "type": "integer"
                 },
-                "expect_time": {
+                "expectTime": {
                     "description": "甯屾湜澶勭悊鏃堕棿",
                     "type": "string"
                 },
                 "faq": {
                     "$ref": "#/definitions/model.Faq"
                 },
+                "faqId": {
+                    "description": "甯歌闂id",
+                    "type": "integer"
+                },
+                "faultType": {
+                    "$ref": "#/definitions/model.FaultType"
+                },
+                "faultTypeId": {
+                    "description": "鏁呴殰绫诲埆id",
+                    "type": "integer"
+                },
                 "id": {
                     "type": "integer"
                 },
-                "linkman_id": {
-                    "description": "鑱旂郴浜篿d",
-                    "type": "integer"
-                },
-                "order": {
-                    "$ref": "#/definitions/model.OrderManage"
-                },
-                "order_id": {
+                "orderId": {
                     "description": "閿�鍞鍗昳d",
                     "type": "integer"
+                },
+                "orderManage": {
+                    "$ref": "#/definitions/model.OrderManage"
                 },
                 "priorityLevel": {
                     "$ref": "#/definitions/model.PriorityLevel"
                 },
-                "priority_level_id": {
-                    "description": "浼樺厛绾у埆",
+                "priorityLevelId": {
+                    "description": "浼樺厛绾у埆id",
                     "type": "integer"
                 },
-                "problem_desc": {
+                "problemDesc": {
                     "description": "闂鎻忚堪",
                     "type": "string"
-                },
-                "problem_id": {
-                    "description": "甯歌闂id",
-                    "type": "integer"
                 },
                 "product": {
                     "$ref": "#/definitions/model.Product"
                 },
-                "product_id": {
+                "productId": {
                     "description": "浜у搧id",
                     "type": "integer"
                 },
-                "real_time": {
+                "realTime": {
                     "description": "瀹為檯澶勭悊鏃堕棿",
                     "type": "string"
                 },
@@ -9381,23 +9646,26 @@
                     "description": "澶囨敞",
                     "type": "string"
                 },
-                "sale_leads": {
+                "saleChance": {
+                    "$ref": "#/definitions/model.SaleChance"
+                },
+                "saleChanceId": {
                     "description": "閿�鍞満浼歩d",
                     "type": "integer"
+                },
+                "serviceManId": {
+                    "description": "鏈嶅姟浜哄憳",
+                    "type": "integer"
+                },
+                "serviceNumber": {
+                    "description": "鏈嶅姟鍗曠紪鍙�",
+                    "type": "string"
                 },
                 "serviceType": {
                     "$ref": "#/definitions/model.ServiceType"
                 },
-                "service_man_id": {
-                    "description": "鏈嶅姟浜哄憳",
-                    "type": "integer"
-                },
-                "service_number": {
-                    "description": "鏈嶅姟鍗曠紪鍙�",
-                    "type": "string"
-                },
-                "service_type_id": {
-                    "description": "鏈嶅姟鏂瑰紡",
+                "serviceTypeId": {
+                    "description": "鏈嶅姟鏂瑰紡id",
                     "type": "integer"
                 },
                 "severity": {
@@ -9407,7 +9675,7 @@
                     "description": "瑙e喅鏂规硶",
                     "type": "string"
                 },
-                "solution_remark": {
+                "solutionRemark": {
                     "description": "鍐呴儴澶囨敞",
                     "type": "string"
                 },
@@ -9419,7 +9687,10 @@
                     "description": "涓婚",
                     "type": "string"
                 },
-                "time_spent_id": {
+                "timeSpent": {
+                    "$ref": "#/definitions/model.TimeSpent"
+                },
+                "timeSpentId": {
                     "description": "鑺辫垂鏃堕棿",
                     "type": "integer"
                 }
@@ -9495,6 +9766,17 @@
                     "items": {
                         "$ref": "#/definitions/model.Product"
                     }
+                }
+            }
+        },
+        "model.TimeSpent": {
+            "type": "object",
+            "properties": {
+                "id": {
+                    "type": "integer"
+                },
+                "name": {
+                    "type": "string"
                 }
             }
         },
@@ -9890,6 +10172,17 @@
             }
         },
         "request.AddFaq": {
+            "type": "object",
+            "properties": {
+                "id": {
+                    "type": "integer"
+                },
+                "name": {
+                    "type": "string"
+                }
+            }
+        },
+        "request.AddFaultType": {
             "type": "object",
             "properties": {
                 "id": {
@@ -10619,76 +10912,59 @@
                     "description": "涓婇棬鍦板潃",
                     "type": "string"
                 },
-                "appointment_time": {
+                "appointmentTime": {
                     "description": "棰勭害涓婇棬鏃堕棿",
                     "type": "string"
                 },
-                "car_fare": {
+                "carFare": {
                     "description": "浜ら�氳垂",
                     "type": "number"
                 },
-                "charge_amount": {
+                "chargeAmount": {
                     "description": "鏀惰垂閲戦",
                     "type": "number"
                 },
-                "client": {
-                    "$ref": "#/definitions/model.Client"
-                },
-                "client_id": {
+                "clientId": {
                     "description": "瀹㈡埛id",
                     "type": "integer"
                 },
-                "contract": {
-                    "$ref": "#/definitions/model.Contract"
-                },
-                "contract_id": {
-                    "description": "鍚堝悓id",
-                    "type": "integer"
-                },
-                "expect_time": {
-                    "description": "甯屾湜澶勭悊鏃堕棿",
-                    "type": "string"
-                },
-                "faq": {
-                    "$ref": "#/definitions/model.Faq"
-                },
-                "id": {
-                    "type": "integer"
-                },
-                "linkman_id": {
+                "contactId": {
                     "description": "鑱旂郴浜篿d",
                     "type": "integer"
                 },
-                "order": {
-                    "$ref": "#/definitions/model.OrderManage"
-                },
-                "order_id": {
-                    "description": "閿�鍞鍗昳d",
+                "contractId": {
+                    "description": "鍚堝悓id",
                     "type": "integer"
                 },
-                "priorityLevel": {
-                    "$ref": "#/definitions/model.PriorityLevel"
-                },
-                "priority_level_id": {
-                    "description": "浼樺厛绾у埆",
-                    "type": "integer"
-                },
-                "problem_desc": {
-                    "description": "闂鎻忚堪",
+                "expectTime": {
+                    "description": "甯屾湜澶勭悊鏃堕棿",
                     "type": "string"
                 },
-                "problem_id": {
+                "faqId": {
                     "description": "甯歌闂id",
                     "type": "integer"
                 },
-                "product": {
-                    "$ref": "#/definitions/model.Product"
+                "faultTypeId": {
+                    "description": "鏁呴殰绫诲埆id",
+                    "type": "integer"
                 },
-                "product_id": {
+                "orderId": {
+                    "description": "閿�鍞鍗昳d",
+                    "type": "integer"
+                },
+                "priorityLevelId": {
+                    "description": "浼樺厛绾у埆id",
+                    "type": "integer"
+                },
+                "problemDesc": {
+                    "description": "闂鎻忚堪",
+                    "type": "string"
+                },
+                "productId": {
                     "description": "浜у搧id",
                     "type": "integer"
                 },
-                "real_time": {
+                "realTime": {
                     "description": "瀹為檯澶勭悊鏃堕棿",
                     "type": "string"
                 },
@@ -10696,33 +10972,31 @@
                     "description": "澶囨敞",
                     "type": "string"
                 },
-                "sale_leads": {
+                "saleChanceId": {
                     "description": "閿�鍞満浼歩d",
                     "type": "integer"
                 },
-                "serviceType": {
-                    "$ref": "#/definitions/model.ServiceType"
-                },
-                "service_man_id": {
+                "serviceManId": {
                     "description": "鏈嶅姟浜哄憳",
                     "type": "integer"
                 },
-                "service_number": {
+                "serviceNumber": {
                     "description": "鏈嶅姟鍗曠紪鍙�",
                     "type": "string"
                 },
-                "service_type_id": {
-                    "description": "鏈嶅姟鏂瑰紡",
+                "serviceTypeId": {
+                    "description": "鏈嶅姟鏂瑰紡id",
                     "type": "integer"
                 },
                 "severity": {
-                    "$ref": "#/definitions/model.Severity"
+                    "description": "涓ラ噸绋嬪害id",
+                    "type": "integer"
                 },
                 "solution": {
                     "description": "瑙e喅鏂规硶",
                     "type": "string"
                 },
-                "solution_remark": {
+                "solutionRemark": {
                     "description": "鍐呴儴澶囨敞",
                     "type": "string"
                 },
@@ -10734,7 +11008,7 @@
                     "description": "涓婚",
                     "type": "string"
                 },
-                "time_spent_id": {
+                "timeSpentId": {
                     "description": "鑺辫垂鏃堕棿",
                     "type": "integer"
                 }
@@ -10804,6 +11078,17 @@
                     "items": {
                         "$ref": "#/definitions/model.Product"
                     }
+                }
+            }
+        },
+        "request.AddTimeSpent": {
+            "type": "object",
+            "properties": {
+                "id": {
+                    "type": "integer"
+                },
+                "name": {
+                    "type": "string"
                 }
             }
         },
@@ -12165,6 +12450,17 @@
                 }
             }
         },
+        "request.UpdateFaultType": {
+            "type": "object",
+            "properties": {
+                "id": {
+                    "type": "integer"
+                },
+                "name": {
+                    "type": "string"
+                }
+            }
+        },
         "request.UpdateFollowRecord": {
             "type": "object",
             "required": [
@@ -13274,76 +13570,62 @@
                     "description": "涓婇棬鍦板潃",
                     "type": "string"
                 },
-                "appointment_time": {
+                "appointmentTime": {
                     "description": "棰勭害涓婇棬鏃堕棿",
                     "type": "string"
                 },
-                "car_fare": {
+                "carFare": {
                     "description": "浜ら�氳垂",
                     "type": "number"
                 },
-                "charge_amount": {
+                "chargeAmount": {
                     "description": "鏀惰垂閲戦",
                     "type": "number"
                 },
-                "client": {
-                    "$ref": "#/definitions/model.Client"
-                },
-                "client_id": {
+                "clientId": {
                     "description": "瀹㈡埛id",
                     "type": "integer"
                 },
-                "contract": {
-                    "$ref": "#/definitions/model.Contract"
+                "contactId": {
+                    "description": "鑱旂郴浜篿d",
+                    "type": "integer"
                 },
-                "contract_id": {
+                "contractId": {
                     "description": "鍚堝悓id",
                     "type": "integer"
                 },
-                "expect_time": {
+                "expectTime": {
                     "description": "甯屾湜澶勭悊鏃堕棿",
                     "type": "string"
                 },
-                "faq": {
-                    "$ref": "#/definitions/model.Faq"
+                "faqId": {
+                    "description": "甯歌闂id",
+                    "type": "integer"
+                },
+                "faultTypeId": {
+                    "description": "鏁呴殰绫诲埆id",
+                    "type": "integer"
                 },
                 "id": {
                     "type": "integer"
                 },
-                "linkman_id": {
-                    "description": "鑱旂郴浜篿d",
-                    "type": "integer"
-                },
-                "order": {
-                    "$ref": "#/definitions/model.OrderManage"
-                },
-                "order_id": {
+                "orderId": {
                     "description": "閿�鍞鍗昳d",
                     "type": "integer"
                 },
-                "priorityLevel": {
-                    "$ref": "#/definitions/model.PriorityLevel"
-                },
-                "priority_level_id": {
-                    "description": "浼樺厛绾у埆",
+                "priorityLevelId": {
+                    "description": "浼樺厛绾у埆id",
                     "type": "integer"
                 },
-                "problem_desc": {
+                "problemDesc": {
                     "description": "闂鎻忚堪",
                     "type": "string"
                 },
-                "problem_id": {
-                    "description": "甯歌闂id",
-                    "type": "integer"
-                },
-                "product": {
-                    "$ref": "#/definitions/model.Product"
-                },
-                "product_id": {
+                "productId": {
                     "description": "浜у搧id",
                     "type": "integer"
                 },
-                "real_time": {
+                "realTime": {
                     "description": "瀹為檯澶勭悊鏃堕棿",
                     "type": "string"
                 },
@@ -13351,33 +13633,31 @@
                     "description": "澶囨敞",
                     "type": "string"
                 },
-                "sale_leads": {
+                "saleChanceId": {
                     "description": "閿�鍞満浼歩d",
                     "type": "integer"
                 },
-                "serviceType": {
-                    "$ref": "#/definitions/model.ServiceType"
-                },
-                "service_man_id": {
+                "serviceManId": {
                     "description": "鏈嶅姟浜哄憳",
                     "type": "integer"
                 },
-                "service_number": {
+                "serviceNumber": {
                     "description": "鏈嶅姟鍗曠紪鍙�",
                     "type": "string"
                 },
-                "service_type_id": {
-                    "description": "鏈嶅姟鏂瑰紡",
+                "serviceTypeId": {
+                    "description": "鏈嶅姟鏂瑰紡id",
                     "type": "integer"
                 },
                 "severity": {
-                    "$ref": "#/definitions/model.Severity"
+                    "description": "涓ラ噸绋嬪害id",
+                    "type": "integer"
                 },
                 "solution": {
                     "description": "瑙e喅鏂规硶",
                     "type": "string"
                 },
-                "solution_remark": {
+                "solutionRemark": {
                     "description": "鍐呴儴澶囨敞",
                     "type": "string"
                 },
@@ -13389,7 +13669,7 @@
                     "description": "涓婚",
                     "type": "string"
                 },
-                "time_spent_id": {
+                "timeSpentId": {
                     "description": "鑺辫垂鏃堕棿",
                     "type": "integer"
                 }
@@ -13501,6 +13781,17 @@
                 }
             }
         },
+        "request.UpdateTimeSpent": {
+            "type": "object",
+            "properties": {
+                "id": {
+                    "type": "integer"
+                },
+                "name": {
+                    "type": "string"
+                }
+            }
+        },
         "request.UpdateTimelyRate": {
             "type": "object",
             "required": [

--
Gitblit v1.8.0