zhangqian
2023-10-17 b45b8ce8051e2ad9c80aafa42d1a5892f6a36bce
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package request
 
import "aps_crm/proto/code"
 
type AddSaleChance struct {
    SaleChance
}
 
type SaleChance struct {
    Name               string            `json:"name"`
    ClientId           int               `json:"client_id"`
    Number             string            `json:"number"`
    ContactId          int               `json:"contact_id"`
    SalesSourcesId     int               `json:"sales_sources_id"`
    SaleTypeId         int               `json:"sale_type_id"`
    SaleStageId        int               `json:"sale_stage_id"`
    MemberId           int               `json:"member_id"`
    RegularCustomersId int               `json:"regular_customers_id"`
    Competitors        string            `json:"competitors"`
    Possibilities      int               `json:"possibilities"`
    Budget             float64           `json:"budget"`
    ProjectedAmount    float64           `json:"projected_amount"`
    Currency           int               `json:"currency"`
    ExpectedTime       string            `json:"expected_time"`
    StatusId           int               `json:"status_id"`
    PainPoints         string            `json:"pain_points"`
    WhetherEstablished string            `json:"whether_established"`
    CapitalBudget      string            `json:"capital_budget"`
    KeyMaker           string            `json:"key_maker"`
    KeyFactors         string            `json:"key_factors"`
    Process            string            `json:"process"`
    Solutions          string            `json:"solutions"`
    Advantages         string            `json:"advantages"`
    Disadvantages      string            `json:"disadvantages"`
    Opportunities      string            `json:"opportunities"`
    Threats            string            `json:"threats"`
    Remark             string            `json:"remark"`
    DetailAddress      string            `json:"detail_address"`
    CodeStandID        string            `json:"codeStandID"` //编码id
    CodeRule           code.CodeStandard `json:"codeRule"`
    Address
}
 
type UpdateSaleChance struct {
    Id int `json:"id" binding:"required"`
    SaleChance
}
 
type GetSaleChanceList struct {
    PageInfo
    SearchMap map[string]interface{} `json:"search_map"` // 搜索条件: map[string]interface{}{"name": "xxx"}; {"name": "机会名称", "client_name": "客户名称","number":"编号", "contact_name":"联系人姓名", "member_name": "销售负责人", "status": "状态", "sale_stage": "阶段", "possibilities": "可能性", "expected_time": "预计成交时间", "budget": "资金绝对值", "projected_amount": "预计合同金额"}
}
 
type PushSaleChance struct {
    Id   int `json:"id" binding:"required"`
    Step int `json:"step" binding:"required"`
}
 
type DeleteSaleChance struct {
    Ids []int `json:"ids"`
}