소스 검색

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…
취소
저장