liujiandao
2024-01-11 40e540f8ca398fee68f4520dbebd6db6fe2e164c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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"`             // 备注
    DetailAddress   string `json:"detail_address"`   // 详细地址
    CodeStandID     string `json:"codeStandID"`      //编码id
    Address
}
 
type UpdateSalesLeads struct {
    Id int `json:"id"`
    SalesLeads
}
 
type GetSalesLeadsList struct {
    PageInfo
    SearchMap map[string]interface{} `json:"search_map"` // 搜索条件: map[string]interface{}{"name": "xxx"} {"name": "客户名称", "number": "销售线索编号", "contact_name": "联系人姓名", "phone": "手机号码", "sales_resources": "商机来源", "city": "城市", "province": "省份", "member_name": "负责人"}
}
 
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"`
}