| | |
| | | package request
|
| | |
|
| | | type AddSalesLeads struct {
|
| | | SalesLeads
|
| | | }
|
| | |
|
| | | type SalesLeads struct {
|
| | | Name string `json:"name"` // 公司名称
|
| | | Number string `json:"number"` // 销售线索编号
|
| | | ContactName string `json:"contact_name"` // 联系人姓名
|
| | | ContactPhone string `json:"contact_phone"` // 联系人电话
|
| | | ContactPosition string `json:"contact_position"` // 联系人职位
|
| | | SalesSourcesId int `json:"sales_sources_id"` // 商机来源ID
|
| | | MemberId int `json:"member_id"` // 销售负责人ID
|
| | | Desc string `json:"desc"` // 备注
|
| | | Address
|
| | | }
|
| | |
|
| | | type UpdateSalesLeads struct {
|
| | | Id int `json:"id"`
|
| | | SalesLeads
|
| | | }
|
| | |
|
| | | type GetSalesLeadsList struct {
|
| | | PageInfo
|
| | | Keyword string `json:"keyword"`
|
| | | }
|
| | |
|
| | | type DeleteSalesLeads struct {
|
| | | Ids []int `json:"ids"`
|
| | | }
|
| | | package request |
| | | |
| | | import "aps_crm/constvar" |
| | | |
| | | type AddSalesLeads struct { |
| | | SalesLeads |
| | | } |
| | | |
| | | type SalesLeads struct { |
| | | Name string `json:"name"` // 公司名称 |
| | | Number string `json:"number"` // 销售线索编号 |
| | | ContactName string `json:"contact_name"` // 联系人姓名 |
| | | ContactPhone string `json:"contact_phone"` // 联系人电话 |
| | | ContactPosition string `json:"contact_position"` // 联系人职位 |
| | | SalesSourcesId int `json:"sales_sources_id"` // 商机来源ID |
| | | MemberId int `json:"member_id"` // 销售负责人ID |
| | | Desc string `json:"desc"` // 备注 |
| | | Address |
| | | } |
| | | |
| | | type UpdateSalesLeads struct { |
| | | Id int `json:"id"` |
| | | SalesLeads |
| | | } |
| | | |
| | | type GetSalesLeadsList struct { |
| | | PageInfo |
| | | Keyword string `json:"keyword"` |
| | | } |
| | | |
| | | type DeleteSalesLeads struct { |
| | | Ids []int `json:"ids"` |
| | | } |
| | | |
| | | // swagger:model PushSalesLeads |
| | | type PushSalesLeads struct { |
| | | Id int `json:"id"` |
| | | Step constvar.SalesStatus `json:"step"` // 商机状态: 1: 跟进中; -1:失败 |
| | | Reason string `json:"reason"` |
| | | } |