// Code generated by swaggo/swag. DO NOT EDIT. package docs import "github.com/swaggo/swag" const docTemplate = `{ "schemes": {{ marshal .Schemes }}, "swagger": "2.0", "info": { "description": "{{escape .Description}}", "title": "{{.Title}}", "contact": {}, "version": "{{.Version}}" }, "host": "{{.Host}}", "basePath": "{{.BasePath}}", "paths": { "/api/base/captcha": { "post": { "produces": [ "application/json" ], "tags": [ "Base" ], "summary": "获取验证码", "responses": { "200": { "description": "成功", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.LoginResponse" } } } ] } } } } }, "/api/base/login": { "post": { "produces": [ "application/json" ], "tags": [ "Base" ], "summary": "用户登录", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.Login" } } ], "responses": { "200": { "description": "成功", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.LoginResponse" } } } ] } } } } }, "/api/city/add": { "post": { "produces": [ "application/json" ], "tags": [ "City" ], "summary": "添加城市", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddCity" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/city/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "City" ], "summary": "删除城市", "parameters": [ { "type": "integer", "description": "城市ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/city/list": { "get": { "produces": [ "application/json" ], "tags": [ "City" ], "summary": "获取城市列表", "responses": { "200": { "description": "成功", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.CityResponse" } } } ] } } } } }, "/api/city/set": { "put": { "produces": [ "application/json" ], "tags": [ "City" ], "summary": "设置城市", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.SetCity" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/city/update": { "put": { "produces": [ "application/json" ], "tags": [ "City" ], "summary": "更新城市", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateCities" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/client/add": { "post": { "produces": [ "application/json" ], "tags": [ "Client" ], "summary": "添加客户", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddClient" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/client/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "Client" ], "summary": "删除客户", "parameters": [ { "type": "integer", "description": "客户ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/client/list": { "get": { "produces": [ "application/json" ], "tags": [ "Client" ], "summary": "获取客户列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.ClientResponse" } } } ] } } } } }, "/api/client/update": { "post": { "produces": [ "application/json" ], "tags": [ "Client" ], "summary": "更新客户", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateClient" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/clientLevel/add": { "post": { "produces": [ "application/json" ], "tags": [ "ClientLevel" ], "summary": "添加客户类型", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddClientType" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/clientLevel/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "ClientLevel" ], "summary": "删除客户类型", "parameters": [ { "type": "integer", "description": "客户类型ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/clientLevel/list": { "get": { "produces": [ "application/json" ], "tags": [ "ClientLevel" ], "summary": "客户类型列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.ClientLevelResponse" } } } ] } } } } }, "/api/clientLevel/update": { "put": { "produces": [ "application/json" ], "tags": [ "ClientLevel" ], "summary": "更新客户类型", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateClientLevelList" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/clientOrigin/add": { "post": { "produces": [ "application/json" ], "tags": [ "ClientOrigin" ], "summary": "添加客户来源", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddClientOrigin" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/clientOrigin/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "ClientOrigin" ], "summary": "删除客户来源", "parameters": [ { "type": "integer", "description": "客户来源ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/clientOrigin/list": { "get": { "produces": [ "application/json" ], "tags": [ "ClientOrigin" ], "summary": "获取客户来源列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.ClientOriginResponse" } } } ] } } } } }, "/api/clientOrigin/update": { "put": { "produces": [ "application/json" ], "tags": [ "ClientOrigin" ], "summary": "更新客户来源", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateClientOriginList" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/clientStatus/add": { "post": { "produces": [ "application/json" ], "tags": [ "ClientStatus" ], "summary": "添加客户状态", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddClientStatus" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/clientStatus/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "ClientStatus" ], "summary": "删除客户状态", "parameters": [ { "type": "integer", "description": "客户状态ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/clientStatus/list": { "get": { "produces": [ "application/json" ], "tags": [ "ClientStatus" ], "summary": "获取客户状态列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.ClientStatusResponse" } } } ] } } } } }, "/api/clientStatus/update": { "put": { "produces": [ "application/json" ], "tags": [ "ClientStatus" ], "summary": "更新客户状态", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateClientStatuses" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/clientType/add": { "post": { "produces": [ "application/json" ], "tags": [ "ClientType" ], "summary": "添加客户类型", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddClientType" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/clientType/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "ClientType" ], "summary": "删除客户类型", "parameters": [ { "type": "integer", "description": "客户类型ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/clientType/list": { "get": { "produces": [ "application/json" ], "tags": [ "ClientType" ], "summary": "获取客户类型列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.ClientTypeResponse" } } } ] } } } } }, "/api/clientType/update": { "put": { "produces": [ "application/json" ], "tags": [ "ClientType" ], "summary": "更新客户类型", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateClientTypes" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/contact/add": { "post": { "produces": [ "application/json" ], "tags": [ "Contact" ], "summary": "添加联系人", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddContact" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/contact/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "Contact" ], "summary": "删除联系人", "parameters": [ { "type": "integer", "description": "查询参数", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/contact/list": { "get": { "produces": [ "application/json" ], "tags": [ "Contact" ], "summary": "联系人列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.ContactResponse" } } } ] } } } } }, "/api/contact/update": { "put": { "produces": [ "application/json" ], "tags": [ "Contact" ], "summary": "更新联系人", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateContact" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/country/add": { "post": { "produces": [ "application/json" ], "tags": [ "Country" ], "summary": "添加国家", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddCountry" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/country/delete": { "delete": { "produces": [ "application/json" ], "tags": [ "Country" ], "summary": "删除国家", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.DeleteCountry" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/country/list": { "get": { "produces": [ "application/json" ], "tags": [ "Country" ], "summary": "获取国家列表", "responses": { "200": { "description": "成功", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.CountryResponse" } } } ] } } } } }, "/api/country/update": { "put": { "produces": [ "application/json" ], "tags": [ "Country" ], "summary": "更新国家", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateCountry" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/enterpriseNature/add": { "post": { "produces": [ "application/json" ], "tags": [ "EnterpriseNature" ], "summary": "添加企业性质", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddEnterpriseNature" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/enterpriseNature/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "EnterpriseNature" ], "summary": "删除企业性质", "parameters": [ { "type": "integer", "description": "企业性质ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/enterpriseNature/list": { "get": { "produces": [ "application/json" ], "tags": [ "EnterpriseNature" ], "summary": "企业性质列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.EnterpriseNatureResponse" } } } ] } } } } }, "/api/enterpriseNature/update": { "put": { "produces": [ "application/json" ], "tags": [ "EnterpriseNature" ], "summary": "更新企业性质", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateEnterpriseNatures" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/enterpriseScale/add": { "post": { "produces": [ "application/json" ], "tags": [ "EnterpriseScale" ], "summary": "添加企业规模", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddEnterpriseScale" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/enterpriseScale/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "EnterpriseScale" ], "summary": "删除企业规模", "parameters": [ { "type": "integer", "description": "企业规模ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/enterpriseScale/list": { "get": { "produces": [ "application/json" ], "tags": [ "EnterpriseScale" ], "summary": "企业规模列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.EnterpriseScaleResponse" } } } ] } } } } }, "/api/enterpriseScale/update": { "put": { "produces": [ "application/json" ], "tags": [ "EnterpriseScale" ], "summary": "更新企业规模", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateEnterpriseScales" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/followRecord/add": { "post": { "produces": [ "application/json" ], "tags": [ "FollowRecord" ], "summary": "添加跟进记录", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddFollowRecord" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/followRecord/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "FollowRecord" ], "summary": "删除跟进记录", "parameters": [ { "type": "string", "description": "跟进记录id", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/followRecord/list": { "get": { "produces": [ "application/json" ], "tags": [ "FollowRecord" ], "summary": "获取跟进记录列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.FollowRecordResponse" } } } ] } } } } }, "/api/followRecord/update": { "put": { "produces": [ "application/json" ], "tags": [ "FollowRecord" ], "summary": "更新跟进记录", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateFollowRecord" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/image/upload": { "post": { "produces": [ "application/json" ], "tags": [ "Image" ], "summary": "上传图像", "responses": { "200": { "description": "成功", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.LoginResponse" } } } ] } } } } }, "/api/industry/add": { "post": { "produces": [ "application/json" ], "tags": [ "Industry" ], "summary": "添加行业", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddIndustry" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/industry/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "Industry" ], "summary": "删除行业", "parameters": [ { "type": "integer", "description": "行业ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/industry/list": { "get": { "produces": [ "application/json" ], "tags": [ "Industry" ], "summary": "行业列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.IndustryResponse" } } } ] } } } } }, "/api/industry/update": { "put": { "produces": [ "application/json" ], "tags": [ "Industry" ], "summary": "更新行业", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateIndustries" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/province/add": { "post": { "produces": [ "application/json" ], "tags": [ "Province" ], "summary": "添加省份", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddProvince" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/province/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "Province" ], "summary": "删除省份", "parameters": [ { "type": "integer", "description": "省份ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/province/list": { "get": { "produces": [ "application/json" ], "tags": [ "Province" ], "summary": "获取省份列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.ProvinceResponse" } } } ] } } } } }, "/api/province/set": { "put": { "produces": [ "application/json" ], "tags": [ "Province" ], "summary": "设置省份", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.SetProvinces" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/province/update": { "put": { "produces": [ "application/json" ], "tags": [ "Province" ], "summary": "更新省份", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateProvinces" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/region/add": { "post": { "produces": [ "application/json" ], "tags": [ "Region" ], "summary": "添加地区", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddRegion" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/region/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "Region" ], "summary": "删除地区", "parameters": [ { "type": "integer", "description": "地区ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/region/list": { "get": { "produces": [ "application/json" ], "tags": [ "Region" ], "summary": "地区列表", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/region/set": { "put": { "produces": [ "application/json" ], "tags": [ "Region" ], "summary": "设置地区", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.SetRegions" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/region/update": { "put": { "produces": [ "application/json" ], "tags": [ "Region" ], "summary": "更新地区", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateRegions" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/registeredCapital/add": { "post": { "produces": [ "application/json" ], "tags": [ "RegisteredCapital" ], "summary": "添加注册资本", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddRegisteredCapital" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/registeredCapital/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "RegisteredCapital" ], "summary": "删除注册资本", "parameters": [ { "type": "integer", "description": "注册资本ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/registeredCapital/list": { "get": { "produces": [ "application/json" ], "tags": [ "RegisteredCapital" ], "summary": "获取注册资本列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.RegisteredCapitalResponse" } } } ] } } } } }, "/api/registeredCapital/update": { "put": { "produces": [ "application/json" ], "tags": [ "RegisteredCapital" ], "summary": "更新注册资本", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateRegisteredCapitals" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/salesLeads/add": { "post": { "produces": [ "application/json" ], "tags": [ "SalesLeads" ], "summary": "添加销售线索", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddSalesLeads" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/salesLeads/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "SalesLeads" ], "summary": "删除销售线索", "parameters": [ { "type": "integer", "description": "查询参数", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/salesLeads/list": { "get": { "produces": [ "application/json" ], "tags": [ "SalesLeads" ], "summary": "获取销售线索列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.SalesLeadsResponse" } } } ] } } } } }, "/api/salesLeads/update": { "put": { "produces": [ "application/json" ], "tags": [ "SalesLeads" ], "summary": "更新销售线索", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateSalesLeads" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/salesSources/add": { "post": { "produces": [ "application/json" ], "tags": [ "SalesSources" ], "summary": "添加商机来源", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddSalesSources" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/salesSources/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "SalesSources" ], "summary": "删除商机来源", "parameters": [ { "type": "integer", "description": "商机来源ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/salesSources/list": { "get": { "produces": [ "application/json" ], "tags": [ "SalesSources" ], "summary": "商机来源列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.SalesSourceResponse" } } } ] } } } } }, "/api/salesSources/update": { "put": { "produces": [ "application/json" ], "tags": [ "SalesSources" ], "summary": "更新商机来源", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateSalesSourcesList" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/user/changePassword": { "post": { "produces": [ "application/json" ], "tags": [ "User" ], "summary": "用户修改密码", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.ChangePasswordReq" } } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/user/deleteUser": { "delete": { "produces": [ "application/json" ], "tags": [ "User" ], "summary": "删除用户", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.DeleteUserReq" } } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/user/getUserInfo": { "post": { "produces": [ "application/json" ], "tags": [ "User" ], "summary": "获取自身信息", "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/user/getUserList": { "post": { "produces": [ "application/json" ], "tags": [ "User" ], "summary": "分页获取用户列表(不传分页参数,获取全部)", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.GetUserList" } } ], "responses": { "200": { "description": "成功", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.PageResult" } } } ] } } } } }, "/api/user/register": { "post": { "produces": [ "application/json" ], "tags": [ "User" ], "summary": "注册账号", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.Register" } } ], "responses": { "200": { "description": "成功", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.UserResponse" } } } ] } } } } }, "/api/user/resetPassword": { "post": { "produces": [ "application/json" ], "tags": [ "User" ], "summary": "重置用户密码", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/model.User" } } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/user/setSelfInfo": { "post": { "produces": [ "application/json" ], "tags": [ "User" ], "summary": "设置用户信息", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.ChangeUserInfo" } } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/user/setUserInfo": { "post": { "produces": [ "application/json" ], "tags": [ "User" ], "summary": "设置用户信息", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.ChangeUserInfo" } } ], "responses": { "200": { "description": "成功", "schema": { "$ref": "#/definitions/contextx.Response" } } } } } }, "definitions": { "constvar.SalesStatus": { "type": "integer", "enum": [ 1, 2, 3, 4, 5, 6 ], "x-enum-comments": { "SalesStatusFail": "失败", "SalesStatusIng": "进行中", "SalesStatusLevelUptoClient": "升级为客户", "SalesStatusLevelUptoClientAndSalesChance": "升级为客户并且有销售机会", "SalesStatusSuccess": "成功" }, "x-enum-varnames": [ "SalesStatusNew", "SalesStatusIng", "SalesStatusSuccess", "SalesStatusFail", "SalesStatusLevelUptoClient", "SalesStatusLevelUptoClientAndSalesChance" ] }, "constvar.UserType": { "type": "integer", "enum": [ 1, 2, 3 ], "x-enum-comments": { "UserTypePrimary": "主账户", "UserTypeSub": "子账户", "UserTypeSuper": "超级管理员" }, "x-enum-varnames": [ "UserTypeSuper", "UserTypePrimary", "UserTypeSub" ] }, "contextx.Response": { "type": "object", "properties": { "code": { "type": "integer" }, "data": {}, "msg": { "type": "string" } } }, "model.City": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" }, "regions": { "type": "array", "items": { "$ref": "#/definitions/model.Region" } } } }, "model.Client": { "type": "object", "properties": { "business_scope": { "type": "string" }, "city": { "$ref": "#/definitions/model.City" }, "city_id": { "type": "integer" }, "client_level_id": { "type": "integer" }, "client_origin_id": { "type": "integer" }, "client_status_id": { "type": "integer" }, "client_type_id": { "type": "integer" }, "contacts": { "type": "array", "items": { "$ref": "#/definitions/model.Contact" } }, "country": { "$ref": "#/definitions/model.Country" }, "country_id": { "type": "integer" }, "detail_address": { "type": "string" }, "enterpriseNature": { "$ref": "#/definitions/model.EnterpriseNature" }, "enterpriseScale": { "$ref": "#/definitions/model.EnterpriseScale" }, "enterprise_nature_id": { "type": "integer" }, "enterprise_scale_id": { "type": "integer" }, "id": { "type": "integer" }, "industry": { "$ref": "#/definitions/model.Industry" }, "industry_id": { "type": "integer" }, "latest_service_time": { "type": "string" }, "member_id": { "type": "integer" }, "name": { "type": "string" }, "next_visit_time": { "type": "string" }, "number": { "type": "string" }, "province": { "$ref": "#/definitions/model.Province" }, "province_id": { "type": "integer" }, "region": { "$ref": "#/definitions/model.Region" }, "region_id": { "type": "integer" }, "registeredCapital": { "$ref": "#/definitions/model.RegisteredCapital" }, "registered_capital_id": { "type": "integer" }, "registration_time": { "type": "string" }, "remark": { "type": "string" }, "representative": { "type": "string" }, "service_member_id": { "type": "integer" } } }, "model.ClientLevel": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "model.ClientOrigin": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "model.ClientStatus": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "model.ClientType": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "model.Contact": { "type": "object", "properties": { "birthday": { "type": "string" }, "city": { "$ref": "#/definitions/model.City" }, "city_id": { "type": "integer" }, "client": { "$ref": "#/definitions/model.Client" }, "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.Country": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" }, "province": { "type": "array", "items": { "$ref": "#/definitions/model.Province" } } } }, "model.EnterpriseNature": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "model.EnterpriseScale": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "model.FollowRecord": { "type": "object", "properties": { "client_id": { "type": "integer" }, "client_status_id": { "type": "integer" }, "contact_id": { "type": "integer" }, "contact_information_id": { "type": "integer" }, "content": { "type": "string" }, "follow_time": { "type": "string" }, "id": { "type": "integer" }, "member_id": { "type": "integer" }, "next_follow_time": { "type": "string" }, "number": { "type": "string" }, "purpose": { "type": "string" }, "record": { "type": "string" }, "sale_chance_id": { "type": "integer" }, "sales_leads_id": { "type": "integer" }, "topic": { "type": "string" } } }, "model.Industry": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "model.Province": { "type": "object", "properties": { "cities": { "type": "array", "items": { "$ref": "#/definitions/model.City" } }, "id": { "type": "integer" }, "name": { "type": "string" } } }, "model.Region": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "model.RegisteredCapital": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "model.SalesLeads": { "type": "object", "properties": { "city": { "$ref": "#/definitions/model.City" }, "city_id": { "type": "integer" }, "contact_name": { "type": "string" }, "contact_phone": { "type": "string" }, "contact_position": { "type": "string" }, "country": { "$ref": "#/definitions/model.Country" }, "country_id": { "type": "integer" }, "desc": { "type": "string" }, "id": { "type": "integer" }, "member_id": { "type": "integer" }, "name": { "type": "string" }, "number": { "type": "string" }, "province": { "$ref": "#/definitions/model.Province" }, "province_id": { "type": "integer" }, "region": { "$ref": "#/definitions/model.Region" }, "region_id": { "type": "integer" }, "sales_sources_id": { "type": "integer" }, "sales_status": { "$ref": "#/definitions/constvar.SalesStatus" } } }, "model.SalesSources": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "model.User": { "type": "object", "properties": { "companyName": { "type": "string" }, "createAt": { "description": "创建时间", "type": "string" }, "email": { "type": "string" }, "enable": { "type": "boolean" }, "headerImg": { "type": "string" }, "id": { "type": "string" }, "ip": { "type": "string" }, "menuIds": { "description": "菜单ID列表", "type": "array", "items": { "type": "integer" } }, "nickName": { "type": "string" }, "parentId": { "type": "string" }, "parentName": { "type": "string" }, "phone": { "type": "string" }, "port": { "type": "string" }, "pos": { "type": "string" }, "status": { "type": "integer" }, "updateAt": { "description": "更新时间", "type": "string" }, "userType": { "$ref": "#/definitions/constvar.UserType" }, "username": { "type": "string" } } }, "request.AddCity": { "type": "object", "properties": { "name": { "description": "城市名称", "type": "array", "items": { "type": "string" } } } }, "request.AddClient": { "type": "object", "properties": { "business_scope": { "description": "经营范围", "type": "string" }, "city_id": { "type": "integer" }, "client_level_id": { "description": "客户等级ID", "type": "integer" }, "client_origin_id": { "description": "客户来源ID", "type": "integer" }, "client_status_id": { "description": "客户状态ID", "type": "integer" }, "client_type_id": { "description": "客户类型ID", "type": "integer" }, "contact": { "$ref": "#/definitions/request.Contact" }, "country_id": { "type": "integer" }, "detail_address": { "description": "详细地址", "type": "string" }, "enterprise_nature_id": { "description": "企业性质", "type": "integer" }, "enterprise_scale_id": { "description": "企业规模", "type": "integer" }, "industry_id": { "description": "所属行业", "type": "integer" }, "latest_service_time": { "description": "最晚服务时间", "type": "string" }, "member_id": { "description": "销售负责人ID", "type": "integer" }, "name": { "description": "公司名称", "type": "string" }, "next_visit_time": { "description": "下次回访时间", "type": "string" }, "number": { "description": "公司编号", "type": "string" }, "province_id": { "type": "integer" }, "region_id": { "type": "integer" }, "registered_capital_id": { "description": "注册资金", "type": "integer" }, "registration_time": { "description": "注册时间", "type": "string" }, "remark": { "description": "备注", "type": "string" }, "representative": { "description": "法人代表", "type": "string" }, "service_member_id": { "description": "服务负责人ID", "type": "integer" } } }, "request.AddClientOrigin": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string" } } }, "request.AddClientStatus": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string" } } }, "request.AddClientType": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string" } } }, "request.AddContact": { "type": "object", "properties": { "birthday": { "description": "生日", "type": "string", "example": "1970-01-01 08:00:00" }, "city_id": { "description": "城市ID", "type": "integer" }, "client_id": { "description": "所属公司ID", "type": "integer" }, "country_id": { "description": "国家ID", "type": "integer" }, "desc": { "description": "备注", "type": "string" }, "email": { "description": "邮箱", "type": "string" }, "is_first": { "description": "是否首要联系人", "type": "boolean" }, "member_id": { "description": "所属成员ID", "type": "integer" }, "name": { "description": "联系人名称", "type": "string" }, "number": { "description": "联系人编号", "type": "string" }, "phone": { "description": "手机号", "type": "string" }, "position": { "description": "职位", "type": "string" }, "province_id": { "description": "省份ID", "type": "integer" }, "region_id": { "description": "区域ID", "type": "integer" }, "wechat": { "description": "微信号", "type": "string" } } }, "request.AddCountry": { "type": "object", "properties": { "name": { "description": "国家名称", "type": "string" } } }, "request.AddEnterpriseNature": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string" } } }, "request.AddEnterpriseScale": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string" } } }, "request.AddFollowRecord": { "type": "object", "required": [ "follow_record" ], "properties": { "follow_record": { "$ref": "#/definitions/request.FollowRecord" } } }, "request.AddIndustry": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string" } } }, "request.AddProvince": { "type": "object", "properties": { "name": { "description": "省份名称", "type": "string" } } }, "request.AddRegion": { "type": "object", "properties": { "name": { "description": "地区名称", "type": "string" } } }, "request.AddRegisteredCapital": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string" } } }, "request.AddSalesLeads": { "type": "object", "properties": { "city_id": { "type": "integer" }, "contact_name": { "description": "联系人姓名", "type": "string" }, "contact_phone": { "description": "联系人电话", "type": "string" }, "contact_position": { "description": "联系人职位", "type": "string" }, "country_id": { "type": "integer" }, "desc": { "description": "备注", "type": "string" }, "member_id": { "description": "销售负责人ID", "type": "integer" }, "name": { "description": "公司名称", "type": "string" }, "number": { "description": "销售线索编号", "type": "string" }, "province_id": { "type": "integer" }, "region_id": { "type": "integer" }, "sales_sources_id": { "description": "商机来源ID", "type": "integer" } } }, "request.AddSalesSources": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string" } } }, "request.ChangePasswordReq": { "type": "object", "properties": { "newPassword": { "description": "新密码", "type": "string" }, "password": { "description": "密码", "type": "string" } } }, "request.ChangeUserInfo": { "type": "object", "properties": { "email": { "description": "用户邮箱", "type": "string" }, "headerImg": { "description": "用户头像", "type": "string" }, "id": { "description": "用户ID", "type": "string" }, "nickName": { "description": "用户昵称", "type": "string" }, "phone": { "description": "用户手机号", "type": "string" }, "pos": { "description": "用户岗位", "type": "string" } } }, "request.Contact": { "type": "object", "properties": { "birthday": { "description": "生日", "type": "string", "example": "1970-01-01 08:00:00" }, "city_id": { "description": "城市ID", "type": "integer" }, "client_id": { "description": "所属公司ID", "type": "integer" }, "country_id": { "description": "国家ID", "type": "integer" }, "desc": { "description": "备注", "type": "string" }, "email": { "description": "邮箱", "type": "string" }, "is_first": { "description": "是否首要联系人", "type": "boolean" }, "member_id": { "description": "所属成员ID", "type": "integer" }, "name": { "description": "联系人名称", "type": "string" }, "number": { "description": "联系人编号", "type": "string" }, "phone": { "description": "手机号", "type": "string" }, "position": { "description": "职位", "type": "string" }, "province_id": { "description": "省份ID", "type": "integer" }, "region_id": { "description": "区域ID", "type": "integer" }, "wechat": { "description": "微信号", "type": "string" } } }, "request.DeleteCountry": { "type": "object", "properties": { "id": { "description": "国家ID", "type": "integer" } } }, "request.DeleteUserReq": { "type": "object", "properties": { "userId": { "description": "用户ID", "type": "string" } } }, "request.FollowRecord": { "type": "object", "properties": { "client_id": { "type": "integer" }, "client_status_id": { "type": "integer" }, "contact_id": { "type": "integer" }, "contact_information_id": { "type": "integer" }, "content": { "type": "string" }, "follow_time": { "type": "string" }, "member_id": { "type": "integer" }, "next_follow_time": { "type": "string" }, "number": { "type": "string" }, "purpose": { "type": "string" }, "record": { "type": "string" }, "sale_chance_id": { "type": "integer" }, "sales_leads_id": { "type": "integer" }, "topic": { "type": "string" } } }, "request.GetUserList": { "type": "object", "properties": { "keyword": { "description": "模糊查询关键字", "type": "string" }, "page": { "description": "页码", "type": "integer" }, "pageSize": { "description": "每页大小", "type": "integer" } } }, "request.Login": { "type": "object", "properties": { "captcha": { "description": "验证码", "type": "string" }, "captchaId": { "description": "验证码ID", "type": "string" }, "password": { "description": "密码", "type": "string" }, "username": { "description": "用户名", "type": "string" } } }, "request.Register": { "type": "object", "properties": { "email": { "type": "string", "example": "电子邮箱" }, "headerImg": { "type": "string", "example": "头像链接" }, "nickName": { "type": "string", "example": "昵称" }, "passWord": { "type": "string", "example": "密码" }, "phone": { "type": "string", "example": "电话号码" }, "userName": { "type": "string", "example": "用户名" } } }, "request.SetCity": { "type": "object", "properties": { "city_ids": { "description": "城市ID列表", "type": "array", "items": { "type": "integer" } }, "province_id": { "description": "省份ID", "type": "integer" } } }, "request.SetProvinces": { "type": "object", "properties": { "country_id": { "description": "国家ID", "type": "integer" }, "list": { "description": "省份ID列表", "type": "array", "items": { "type": "integer" } } } }, "request.SetRegions": { "type": "object", "properties": { "city_id": { "description": "城市ID", "type": "integer" }, "region_ids": { "description": "地区ID列表", "type": "array", "items": { "type": "integer" } } } }, "request.UpdateCities": { "type": "object", "properties": { "cities": { "description": "城市列表", "type": "array", "items": { "$ref": "#/definitions/request.UpdateCity" } } } }, "request.UpdateCity": { "type": "object", "properties": { "id": { "description": "城市ID", "type": "integer" }, "name": { "description": "城市名称", "type": "string" } } }, "request.UpdateClient": { "type": "object", "properties": { "business_scope": { "description": "经营范围", "type": "string" }, "city_id": { "type": "integer" }, "client_level_id": { "description": "客户等级ID", "type": "integer" }, "client_origin_id": { "description": "客户来源ID", "type": "integer" }, "client_status_id": { "description": "客户状态ID", "type": "integer" }, "client_type_id": { "description": "客户类型ID", "type": "integer" }, "contact": { "$ref": "#/definitions/request.Contact" }, "country_id": { "type": "integer" }, "detail_address": { "description": "详细地址", "type": "string" }, "enterprise_nature_id": { "description": "企业性质", "type": "integer" }, "enterprise_scale_id": { "description": "企业规模", "type": "integer" }, "id": { "type": "integer" }, "industry_id": { "description": "所属行业", "type": "integer" }, "latest_service_time": { "description": "最晚服务时间", "type": "string" }, "member_id": { "description": "销售负责人ID", "type": "integer" }, "name": { "description": "公司名称", "type": "string" }, "next_visit_time": { "description": "下次回访时间", "type": "string" }, "number": { "description": "公司编号", "type": "string" }, "province_id": { "type": "integer" }, "region_id": { "type": "integer" }, "registered_capital_id": { "description": "注册资金", "type": "integer" }, "registration_time": { "description": "注册时间", "type": "string" }, "remark": { "description": "备注", "type": "string" }, "representative": { "description": "法人代表", "type": "string" }, "service_member_id": { "description": "服务负责人ID", "type": "integer" } } }, "request.UpdateClientLevel": { "type": "object", "required": [ "id", "name" ], "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "request.UpdateClientLevelList": { "type": "object", "required": [ "client_levels" ], "properties": { "client_levels": { "type": "array", "items": { "$ref": "#/definitions/request.UpdateClientLevel" } } } }, "request.UpdateClientOrigin": { "type": "object", "required": [ "id", "name" ], "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "request.UpdateClientOriginList": { "type": "object", "required": [ "client_origins" ], "properties": { "client_origins": { "type": "array", "items": { "$ref": "#/definitions/request.UpdateClientOrigin" } } } }, "request.UpdateClientStatus": { "type": "object", "required": [ "id", "name" ], "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "request.UpdateClientStatuses": { "type": "object", "properties": { "client_statuses": { "type": "array", "items": { "$ref": "#/definitions/request.UpdateClientStatus" } } } }, "request.UpdateClientType": { "type": "object", "required": [ "id", "name" ], "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "request.UpdateClientTypes": { "type": "object", "required": [ "client_types" ], "properties": { "client_types": { "type": "array", "items": { "$ref": "#/definitions/request.UpdateClientType" } } } }, "request.UpdateContact": { "type": "object", "properties": { "birthday": { "description": "生日", "type": "string", "example": "1970-01-01 08:00:00" }, "city_id": { "description": "城市ID", "type": "integer" }, "client_id": { "description": "所属公司ID", "type": "integer" }, "country_id": { "description": "国家ID", "type": "integer" }, "desc": { "description": "备注", "type": "string" }, "email": { "description": "邮箱", "type": "string" }, "id": { "type": "integer" }, "is_first": { "description": "是否首要联系人", "type": "boolean" }, "member_id": { "description": "所属成员ID", "type": "integer" }, "name": { "description": "联系人名称", "type": "string" }, "number": { "description": "联系人编号", "type": "string" }, "phone": { "description": "手机号", "type": "string" }, "position": { "description": "职位", "type": "string" }, "province_id": { "description": "省份ID", "type": "integer" }, "region_id": { "description": "区域ID", "type": "integer" }, "wechat": { "description": "微信号", "type": "string" } } }, "request.UpdateCountry": { "type": "object", "properties": { "id": { "description": "国家ID", "type": "integer" }, "name": { "description": "国家名称", "type": "string" } } }, "request.UpdateEnterpriseNature": { "type": "object", "required": [ "id", "name" ], "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "request.UpdateEnterpriseNatures": { "type": "object", "properties": { "enterprise_natures": { "type": "array", "items": { "$ref": "#/definitions/request.UpdateEnterpriseNature" } } } }, "request.UpdateEnterpriseScale": { "type": "object", "required": [ "id", "name" ], "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "request.UpdateEnterpriseScales": { "type": "object", "properties": { "enterprise_scales": { "type": "array", "items": { "$ref": "#/definitions/request.UpdateEnterpriseScale" } } } }, "request.UpdateFollowRecord": { "type": "object", "required": [ "follow_record" ], "properties": { "follow_record": { "$ref": "#/definitions/request.FollowRecord" }, "id": { "type": "integer" } } }, "request.UpdateIndustries": { "type": "object", "required": [ "industries" ], "properties": { "industries": { "type": "array", "items": { "$ref": "#/definitions/request.UpdateIndustry" } } } }, "request.UpdateIndustry": { "type": "object", "required": [ "id", "name" ], "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "request.UpdateProvince": { "type": "object", "properties": { "id": { "description": "省份ID", "type": "integer" }, "name": { "description": "省份名称", "type": "string" } } }, "request.UpdateProvinces": { "type": "object", "properties": { "provinces": { "description": "省份列表", "type": "array", "items": { "$ref": "#/definitions/request.UpdateProvince" } } } }, "request.UpdateRegion": { "type": "object", "properties": { "id": { "description": "地区ID", "type": "integer" }, "name": { "description": "地区名称", "type": "string" } } }, "request.UpdateRegions": { "type": "object", "properties": { "regions": { "description": "地区列表", "type": "array", "items": { "$ref": "#/definitions/request.UpdateRegion" } } } }, "request.UpdateRegisteredCapital": { "type": "object", "required": [ "id", "name" ], "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "request.UpdateRegisteredCapitals": { "type": "object", "properties": { "registered_capitals": { "type": "array", "items": { "$ref": "#/definitions/request.UpdateRegisteredCapital" } } } }, "request.UpdateSalesLeads": { "type": "object", "properties": { "city_id": { "type": "integer" }, "contact_name": { "description": "联系人姓名", "type": "string" }, "contact_phone": { "description": "联系人电话", "type": "string" }, "contact_position": { "description": "联系人职位", "type": "string" }, "country_id": { "type": "integer" }, "desc": { "description": "备注", "type": "string" }, "id": { "type": "integer" }, "member_id": { "description": "销售负责人ID", "type": "integer" }, "name": { "description": "公司名称", "type": "string" }, "number": { "description": "销售线索编号", "type": "string" }, "province_id": { "type": "integer" }, "region_id": { "type": "integer" }, "sales_sources_id": { "description": "商机来源ID", "type": "integer" } } }, "request.UpdateSalesSources": { "type": "object", "required": [ "id", "name" ], "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "request.UpdateSalesSourcesList": { "type": "object", "properties": { "sales_sourcess": { "type": "array", "items": { "$ref": "#/definitions/request.UpdateSalesSources" } } } }, "response.CityResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.City" } } } }, "response.ClientLevelResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.ClientLevel" } } } }, "response.ClientOriginResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.ClientOrigin" } } } }, "response.ClientResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.Client" } } } }, "response.ClientStatusResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.ClientStatus" } } } }, "response.ClientTypeResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.ClientType" } } } }, "response.ContactResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.Contact" } } } }, "response.CountryResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.Country" } } } }, "response.EnterpriseNatureResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.EnterpriseNature" } } } }, "response.EnterpriseScaleResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.EnterpriseScale" } } } }, "response.FollowRecordResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.FollowRecord" } } } }, "response.IndustryResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.Industry" } } } }, "response.LoginResponse": { "type": "object", "properties": { "expiresAt": { "type": "integer" }, "token": { "type": "string" }, "user": { "$ref": "#/definitions/model.User" } } }, "response.PageResult": { "type": "object", "properties": { "list": {}, "page": { "type": "integer" }, "pageSize": { "type": "integer" }, "total": { "type": "integer" } } }, "response.ProvinceResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.Province" } } } }, "response.RegisteredCapitalResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.RegisteredCapital" } } } }, "response.SalesLeadsResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.SalesLeads" } } } }, "response.SalesSourceResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.SalesSources" } } } }, "response.UserResponse": { "type": "object", "properties": { "user": { "$ref": "#/definitions/model.User" } } } } }` // SwaggerInfo holds exported Swagger Info so clients can modify it var SwaggerInfo = &swag.Spec{ Version: "", Host: "", BasePath: "", Schemes: []string{}, Title: "", Description: "", InfoInstanceName: "swagger", SwaggerTemplate: docTemplate, LeftDelim: "{{", RightDelim: "}}", } func init() { swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo) }