Преглед изворни кода

crmSetStatus for Lead

master
Patrick Peng Sun пре 8 година
родитељ
комит
95ab618253
1 измењених фајлова са 15 додато и 0 уклоњено
  1. +15
    -0
      crmLead.go

+ 15
- 0
crmLead.go Прегледај датотеку

@@ -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)
}

Loading…
Откажи
Сачувај