feat: added types into the main amo package.
This commit is contained in:
parent
4edffe94f3
commit
df24215dcb
2 changed files with 11 additions and 1 deletions
|
@ -2,8 +2,17 @@ package amo
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"surdeus.su/core/amo/api"
|
"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 (
|
const (
|
||||||
// Maximum entities for once.
|
// Maximum entities for once.
|
||||||
// It is set to be the most effective
|
// It is set to be the most effective
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import "surdeus.su/core/amo"
|
import "surdeus.su/core/amo"
|
||||||
|
//import "surdeus.su/core/amo/api"
|
||||||
import "surdeus.su/core/ss/urlenc"
|
import "surdeus.su/core/ss/urlenc"
|
||||||
import "surdeus.su/core/cli/mtool"
|
import "surdeus.su/core/cli/mtool"
|
||||||
import "encoding/json"
|
import "encoding/json"
|
||||||
|
@ -27,7 +28,7 @@ var getLead = mtool.T("get-leads").Func(func(flags *mtool.Flags){
|
||||||
ids[i], err = strconv.Atoi(idStr)
|
ids[i], err = strconv.Atoi(idStr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Error: Atoi(%q): %s\n", err)
|
log.Printf("Error: Atoi(%q): %s\n", err)
|
||||||
return
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue