definitions:
|
constvar.CurrencyType:
|
enum:
|
- 1
|
- 2
|
- 3
|
- 4
|
type: integer
|
x-enum-comments:
|
CurrencyTypeCNY: 人民币
|
CurrencyTypeEUR: 欧元
|
CurrencyTypeGBP: 英镑
|
CurrencyTypeUSD: 美元
|
x-enum-varnames:
|
- CurrencyTypeCNY
|
- CurrencyTypeUSD
|
- CurrencyTypeEUR
|
- CurrencyTypeGBP
|
constvar.SalesStatus:
|
enum:
|
- 1
|
- 2
|
- 3
|
- 4
|
- 5
|
- 6
|
type: integer
|
x-enum-comments:
|
SalesStatusFail: 失败
|
SalesStatusIng: 进行中
|
SalesStatusLevelUptoClient: 升级为客户
|
SalesStatusLevelUptoClientAndSalesChance: 升级为客户并且有销售机会
|
SalesStatusSuccess: 成功
|
x-enum-varnames:
|
- SalesStatusNew
|
- SalesStatusIng
|
- SalesStatusSuccess
|
- SalesStatusFail
|
- SalesStatusLevelUptoClient
|
- SalesStatusLevelUptoClientAndSalesChance
|
constvar.UserType:
|
enum:
|
- 1
|
- 2
|
- 3
|
type: integer
|
x-enum-comments:
|
UserTypePrimary: 主账户
|
UserTypeSub: 子账户
|
UserTypeSuper: 超级管理员
|
x-enum-varnames:
|
- UserTypeSuper
|
- UserTypePrimary
|
- UserTypeSub
|
contextx.Response:
|
properties:
|
code:
|
type: integer
|
data: {}
|
msg:
|
type: string
|
type: object
|
model.City:
|
properties:
|
id:
|
type: integer
|
name:
|
type: string
|
regions:
|
items:
|
$ref: '#/definitions/model.Region'
|
type: array
|
type: object
|
model.Client:
|
properties:
|
business_scope:
|
type: string
|
city:
|
$ref: '#/definitions/model.City'
|
city_id:
|
type: integer
|
client_level_id:
|
type: integer
|
client_origin_id:
|
type: integer
|
client_status_id:
|
type: integer
|
client_type_id:
|
type: integer
|
contacts:
|
items:
|
$ref: '#/definitions/model.Contact'
|
type: array
|
country:
|
$ref: '#/definitions/model.Country'
|
country_id:
|
type: integer
|
detail_address:
|
type: string
|
enterprise_nature_id:
|
type: integer
|
enterprise_scale_id:
|
type: integer
|
enterpriseNature:
|
$ref: '#/definitions/model.EnterpriseNature'
|
enterpriseScale:
|
$ref: '#/definitions/model.EnterpriseScale'
|
follow_record:
|
items:
|
$ref: '#/definitions/model.FollowRecord'
|
type: array
|
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
|
registered_capital_id:
|
type: integer
|
registeredCapital:
|
$ref: '#/definitions/model.RegisteredCapital'
|
registration_time:
|
type: string
|
remark:
|
type: string
|
representative:
|
type: string
|
service_member_id:
|
type: integer
|
type: object
|
model.ClientLevel:
|
properties:
|
id:
|
type: integer
|
name:
|
type: string
|
type: object
|
model.ClientOrigin:
|
properties:
|
id:
|
type: integer
|
name:
|
type: string
|
type: object
|
model.ClientStatus:
|
properties:
|
id:
|
type: integer
|
name:
|
type: string
|
type: object
|
model.ClientType:
|
properties:
|
id:
|
type: integer
|
name:
|
type: string
|
type: object
|
model.Contact:
|
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:
|
items:
|
$ref: '#/definitions/model.FollowRecord'
|
type: array
|
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
|
type: object
|
model.Country:
|
properties:
|
id:
|
type: integer
|
name:
|
type: string
|
province:
|
items:
|
$ref: '#/definitions/model.Province'
|
type: array
|
type: object
|
model.EnterpriseNature:
|
properties:
|
id:
|
type: integer
|
name:
|
type: string
|
type: object
|
model.EnterpriseScale:
|
properties:
|
id:
|
type: integer
|
name:
|
type: string
|
type: object
|
model.FollowRecord:
|
properties:
|
client_id:
|
type: integer
|
client_status_id:
|
type: integer
|
contact_id:
|
type: integer
|
contact_information_id:
|
type: integer
|
content:
|
type: string
|
follow_time:
|
type: string
|
id:
|
type: integer
|
member_id:
|
type: integer
|
next_follow_time:
|
type: string
|
number:
|
type: string
|
purpose:
|
type: string
|
record:
|
type: string
|
sale_chance_id:
|
type: integer
|
sales_leads_id:
|
type: integer
|
topic:
|
type: string
|
type: object
|
model.Industry:
|
properties:
|
id:
|
type: integer
|
name:
|
type: string
|
type: object
|
model.Province:
|
properties:
|
cities:
|
items:
|
$ref: '#/definitions/model.City'
|
type: array
|
id:
|
type: integer
|
name:
|
type: string
|
type: object
|
model.Region:
|
properties:
|
id:
|
type: integer
|
name:
|
type: string
|
type: object
|
model.RegisteredCapital:
|
properties:
|
id:
|
type: integer
|
name:
|
type: string
|
type: object
|
model.SaleChance:
|
properties:
|
advantages:
|
type: string
|
budget:
|
type: number
|
capital_budget:
|
type: string
|
city:
|
$ref: '#/definitions/model.City'
|
city_id:
|
type: integer
|
client_id:
|
type: integer
|
competitors:
|
type: string
|
contact_id:
|
type: integer
|
country:
|
$ref: '#/definitions/model.Country'
|
country_id:
|
type: integer
|
currency:
|
$ref: '#/definitions/constvar.CurrencyType'
|
disadvantages:
|
type: string
|
expected_time:
|
type: string
|
id:
|
type: integer
|
key_factors:
|
type: string
|
key_maker:
|
type: string
|
member_id:
|
type: integer
|
name:
|
type: string
|
number:
|
type: string
|
opportunities:
|
type: string
|
pain_points:
|
type: string
|
possibilities:
|
type: integer
|
process:
|
type: string
|
projected_amount:
|
type: number
|
province:
|
$ref: '#/definitions/model.Province'
|
province_id:
|
type: integer
|
region:
|
$ref: '#/definitions/model.Region'
|
region_id:
|
type: integer
|
regular_customers_id:
|
type: integer
|
sale_stage_id:
|
type: integer
|
sale_type_id:
|
type: integer
|
sales_sources_id:
|
type: integer
|
solutions:
|
type: string
|
status_id:
|
type: integer
|
threats:
|
type: string
|
whether_established:
|
type: string
|
type: object
|
model.SalesLeads:
|
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:
|
items:
|
$ref: '#/definitions/model.FollowRecord'
|
type: array
|
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'
|
type: object
|
model.SalesSources:
|
properties:
|
id:
|
type: integer
|
name:
|
type: string
|
type: object
|
model.User:
|
properties:
|
companyName:
|
type: string
|
createAt:
|
description: 创建时间
|
type: string
|
email:
|
type: string
|
enable:
|
type: boolean
|
headerImg:
|
type: string
|
id:
|
type: string
|
ip:
|
type: string
|
menuIds:
|
description: 菜单ID列表
|
items:
|
type: integer
|
type: array
|
nickName:
|
type: string
|
parentId:
|
type: string
|
parentName:
|
type: string
|
phone:
|
type: string
|
port:
|
type: string
|
pos:
|
type: string
|
status:
|
type: integer
|
updateAt:
|
description: 更新时间
|
type: string
|
userType:
|
$ref: '#/definitions/constvar.UserType'
|
username:
|
type: string
|
type: object
|
request.AddCity:
|
properties:
|
name:
|
description: 城市名称
|
items:
|
type: string
|
type: array
|
type: object
|
request.AddClient:
|
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
|
type: object
|
request.AddClientOrigin:
|
properties:
|
name:
|
type: string
|
required:
|
- name
|
type: object
|
request.AddClientStatus:
|
properties:
|
name:
|
type: string
|
required:
|
- name
|
type: object
|
request.AddClientType:
|
properties:
|
name:
|
type: string
|
required:
|
- name
|
type: object
|
request.AddContact:
|
properties:
|
birthday:
|
description: 生日
|
example: "1970-01-01 08:00:00"
|
type: string
|
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
|
type: object
|
request.AddCountry:
|
properties:
|
name:
|
description: 国家名称
|
type: string
|
type: object
|
request.AddEnterpriseNature:
|
properties:
|
name:
|
type: string
|
required:
|
- name
|
type: object
|
request.AddEnterpriseScale:
|
properties:
|
name:
|
type: string
|
required:
|
- name
|
type: object
|
request.AddFollowRecord:
|
properties:
|
follow_record:
|
$ref: '#/definitions/request.FollowRecord'
|
required:
|
- follow_record
|
type: object
|
request.AddIndustry:
|
properties:
|
name:
|
type: string
|
required:
|
- name
|
type: object
|
request.AddProvince:
|
properties:
|
name:
|
description: 省份名称
|
type: string
|
type: object
|
request.AddRegion:
|
properties:
|
name:
|
description: 地区名称
|
type: string
|
type: object
|
request.AddRegisteredCapital:
|
properties:
|
name:
|
type: string
|
required:
|
- name
|
type: object
|
request.AddSaleChance:
|
properties:
|
advantages:
|
type: string
|
budget:
|
type: number
|
capital_budget:
|
type: string
|
city_id:
|
type: integer
|
client_id:
|
type: integer
|
competitors:
|
type: string
|
contact_id:
|
type: integer
|
country_id:
|
type: integer
|
currency:
|
type: integer
|
disadvantages:
|
type: string
|
expected_time:
|
type: string
|
key_factors:
|
type: string
|
key_maker:
|
type: string
|
member_id:
|
type: integer
|
name:
|
type: string
|
number:
|
type: string
|
opportunities:
|
type: string
|
pain_points:
|
type: string
|
possibilities:
|
type: integer
|
process:
|
type: string
|
projected_amount:
|
type: number
|
province_id:
|
type: integer
|
region_id:
|
type: integer
|
regular_customers_id:
|
type: integer
|
sale_stage_id:
|
type: integer
|
sale_type_id:
|
type: integer
|
sales_sources_id:
|
type: integer
|
solutions:
|
type: string
|
status_id:
|
type: integer
|
threats:
|
type: string
|
whether_established:
|
type: string
|
required:
|
- advantages
|
- budget
|
- capital_budget
|
- client_id
|
- competitors
|
- contact_id
|
- currency
|
- disadvantages
|
- expected_time
|
- key_factors
|
- key_maker
|
- member_id
|
- name
|
- number
|
- opportunities
|
- pain_points
|
- possibilities
|
- process
|
- projected_amount
|
- regular_customers_id
|
- sale_stage_id
|
- sale_type_id
|
- sales_sources_id
|
- solutions
|
- status_id
|
- threats
|
- whether_established
|
type: object
|
request.AddSalesLeads:
|
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
|
type: object
|
request.AddSalesSources:
|
properties:
|
name:
|
type: string
|
required:
|
- name
|
type: object
|
request.ChangePasswordReq:
|
properties:
|
newPassword:
|
description: 新密码
|
type: string
|
password:
|
description: 密码
|
type: string
|
type: object
|
request.ChangeUserInfo:
|
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
|
type: object
|
request.Contact:
|
properties:
|
birthday:
|
description: 生日
|
example: "1970-01-01 08:00:00"
|
type: string
|
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
|
type: object
|
request.DeleteCountry:
|
properties:
|
id:
|
description: 国家ID
|
type: integer
|
type: object
|
request.DeleteUserReq:
|
properties:
|
userId:
|
description: 用户ID
|
type: string
|
type: object
|
request.FollowRecord:
|
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
|
type: object
|
request.GetUserList:
|
properties:
|
keyword:
|
description: 模糊查询关键字
|
type: string
|
page:
|
description: 页码
|
type: integer
|
pageSize:
|
description: 每页大小
|
type: integer
|
type: object
|
request.Login:
|
properties:
|
captcha:
|
description: 验证码
|
type: string
|
captchaId:
|
description: 验证码ID
|
type: string
|
password:
|
description: 密码
|
type: string
|
username:
|
description: 用户名
|
type: string
|
type: object
|
request.Register:
|
properties:
|
email:
|
example: 电子邮箱
|
type: string
|
headerImg:
|
example: 头像链接
|
type: string
|
nickName:
|
example: 昵称
|
type: string
|
passWord:
|
example: 密码
|
type: string
|
phone:
|
example: 电话号码
|
type: string
|
userName:
|
example: 用户名
|
type: string
|
type: object
|
request.SetCity:
|
properties:
|
city_ids:
|
description: 城市ID列表
|
items:
|
type: integer
|
type: array
|
province_id:
|
description: 省份ID
|
type: integer
|
type: object
|
request.SetProvinces:
|
properties:
|
country_id:
|
description: 国家ID
|
type: integer
|
list:
|
description: 省份ID列表
|
items:
|
type: integer
|
type: array
|
type: object
|
request.SetRegions:
|
properties:
|
city_id:
|
description: 城市ID
|
type: integer
|
region_ids:
|
description: 地区ID列表
|
items:
|
type: integer
|
type: array
|
type: object
|
request.UpdateCities:
|
properties:
|
cities:
|
description: 城市列表
|
items:
|
$ref: '#/definitions/request.UpdateCity'
|
type: array
|
type: object
|
request.UpdateCity:
|
properties:
|
id:
|
description: 城市ID
|
type: integer
|
name:
|
description: 城市名称
|
type: string
|
type: object
|
request.UpdateClient:
|
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
|
type: object
|
request.UpdateClientLevel:
|
properties:
|
id:
|
type: integer
|
name:
|
type: string
|
required:
|
- id
|
- name
|
type: object
|
request.UpdateClientLevelList:
|
properties:
|
client_levels:
|
items:
|
$ref: '#/definitions/request.UpdateClientLevel'
|
type: array
|
required:
|
- client_levels
|
type: object
|
request.UpdateClientOrigin:
|
properties:
|
id:
|
type: integer
|
name:
|
type: string
|
required:
|
- id
|
- name
|
type: object
|
request.UpdateClientOriginList:
|
properties:
|
client_origins:
|
items:
|
$ref: '#/definitions/request.UpdateClientOrigin'
|
type: array
|
required:
|
- client_origins
|
type: object
|
request.UpdateClientStatus:
|
properties:
|
id:
|
type: integer
|
name:
|
type: string
|
required:
|
- id
|
- name
|
type: object
|
request.UpdateClientStatuses:
|
properties:
|
client_statuses:
|
items:
|
$ref: '#/definitions/request.UpdateClientStatus'
|
type: array
|
type: object
|
request.UpdateClientType:
|
properties:
|
id:
|
type: integer
|
name:
|
type: string
|
required:
|
- id
|
- name
|
type: object
|
request.UpdateClientTypes:
|
properties:
|
client_types:
|
items:
|
$ref: '#/definitions/request.UpdateClientType'
|
type: array
|
required:
|
- client_types
|
type: object
|
request.UpdateContact:
|
properties:
|
birthday:
|
description: 生日
|
example: "1970-01-01 08:00:00"
|
type: string
|
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
|
type: object
|
request.UpdateCountry:
|
properties:
|
id:
|
description: 国家ID
|
type: integer
|
name:
|
description: 国家名称
|
type: string
|
type: object
|
request.UpdateEnterpriseNature:
|
properties:
|
id:
|
type: integer
|
name:
|
type: string
|
required:
|
- id
|
- name
|
type: object
|
request.UpdateEnterpriseNatures:
|
properties:
|
enterprise_natures:
|
items:
|
$ref: '#/definitions/request.UpdateEnterpriseNature'
|
type: array
|
type: object
|
request.UpdateEnterpriseScale:
|
properties:
|
id:
|
type: integer
|
name:
|
type: string
|
required:
|
- id
|
- name
|
type: object
|
request.UpdateEnterpriseScales:
|
properties:
|
enterprise_scales:
|
items:
|
$ref: '#/definitions/request.UpdateEnterpriseScale'
|
type: array
|
type: object
|
request.UpdateFollowRecord:
|
properties:
|
follow_record:
|
$ref: '#/definitions/request.FollowRecord'
|
id:
|
type: integer
|
required:
|
- follow_record
|
type: object
|
request.UpdateIndustries:
|
properties:
|
industries:
|
items:
|
$ref: '#/definitions/request.UpdateIndustry'
|
type: array
|
required:
|
- industries
|
type: object
|
request.UpdateIndustry:
|
properties:
|
id:
|
type: integer
|
name:
|
type: string
|
required:
|
- id
|
- name
|
type: object
|
request.UpdateProvince:
|
properties:
|
id:
|
description: 省份ID
|
type: integer
|
name:
|
description: 省份名称
|
type: string
|
type: object
|
request.UpdateProvinces:
|
properties:
|
provinces:
|
description: 省份列表
|
items:
|
$ref: '#/definitions/request.UpdateProvince'
|
type: array
|
type: object
|
request.UpdateRegion:
|
properties:
|
id:
|
description: 地区ID
|
type: integer
|
name:
|
description: 地区名称
|
type: string
|
type: object
|
request.UpdateRegions:
|
properties:
|
regions:
|
description: 地区列表
|
items:
|
$ref: '#/definitions/request.UpdateRegion'
|
type: array
|
type: object
|
request.UpdateRegisteredCapital:
|
properties:
|
id:
|
type: integer
|
name:
|
type: string
|
required:
|
- id
|
- name
|
type: object
|
request.UpdateRegisteredCapitals:
|
properties:
|
registered_capitals:
|
items:
|
$ref: '#/definitions/request.UpdateRegisteredCapital'
|
type: array
|
type: object
|
request.UpdateSaleChance:
|
properties:
|
advantages:
|
type: string
|
budget:
|
type: number
|
capital_budget:
|
type: string
|
city_id:
|
type: integer
|
client_id:
|
type: integer
|
competitors:
|
type: string
|
contact_id:
|
type: integer
|
country_id:
|
type: integer
|
currency:
|
type: integer
|
disadvantages:
|
type: string
|
expected_time:
|
type: string
|
id:
|
type: integer
|
key_factors:
|
type: string
|
key_maker:
|
type: string
|
member_id:
|
type: integer
|
name:
|
type: string
|
number:
|
type: string
|
opportunities:
|
type: string
|
pain_points:
|
type: string
|
possibilities:
|
type: integer
|
process:
|
type: string
|
projected_amount:
|
type: number
|
province_id:
|
type: integer
|
region_id:
|
type: integer
|
regular_customers_id:
|
type: integer
|
sale_stage_id:
|
type: integer
|
sale_type_id:
|
type: integer
|
sales_sources_id:
|
type: integer
|
solutions:
|
type: string
|
status_id:
|
type: integer
|
threats:
|
type: string
|
whether_established:
|
type: string
|
required:
|
- advantages
|
- budget
|
- capital_budget
|
- client_id
|
- competitors
|
- contact_id
|
- currency
|
- disadvantages
|
- expected_time
|
- id
|
- key_factors
|
- key_maker
|
- member_id
|
- name
|
- number
|
- opportunities
|
- pain_points
|
- possibilities
|
- process
|
- projected_amount
|
- regular_customers_id
|
- sale_stage_id
|
- sale_type_id
|
- sales_sources_id
|
- solutions
|
- status_id
|
- threats
|
- whether_established
|
type: object
|
request.UpdateSalesLeads:
|
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
|
type: object
|
request.UpdateSalesSources:
|
properties:
|
id:
|
type: integer
|
name:
|
type: string
|
required:
|
- id
|
- name
|
type: object
|
request.UpdateSalesSourcesList:
|
properties:
|
sales_sourcess:
|
items:
|
$ref: '#/definitions/request.UpdateSalesSources'
|
type: array
|
type: object
|
response.CityResponse:
|
properties:
|
list:
|
items:
|
$ref: '#/definitions/model.City'
|
type: array
|
type: object
|
response.ClientLevelResponse:
|
properties:
|
list:
|
items:
|
$ref: '#/definitions/model.ClientLevel'
|
type: array
|
type: object
|
response.ClientOriginResponse:
|
properties:
|
list:
|
items:
|
$ref: '#/definitions/model.ClientOrigin'
|
type: array
|
type: object
|
response.ClientResponse:
|
properties:
|
list:
|
items:
|
$ref: '#/definitions/model.Client'
|
type: array
|
type: object
|
response.ClientStatusResponse:
|
properties:
|
list:
|
items:
|
$ref: '#/definitions/model.ClientStatus'
|
type: array
|
type: object
|
response.ClientTypeResponse:
|
properties:
|
list:
|
items:
|
$ref: '#/definitions/model.ClientType'
|
type: array
|
type: object
|
response.ContactResponse:
|
properties:
|
list:
|
items:
|
$ref: '#/definitions/model.Contact'
|
type: array
|
type: object
|
response.CountryResponse:
|
properties:
|
list:
|
items:
|
$ref: '#/definitions/model.Country'
|
type: array
|
type: object
|
response.EnterpriseNatureResponse:
|
properties:
|
list:
|
items:
|
$ref: '#/definitions/model.EnterpriseNature'
|
type: array
|
type: object
|
response.EnterpriseScaleResponse:
|
properties:
|
list:
|
items:
|
$ref: '#/definitions/model.EnterpriseScale'
|
type: array
|
type: object
|
response.FollowRecordResponse:
|
properties:
|
list:
|
items:
|
$ref: '#/definitions/model.FollowRecord'
|
type: array
|
type: object
|
response.IndustryResponse:
|
properties:
|
list:
|
items:
|
$ref: '#/definitions/model.Industry'
|
type: array
|
type: object
|
response.LoginResponse:
|
properties:
|
expiresAt:
|
type: integer
|
token:
|
type: string
|
user:
|
$ref: '#/definitions/model.User'
|
type: object
|
response.PageResult:
|
properties:
|
list: {}
|
page:
|
type: integer
|
pageSize:
|
type: integer
|
total:
|
type: integer
|
type: object
|
response.ProvinceResponse:
|
properties:
|
list:
|
items:
|
$ref: '#/definitions/model.Province'
|
type: array
|
type: object
|
response.RegisteredCapitalResponse:
|
properties:
|
list:
|
items:
|
$ref: '#/definitions/model.RegisteredCapital'
|
type: array
|
type: object
|
response.SaleChanceResponse:
|
properties:
|
list:
|
items:
|
$ref: '#/definitions/model.SaleChance'
|
type: array
|
type: object
|
response.SalesLeadsResponse:
|
properties:
|
list:
|
items:
|
$ref: '#/definitions/model.SalesLeads'
|
type: array
|
type: object
|
response.SalesSourceResponse:
|
properties:
|
list:
|
items:
|
$ref: '#/definitions/model.SalesSources'
|
type: array
|
type: object
|
response.UserResponse:
|
properties:
|
user:
|
$ref: '#/definitions/model.User'
|
type: object
|
info:
|
contact: {}
|
paths:
|
/api/base/captcha:
|
post:
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: 成功
|
schema:
|
allOf:
|
- $ref: '#/definitions/contextx.Response'
|
- properties:
|
data:
|
$ref: '#/definitions/response.LoginResponse'
|
type: object
|
summary: 获取验证码
|
tags:
|
- Base
|
/api/base/login:
|
post:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.Login'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: 成功
|
schema:
|
allOf:
|
- $ref: '#/definitions/contextx.Response'
|
- properties:
|
data:
|
$ref: '#/definitions/response.LoginResponse'
|
type: object
|
summary: 用户登录
|
tags:
|
- Base
|
/api/city/add:
|
post:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.AddCity'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 添加城市
|
tags:
|
- City
|
/api/city/delete/{id}:
|
delete:
|
parameters:
|
- description: 城市ID
|
in: path
|
name: id
|
required: true
|
type: integer
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 删除城市
|
tags:
|
- City
|
/api/city/list:
|
get:
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: 成功
|
schema:
|
allOf:
|
- $ref: '#/definitions/contextx.Response'
|
- properties:
|
data:
|
$ref: '#/definitions/response.CityResponse'
|
type: object
|
summary: 获取城市列表
|
tags:
|
- City
|
/api/city/set:
|
put:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.SetCity'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 设置城市
|
tags:
|
- City
|
/api/city/update:
|
put:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.UpdateCities'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 更新城市
|
tags:
|
- City
|
/api/client/add:
|
post:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.AddClient'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 添加客户
|
tags:
|
- Client
|
/api/client/delete/{id}:
|
delete:
|
parameters:
|
- description: 客户ID
|
in: path
|
name: id
|
required: true
|
type: integer
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 删除客户
|
tags:
|
- Client
|
/api/client/list:
|
get:
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
allOf:
|
- $ref: '#/definitions/contextx.Response'
|
- properties:
|
data:
|
$ref: '#/definitions/response.ClientResponse'
|
type: object
|
summary: 获取客户列表
|
tags:
|
- Client
|
/api/client/update:
|
post:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.UpdateClient'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 更新客户
|
tags:
|
- Client
|
/api/clientLevel/add:
|
post:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.AddClientType'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 添加客户类型
|
tags:
|
- ClientLevel
|
/api/clientLevel/delete/{id}:
|
delete:
|
parameters:
|
- description: 客户类型ID
|
in: path
|
name: id
|
required: true
|
type: integer
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 删除客户类型
|
tags:
|
- ClientLevel
|
/api/clientLevel/list:
|
get:
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
allOf:
|
- $ref: '#/definitions/contextx.Response'
|
- properties:
|
data:
|
$ref: '#/definitions/response.ClientLevelResponse'
|
type: object
|
summary: 客户类型列表
|
tags:
|
- ClientLevel
|
/api/clientLevel/update:
|
put:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.UpdateClientLevelList'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 更新客户类型
|
tags:
|
- ClientLevel
|
/api/clientOrigin/add:
|
post:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.AddClientOrigin'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 添加客户来源
|
tags:
|
- ClientOrigin
|
/api/clientOrigin/delete/{id}:
|
delete:
|
parameters:
|
- description: 客户来源ID
|
in: path
|
name: id
|
required: true
|
type: integer
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 删除客户来源
|
tags:
|
- ClientOrigin
|
/api/clientOrigin/list:
|
get:
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
allOf:
|
- $ref: '#/definitions/contextx.Response'
|
- properties:
|
data:
|
$ref: '#/definitions/response.ClientOriginResponse'
|
type: object
|
summary: 获取客户来源列表
|
tags:
|
- ClientOrigin
|
/api/clientOrigin/update:
|
put:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.UpdateClientOriginList'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 更新客户来源
|
tags:
|
- ClientOrigin
|
/api/clientStatus/add:
|
post:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.AddClientStatus'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 添加客户状态
|
tags:
|
- ClientStatus
|
/api/clientStatus/delete/{id}:
|
delete:
|
parameters:
|
- description: 客户状态ID
|
in: path
|
name: id
|
required: true
|
type: integer
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 删除客户状态
|
tags:
|
- ClientStatus
|
/api/clientStatus/list:
|
get:
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
allOf:
|
- $ref: '#/definitions/contextx.Response'
|
- properties:
|
data:
|
$ref: '#/definitions/response.ClientStatusResponse'
|
type: object
|
summary: 获取客户状态列表
|
tags:
|
- ClientStatus
|
/api/clientStatus/update:
|
put:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.UpdateClientStatuses'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 更新客户状态
|
tags:
|
- ClientStatus
|
/api/clientType/add:
|
post:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.AddClientType'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 添加客户类型
|
tags:
|
- ClientType
|
/api/clientType/delete/{id}:
|
delete:
|
parameters:
|
- description: 客户类型ID
|
in: path
|
name: id
|
required: true
|
type: integer
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 删除客户类型
|
tags:
|
- ClientType
|
/api/clientType/list:
|
get:
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
allOf:
|
- $ref: '#/definitions/contextx.Response'
|
- properties:
|
data:
|
$ref: '#/definitions/response.ClientTypeResponse'
|
type: object
|
summary: 获取客户类型列表
|
tags:
|
- ClientType
|
/api/clientType/update:
|
put:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.UpdateClientTypes'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 更新客户类型
|
tags:
|
- ClientType
|
/api/contact/add:
|
post:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.AddContact'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 添加联系人
|
tags:
|
- Contact
|
/api/contact/delete/{id}:
|
delete:
|
parameters:
|
- description: 查询参数
|
in: path
|
name: id
|
required: true
|
type: integer
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 删除联系人
|
tags:
|
- Contact
|
/api/contact/list:
|
get:
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
allOf:
|
- $ref: '#/definitions/contextx.Response'
|
- properties:
|
data:
|
$ref: '#/definitions/response.ContactResponse'
|
type: object
|
summary: 联系人列表
|
tags:
|
- Contact
|
/api/contact/update:
|
put:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.UpdateContact'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 更新联系人
|
tags:
|
- Contact
|
/api/country/add:
|
post:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.AddCountry'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 添加国家
|
tags:
|
- Country
|
/api/country/delete:
|
delete:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.DeleteCountry'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 删除国家
|
tags:
|
- Country
|
/api/country/list:
|
get:
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: 成功
|
schema:
|
allOf:
|
- $ref: '#/definitions/contextx.Response'
|
- properties:
|
data:
|
$ref: '#/definitions/response.CountryResponse'
|
type: object
|
summary: 获取国家列表
|
tags:
|
- Country
|
/api/country/update:
|
put:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.UpdateCountry'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 更新国家
|
tags:
|
- Country
|
/api/enterpriseNature/add:
|
post:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.AddEnterpriseNature'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 添加企业性质
|
tags:
|
- EnterpriseNature
|
/api/enterpriseNature/delete/{id}:
|
delete:
|
parameters:
|
- description: 企业性质ID
|
in: path
|
name: id
|
required: true
|
type: integer
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 删除企业性质
|
tags:
|
- EnterpriseNature
|
/api/enterpriseNature/list:
|
get:
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
allOf:
|
- $ref: '#/definitions/contextx.Response'
|
- properties:
|
data:
|
$ref: '#/definitions/response.EnterpriseNatureResponse'
|
type: object
|
summary: 企业性质列表
|
tags:
|
- EnterpriseNature
|
/api/enterpriseNature/update:
|
put:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.UpdateEnterpriseNatures'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 更新企业性质
|
tags:
|
- EnterpriseNature
|
/api/enterpriseScale/add:
|
post:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.AddEnterpriseScale'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 添加企业规模
|
tags:
|
- EnterpriseScale
|
/api/enterpriseScale/delete/{id}:
|
delete:
|
parameters:
|
- description: 企业规模ID
|
in: path
|
name: id
|
required: true
|
type: integer
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 删除企业规模
|
tags:
|
- EnterpriseScale
|
/api/enterpriseScale/list:
|
get:
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
allOf:
|
- $ref: '#/definitions/contextx.Response'
|
- properties:
|
data:
|
$ref: '#/definitions/response.EnterpriseScaleResponse'
|
type: object
|
summary: 企业规模列表
|
tags:
|
- EnterpriseScale
|
/api/enterpriseScale/update:
|
put:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.UpdateEnterpriseScales'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 更新企业规模
|
tags:
|
- EnterpriseScale
|
/api/followRecord/add:
|
post:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.AddFollowRecord'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 添加跟进记录
|
tags:
|
- FollowRecord
|
/api/followRecord/delete/{id}:
|
delete:
|
parameters:
|
- description: 跟进记录id
|
in: path
|
name: id
|
required: true
|
type: string
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 删除跟进记录
|
tags:
|
- FollowRecord
|
/api/followRecord/list:
|
get:
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
allOf:
|
- $ref: '#/definitions/contextx.Response'
|
- properties:
|
data:
|
$ref: '#/definitions/response.FollowRecordResponse'
|
type: object
|
summary: 获取跟进记录列表
|
tags:
|
- FollowRecord
|
/api/followRecord/update:
|
put:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.UpdateFollowRecord'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 更新跟进记录
|
tags:
|
- FollowRecord
|
/api/image/upload:
|
post:
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: 成功
|
schema:
|
allOf:
|
- $ref: '#/definitions/contextx.Response'
|
- properties:
|
data:
|
$ref: '#/definitions/response.LoginResponse'
|
type: object
|
summary: 上传图像
|
tags:
|
- Image
|
/api/industry/add:
|
post:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.AddIndustry'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 添加行业
|
tags:
|
- Industry
|
/api/industry/delete/{id}:
|
delete:
|
parameters:
|
- description: 行业ID
|
in: path
|
name: id
|
required: true
|
type: integer
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 删除行业
|
tags:
|
- Industry
|
/api/industry/list:
|
get:
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
allOf:
|
- $ref: '#/definitions/contextx.Response'
|
- properties:
|
data:
|
$ref: '#/definitions/response.IndustryResponse'
|
type: object
|
summary: 行业列表
|
tags:
|
- Industry
|
/api/industry/update:
|
put:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.UpdateIndustries'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 更新行业
|
tags:
|
- Industry
|
/api/province/add:
|
post:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.AddProvince'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 添加省份
|
tags:
|
- Province
|
/api/province/delete/{id}:
|
delete:
|
parameters:
|
- description: 省份ID
|
in: path
|
name: id
|
required: true
|
type: integer
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 删除省份
|
tags:
|
- Province
|
/api/province/list:
|
get:
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
allOf:
|
- $ref: '#/definitions/contextx.Response'
|
- properties:
|
data:
|
$ref: '#/definitions/response.ProvinceResponse'
|
type: object
|
summary: 获取省份列表
|
tags:
|
- Province
|
/api/province/set:
|
put:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.SetProvinces'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 设置省份
|
tags:
|
- Province
|
/api/province/update:
|
put:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.UpdateProvinces'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 更新省份
|
tags:
|
- Province
|
/api/region/add:
|
post:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.AddRegion'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 添加地区
|
tags:
|
- Region
|
/api/region/delete/{id}:
|
delete:
|
parameters:
|
- description: 地区ID
|
in: path
|
name: id
|
required: true
|
type: integer
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 删除地区
|
tags:
|
- Region
|
/api/region/list:
|
get:
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 地区列表
|
tags:
|
- Region
|
/api/region/set:
|
put:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.SetRegions'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 设置地区
|
tags:
|
- Region
|
/api/region/update:
|
put:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.UpdateRegions'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 更新地区
|
tags:
|
- Region
|
/api/registeredCapital/add:
|
post:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.AddRegisteredCapital'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 添加注册资本
|
tags:
|
- RegisteredCapital
|
/api/registeredCapital/delete/{id}:
|
delete:
|
parameters:
|
- description: 注册资本ID
|
in: path
|
name: id
|
required: true
|
type: integer
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 删除注册资本
|
tags:
|
- RegisteredCapital
|
/api/registeredCapital/list:
|
get:
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
allOf:
|
- $ref: '#/definitions/contextx.Response'
|
- properties:
|
data:
|
$ref: '#/definitions/response.RegisteredCapitalResponse'
|
type: object
|
summary: 获取注册资本列表
|
tags:
|
- RegisteredCapital
|
/api/registeredCapital/update:
|
put:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.UpdateRegisteredCapitals'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 更新注册资本
|
tags:
|
- RegisteredCapital
|
/api/saleChance/add:
|
post:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.AddSaleChance'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 添加销售机会
|
tags:
|
- SaleChance
|
/api/saleChance/delete/{id}:
|
delete:
|
parameters:
|
- description: 查询参数
|
in: path
|
name: id
|
required: true
|
type: integer
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 删除销售机会
|
tags:
|
- SaleChance
|
/api/saleChance/list:
|
get:
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
allOf:
|
- $ref: '#/definitions/contextx.Response'
|
- properties:
|
data:
|
$ref: '#/definitions/response.SaleChanceResponse'
|
type: object
|
summary: 获取销售机会列表
|
tags:
|
- SaleChance
|
/api/saleChance/update:
|
put:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.UpdateSaleChance'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 更新销售机会
|
tags:
|
- SaleChance
|
/api/salesLeads/add:
|
post:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.AddSalesLeads'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 添加销售线索
|
tags:
|
- SalesLeads
|
/api/salesLeads/delete/{id}:
|
delete:
|
parameters:
|
- description: 查询参数
|
in: path
|
name: id
|
required: true
|
type: integer
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 删除销售线索
|
tags:
|
- SalesLeads
|
/api/salesLeads/list:
|
get:
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
allOf:
|
- $ref: '#/definitions/contextx.Response'
|
- properties:
|
data:
|
$ref: '#/definitions/response.SalesLeadsResponse'
|
type: object
|
summary: 获取销售线索列表
|
tags:
|
- SalesLeads
|
/api/salesLeads/update:
|
put:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.UpdateSalesLeads'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 更新销售线索
|
tags:
|
- SalesLeads
|
/api/salesSources/add:
|
post:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.AddSalesSources'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 添加商机来源
|
tags:
|
- SalesSources
|
/api/salesSources/delete/{id}:
|
delete:
|
parameters:
|
- description: 商机来源ID
|
in: path
|
name: id
|
required: true
|
type: integer
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 删除商机来源
|
tags:
|
- SalesSources
|
/api/salesSources/list:
|
get:
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
allOf:
|
- $ref: '#/definitions/contextx.Response'
|
- properties:
|
data:
|
$ref: '#/definitions/response.SalesSourceResponse'
|
type: object
|
summary: 商机来源列表
|
tags:
|
- SalesSources
|
/api/salesSources/update:
|
put:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.UpdateSalesSourcesList'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: OK
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 更新商机来源
|
tags:
|
- SalesSources
|
/api/user/changePassword:
|
post:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.ChangePasswordReq'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: 成功
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 用户修改密码
|
tags:
|
- User
|
/api/user/deleteUser:
|
delete:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.DeleteUserReq'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: 成功
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 删除用户
|
tags:
|
- User
|
/api/user/getUserInfo:
|
post:
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: 成功
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 获取自身信息
|
tags:
|
- User
|
/api/user/getUserList:
|
post:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.GetUserList'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: 成功
|
schema:
|
allOf:
|
- $ref: '#/definitions/contextx.Response'
|
- properties:
|
data:
|
$ref: '#/definitions/response.PageResult'
|
type: object
|
summary: 分页获取用户列表(不传分页参数,获取全部)
|
tags:
|
- User
|
/api/user/register:
|
post:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.Register'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: 成功
|
schema:
|
allOf:
|
- $ref: '#/definitions/contextx.Response'
|
- properties:
|
data:
|
$ref: '#/definitions/response.UserResponse'
|
type: object
|
summary: 注册账号
|
tags:
|
- User
|
/api/user/resetPassword:
|
post:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/model.User'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: 成功
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 重置用户密码
|
tags:
|
- User
|
/api/user/setSelfInfo:
|
post:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.ChangeUserInfo'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: 成功
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 设置用户信息
|
tags:
|
- User
|
/api/user/setUserInfo:
|
post:
|
parameters:
|
- description: 查询参数
|
in: body
|
name: object
|
required: true
|
schema:
|
$ref: '#/definitions/request.ChangeUserInfo'
|
produces:
|
- application/json
|
responses:
|
"200":
|
description: 成功
|
schema:
|
$ref: '#/definitions/contextx.Response'
|
summary: 设置用户信息
|
tags:
|
- User
|
swagger: "2.0"
|