浏览代码

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

正在加载...
取消
保存