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

bugfix: adding known entity type

master
Patrick Peng Sun пре 8 година
родитељ
комит
014b7f8442
1 измењених фајлова са 8 додато и 2 уклоњено
  1. +8
    -2
      crmEntity.go

+ 8
- 2
crmEntity.go Прегледај датотеку

@@ -79,8 +79,14 @@ func crmJSON2Entity(entityType string, data string) (r interface{}, err error) {
e := crmdLead{}
err = json.Unmarshal([]byte(data), &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":
e := crmdLocation{}
err = json.Unmarshal([]byte(data), &e)

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