move types to app

v0.0.10
Vernon Keenan 2021-01-10 15:44:39 -08:00
parent eeb50ab5a7
commit 678e0607e3
79 changed files with 89 additions and 243 deletions

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

12
app/address.go Normal file
View File

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

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import ( import (
"database/sql" "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
// Domain is a first class object type // Domain is a first class object type
type Domain struct { type Domain struct {

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import ( import (
"database/sql" "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import ( import (
"database/sql" "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import ( import (
"database/sql" "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import ( import (
"database/sql" "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import ( import (
"database/sql" "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,9 +1,9 @@
package types package app
import "database/sql" import "database/sql"
// AppLog is a first class object type // Log is a first class object type
type AppLog struct { type Log struct {
ID string ID string
AccountID string AccountID string
CompanyID string CompanyID string

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
// OutgoingEmailMessage is a first class object type // OutgoingEmailMessage is a first class object type
type OutgoingEmailMessage struct { type OutgoingEmailMessage struct {

View File

@ -1,4 +1,4 @@
package types package app
// OutgoingEmailMessageReceipt is a first class object type // OutgoingEmailMessageReceipt is a first class object type
type OutgoingEmailMessageReceipt struct { type OutgoingEmailMessageReceipt struct {

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import ( import (
"database/sql" "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "github.com/go-sql-driver/mysql" import "github.com/go-sql-driver/mysql"

View File

@ -1,4 +1,4 @@
package types package app
import "github.com/go-sql-driver/mysql" import "github.com/go-sql-driver/mysql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import ( import (
"database/sql" "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import ( import (
"database/sql" "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import ( import (
"database/sql" "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import ( import (
"database/sql" "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
// TaxnexusCode is a first class object type // TaxnexusCode is a first class object type
type TaxnexusCode struct { type TaxnexusCode struct {

View File

@ -1,4 +1,4 @@
package types package app
// TaxRate is a principal object type // TaxRate is a principal object type
type TaxRate struct { type TaxRate struct {

View File

@ -1,4 +1,4 @@
package types package app
import ( import (
"database/sql" "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -1,4 +1,4 @@
package types package app
// TenantUser is a first class object type // TenantUser is a first class object type
type TenantUser struct { type TenantUser struct {

View File

@ -1,4 +1,4 @@
package types package app
// Total is a DB object // Total is a DB object
type Total struct { type Total struct {

View File

@ -1,4 +1,4 @@
package types package app
// TotalItem is a DB struct // TotalItem is a DB struct
type TotalItem struct { type TotalItem struct {

View File

@ -1,4 +1,4 @@
package types package app
// TotalTaxItem is a DB struct // TotalTaxItem is a DB struct
type TotalTaxItem struct { type TotalTaxItem struct {

View File

@ -1,4 +1,4 @@
package types package app
import "database/sql" import "database/sql"

View File

@ -4,7 +4,7 @@ import (
"github.com/go-openapi/runtime" "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 { type User struct {
ID string ID string
AboutMe string AboutMe string
@ -67,51 +67,3 @@ type User struct {
UserRoleID string UserRoleID string
UserType 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
}

View File

@ -1,4 +1,4 @@
package types package app
// UserRole is a first class object type // UserRole is a first class object type
type UserRole struct { type UserRole struct {

View File

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

View File

@ -1,2 +0,0 @@
// Package types contains all the Taxnexus First Class Object Types
package types

View File

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