瀏覽代碼

bugfix: adding known entity type

master
Patrick Peng Sun 9 年之前
父節點
當前提交
014b7f8442
共有 1 個檔案被更改,包括 8 行新增2 行删除
  1. +8
    -2
      crmEntity.go

+ 8
- 2
crmEntity.go 查看文件

e := crmdLead{} e := crmdLead{}
err = json.Unmarshal([]byte(data), &e) err = json.Unmarshal([]byte(data), &e)
r = e r = e
case "Account":
//r = crmdAccount{}
case "Livecast":
e := crmdLiveCast{}
err = json.Unmarshal([]byte(data), &e)
r = e
case "Meeting":
e := crmdMeeting{}
err = json.Unmarshal([]byte(data), &e)
r = e
case "Location": case "Location":
e := crmdLocation{} e := crmdLocation{}
err = json.Unmarshal([]byte(data), &e) err = json.Unmarshal([]byte(data), &e)

Loading…
取消
儲存