feat: added types into the main amo package.

This commit is contained in:
Andrey Parhomenko 2024-05-31 15:50:28 +05:00
parent 4edffe94f3
commit df24215dcb
2 changed files with 11 additions and 1 deletions

View file

@ -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

View file

@ -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
}
}