package model import ( "aps_crm/constvar" "time" ) type ( SaleChange struct { Id int `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"` Name string `json:"name" gorm:"column:name;type:varchar(255);comment:公司名称"` Number string `json:"number" gorm:"column:number;type:varchar(255);comment:销售线索编号"` ContactId int `json:"contact_id" gorm:"column:contact_id;type:int(11);comment:联系人ID"` ClientId int `json:"client_id" gorm:"column:client_id;type:int(11);comment:客户ID"` SalesSourcesId int `json:"sales_sources_id" gorm:"column:sales_sources_id;type:int(11);comment:商机来源ID"` SaleTypeId int `json:"sale_type_id" gorm:"column:sale_type_id;type:int(11);comment:商机类型ID"` SaleStageId int `json:"sale_stage_id" gorm:"column:sale_stage_id;type:int(11);comment:商机阶段ID"` MemberId int `json:"member_id" gorm:"column:member_id;type:int(11);comment:销售负责人ID"` RegularCustomersId int `json:"regular_customers_id" gorm:"column:regular_customers_id;type:int(11);comment:常客ID"` Competitors string `json:"competitors" gorm:"column:competitors;type:varchar(255);comment:竞争对手"` Possibilities int `json:"possibilities" gorm:"column:possibilities;type:int(11);comment:可能性"` Budget float64 `json:"budget" gorm:"column:budget;type:decimal(10,2);comment:预算"` ProjectedAmount float64 `json:"projected_amount" gorm:"column:projected_amount;type:decimal(10,2);comment:预计金额"` Currency constvar.CurrencyType `json:"currency" gorm:"column:currency;type:int(11);comment:货币类型"` ExpectedTime time.Time `json:"expected_time" gorm:"column:expected_time;type:datetime;comment:预计成交时间"` StatusId int `json:"status_id" gorm:"column:status_id;type:int(11);comment:状态ID"` PainPoints string `json:"pain_points" gorm:"column:pain_points;type:text;comment:痛点"` WhetherEstablished string `json:"whether_established" gorm:"column:whether_established;type:text;comment:是否成立"` } )