fix
wangpengfei
2023-07-18 3cc43f63ba22972cea3d5376c24ac5d546a72cec
docs/docs.go
@@ -54,6 +54,44 @@
                }
            }
        },
        "/api/authority/setMenuAuthority": {
            "post": {
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Authority"
                ],
                "summary": "设置角色菜单",
                "parameters": [
                    {
                        "description": "设置角色资源权限",
                        "name": "data",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.SetAuthorityMenu"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/base/captcha": {
            "post": {
                "produces": [
@@ -194,6 +232,14 @@
                    "City"
                ],
                "summary": "获取城市列表",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "省份ID",
                        "name": "province_id",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
@@ -366,7 +412,7 @@
            }
        },
        "/api/client/update": {
            "post": {
            "put": {
                "produces": [
                    "application/json"
                ],
@@ -1337,6 +1383,37 @@
                }
            }
        },
        "/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/enterpriseNature/add": {
            "post": {
                "produces": [
@@ -1965,6 +2042,11 @@
        },
        "/api/menu/getMenu": {
            "get": {
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
@@ -1972,6 +2054,15 @@
                    "Menu"
                ],
                "summary": "获取菜单树",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Authorization",
                        "name": "Authorization",
                        "in": "header",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
@@ -2406,6 +2497,15 @@
                    "Province"
                ],
                "summary": "获取省份列表",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "国家ID",
                        "name": "country_id",
                        "in": "query",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
@@ -2674,6 +2774,15 @@
                    "Region"
                ],
                "summary": "地区列表",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "城市ID",
                        "name": "city_id",
                        "in": "query",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
@@ -4757,37 +4866,6 @@
                    }
                }
            }
        },
        "/authority/setDataAuthority": {
            "post": {
                "security": [
                    {
                        "ApiKeyAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Authority"
                ],
                "summary": "设置角色资源权限",
                "parameters": [
                    {
                        "description": "设置角色资源权限",
                        "name": "data",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddAuthority"
                        }
                    }
                ],
                "responses": {}
            }
        }
    },
    "definitions": {
@@ -4868,6 +4946,29 @@
                }
            }
        },
        "model.Authority": {
            "type": "object",
            "properties": {
                "authorityName": {
                    "description": "角色名",
                    "type": "string"
                },
                "defaultRouter": {
                    "description": "默认菜单(默认dashboard)",
                    "type": "string"
                },
                "id": {
                    "description": "角色ID",
                    "type": "integer"
                },
                "menus": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Menu"
                    }
                }
            }
        },
        "model.City": {
            "type": "object",
            "properties": {
@@ -4897,14 +4998,26 @@
                "city_id": {
                    "type": "integer"
                },
                "client_level": {
                    "$ref": "#/definitions/model.ClientLevel"
                },
                "client_level_id": {
                    "type": "integer"
                },
                "client_origin": {
                    "$ref": "#/definitions/model.ClientOrigin"
                },
                "client_origin_id": {
                    "type": "integer"
                },
                "client_status": {
                    "$ref": "#/definitions/model.ClientStatus"
                },
                "client_status_id": {
                    "type": "integer"
                },
                "client_type": {
                    "$ref": "#/definitions/model.ClientType"
                },
                "client_type_id": {
                    "type": "integer"
@@ -5278,11 +5391,17 @@
        "model.FollowRecord": {
            "type": "object",
            "properties": {
                "client": {
                    "$ref": "#/definitions/model.Client"
                },
                "client_id": {
                    "type": "integer"
                },
                "client_status_id": {
                    "type": "integer"
                },
                "contact": {
                    "$ref": "#/definitions/model.Contact"
                },
                "contact_id": {
                    "type": "integer"
@@ -6036,6 +6155,13 @@
        "model.User": {
            "type": "object",
            "properties": {
                "authority": {
                    "$ref": "#/definitions/model.Authority"
                },
                "authorityId": {
                    "description": "用户角色ID",
                    "type": "integer"
                },
                "companyName": {
                    "type": "string"
                },
@@ -6103,6 +6229,12 @@
            "properties": {
                "authorityName": {
                    "type": "string"
                },
                "casbinInfos": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/request.CasbinInfo"
                    }
                }
            }
        },
@@ -6898,6 +7030,19 @@
                }
            }
        },
        "request.CasbinInfo": {
            "type": "object",
            "properties": {
                "method": {
                    "description": "方法",
                    "type": "string"
                },
                "path": {
                    "description": "路径",
                    "type": "string"
                }
            }
        },
        "request.ChangePasswordReq": {
            "type": "object",
            "properties": {
@@ -7380,6 +7525,20 @@
                },
                "status": {
                    "type": "integer"
                }
            }
        },
        "request.SetAuthorityMenu": {
            "type": "object",
            "properties": {
                "authorityId": {
                    "type": "integer"
                },
                "menus": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                }
            }
        },
@@ -8741,6 +8900,123 @@
                }
            }
        },
        "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.EnterpriseNatureResponse": {
            "type": "object",
            "properties": {