| } | } | ||||
| return | return | ||||
| } | } | ||||
| func crmLeadSetStatusNew(id string) { | |||||
| crmLeadSetStatus(id, "New") | |||||
| } | |||||
| func crmLeadSetStatusDead(id string) { | |||||
| crmLeadSetStatus(id, "Dead") | |||||
| } | |||||
| func crmLeadSetStatus(id string, status string) { | |||||
| newLead := crmdLead{} | |||||
| newLead.ID = id | |||||
| newLead.Status = status | |||||
| crmPatchLeadInfo(newLead) | |||||
| } |