소스 검색

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