// 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/authority/add": { "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": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/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": [ "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": "获取城市列表", "parameters": [ { "type": "integer", "description": "省份ID", "name": "province_id", "in": "query" } ], "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": { "put": { "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/contract/add": { "post": { "produces": [ "application/json" ], "tags": [ "Contract" ], "summary": "添加合同", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddContract" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/contract/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "Contract" ], "summary": "删除合同", "parameters": [ { "type": "integer", "description": "查询参数", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/contract/list": { "get": { "produces": [ "application/json" ], "tags": [ "Contract" ], "summary": "获取合同列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.ContractResponse" } } } ] } } } } }, "/api/contract/update": { "put": { "produces": [ "application/json" ], "tags": [ "Contract" ], "summary": "更新合同", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateContract" } } ], "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/customerServiceSheet/add": { "post": { "produces": [ "application/json" ], "tags": [ "CustomerServiceSheet" ], "summary": "添加客服单", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddCustomerServiceSheet" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/customerServiceSheet/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "CustomerServiceSheet" ], "summary": "删除客服单", "parameters": [ { "type": "integer", "description": "查询参数", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/customerServiceSheet/list": { "get": { "produces": [ "application/json" ], "tags": [ "CustomerServiceSheet" ], "summary": "获取客服单列表", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/customerServiceSheet/update/{id}": { "put": { "produces": [ "application/json" ], "tags": [ "CustomerServiceSheet" ], "summary": "更新客服单", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "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" } } ], "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/masterOrder/add": { "post": { "produces": [ "application/json" ], "tags": [ "MasterOrder" ], "summary": "添加主订单", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddMasterOrder" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/masterOrder/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "MasterOrder" ], "summary": "删除主订单", "parameters": [ { "type": "integer", "description": "查询参数", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/masterOrder/list": { "get": { "produces": [ "application/json" ], "tags": [ "MasterOrder" ], "summary": "主订单列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.MasterOrderResponse" } } } ] } } } } }, "/api/masterOrder/update": { "put": { "produces": [ "application/json" ], "tags": [ "MasterOrder" ], "summary": "更新主订单", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateMasterOrder" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/menu/getMenu": { "get": { "security": [ { "ApiKeyAuth": [] } ], "produces": [ "application/json" ], "tags": [ "Menu" ], "summary": "获取菜单树", "parameters": [ { "type": "string", "description": "Authorization", "name": "Authorization", "in": "header", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.MenuTreeResponse" } } } ] } } } } }, "/api/orderManage/add": { "post": { "produces": [ "application/json" ], "tags": [ "OrderManage" ], "summary": "添加订单", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddOrderManage" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/orderManage/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "OrderManage" ], "summary": "删除订单", "parameters": [ { "type": "integer", "description": "查询参数", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/orderManage/list": { "get": { "produces": [ "application/json" ], "tags": [ "OrderManage" ], "summary": "订单列表", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/orderManage/update": { "put": { "produces": [ "application/json" ], "tags": [ "OrderManage" ], "summary": "更新订单", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateOrderManage" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/plan/add": { "post": { "produces": [ "application/json" ], "tags": [ "Plan" ], "summary": "添加计划", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddPlan" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/plan/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "Plan" ], "summary": "删除计划", "parameters": [ { "type": "integer", "description": "查询参数", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/plan/list": { "get": { "produces": [ "application/json" ], "tags": [ "Plan" ], "summary": "获取计划列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.PlanResponse" } } } ] } } } } }, "/api/plan/update": { "put": { "produces": [ "application/json" ], "tags": [ "Plan" ], "summary": "更新计划", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdatePlan" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/possibility/add": { "post": { "produces": [ "application/json" ], "tags": [ "Possibility" ], "summary": "添加商机可能性", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddPossibility" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/possibility/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "Possibility" ], "summary": "删除商机可能性", "parameters": [ { "type": "integer", "description": "查询参数", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/possibility/list": { "get": { "produces": [ "application/json" ], "tags": [ "Possibility" ], "summary": "商机可能性列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.PossibilityResponse" } } } ] } } } } }, "/api/possibility/update": { "put": { "produces": [ "application/json" ], "tags": [ "Possibility" ], "summary": "更新商机可能性", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdatePossibilities" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/province/add": { "post": { "produces": [ "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": "获取省份列表", "parameters": [ { "type": "integer", "description": "国家ID", "name": "country_id", "in": "query", "required": true } ], "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/quotation/add": { "post": { "produces": [ "application/json" ], "tags": [ "Quotation" ], "summary": "添加报价单", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddQuotation" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/quotation/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "Quotation" ], "summary": "删除报价单", "parameters": [ { "type": "integer", "description": "查询参数", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/quotation/list": { "get": { "produces": [ "application/json" ], "tags": [ "Quotation" ], "summary": "报价单列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.QuotationResponse" } } } ] } } } } }, "/api/quotation/update": { "put": { "produces": [ "application/json" ], "tags": [ "Quotation" ], "summary": "更新报价单", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateQuotation" } } ], "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": "地区列表", "parameters": [ { "type": "integer", "description": "城市ID", "name": "city_id", "in": "query", "required": true } ], "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/regularCustomers/add": { "post": { "produces": [ "application/json" ], "tags": [ "RegularCustomers" ], "summary": "添加常客", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddRegularCustomers" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/regularCustomers/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "RegularCustomers" ], "summary": "删除常客", "parameters": [ { "type": "integer", "description": "查询参数", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/regularCustomers/list": { "get": { "produces": [ "application/json" ], "tags": [ "RegularCustomers" ], "summary": "常客列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.RegularCustomersResponse" } } } ] } } } } }, "/api/regularCustomers/update": { "put": { "produces": [ "application/json" ], "tags": [ "RegularCustomers" ], "summary": "更新常客", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateRegularCustomersList" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/saleChance/add": { "post": { "produces": [ "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/salesDetails/add": { "post": { "produces": [ "application/json" ], "tags": [ "SalesDetails" ], "summary": "添加销售明细", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddSalesDetails" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/salesDetails/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "SalesDetails" ], "summary": "删除销售明细", "parameters": [ { "type": "integer", "description": "查询参数", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/salesDetails/list": { "get": { "produces": [ "application/json" ], "tags": [ "SalesDetails" ], "summary": "获取销售明细列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.SalesDetailsResponse" } } } ] } } } } }, "/api/salesDetails/update": { "put": { "produces": [ "application/json" ], "tags": [ "SalesDetails" ], "summary": "更新销售明细", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateSalesDetails" } } ], "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/salesRefund/add": { "post": { "produces": [ "application/json" ], "tags": [ "SalesRefund" ], "summary": "添加销售退款", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddSalesRefundRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/salesRefund/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "SalesRefund" ], "summary": "删除销售退款", "parameters": [ { "type": "integer", "description": "查询参数", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/salesRefund/list": { "get": { "produces": [ "application/json" ], "tags": [ "SalesRefund" ], "summary": "销售退款列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.SalesRefundResponse" } } } ] } } } } }, "/api/salesRefund/update": { "put": { "produces": [ "application/json" ], "tags": [ "SalesRefund" ], "summary": "更新销售退款", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateSalesRefundRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/salesReturn/add": { "post": { "produces": [ "application/json" ], "tags": [ "SalesReturn" ], "summary": "添加销售退货", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddSalesReturnRequest" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/salesReturn/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "SalesReturn" ], "summary": "删除销售退货", "parameters": [ { "type": "integer", "description": "查询参数", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/salesReturn/list": { "get": { "produces": [ "application/json" ], "tags": [ "SalesReturn" ], "summary": "获取销售退货列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.SalesReturnResponse" } } } ] } } } } }, "/api/salesReturn/update": { "put": { "produces": [ "application/json" ], "tags": [ "SalesReturn" ], "summary": "更新销售退货", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateSalesReturnRequest" } } ], "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/satisfaction/add": { "post": { "produces": [ "application/json" ], "tags": [ "Satisfaction" ], "summary": "添加满意度", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddSatisfaction" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/satisfaction/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "Satisfaction" ], "summary": "删除满意度", "parameters": [ { "type": "integer", "description": "查询参数", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/satisfaction/list": { "get": { "produces": [ "application/json" ], "tags": [ "Satisfaction" ], "summary": "满意度列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.SatisfactionResponse" } } } ] } } } } }, "/api/satisfaction/update": { "put": { "produces": [ "application/json" ], "tags": [ "Satisfaction" ], "summary": "更新满意度", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateSatisfactions" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/serviceContract/add": { "post": { "produces": [ "application/json" ], "tags": [ "ServiceContract" ], "summary": "添加服务合同", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddServiceContract" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/serviceContract/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "ServiceContract" ], "summary": "删除服务合同", "parameters": [ { "type": "integer", "description": "查询参数", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/serviceContract/list": { "get": { "produces": [ "application/json" ], "tags": [ "ServiceContract" ], "summary": "服务合同列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.ServiceContractsResponse" } } } ] } } } } }, "/api/serviceContract/update": { "put": { "produces": [ "application/json" ], "tags": [ "ServiceContract" ], "summary": "更新服务合同", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateServiceContract" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/serviceFeeManage/add": { "post": { "produces": [ "application/json" ], "tags": [ "ServiceFeeManage" ], "summary": "添加服务费管理", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddServiceFeeManage" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/serviceFeeManage/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "ServiceFeeManage" ], "summary": "删除服务费管理", "parameters": [ { "type": "integer", "description": "查询参数", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/serviceFeeManage/list": { "get": { "produces": [ "application/json" ], "tags": [ "ServiceFeeManage" ], "summary": "服务费管理列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.ServiceFeeManageResponse" } } } ] } } } } }, "/api/serviceFeeManage/update": { "put": { "produces": [ "application/json" ], "tags": [ "ServiceFeeManage" ], "summary": "更新服务费管理", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateServiceFeeManage" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/serviceFollowup/add": { "post": { "produces": [ "application/json" ], "tags": [ "ServiceFollowup" ], "summary": "添加服务跟进", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddServiceFollowup" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/serviceFollowup/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "ServiceFollowup" ], "summary": "删除服务跟进", "parameters": [ { "type": "integer", "description": "查询参数", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/serviceFollowup/list": { "get": { "produces": [ "application/json" ], "tags": [ "ServiceFollowup" ], "summary": "服务跟进列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.ServiceFollowupResponse" } } } ] } } } } }, "/api/serviceFollowup/update": { "put": { "produces": [ "application/json" ], "tags": [ "ServiceFollowup" ], "summary": "更新服务跟进", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateServiceFollowup" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/status/add": { "post": { "produces": [ "application/json" ], "tags": [ "Status" ], "summary": "添加状态", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddStatus" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/status/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "Status" ], "summary": "删除状态", "parameters": [ { "type": "integer", "description": "查询参数", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/status/list": { "get": { "produces": [ "application/json" ], "tags": [ "Status" ], "summary": "状态列表", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/status/update": { "put": { "produces": [ "application/json" ], "tags": [ "Status" ], "summary": "更新状态", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateStatusList" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/subOrder/add": { "post": { "produces": [ "application/json" ], "tags": [ "SubOrder" ], "summary": "添加子订单", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddSubOrder" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/subOrder/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "SubOrder" ], "summary": "删除子订单", "parameters": [ { "type": "integer", "description": "查询参数", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/subOrder/list": { "get": { "produces": [ "application/json" ], "tags": [ "SubOrder" ], "summary": "获取子订单列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.SubOrderResponse" } } } ] } } } } }, "/api/subOrder/update": { "put": { "produces": [ "application/json" ], "tags": [ "SubOrder" ], "summary": "更新子订单", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateSubOrder" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/timelyRate/add": { "post": { "produces": [ "application/json" ], "tags": [ "TimelyRate" ], "summary": "添加销售阶段", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddTimelyRate" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/timelyRate/delete/{id}": { "delete": { "produces": [ "application/json" ], "tags": [ "TimelyRate" ], "summary": "删除销售阶段", "parameters": [ { "type": "integer", "description": "查询参数", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } }, "/api/timelyRate/list": { "get": { "produces": [ "application/json" ], "tags": [ "TimelyRate" ], "summary": "获取销售阶段列表", "responses": { "200": { "description": "OK", "schema": { "allOf": [ { "$ref": "#/definitions/contextx.Response" }, { "type": "object", "properties": { "data": { "$ref": "#/definitions/response.TimelyRateResponse" } } } ] } } } } }, "/api/timelyRate/update": { "put": { "produces": [ "application/json" ], "tags": [ "TimelyRate" ], "summary": "更新销售阶段", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.UpdateTimelyRates" } } ], "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" } } } } }, "/api/vetting/add": { "post": { "produces": [ "application/json" ], "tags": [ "Vetting" ], "summary": "添加审批", "parameters": [ { "description": "查询参数", "name": "object", "in": "body", "required": true, "schema": { "$ref": "#/definitions/request.AddVetting" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/contextx.Response" } } } } } }, "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": [ 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.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": { "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": { "$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" }, "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" }, "follow_record": { "type": "array", "items": { "$ref": "#/definitions/model.FollowRecord" } }, "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_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" }, "client_id": { "type": "integer" }, "country": { "$ref": "#/definitions/model.Country" }, "country_id": { "type": "integer" }, "desc": { "type": "string" }, "email": { "type": "string" }, "followRecord": { "type": "array", "items": { "$ref": "#/definitions/model.FollowRecord" } }, "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.Contract": { "type": "object", "properties": { "clientId": { "type": "integer" }, "file": { "type": "string" }, "id": { "type": "integer" }, "memberId": { "type": "integer" }, "number": { "type": "string" }, "quotation": { "$ref": "#/definitions/model.Quotation" }, "quotationId": { "type": "integer" }, "statusId": { "type": "integer" } } }, "model.Country": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" }, "province": { "type": "array", "items": { "$ref": "#/definitions/model.Province" } } } }, "model.CustomerServiceSheet": { "type": "object", "properties": { "handleStatus": { "type": "integer" }, "id": { "type": "integer" }, "memberId": { "type": "integer" }, "number": { "type": "string" }, "priority": { "type": "integer" }, "serviceFollowupId": { "type": "integer" }, "serviceMode": { "type": "integer" } } }, "model.Department": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "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": { "$ref": "#/definitions/model.Client" }, "client_id": { "type": "integer" }, "client_status_id": { "type": "integer" }, "contact": { "$ref": "#/definitions/model.Contact" }, "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.MasterOrder": { "type": "object", "properties": { "client": { "$ref": "#/definitions/model.Client" }, "client_id": { "type": "integer" }, "end_time": { "type": "string" }, "id": { "type": "integer" }, "member_id": { "type": "integer" }, "money": { "type": "number" }, "number": { "type": "string" }, "start_time": { "type": "string" } } }, "model.Menu": { "type": "object", "properties": { "children": { "type": "array", "items": { "$ref": "#/definitions/model.Menu" } }, "id": { "description": "主键ID", "type": "integer" }, "name": { "type": "string" }, "parentId": { "type": "integer" }, "path": { "type": "string" }, "title": { "type": "string" } } }, "model.Plan": { "type": "object", "properties": { "clientId": { "type": "integer" }, "content": { "type": "string" }, "endTime": { "type": "string" }, "file": { "type": "string" }, "id": { "type": "integer" }, "memberId": { "type": "integer" }, "number": { "type": "string" }, "salesDetails": { "$ref": "#/definitions/model.SalesDetails" }, "salesDetailsId": { "type": "integer" }, "startTime": { "type": "string" }, "subOrder": { "$ref": "#/definitions/model.SubOrder" }, "subOrderId": { "type": "integer" } } }, "model.Possibility": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "model.Product": { "type": "object", "properties": { "amount": { "type": "integer" }, "desc": { "type": "string" }, "id": { "type": "integer" }, "name": { "type": "string" }, "number": { "type": "string" }, "price": { "type": "number" }, "total": { "type": "number" } } }, "model.Province": { "type": "object", "properties": { "cities": { "type": "array", "items": { "$ref": "#/definitions/model.City" } }, "id": { "type": "integer" }, "name": { "type": "string" } } }, "model.Quotation": { "type": "object", "properties": { "client": { "$ref": "#/definitions/model.Client" }, "client_id": { "type": "integer" }, "conditions": { "type": "string" }, "contact": { "$ref": "#/definitions/model.Contact" }, "contact_id": { "type": "integer" }, "file": { "type": "string" }, "id": { "type": "integer" }, "member_id": { "type": "integer" }, "number": { "type": "string" }, "quotation_status_id": { "type": "integer" }, "sale_chance": { "$ref": "#/definitions/model.SaleChance" }, "sale_chance_id": { "type": "integer" }, "validity_date": { "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.RegularCustomers": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "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" }, "detail_address": { "type": "string" }, "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_id": { "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" }, "remark": { "type": "string" }, "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.SalesDetails": { "type": "object", "properties": { "address": { "type": "string" }, "addressee": { "type": "string" }, "client": { "$ref": "#/definitions/model.Client" }, "clientId": { "type": "integer" }, "conditions": { "type": "string" }, "deliveryDate": { "type": "string" }, "id": { "type": "integer" }, "memberId": { "type": "integer" }, "number": { "type": "string" }, "phone": { "type": "string" }, "products": { "type": "array", "items": { "$ref": "#/definitions/model.Product" } }, "remark": { "type": "string" }, "saleChanceId": { "type": "integer" }, "saleType": { "type": "integer" }, "signTime": { "type": "string" }, "wechatOrderStatus": { "type": "integer" } } }, "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" }, "followRecord": { "type": "array", "items": { "$ref": "#/definitions/model.FollowRecord" } }, "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.SalesRefund": { "type": "object", "properties": { "accountId": { "type": "integer" }, "clientId": { "type": "integer" }, "id": { "type": "integer" }, "isInvoice": { "type": "integer" }, "memberId": { "type": "integer" }, "number": { "type": "string" }, "products": { "type": "array", "items": { "$ref": "#/definitions/model.Product" } }, "reason": { "type": "string" }, "refundDate": { "type": "string" }, "refundMethod": { "type": "string" } } }, "model.SalesReturn": { "type": "object", "properties": { "clientId": { "type": "integer" }, "id": { "type": "integer" }, "memberId": { "type": "integer" }, "number": { "type": "string" }, "products": { "type": "array", "items": { "$ref": "#/definitions/model.Product" } }, "reason": { "type": "string" }, "repository": { "type": "string" }, "returnDate": { "type": "string" }, "status": { "type": "integer" } } }, "model.SalesSources": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "model.Satisfaction": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "model.ServiceContract": { "type": "object", "properties": { "clientId": { "type": "integer" }, "contactId": { "type": "integer" }, "contractId": { "type": "integer" }, "endTime": { "type": "string" }, "id": { "type": "integer" }, "memberId": { "type": "integer" }, "number": { "type": "string" }, "products": { "type": "array", "items": { "$ref": "#/definitions/model.Product" } }, "quotationId": { "type": "integer" }, "remark": { "type": "string" }, "saleChanceId": { "type": "integer" }, "serviceTimes": { "type": "integer" }, "signTime": { "type": "string" }, "startTime": { "type": "string" }, "statusId": { "type": "integer" }, "terms": { "type": "string" }, "typeId": { "type": "integer" } } }, "model.ServiceFeeManage": { "type": "object", "properties": { "client": { "$ref": "#/definitions/model.Client" }, "client_id": { "type": "integer" }, "file": { "type": "string" }, "id": { "type": "integer" }, "latest_date": { "type": "string" }, "member_id": { "type": "integer" }, "remark": { "type": "string" } } }, "model.ServiceFollowup": { "type": "object", "properties": { "clientId": { "type": "integer" }, "contactId": { "type": "integer" }, "customerServiceSheet": { "$ref": "#/definitions/model.CustomerServiceSheet" }, "file": { "type": "string" }, "id": { "type": "integer" }, "isVisit": { "type": "integer" }, "memberId": { "type": "integer" }, "number": { "type": "string" }, "oldMemberId": { "type": "integer" }, "planId": { "type": "integer" }, "remark": { "type": "string" }, "satisfactionId": { "type": "integer" }, "serviceId": { "type": "integer" }, "solveRate": { "type": "integer" }, "timelyRateId": { "type": "integer" } } }, "model.SubOrder": { "type": "object", "properties": { "client": { "$ref": "#/definitions/model.Client" }, "clientId": { "type": "integer" }, "id": { "type": "integer" }, "masterOrderId": { "type": "integer" }, "memberId": { "type": "integer" }, "number": { "type": "string" }, "products": { "type": "array", "items": { "$ref": "#/definitions/model.Product" } } } }, "model.TimelyRate": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "model.User": { "type": "object", "properties": { "authority": { "$ref": "#/definitions/model.Authority" }, "authorityId": { "description": "用户角色ID", "type": "integer" }, "departmentId": { "type": "integer" }, "email": { "type": "string" }, "headerImg": { "type": "string" }, "id": { "type": "integer" }, "menuIds": { "description": "菜单ID列表", "type": "array", "items": { "type": "integer" } }, "nickName": { "type": "string" }, "phone": { "type": "string" }, "pos": { "type": "string" }, "realName": { "type": "string" }, "userType": { "$ref": "#/definitions/constvar.UserType" }, "username": { "type": "string" }, "uuid": { "type": "string" } } }, "request.AddAuthority": { "type": "object", "properties": { "authorityName": { "type": "string" }, "casbinInfos": { "type": "array", "items": { "$ref": "#/definitions/request.CasbinInfo" } } } }, "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.AddContract": { "type": "object", "properties": { "client_id": { "type": "integer" }, "file": { "type": "string" }, "member_id": { "type": "integer" }, "number": { "type": "string" }, "quotation_id": { "type": "integer" }, "status_id": { "type": "integer" } } }, "request.AddCountry": { "type": "object", "properties": { "name": { "description": "国家名称", "type": "string" } } }, "request.AddCustomerServiceSheet": { "type": "object", "properties": { "handleStatus": { "type": "integer" }, "memberId": { "type": "integer" }, "number": { "type": "string" }, "priority": { "type": "integer" }, "serviceMode": { "type": "integer" } } }, "request.AddDepartment": { "type": "object", "required": [ "name" ], "properties": { "name": { "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.AddMasterOrder": { "type": "object", "properties": { "client_id": { "type": "integer" }, "end_time": { "type": "string" }, "member_id": { "type": "integer" }, "money": { "type": "number" }, "number": { "type": "string" }, "start_time": { "type": "string" } } }, "request.AddOrderManage": { "type": "object", "properties": { "clientId": { "type": "integer" }, "contactId": { "type": "integer" }, "file": { "type": "string" }, "name": { "type": "string" }, "number": { "type": "string" }, "orderType": { "type": "integer" }, "problemDescription": { "type": "string" }, "reportSourceId": { "type": "integer" }, "sourceSheet": { "type": "integer" } } }, "request.AddPlan": { "type": "object", "properties": { "plan": { "$ref": "#/definitions/request.Plan" } } }, "request.AddPossibility": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string" } } }, "request.AddProvince": { "type": "object", "properties": { "name": { "description": "省份名称", "type": "string" } } }, "request.AddQuotation": { "type": "object", "properties": { "client_id": { "type": "integer" }, "conditions": { "type": "string" }, "contact_id": { "type": "integer" }, "file": { "type": "string" }, "member_id": { "type": "integer" }, "number": { "type": "string" }, "quotation_status_id": { "type": "integer" }, "sale_chance_id": { "type": "integer" }, "validity_date": { "type": "string" } } }, "request.AddRegion": { "type": "object", "properties": { "name": { "description": "地区名称", "type": "string" } } }, "request.AddRegisteredCapital": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string" } } }, "request.AddRegularCustomers": { "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" }, "detail_address": { "type": "string" }, "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" }, "remark": { "type": "string" }, "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" ], "properties": { "name": { "type": "string" } } }, "request.AddSalesDetails": { "type": "object", "properties": { "salesDetails": { "$ref": "#/definitions/request.SalesDetails" } } }, "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.AddSalesRefundRequest": { "type": "object", "properties": { "salesRefund": { "$ref": "#/definitions/request.SalesRefund" } } }, "request.AddSalesReturnRequest": { "type": "object", "properties": { "salesReturn": { "$ref": "#/definitions/request.SalesReturn" } } }, "request.AddSalesSources": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string" } } }, "request.AddSatisfaction": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string" } } }, "request.AddServiceContract": { "type": "object", "properties": { "clientId": { "type": "integer" }, "contactId": { "type": "integer" }, "contractId": { "type": "integer" }, "endTime": { "type": "string" }, "memberId": { "type": "integer" }, "number": { "type": "string" }, "products": { "type": "array", "items": { "$ref": "#/definitions/model.Product" } }, "quotationId": { "type": "integer" }, "remark": { "type": "string" }, "saleChanceId": { "type": "integer" }, "serviceTimes": { "type": "integer" }, "signTime": { "type": "string" }, "startTime": { "type": "string" }, "statusId": { "type": "integer" }, "terms": { "type": "string" }, "typeId": { "type": "integer" } } }, "request.AddServiceFeeManage": { "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" }, "file": { "type": "string" }, "industry_id": { "description": "所属行业", "type": "integer" }, "latest_date": { "type": "string" }, "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.AddServiceFollowup": { "type": "object", "properties": { "clientId": { "type": "integer" }, "contactId": { "type": "integer" }, "file": { "type": "string" }, "isVisit": { "type": "integer" }, "memberId": { "type": "integer" }, "number": { "type": "string" }, "oldMemberId": { "type": "integer" }, "planId": { "type": "integer" }, "remark": { "type": "string" }, "satisfaction": { "type": "integer" }, "serviceId": { "type": "integer" }, "solveRate": { "type": "integer" }, "timelyRate": { "type": "integer" } } }, "request.AddStatus": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string" } } }, "request.AddSubOrder": { "type": "object", "properties": { "clientId": { "type": "integer" }, "masterOrderId": { "type": "integer" }, "memberId": { "type": "integer" }, "number": { "type": "string" }, "product": { "type": "array", "items": { "$ref": "#/definitions/model.Product" } } } }, "request.AddTimelyRate": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string" } } }, "request.AddVetting": { "type": "object", "required": [ "opinion", "status", "userId", "vettingId", "vettingType" ], "properties": { "opinion": { "type": "string" }, "status": { "type": "integer" }, "userId": { "type": "integer" }, "vettingId": { "type": "integer" }, "vettingType": { "type": "integer" } } }, "request.CasbinInfo": { "type": "object", "properties": { "method": { "description": "方法", "type": "string" }, "path": { "description": "路径", "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.Plan": { "type": "object", "properties": { "clientId": { "type": "integer" }, "content": { "type": "string" }, "endTime": { "type": "string" }, "file": { "type": "string" }, "memberId": { "type": "integer" }, "number": { "type": "string" }, "salesDetailsId": { "type": "integer" }, "startTime": { "type": "string" }, "subOrderId": { "type": "integer" } } }, "request.Register": { "type": "object", "properties": { "authorityId": { "description": "用户角色ID", "type": "integer" }, "departmentId": { "type": "integer" }, "email": { "type": "string" }, "headerImg": { "type": "string" }, "id": { "type": "string" }, "nickName": { "type": "string" }, "password": { "type": "string" }, "phone": { "type": "string" }, "pos": { "type": "string" }, "rePassword": { "description": "确认密码", "type": "string" }, "realName": { "type": "string" }, "userType": { "$ref": "#/definitions/constvar.UserType" }, "username": { "type": "string" } } }, "request.SalesDetails": { "type": "object", "properties": { "address": { "type": "string" }, "addressee": { "type": "string" }, "clientId": { "type": "integer" }, "conditions": { "type": "string" }, "deliveryDate": { "type": "string" }, "memberId": { "type": "integer" }, "number": { "type": "string" }, "phone": { "type": "string" }, "products": { "type": "array", "items": { "$ref": "#/definitions/model.Product" } }, "remark": { "type": "string" }, "saleChanceId": { "type": "integer" }, "saleType": { "type": "integer" }, "signTime": { "type": "string" }, "wechatOrderStatus": { "type": "integer" } } }, "request.SalesRefund": { "type": "object", "properties": { "accountId": { "type": "integer" }, "clientId": { "type": "integer" }, "isInvoice": { "type": "integer" }, "memberId": { "type": "integer" }, "number": { "type": "string" }, "products": { "type": "array", "items": { "$ref": "#/definitions/model.Product" } }, "reason": { "type": "string" }, "refundDate": { "type": "string" }, "refundMethod": { "type": "string" } } }, "request.SalesReturn": { "type": "object", "properties": { "clientId": { "type": "integer" }, "memberId": { "type": "integer" }, "number": { "type": "string" }, "products": { "type": "array", "items": { "$ref": "#/definitions/model.Product" } }, "reason": { "type": "string" }, "repository": { "type": "string" }, "returnDate": { "type": "string" }, "status": { "type": "integer" } } }, "request.SetAuthorityMenu": { "type": "object", "properties": { "authorityId": { "type": "integer" }, "menus": { "type": "array", "items": { "type": "integer" } } } }, "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.UpdateContract": { "type": "object", "properties": { "client_id": { "type": "integer" }, "file": { "type": "string" }, "id": { "type": "integer" }, "member_id": { "type": "integer" }, "number": { "type": "string" }, "quotation_id": { "type": "integer" }, "status_id": { "type": "integer" } } }, "request.UpdateCountry": { "type": "object", "properties": { "id": { "description": "国家ID", "type": "integer" }, "name": { "description": "国家名称", "type": "string" } } }, "request.UpdateCustomerServiceSheet": { "type": "object", "properties": { "handleStatus": { "type": "integer" }, "id": { "type": "integer" }, "memberId": { "type": "integer" }, "number": { "type": "string" }, "priority": { "type": "integer" }, "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" } } } }, "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.UpdateMasterOrder": { "type": "object", "properties": { "client_id": { "type": "integer" }, "end_time": { "type": "string" }, "id": { "type": "integer" }, "member_id": { "type": "integer" }, "money": { "type": "number" }, "number": { "type": "string" }, "start_time": { "type": "string" } } }, "request.UpdateOrderManage": { "type": "object", "properties": { "clientId": { "type": "integer" }, "contactId": { "type": "integer" }, "file": { "type": "string" }, "id": { "type": "integer" }, "name": { "type": "string" }, "number": { "type": "string" }, "orderType": { "type": "integer" }, "problemDescription": { "type": "string" }, "reportSourceId": { "type": "integer" }, "sourceSheet": { "type": "integer" } } }, "request.UpdatePlan": { "type": "object", "properties": { "id": { "type": "integer" }, "plan": { "$ref": "#/definitions/request.Plan" } } }, "request.UpdatePossibilities": { "type": "object", "required": [ "possibilities" ], "properties": { "possibilities": { "type": "array", "items": { "$ref": "#/definitions/request.UpdatePossibility" } } } }, "request.UpdatePossibility": { "type": "object", "required": [ "id", "name" ], "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "request.UpdateProvince": { "type": "object", "properties": { "id": { "description": "省份ID", "type": "integer" }, "name": { "description": "省份名称", "type": "string" } } }, "request.UpdateProvinces": { "type": "object", "properties": { "provinces": { "description": "省份列表", "type": "array", "items": { "$ref": "#/definitions/request.UpdateProvince" } } } }, "request.UpdateQuotation": { "type": "object", "properties": { "client_id": { "type": "integer" }, "conditions": { "type": "string" }, "contact_id": { "type": "integer" }, "file": { "type": "string" }, "id": { "type": "integer" }, "member_id": { "type": "integer" }, "number": { "type": "string" }, "quotation_status_id": { "type": "integer" }, "sale_chance_id": { "type": "integer" }, "validity_date": { "type": "string" } } }, "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.UpdateRegularCustomers": { "type": "object", "required": [ "id", "name" ], "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "request.UpdateRegularCustomersList": { "type": "object", "required": [ "regularCustomers" ], "properties": { "regularCustomers": { "type": "array", "items": { "$ref": "#/definitions/request.UpdateRegularCustomers" } } } }, "request.UpdateSaleChance": { "type": "object", "required": [ "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" }, "detail_address": { "type": "string" }, "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" }, "remark": { "type": "string" }, "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.UpdateSalesDetails": { "type": "object", "properties": { "id": { "type": "integer" }, "salesDetails": { "$ref": "#/definitions/request.SalesDetails" } } }, "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.UpdateSalesRefundRequest": { "type": "object", "properties": { "id": { "type": "integer" }, "salesRefund": { "$ref": "#/definitions/request.SalesRefund" } } }, "request.UpdateSalesReturnRequest": { "type": "object", "properties": { "id": { "type": "integer" }, "salesReturn": { "$ref": "#/definitions/request.SalesReturn" } } }, "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" } } } }, "request.UpdateSatisfaction": { "type": "object", "required": [ "id", "name" ], "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "request.UpdateSatisfactions": { "type": "object", "required": [ "satisfactions" ], "properties": { "satisfactions": { "type": "array", "items": { "$ref": "#/definitions/request.UpdateSatisfaction" } } } }, "request.UpdateServiceContract": { "type": "object", "properties": { "clientId": { "type": "integer" }, "contactId": { "type": "integer" }, "contractId": { "type": "integer" }, "endTime": { "type": "string" }, "id": { "type": "integer" }, "memberId": { "type": "integer" }, "number": { "type": "string" }, "products": { "type": "array", "items": { "$ref": "#/definitions/model.Product" } }, "quotationId": { "type": "integer" }, "remark": { "type": "string" }, "saleChanceId": { "type": "integer" }, "serviceTimes": { "type": "integer" }, "signTime": { "type": "string" }, "startTime": { "type": "string" }, "statusId": { "type": "integer" }, "terms": { "type": "string" }, "typeId": { "type": "integer" } } }, "request.UpdateServiceFeeManage": { "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" }, "file": { "type": "string" }, "id": { "type": "integer" }, "industry_id": { "description": "所属行业", "type": "integer" }, "latest_date": { "type": "string" }, "latest_service_time": { "description": "最晚服务时间", "type": "string" }, "member_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": { "type": "string" }, "representative": { "description": "法人代表", "type": "string" }, "service_member_id": { "description": "服务负责人ID", "type": "integer" } } }, "request.UpdateServiceFollowup": { "type": "object", "properties": { "clientId": { "type": "integer" }, "contactId": { "type": "integer" }, "file": { "type": "string" }, "id": { "type": "integer" }, "isVisit": { "type": "integer" }, "memberId": { "type": "integer" }, "number": { "type": "string" }, "oldMemberId": { "type": "integer" }, "planId": { "type": "integer" }, "remark": { "type": "string" }, "satisfaction": { "type": "integer" }, "serviceId": { "type": "integer" }, "solveRate": { "type": "integer" }, "timelyRate": { "type": "integer" } } }, "request.UpdateStatus": { "type": "object", "required": [ "id", "name" ], "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "request.UpdateStatusList": { "type": "object", "required": [ "list" ], "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/request.UpdateStatus" } } } }, "request.UpdateSubOrder": { "type": "object", "properties": { "clientId": { "type": "integer" }, "id": { "type": "integer" }, "masterOrderId": { "type": "integer" }, "memberId": { "type": "integer" }, "number": { "type": "string" }, "product": { "type": "array", "items": { "$ref": "#/definitions/model.Product" } } } }, "request.UpdateTimelyRate": { "type": "object", "required": [ "id", "name" ], "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "request.UpdateTimelyRates": { "type": "object", "required": [ "timely_rate" ], "properties": { "timely_rate": { "type": "array", "items": { "$ref": "#/definitions/request.UpdateTimelyRate" } } } }, "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.ContactDetail" } } } }, "response.ContractResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.Contract" } } } }, "response.CountryResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.Country" } } } }, "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" } }, "department": { "description": "部门", "type": "array", "items": { "$ref": "#/definitions/model.Department" } }, "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" } }, "member": { "description": "Member", "type": "array", "items": { "$ref": "#/definitions/model.User" } }, "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" } }, "satisfaction": { "description": "满意度", "type": "array", "items": { "$ref": "#/definitions/model.Satisfaction" } } } }, "response.DepartmentResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.Department" } } } }, "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.MasterOrderResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.MasterOrder" } } } }, "response.MenuTreeResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.Menu" } } } }, "response.PageResult": { "type": "object", "properties": { "list": {}, "page": { "type": "integer" }, "pageSize": { "type": "integer" }, "total": { "type": "integer" } } }, "response.PlanResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.Plan" } } } }, "response.PossibilityResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.Possibility" } } } }, "response.ProvinceResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.Province" } } } }, "response.QuotationResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.Quotation" } } } }, "response.RegisteredCapitalResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.RegisteredCapital" } } } }, "response.RegularCustomersResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.RegularCustomers" } } } }, "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.SalesDetailsResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.SalesDetails" } } } }, "response.SalesLeadsResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.SalesLeads" } } } }, "response.SalesRefundResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.SalesRefund" } } } }, "response.SalesReturnResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.SalesReturn" } } } }, "response.SalesSourceResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.SalesSources" } } } }, "response.SatisfactionResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.Satisfaction" } } } }, "response.ServiceContractsResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.ServiceContract" } } } }, "response.ServiceFeeManageResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.ServiceFeeManage" } } } }, "response.ServiceFollowupResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.ServiceFollowup" } } } }, "response.SubOrderResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.SubOrder" } } } }, "response.TimelyRateResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "$ref": "#/definitions/model.TimelyRate" } } } }, "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) }