From 9b6770c4fea190574e3cf03b856d7af1db0e15aa Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期五, 07 七月 2023 14:56:32 +0800
Subject: [PATCH] fix

---
 docs/docs.go |  922 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 921 insertions(+), 1 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index b9fc4b3..f8d51cf 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -1985,6 +1985,363 @@
                 }
             }
         },
+        "/api/saleChance/add": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "SaleChance"
+                ],
+                "summary": "娣诲姞閿�鍞満浼�",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.AddSaleChance"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/saleChance/delete/{id}": {
+            "delete": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "SaleChance"
+                ],
+                "summary": "鍒犻櫎閿�鍞満浼�",
+                "parameters": [
+                    {
+                        "type": "integer",
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/saleChance/list": {
+            "get": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "SaleChance"
+                ],
+                "summary": "鑾峰彇閿�鍞満浼氬垪琛�",
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/contextx.Response"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "$ref": "#/definitions/response.SaleChanceResponse"
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        },
+        "/api/saleChance/update": {
+            "put": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "SaleChance"
+                ],
+                "summary": "鏇存柊閿�鍞満浼�",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "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"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
         "/api/salesLeads/add": {
             "post": {
                 "produces": [
@@ -2478,6 +2835,27 @@
         }
     },
     "definitions": {
+        "constvar.CurrencyType": {
+            "type": "integer",
+            "enum": [
+                1,
+                2,
+                3,
+                4
+            ],
+            "x-enum-comments": {
+                "CurrencyTypeCNY": "浜烘皯甯�",
+                "CurrencyTypeEUR": "娆у厓",
+                "CurrencyTypeGBP": "鑻遍晳",
+                "CurrencyTypeUSD": "缇庡厓"
+            },
+            "x-enum-varnames": [
+                "CurrencyTypeCNY",
+                "CurrencyTypeUSD",
+                "CurrencyTypeEUR",
+                "CurrencyTypeGBP"
+            ]
+        },
         "constvar.SalesStatus": {
             "type": "integer",
             "enum": [
@@ -2602,6 +2980,12 @@
                 "enterprise_scale_id": {
                     "type": "integer"
                 },
+                "follow_record": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/model.FollowRecord"
+                    }
+                },
                 "id": {
                     "type": "integer"
                 },
@@ -2714,6 +3098,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"
                 },
@@ -2731,6 +3180,12 @@
                 },
                 "email": {
                     "type": "string"
+                },
+                "followRecord": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/model.FollowRecord"
+                    }
                 },
                 "id": {
                     "type": "integer"
@@ -2909,6 +3364,150 @@
                 }
             }
         },
+        "model.SaleChance": {
+            "type": "object",
+            "properties": {
+                "advantages": {
+                    "type": "string"
+                },
+                "budget": {
+                    "type": "number"
+                },
+                "capital_budget": {
+                    "type": "string"
+                },
+                "city": {
+                    "$ref": "#/definitions/model.City"
+                },
+                "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"
+                },
+                "country": {
+                    "$ref": "#/definitions/model.Country"
+                },
+                "country_id": {
+                    "type": "integer"
+                },
+                "currency": {
+                    "$ref": "#/definitions/constvar.CurrencyType"
+                },
+                "disadvantages": {
+                    "type": "string"
+                },
+                "expected_time": {
+                    "type": "string"
+                },
+                "id": {
+                    "type": "integer"
+                },
+                "key_factors": {
+                    "type": "string"
+                },
+                "key_maker": {
+                    "type": "string"
+                },
+                "member_id": {
+                    "type": "integer"
+                },
+                "name": {
+                    "type": "string"
+                },
+                "number": {
+                    "type": "string"
+                },
+                "opportunities": {
+                    "type": "string"
+                },
+                "pain_points": {
+                    "type": "string"
+                },
+                "possibilities": {
+                    "type": "integer"
+                },
+                "process": {
+                    "type": "string"
+                },
+                "projected_amount": {
+                    "type": "number"
+                },
+                "province": {
+                    "$ref": "#/definitions/model.Province"
+                },
+                "province_id": {
+                    "type": "integer"
+                },
+                "region": {
+                    "$ref": "#/definitions/model.Region"
+                },
+                "region_id": {
+                    "type": "integer"
+                },
+                "regular_customers_id": {
+                    "type": "integer"
+                },
+                "sale_stage_id": {
+                    "type": "integer"
+                },
+                "sale_type_id": {
+                    "type": "integer"
+                },
+                "salesSources": {
+                    "$ref": "#/definitions/model.SalesSources"
+                },
+                "sales_sources_id": {
+                    "type": "integer"
+                },
+                "solutions": {
+                    "type": "string"
+                },
+                "status_id": {
+                    "type": "integer"
+                },
+                "threats": {
+                    "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"
+                }
+            }
+        },
         "model.SalesLeads": {
             "type": "object",
             "properties": {
@@ -2935,6 +3534,12 @@
                 },
                 "desc": {
                     "type": "string"
+                },
+                "followRecord": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/model.FollowRecord"
+                    }
                 },
                 "id": {
                     "type": "integer"
@@ -3323,6 +3928,126 @@
             }
         },
         "request.AddRegisteredCapital": {
+            "type": "object",
+            "required": [
+                "name"
+            ],
+            "properties": {
+                "name": {
+                    "type": "string"
+                }
+            }
+        },
+        "request.AddSaleChance": {
+            "type": "object",
+            "properties": {
+                "advantages": {
+                    "type": "string"
+                },
+                "budget": {
+                    "type": "number"
+                },
+                "capital_budget": {
+                    "type": "string"
+                },
+                "city_id": {
+                    "type": "integer"
+                },
+                "client_id": {
+                    "type": "integer"
+                },
+                "competitors": {
+                    "type": "string"
+                },
+                "contact_id": {
+                    "type": "integer"
+                },
+                "country_id": {
+                    "type": "integer"
+                },
+                "currency": {
+                    "type": "integer"
+                },
+                "disadvantages": {
+                    "type": "string"
+                },
+                "expected_time": {
+                    "type": "string"
+                },
+                "key_factors": {
+                    "type": "string"
+                },
+                "key_maker": {
+                    "type": "string"
+                },
+                "member_id": {
+                    "type": "integer"
+                },
+                "name": {
+                    "type": "string"
+                },
+                "number": {
+                    "type": "string"
+                },
+                "opportunities": {
+                    "type": "string"
+                },
+                "pain_points": {
+                    "type": "string"
+                },
+                "possibilities": {
+                    "type": "integer"
+                },
+                "process": {
+                    "type": "string"
+                },
+                "projected_amount": {
+                    "type": "number"
+                },
+                "province_id": {
+                    "type": "integer"
+                },
+                "region_id": {
+                    "type": "integer"
+                },
+                "regular_customers_id": {
+                    "type": "integer"
+                },
+                "sale_stage_id": {
+                    "type": "integer"
+                },
+                "sale_type_id": {
+                    "type": "integer"
+                },
+                "sales_sources_id": {
+                    "type": "integer"
+                },
+                "solutions": {
+                    "type": "string"
+                },
+                "status_id": {
+                    "type": "integer"
+                },
+                "threats": {
+                    "type": "string"
+                },
+                "whether_established": {
+                    "type": "string"
+                }
+            }
+        },
+        "request.AddSaleStage": {
+            "type": "object",
+            "required": [
+                "name"
+            ],
+            "properties": {
+                "name": {
+                    "type": "string"
+                }
+            }
+        },
+        "request.AddSaleType": {
             "type": "object",
             "required": [
                 "name"
@@ -4171,6 +4896,168 @@
                 }
             }
         },
+        "request.UpdateSaleChance": {
+            "type": "object",
+            "required": [
+                "id"
+            ],
+            "properties": {
+                "advantages": {
+                    "type": "string"
+                },
+                "budget": {
+                    "type": "number"
+                },
+                "capital_budget": {
+                    "type": "string"
+                },
+                "city_id": {
+                    "type": "integer"
+                },
+                "client_id": {
+                    "type": "integer"
+                },
+                "competitors": {
+                    "type": "string"
+                },
+                "contact_id": {
+                    "type": "integer"
+                },
+                "country_id": {
+                    "type": "integer"
+                },
+                "currency": {
+                    "type": "integer"
+                },
+                "disadvantages": {
+                    "type": "string"
+                },
+                "expected_time": {
+                    "type": "string"
+                },
+                "id": {
+                    "type": "integer"
+                },
+                "key_factors": {
+                    "type": "string"
+                },
+                "key_maker": {
+                    "type": "string"
+                },
+                "member_id": {
+                    "type": "integer"
+                },
+                "name": {
+                    "type": "string"
+                },
+                "number": {
+                    "type": "string"
+                },
+                "opportunities": {
+                    "type": "string"
+                },
+                "pain_points": {
+                    "type": "string"
+                },
+                "possibilities": {
+                    "type": "integer"
+                },
+                "process": {
+                    "type": "string"
+                },
+                "projected_amount": {
+                    "type": "number"
+                },
+                "province_id": {
+                    "type": "integer"
+                },
+                "region_id": {
+                    "type": "integer"
+                },
+                "regular_customers_id": {
+                    "type": "integer"
+                },
+                "sale_stage_id": {
+                    "type": "integer"
+                },
+                "sale_type_id": {
+                    "type": "integer"
+                },
+                "sales_sources_id": {
+                    "type": "integer"
+                },
+                "solutions": {
+                    "type": "string"
+                },
+                "status_id": {
+                    "type": "integer"
+                },
+                "threats": {
+                    "type": "string"
+                },
+                "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"
+                    }
+                }
+            }
+        },
         "request.UpdateSalesLeads": {
             "type": "object",
             "properties": {
@@ -4321,7 +5208,7 @@
                 "list": {
                     "type": "array",
                     "items": {
-                        "$ref": "#/definitions/model.Contact"
+                        "$ref": "#/definitions/model.ContactDetail"
                     }
                 }
             }
@@ -4432,6 +5319,39 @@
                 }
             }
         },
+        "response.SaleChanceResponse": {
+            "type": "object",
+            "properties": {
+                "list": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/model.SaleChance"
+                    }
+                }
+            }
+        },
+        "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