From ac5468a5ce91c4a9ba7c9610c6bef78e24bf6dce Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期一, 10 七月 2023 11:14:18 +0800
Subject: [PATCH] add

---
 docs/docs.go |  858 +++++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 800 insertions(+), 58 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index a9ec36e..e2eca69 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -1580,6 +1580,125 @@
                 }
             }
         },
+        "/api/possibility/add": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "Possibility"
+                ],
+                "summary": "娣诲姞鍟嗘満鍙兘鎬�",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.AddPossibility"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/possibility/delete/{id}": {
+            "delete": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "Possibility"
+                ],
+                "summary": "鍒犻櫎鍟嗘満鍙兘鎬�",
+                "parameters": [
+                    {
+                        "type": "integer",
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/possibility/list": {
+            "get": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "Possibility"
+                ],
+                "summary": "鍟嗘満鍙兘鎬у垪琛�",
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/contextx.Response"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "$ref": "#/definitions/response.PossibilityResponse"
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        },
+        "/api/possibility/update": {
+            "put": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "Possibility"
+                ],
+                "summary": "鏇存柊鍟嗘満鍙兘鎬�",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.UpdatePossibilities"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
         "/api/province/add": {
             "post": {
                 "produces": [
@@ -1985,6 +2104,125 @@
                 }
             }
         },
+        "/api/regularCustomers/add": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "RegularCustomers"
+                ],
+                "summary": "娣诲姞甯稿",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.AddRegularCustomers"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/regularCustomers/delete/{id}": {
+            "delete": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "RegularCustomers"
+                ],
+                "summary": "鍒犻櫎甯稿",
+                "parameters": [
+                    {
+                        "type": "integer",
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/regularCustomers/list": {
+            "get": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "RegularCustomers"
+                ],
+                "summary": "甯稿鍒楄〃",
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/contextx.Response"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "$ref": "#/definitions/response.RegularCustomersResponse"
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        },
+        "/api/regularCustomers/update": {
+            "put": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "RegularCustomers"
+                ],
+                "summary": "鏇存柊甯稿",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.UpdateRegularCustomersList"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
         "/api/saleChance/add": {
             "post": {
                 "produces": [
@@ -2091,6 +2329,244 @@
                         "required": true,
                         "schema": {
                             "$ref": "#/definitions/request.UpdateSaleChance"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/saleStage/add": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "SaleStage"
+                ],
+                "summary": "娣诲姞閿�鍞樁娈�",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.AddSaleStage"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/saleStage/delete/{id}": {
+            "delete": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "SaleStage"
+                ],
+                "summary": "鍒犻櫎閿�鍞樁娈�",
+                "parameters": [
+                    {
+                        "type": "integer",
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/saleStage/list": {
+            "get": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "SaleStage"
+                ],
+                "summary": "鑾峰彇閿�鍞樁娈靛垪琛�",
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/contextx.Response"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "$ref": "#/definitions/response.SaleStageResponse"
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        },
+        "/api/saleStage/update": {
+            "put": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "SaleStage"
+                ],
+                "summary": "鏇存柊閿�鍞樁娈�",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.UpdateSaleStages"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/saleType/add": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "SaleType"
+                ],
+                "summary": "娣诲姞閿�鍞被鍨�",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.AddSaleType"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/saleType/delete/{id}": {
+            "delete": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "SaleType"
+                ],
+                "summary": "鍒犻櫎閿�鍞被鍨�",
+                "parameters": [
+                    {
+                        "type": "integer",
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/saleType/list": {
+            "get": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "SaleType"
+                ],
+                "summary": "鑾峰彇閿�鍞被鍨嬪垪琛�",
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/contextx.Response"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "$ref": "#/definitions/response.SaleTypeResponse"
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        },
+        "/api/saleType/update": {
+            "put": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "SaleType"
+                ],
+                "summary": "鏇存柊閿�鍞被鍨�",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.UpdateSaleTypes"
                         }
                     }
                 ],
@@ -2860,6 +3336,71 @@
                 "city_id": {
                     "type": "integer"
                 },
+                "client_id": {
+                    "type": "integer"
+                },
+                "country": {
+                    "$ref": "#/definitions/model.Country"
+                },
+                "country_id": {
+                    "type": "integer"
+                },
+                "desc": {
+                    "type": "string"
+                },
+                "email": {
+                    "type": "string"
+                },
+                "id": {
+                    "type": "integer"
+                },
+                "is_first": {
+                    "type": "boolean"
+                },
+                "member_id": {
+                    "type": "integer"
+                },
+                "name": {
+                    "type": "string"
+                },
+                "number": {
+                    "type": "string"
+                },
+                "phone": {
+                    "type": "string"
+                },
+                "position": {
+                    "type": "string"
+                },
+                "province": {
+                    "$ref": "#/definitions/model.Province"
+                },
+                "province_id": {
+                    "type": "integer"
+                },
+                "region": {
+                    "$ref": "#/definitions/model.Region"
+                },
+                "region_id": {
+                    "type": "integer"
+                },
+                "wechat": {
+                    "type": "string"
+                }
+            }
+        },
+        "model.ContactDetail": {
+            "type": "object",
+            "properties": {
+                "birthday": {
+                    "type": "string"
+                },
+                "city": {
+                    "$ref": "#/definitions/model.City"
+                },
+                "city_id": {
+                    "type": "integer"
+                },
                 "client": {
                     "$ref": "#/definitions/model.Client"
                 },
@@ -3022,6 +3563,17 @@
                 }
             }
         },
+        "model.Possibility": {
+            "type": "object",
+            "properties": {
+                "id": {
+                    "type": "integer"
+                },
+                "name": {
+                    "type": "string"
+                }
+            }
+        },
         "model.Province": {
             "type": "object",
             "properties": {
@@ -3061,6 +3613,17 @@
                 }
             }
         },
+        "model.RegularCustomers": {
+            "type": "object",
+            "properties": {
+                "id": {
+                    "type": "integer"
+                },
+                "name": {
+                    "type": "string"
+                }
+            }
+        },
         "model.SaleChance": {
             "type": "object",
             "properties": {
@@ -3079,11 +3642,17 @@
                 "city_id": {
                     "type": "integer"
                 },
+                "client": {
+                    "$ref": "#/definitions/model.Client"
+                },
                 "client_id": {
                     "type": "integer"
                 },
                 "competitors": {
                     "type": "string"
+                },
+                "contact": {
+                    "$ref": "#/definitions/model.Contact"
                 },
                 "contact_id": {
                     "type": "integer"
@@ -3127,7 +3696,7 @@
                 "pain_points": {
                     "type": "string"
                 },
-                "possibilities": {
+                "possibilities_id": {
                     "type": "integer"
                 },
                 "process": {
@@ -3157,6 +3726,9 @@
                 "sale_type_id": {
                     "type": "integer"
                 },
+                "salesSources": {
+                    "$ref": "#/definitions/model.SalesSources"
+                },
                 "sales_sources_id": {
                     "type": "integer"
                 },
@@ -3170,6 +3742,28 @@
                     "type": "string"
                 },
                 "whether_established": {
+                    "type": "string"
+                }
+            }
+        },
+        "model.SaleStage": {
+            "type": "object",
+            "properties": {
+                "id": {
+                    "type": "integer"
+                },
+                "name": {
+                    "type": "string"
+                }
+            }
+        },
+        "model.SaleType": {
+            "type": "object",
+            "properties": {
+                "id": {
+                    "type": "integer"
+                },
+                "name": {
                     "type": "string"
                 }
             }
@@ -3575,6 +4169,17 @@
                 }
             }
         },
+        "request.AddPossibility": {
+            "type": "object",
+            "required": [
+                "name"
+            ],
+            "properties": {
+                "name": {
+                    "type": "string"
+                }
+            }
+        },
         "request.AddProvince": {
             "type": "object",
             "properties": {
@@ -3604,37 +4209,19 @@
                 }
             }
         },
-        "request.AddSaleChance": {
+        "request.AddRegularCustomers": {
             "type": "object",
             "required": [
-                "advantages",
-                "budget",
-                "capital_budget",
-                "client_id",
-                "competitors",
-                "contact_id",
-                "currency",
-                "disadvantages",
-                "expected_time",
-                "key_factors",
-                "key_maker",
-                "member_id",
-                "name",
-                "number",
-                "opportunities",
-                "pain_points",
-                "possibilities",
-                "process",
-                "projected_amount",
-                "regular_customers_id",
-                "sale_stage_id",
-                "sale_type_id",
-                "sales_sources_id",
-                "solutions",
-                "status_id",
-                "threats",
-                "whether_established"
+                "name"
             ],
+            "properties": {
+                "name": {
+                    "type": "string"
+                }
+            }
+        },
+        "request.AddSaleChance": {
+            "type": "object",
             "properties": {
                 "advantages": {
                     "type": "string"
@@ -3727,6 +4314,28 @@
                     "type": "string"
                 },
                 "whether_established": {
+                    "type": "string"
+                }
+            }
+        },
+        "request.AddSaleStage": {
+            "type": "object",
+            "required": [
+                "name"
+            ],
+            "properties": {
+                "name": {
+                    "type": "string"
+                }
+            }
+        },
+        "request.AddSaleType": {
+            "type": "object",
+            "required": [
+                "name"
+            ],
+            "properties": {
+                "name": {
                     "type": "string"
                 }
             }
@@ -4493,6 +5102,35 @@
                 }
             }
         },
+        "request.UpdatePossibilities": {
+            "type": "object",
+            "required": [
+                "possibilities"
+            ],
+            "properties": {
+                "possibilities": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/request.UpdatePossibility"
+                    }
+                }
+            }
+        },
+        "request.UpdatePossibility": {
+            "type": "object",
+            "required": [
+                "id",
+                "name"
+            ],
+            "properties": {
+                "id": {
+                    "type": "integer"
+                },
+                "name": {
+                    "type": "string"
+                }
+            }
+        },
         "request.UpdateProvince": {
             "type": "object",
             "properties": {
@@ -4569,37 +5207,39 @@
                 }
             }
         },
+        "request.UpdateRegularCustomers": {
+            "type": "object",
+            "required": [
+                "id",
+                "name"
+            ],
+            "properties": {
+                "id": {
+                    "type": "integer"
+                },
+                "name": {
+                    "type": "string"
+                }
+            }
+        },
+        "request.UpdateRegularCustomersList": {
+            "type": "object",
+            "required": [
+                "regularCustomers"
+            ],
+            "properties": {
+                "regularCustomers": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/request.UpdateRegularCustomers"
+                    }
+                }
+            }
+        },
         "request.UpdateSaleChance": {
             "type": "object",
             "required": [
-                "advantages",
-                "budget",
-                "capital_budget",
-                "client_id",
-                "competitors",
-                "contact_id",
-                "currency",
-                "disadvantages",
-                "expected_time",
-                "id",
-                "key_factors",
-                "key_maker",
-                "member_id",
-                "name",
-                "number",
-                "opportunities",
-                "pain_points",
-                "possibilities",
-                "process",
-                "projected_amount",
-                "regular_customers_id",
-                "sale_stage_id",
-                "sale_type_id",
-                "sales_sources_id",
-                "solutions",
-                "status_id",
-                "threats",
-                "whether_established"
+                "id"
             ],
             "properties": {
                 "advantages": {
@@ -4697,6 +5337,64 @@
                 },
                 "whether_established": {
                     "type": "string"
+                }
+            }
+        },
+        "request.UpdateSaleStage": {
+            "type": "object",
+            "required": [
+                "id",
+                "name"
+            ],
+            "properties": {
+                "id": {
+                    "type": "integer"
+                },
+                "name": {
+                    "type": "string"
+                }
+            }
+        },
+        "request.UpdateSaleStages": {
+            "type": "object",
+            "required": [
+                "sale_stages"
+            ],
+            "properties": {
+                "sale_stages": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/request.UpdateSaleStage"
+                    }
+                }
+            }
+        },
+        "request.UpdateSaleType": {
+            "type": "object",
+            "required": [
+                "id",
+                "name"
+            ],
+            "properties": {
+                "id": {
+                    "type": "integer"
+                },
+                "name": {
+                    "type": "string"
+                }
+            }
+        },
+        "request.UpdateSaleTypes": {
+            "type": "object",
+            "required": [
+                "sale_types"
+            ],
+            "properties": {
+                "sale_types": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/request.UpdateSaleType"
+                    }
                 }
             }
         },
@@ -4850,7 +5548,7 @@
                 "list": {
                     "type": "array",
                     "items": {
-                        "$ref": "#/definitions/model.Contact"
+                        "$ref": "#/definitions/model.ContactDetail"
                     }
                 }
             }
@@ -4939,6 +5637,17 @@
                 }
             }
         },
+        "response.PossibilityResponse": {
+            "type": "object",
+            "properties": {
+                "list": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/model.Possibility"
+                    }
+                }
+            }
+        },
         "response.ProvinceResponse": {
             "type": "object",
             "properties": {
@@ -4961,6 +5670,17 @@
                 }
             }
         },
+        "response.RegularCustomersResponse": {
+            "type": "object",
+            "properties": {
+                "list": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/model.RegularCustomers"
+                    }
+                }
+            }
+        },
         "response.SaleChanceResponse": {
             "type": "object",
             "properties": {
@@ -4972,6 +5692,28 @@
                 }
             }
         },
+        "response.SaleStageResponse": {
+            "type": "object",
+            "properties": {
+                "list": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/model.SaleStage"
+                    }
+                }
+            }
+        },
+        "response.SaleTypeResponse": {
+            "type": "object",
+            "properties": {
+                "list": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/model.SaleType"
+                    }
+                }
+            }
+        },
         "response.SalesLeadsResponse": {
             "type": "object",
             "properties": {

--
Gitblit v1.8.0