Ver código fonte

crmSetStatus for Lead

master
Patrick Peng Sun 8 anos atrás
pai
commit
95ab618253
1 arquivos alterados com 15 adições e 0 exclusões
  1. +15
    -0
      crmLead.go

+ 15
- 0
crmLead.go Ver arquivo

@@ -113,3 +113,18 @@ func crmPatchLeadInfo(newInfo crmdLead) (updatedLead crmdLead, err error) {
}
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)
}

Carregando…
Cancelar
Salvar