diff --git a/amocrm.go b/amocrm.go index a6bcf2d..1127aff 100644 --- a/amocrm.go +++ b/amocrm.go @@ -2,8 +2,17 @@ package amo import ( "surdeus.su/core/amo/api" + "surdeus.su/core/amo/leads" + "surdeus.su/core/amo/companies" + "surdeus.su/core/amo/contacts" + "surdeus.su/core/amo/events" ) +type Lead = leads.Lead +type Company = companies.Company +type Contact = contacts.Contact +type Event = events.Event + const ( // Maximum entities for once. // It is set to be the most effective diff --git a/cmd/amocli/getlead.go b/cmd/amocli/getlead.go index 0aba4c8..732bae5 100644 --- a/cmd/amocli/getlead.go +++ b/cmd/amocli/getlead.go @@ -1,6 +1,7 @@ package main import "surdeus.su/core/amo" +//import "surdeus.su/core/amo/api" import "surdeus.su/core/ss/urlenc" import "surdeus.su/core/cli/mtool" import "encoding/json" @@ -27,7 +28,7 @@ var getLead = mtool.T("get-leads").Func(func(flags *mtool.Flags){ ids[i], err = strconv.Atoi(idStr) if err != nil { log.Printf("Error: Atoi(%q): %s\n", err) - return + continue } }