add
wangpengfei
2023-07-18 5fac03fb857cf9a160e1736a25de2c5f95f5e44f
docs/docs.go
@@ -236,7 +236,7 @@
                    {
                        "type": "integer",
                        "description": "省份ID",
                        "name": "provinceId",
                        "name": "province_id",
                        "in": "query"
                    }
                ],
@@ -412,7 +412,7 @@
            }
        },
        "/api/client/update": {
            "post": {
            "put": {
                "produces": [
                    "application/json"
                ],
@@ -1370,6 +1370,156 @@
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateCustomerServiceSheet"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/data/getAllData": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Data"
                ],
                "summary": "获取所有数据",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/contextx.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/response.DataResponse"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/department/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Department"
                ],
                "summary": "添加部门",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddDepartment"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/department/delete/{id}": {
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Department"
                ],
                "summary": "删除部门",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "部门ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/department/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Department"
                ],
                "summary": "部门列表",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/contextx.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/response.DepartmentResponse"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/department/update/{id}": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Department"
                ],
                "summary": "更新部门",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateDepartmentList"
                        }
                    }
                ],
@@ -2466,6 +2616,15 @@
                    "Province"
                ],
                "summary": "获取省份列表",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "国家ID",
                        "name": "country_id",
                        "in": "query",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
@@ -2734,6 +2893,15 @@
                    "Region"
                ],
                "summary": "地区列表",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "城市ID",
                        "name": "city_id",
                        "in": "query",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
@@ -5317,6 +5485,17 @@
                }
            }
        },
        "model.Department": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "model.EnterpriseNature": {
            "type": "object",
            "properties": {
@@ -6113,26 +6292,16 @@
                    "description": "用户角色ID",
                    "type": "integer"
                },
                "companyName": {
                    "type": "string"
                },
                "createAt": {
                    "description": "创建时间",
                    "type": "string"
                "departmentId": {
                    "type": "integer"
                },
                "email": {
                    "type": "string"
                },
                "enable": {
                    "type": "boolean"
                },
                "headerImg": {
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "ip": {
                    "type": "string"
                },
                "menuIds": {
@@ -6145,26 +6314,13 @@
                "nickName": {
                    "type": "string"
                },
                "parentId": {
                    "type": "string"
                },
                "parentName": {
                    "type": "string"
                },
                "phone": {
                    "type": "string"
                },
                "port": {
                    "type": "string"
                },
                "pos": {
                    "type": "string"
                },
                "status": {
                    "type": "integer"
                },
                "updateAt": {
                    "description": "更新时间",
                "realName": {
                    "type": "string"
                },
                "userType": {
@@ -6445,6 +6601,17 @@
                },
                "serviceMode": {
                    "type": "integer"
                }
            }
        },
        "request.AddDepartment": {
            "type": "object",
            "required": [
                "name"
            ],
            "properties": {
                "name": {
                    "type": "string"
                }
            }
        },
@@ -7336,29 +7503,46 @@
        "request.Register": {
            "type": "object",
            "properties": {
                "authorityId": {
                    "description": "用户角色ID",
                    "type": "integer"
                },
                "departmentId": {
                    "type": "integer"
                },
                "email": {
                    "type": "string",
                    "example": "电子邮箱"
                    "type": "string"
                },
                "headerImg": {
                    "type": "string",
                    "example": "头像链接"
                    "type": "string"
                },
                "id": {
                    "type": "string"
                },
                "nickName": {
                    "type": "string",
                    "example": "昵称"
                    "type": "string"
                },
                "passWord": {
                    "type": "string",
                    "example": "密码"
                "password": {
                    "type": "string"
                },
                "phone": {
                    "type": "string",
                    "example": "电话号码"
                    "type": "string"
                },
                "userName": {
                    "type": "string",
                    "example": "用户名"
                "pos": {
                    "type": "string"
                },
                "rePassword": {
                    "description": "确认密码",
                    "type": "string"
                },
                "realName": {
                    "type": "string"
                },
                "userType": {
                    "$ref": "#/definitions/constvar.UserType"
                },
                "username": {
                    "type": "string"
                }
            }
        },
@@ -7929,6 +8113,35 @@
                },
                "serviceMode": {
                    "type": "integer"
                }
            }
        },
        "request.UpdateDepartment": {
            "type": "object",
            "required": [
                "id",
                "name"
            ],
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.UpdateDepartmentList": {
            "type": "object",
            "required": [
                "departments"
            ],
            "properties": {
                "departments": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/request.UpdateDepartment"
                    }
                }
            }
        },
@@ -8851,6 +9064,134 @@
                }
            }
        },
        "response.DataResponse": {
            "type": "object",
            "properties": {
                "city": {
                    "description": "城市数据",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.City"
                    }
                },
                "client_level": {
                    "description": "客户等级",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.ClientLevel"
                    }
                },
                "client_origin": {
                    "description": "客户来源",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.ClientOrigin"
                    }
                },
                "client_status": {
                    "description": "客户状态",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.ClientStatus"
                    }
                },
                "client_type": {
                    "description": "客户类型",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.ClientType"
                    }
                },
                "country": {
                    "description": "国家数据",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Country"
                    }
                },
                "enterprise_nature": {
                    "description": "企业性质",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.EnterpriseNature"
                    }
                },
                "enterprise_scale": {
                    "description": "企业规模",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.EnterpriseScale"
                    }
                },
                "industry": {
                    "description": "行业",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Industry"
                    }
                },
                "province": {
                    "description": "省份数据",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Province"
                    }
                },
                "region": {
                    "description": "区域数据",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Region"
                    }
                },
                "registered_capital": {
                    "description": "注册资金",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.RegisteredCapital"
                    }
                },
                "regular_customers": {
                    "description": "老客户营销",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.RegularCustomers"
                    }
                },
                "sale_stage": {
                    "description": "销售阶段",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.SaleStage"
                    }
                },
                "sale_type": {
                    "description": "销售类型",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.SaleType"
                    }
                },
                "sales_source": {
                    "description": "商机来源",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.SalesSources"
                    }
                }
            }
        },
        "response.DepartmentResponse": {
            "type": "object",
            "properties": {
                "list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Department"
                    }
                }
            }
        },
        "response.EnterpriseNatureResponse": {
            "type": "object",
            "properties": {