package request
|
|
import (
|
"aps_crm/model"
|
)
|
|
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
|
Products []*model.Product `json:"products" gorm:"many2many:SaleChance_Product;"`
|
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"`
|
}
|