move types to app
parent
eeb50ab5a7
commit
678e0607e3
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
package app
|
||||
|
||||
// Address address struct
|
||||
type Address struct {
|
||||
City string
|
||||
Country string
|
||||
CountryCode string
|
||||
PostalCode string
|
||||
State string
|
||||
StateCode string
|
||||
Street string
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import (
|
||||
"database/sql"
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
// Domain is a first class object type
|
||||
type Domain struct {
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import (
|
||||
"database/sql"
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import (
|
||||
"database/sql"
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import (
|
||||
"database/sql"
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import (
|
||||
"database/sql"
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import (
|
||||
"database/sql"
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
||||
// AppLog is a first class object type
|
||||
type AppLog struct {
|
||||
// Log is a first class object type
|
||||
type Log struct {
|
||||
ID string
|
||||
AccountID string
|
||||
CompanyID string
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
// OutgoingEmailMessage is a first class object type
|
||||
type OutgoingEmailMessage struct {
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
// OutgoingEmailMessageReceipt is a first class object type
|
||||
type OutgoingEmailMessageReceipt struct {
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import (
|
||||
"database/sql"
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "github.com/go-sql-driver/mysql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "github.com/go-sql-driver/mysql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import (
|
||||
"database/sql"
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import (
|
||||
"database/sql"
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import (
|
||||
"database/sql"
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import (
|
||||
"database/sql"
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
// TaxnexusCode is a first class object type
|
||||
type TaxnexusCode struct {
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
// TaxRate is a principal object type
|
||||
type TaxRate struct {
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import (
|
||||
"database/sql"
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
// TenantUser is a first class object type
|
||||
type TenantUser struct {
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
// Total is a DB object
|
||||
type Total struct {
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
// TotalItem is a DB struct
|
||||
type TotalItem struct {
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
// TotalTaxItem is a DB struct
|
||||
type TotalTaxItem struct {
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
import "database/sql"
|
||||
|
50
app/user.go
50
app/user.go
|
@ -4,7 +4,7 @@ import (
|
|||
"github.com/go-openapi/runtime"
|
||||
)
|
||||
|
||||
// User is a fist-class object in the app package
|
||||
// User is a first class object type
|
||||
type User struct {
|
||||
ID string
|
||||
AboutMe string
|
||||
|
@ -67,51 +67,3 @@ type User struct {
|
|||
UserRoleID string
|
||||
UserType string
|
||||
}
|
||||
|
||||
// UserRole is a fist-class object in the app package
|
||||
type UserRole struct {
|
||||
AccountID string
|
||||
Auth0RoleID string
|
||||
Auth0UserID string
|
||||
CompanyName string
|
||||
ContactID string
|
||||
RoleDescription string
|
||||
RoleID string
|
||||
RoleName string
|
||||
TaxnexusAccount string
|
||||
UserEmail string
|
||||
UserFullName string
|
||||
UserID string
|
||||
Username string
|
||||
}
|
||||
|
||||
// TenantUser is a fist-class object in the app package
|
||||
type TenantUser struct {
|
||||
AccessLevel string
|
||||
AccountID string
|
||||
Auth0UserID string
|
||||
CompanyName string
|
||||
ContactID string
|
||||
TaxnexusAccount string
|
||||
TenantActive bool
|
||||
TenantID string
|
||||
TenantName string
|
||||
TenantStatus string
|
||||
TenantType string
|
||||
TenantVersion string
|
||||
UserEmail string
|
||||
UserFullName string
|
||||
UserID string
|
||||
Username string
|
||||
}
|
||||
|
||||
// Address is a fist-class object in the app package
|
||||
type Address struct {
|
||||
City string
|
||||
Country string
|
||||
CountryCode string
|
||||
PostalCode string
|
||||
State string
|
||||
StateCode string
|
||||
Street string
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package types
|
||||
package app
|
||||
|
||||
// UserRole is a first class object type
|
||||
type UserRole struct {
|
|
@ -1,45 +0,0 @@
|
|||
package types
|
||||
|
||||
import (
|
||||
"code.tnxs.net/taxnexus/lib/api/crm/crm_models"
|
||||
)
|
||||
|
||||
// Address address struct
|
||||
type Address struct {
|
||||
City string
|
||||
Country string
|
||||
CountryCode string
|
||||
PostalCode string
|
||||
State string
|
||||
StateCode string
|
||||
Street string
|
||||
}
|
||||
|
||||
func (obj *Address) marshalToCrmSwagger() *crm_models.Address {
|
||||
if obj != nil {
|
||||
return &crm_models.Address{
|
||||
City: obj.City,
|
||||
Country: obj.Country,
|
||||
CountryCode: obj.CountryCode,
|
||||
PostalCode: obj.PostalCode,
|
||||
State: obj.State,
|
||||
StateCode: obj.StateCode,
|
||||
Street: obj.Street,
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
func unMarshalCrmAddress(swag *crm_models.Address) Address {
|
||||
if swag != nil {
|
||||
return Address{
|
||||
City: swag.City,
|
||||
Country: swag.Country,
|
||||
CountryCode: swag.CountryCode,
|
||||
PostalCode: swag.PostalCode,
|
||||
State: swag.State,
|
||||
StateCode: swag.StateCode,
|
||||
Street: swag.Street,
|
||||
}
|
||||
}
|
||||
return Address{}
|
||||
}
|
|
@ -1,2 +0,0 @@
|
|||
// Package types contains all the Taxnexus First Class Object Types
|
||||
package types
|
|
@ -1,71 +0,0 @@
|
|||
package types
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
|
||||
"github.com/go-openapi/runtime"
|
||||
)
|
||||
|
||||
// User is a first class object type
|
||||
type User struct {
|
||||
ID string
|
||||
AboutMe string
|
||||
AccountID string
|
||||
Address *Address
|
||||
Alias string
|
||||
APIKey string
|
||||
Auth runtime.ClientAuthInfoWriter
|
||||
Auth0UserID string
|
||||
CommunityNickname string
|
||||
CompanyName string
|
||||
ContactID string
|
||||
CreatedByID string
|
||||
CreatedDate sql.NullTime
|
||||
DelegatedApproverID string
|
||||
Department string
|
||||
Division string
|
||||
Email string
|
||||
EmployeeNumber string
|
||||
EndOfDay string
|
||||
Environment string
|
||||
Extension string
|
||||
FabricAPIKey string
|
||||
Fax string
|
||||
FirstName string
|
||||
ForecastEnabled bool
|
||||
FullPhotoURL string
|
||||
IsActive bool
|
||||
IsPortalEnabled bool
|
||||
IsProfilePhotoActive bool
|
||||
IsSystemControlled bool
|
||||
LastIP string
|
||||
LastLogin sql.NullTime
|
||||
LastModifiedByID string
|
||||
LastModifiedDate sql.NullTime
|
||||
LastName string
|
||||
LoginCount int64
|
||||
ManagerID string
|
||||
MobilePhone string
|
||||
Name string
|
||||
OutOfOfficeMessage string
|
||||
Phone string
|
||||
PortalRole string
|
||||
ProfileID string
|
||||
ReceivesAdminEmails bool
|
||||
ReceivesAdminInfoEmails bool
|
||||
ReceivesInfoEmails bool
|
||||
SenderEmail string
|
||||
SenderName string
|
||||
Signature string
|
||||
SmallPhotoURL string
|
||||
StartOfDay string
|
||||
TaxnexusAccount string
|
||||
TenantID string
|
||||
TenantUsers []*TenantUser
|
||||
TimeZone string
|
||||
Title string
|
||||
Username string
|
||||
UserRoles []*UserRole
|
||||
UserRoleID string
|
||||
UserType string
|
||||
}
|
Loading…
Reference in New Issue