| | |
| | | |
| | | import ( |
| | | "aps_crm/model" |
| | | "aps_crm/proto/code" |
| | | ) |
| | | |
| | | type AddSaleChance struct { |
| | |
| | | } |
| | | |
| | | 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"` |
| | | Products []*model.Product `json:"products" gorm:"many2many:SaleChance_Product;"` |
| | | 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 |
| | | } |
| | | |