wrappers, fix auth-based libs

v0.1.1 v0.1.1
Vernon Keenan 2021-01-11 21:46:24 -08:00
parent 678e0607e3
commit 5ab9063400
75 changed files with 759 additions and 54 deletions

View File

@ -1,6 +1,19 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/crm/crm_models"
)
// NewAccountActivity is an activity identifier
const NewAccountActivity = "NEW_ACCOUNT_ACTIVITY"
// AccountChannelWrapper wraps the object with the security principal
type AccountChannelWrapper struct {
Obj crm_models.Account
Principal User
}
// Account is a DB struct // Account is a DB struct
type Account struct { type Account struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/ledger/ledger_models"
)
// AccountingRuleChannelWrapper wraps the object with the security principal
type AccountingRuleChannelWrapper struct {
Obj ledger_models.AccountingRule
Principal User
}
// AccountingRule is a first class object type // AccountingRule is a first class object type
type AccountingRule struct { type AccountingRule struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/ledger/ledger_models"
)
// AccountingRulesetChannelWrapper wraps the object with the security principal
type AccountingRulesetChannelWrapper struct {
Obj ledger_models.AccountingRuleset
Principal User
}
// AccountingRuleset is exported // AccountingRuleset is exported
type AccountingRuleset struct { type AccountingRuleset struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/ledger/ledger_models"
)
// AccountingRulesetItemChannelWrapper wraps the object with the security principal
type AccountingRulesetItemChannelWrapper struct {
Obj ledger_models.AccountingRulesetItem
Principal User
}
// AccountingRulesetItem is a first class object type // AccountingRulesetItem is a first class object type
type AccountingRulesetItem struct { type AccountingRulesetItem struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/regs/regs_models"
)
// BackendChannelWrapper wraps the object with the security principal
type BackendChannelWrapper struct {
Obj regs_models.Backend
Principal User
}
// Backend is a first class object type // Backend is a first class object type
type Backend struct { type Backend struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/ops/ops_models"
)
// CashReceiptChannelWrapper wraps the object with the security principal
type CashReceiptChannelWrapper struct {
Obj ops_models.CashReceipt
Principal User
}
// CashReceipt is a first class object type // CashReceipt is a first class object type
type CashReceipt struct { type CashReceipt struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/ops/ops_models"
)
// ChargeChannelWrapper wraps the object with the security principal
type ChargeChannelWrapper struct {
Obj ops_models.Charge
Principal User
}
// Charge is a first class object type // Charge is a first class object type
type Charge struct { type Charge struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/devops/devops_models"
)
// ClusterChannelWrapper wraps the object with the security principal
type ClusterChannelWrapper struct {
Obj devops_models.Cluster
Principal User
}
// Cluster is a first class object type // Cluster is a first class object type
type Cluster struct { type Cluster struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/crm/crm_models"
)
// CompanyChannelWrapper wraps the object with the security principal
type CompanyChannelWrapper struct {
Obj crm_models.Company
Principal User
}
// Company is a DB struct // Company is a DB struct
type Company struct { type Company struct {

View File

@ -1,6 +1,19 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/crm/crm_models"
)
// NewContactActivity is an activity identifier
const NewContactActivity = "NEW_CONTACT_ACTIVITY"
// ContactChannelWrapper wraps the object with the security principal
type ContactChannelWrapper struct {
Obj crm_models.Contact
Principal User
}
// Contact is a first-class object // Contact is a first-class object
type Contact struct { type Contact struct {

View File

@ -2,8 +2,16 @@ package app
import ( import (
"database/sql" "database/sql"
"code.tnxs.net/taxnexus/lib/api/geo/geo_models"
) )
// CoordinateBasicChannelWrapper wraps the object with the security principal
type CoordinateBasicChannelWrapper struct {
Obj geo_models.CoordinateBasic
Principal User
}
// CoordinateBasic is a first class object type // CoordinateBasic is a first class object type
type CoordinateBasic struct { type CoordinateBasic struct {
ID string ID string
@ -19,6 +27,12 @@ type CoordinateBasic struct {
TaxTypes []*string TaxTypes []*string
} }
// CoordinateChannelWrapper wraps the object with the security principal
type CoordinateChannelWrapper struct {
Obj geo_models.Coordinate
Principal User
}
// Coordinate is a first class object type // Coordinate is a first class object type
type Coordinate struct { type Coordinate struct {
ID string ID string

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/geo/geo_models"
)
// CountryChannelWrapper wraps the object with the security principal
type CountryChannelWrapper struct {
Obj geo_models.Country
Principal User
}
// Country is a first class object type // Country is a first class object type
type Country struct { type Country struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/geo/geo_models"
)
// CountyChannelWrapper wraps the object with the security principal
type CountyChannelWrapper struct {
Obj geo_models.County
Principal User
}
// County is a first class object type // County is a first class object type
type County struct { type County struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/devops/devops_models"
)
// DatabaseChannelWrapper wraps the object with the security principal
type DatabaseChannelWrapper struct {
Obj devops_models.Database
Principal User
}
// Database is a first-class object type // Database is a first-class object type
type Database struct { type Database struct {

View File

@ -1,5 +1,13 @@
package app package app
import "code.tnxs.net/taxnexus/lib/api/geo/geo_models"
// DomainChannelWrapper wraps the object with the security principal
type DomainChannelWrapper struct {
Obj geo_models.Domain
Principal User
}
// Domain is a first class object type // Domain is a first class object type
type Domain struct { type Domain struct {
ID string `json:"id,omitempty"` ID string `json:"id,omitempty"`

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/ops/ops_models"
)
// EftChannelWrapper wraps the object with the security principal
type EftChannelWrapper struct {
Obj ops_models.Eft
Principal User
}
// Eft is a first class object type // Eft is a first class object type
type Eft struct { type Eft struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/ops/ops_models"
)
// EftItemChannelWrapper wraps the object with the security principal
type EftItemChannelWrapper struct {
Obj ops_models.EftItem
Principal User
}
// EftItem is a first class object type // EftItem is a first class object type
type EftItem struct { type EftItem struct {

View File

@ -2,8 +2,16 @@ package app
import ( import (
"database/sql" "database/sql"
"code.tnxs.net/taxnexus/lib/api/workflow/workflow_models"
) )
// EmailMessageChannelWrapper wraps the object with the security principal
type EmailMessageChannelWrapper struct {
Obj workflow_models.EmailMessage
Principal User
}
// EmailMessage is a first class object type // EmailMessage is a first class object type
type EmailMessage struct { type EmailMessage struct {
ID string ID string

View File

@ -4,6 +4,12 @@ import (
"database/sql" "database/sql"
) )
// EmailTemplateChannelWrapper wraps the object with the security principal
type EmailTemplateChannelWrapper struct {
// Obj workflow_models.EmailTemplate
Principal User
}
// EmailTemplate is a first class object type // EmailTemplate is a first class object type
type EmailTemplate struct { type EmailTemplate struct {
ID string ID string

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/regs/regs_models"
)
// FilingChannelWrapper wraps the object with the security principal
type FilingChannelWrapper struct {
Obj regs_models.Filing
Principal User
}
// Filing is a first class object type // Filing is a first class object type
type Filing struct { type Filing struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/regs/regs_models"
)
// FilingScheduleItemChannelWrapper wraps the object with the security principal
type FilingScheduleItemChannelWrapper struct {
Obj regs_models.FilingScheduleItem
Principal User
}
// FilingScheduleItem is a first class object type // FilingScheduleItem is a first class object type
type FilingScheduleItem struct { type FilingScheduleItem struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/regs/regs_models"
)
// FilingTypeChannelWrapper wraps the object with the security principal
type FilingTypeChannelWrapper struct {
Obj regs_models.FilingType
Principal User
}
// FilingType is a first class object type // FilingType is a first class object type
type FilingType struct { type FilingType struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/regs/regs_models"
)
// FilingTypeInstanceChannelWrapper wraps the object with the security principal
type FilingTypeInstanceChannelWrapper struct {
Obj regs_models.FilingTypeInstance
Principal User
}
// FilingTypeInstance is a first class object type // FilingTypeInstance is a first class object type
type FilingTypeInstance struct { type FilingTypeInstance struct {

View File

@ -4,6 +4,12 @@ import (
"database/sql" "database/sql"
) )
// FolderChannelWrapper wraps the object with the security principal
type FolderChannelWrapper struct {
// Obj workflow_models.Folder
Principal User
}
// Folder is a first class object type // Folder is a first class object type
type Folder struct { type Folder struct {
AccessType string AccessType string

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/ledger/ledger_models"
)
// GlAccountChannelWrapper wraps the object with the security principal
type GlAccountChannelWrapper struct {
Obj ledger_models.GlAccount
Principal User
}
// GlAccount is a first class object type // GlAccount is a first class object type
type GlAccount struct { type GlAccount struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/ledger/ledger_models"
)
// GlBalanceChannelWrapper wraps the object with the security principal
type GlBalanceChannelWrapper struct {
Obj ledger_models.GlBalance
Principal User
}
// GlBalance is a first class object type // GlBalance is a first class object type
type GlBalance struct { type GlBalance struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/devops/devops_models"
)
// IngestChannelWrapper wraps the object with the security principal
type IngestChannelWrapper struct {
Obj devops_models.Ingest
Principal User
}
// Ingest is a first class object type // Ingest is a first class object type
type Ingest struct { type Ingest struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/ops/ops_models"
)
// InvoiceChannelWrapper wraps the object with the security principal
type InvoiceChannelWrapper struct {
Obj ops_models.Invoice
Principal User
}
// Invoice is the in-memory struct for invoices // Invoice is the in-memory struct for invoices
type Invoice struct { type Invoice struct {

View File

@ -2,8 +2,16 @@ package app
import ( import (
"database/sql" "database/sql"
"code.tnxs.net/taxnexus/lib/api/ops/ops_models"
) )
// InvoiceItemChannelWrapper wraps the object with the security principal
type InvoiceItemChannelWrapper struct {
Obj ops_models.InvoiceItem
Principal User
}
// InvoiceItem is a large struct // InvoiceItem is a large struct
type InvoiceItem struct { type InvoiceItem struct {
ID string ID string

View File

@ -2,8 +2,16 @@ package app
import ( import (
"database/sql" "database/sql"
"code.tnxs.net/taxnexus/lib/api/devops/devops_models"
) )
// JobChannelWrapper wraps the object with the security principal
type JobChannelWrapper struct {
Obj devops_models.Job
Principal User
}
// Job is a first class object type // Job is a first class object type
type Job struct { type Job struct {
ID string ID string

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/ledger/ledger_models"
)
// JournalEntryChannelWrapper wraps the object with the security principal
type JournalEntryChannelWrapper struct {
Obj ledger_models.JournalEntry
Principal User
}
// JournalEntry is a first class object type // JournalEntry is a first class object type
type JournalEntry struct { type JournalEntry struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/ledger/ledger_models"
)
// JournalItemChannelWrapper wraps the object with the security principal
type JournalItemChannelWrapper struct {
Obj ledger_models.JournalItem
Principal User
}
// JournalItem is a first class object type // JournalItem is a first class object type
type JournalItem struct { type JournalItem struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/crm/crm_models"
)
// LeadChannelWrapper wraps the object with the security principal
type LeadChannelWrapper struct {
Obj crm_models.Lead
Principal User
}
// Lead is a first-class object type // Lead is a first-class object type
type Lead struct { type Lead struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/regs/regs_models"
)
// LicenseChannelWrapper wraps the object with the security principal
type LicenseChannelWrapper struct {
Obj regs_models.License
Principal User
}
// License is a first class object type // License is a first class object type
type License struct { type License struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/regs/regs_models"
)
// LicenseTypeChannelWrapper wraps the object with the security principal
type LicenseTypeChannelWrapper struct {
Obj regs_models.LicenseType
Principal User
}
// LicenseType is a first class object type // LicenseType is a first class object type
type LicenseType struct { type LicenseType struct {
@ -27,6 +37,12 @@ type LicenseType struct {
Tier string Tier string
} }
// GeoLicenseTypeInstanceChannelWrapper wraps the object with the security principal
type GeoLicenseTypeInstanceChannelWrapper struct {
Obj regs_models.GeoLicenseTypeInstance
Principal User
}
// GeoLicenseTypeInstance is a first class object type // GeoLicenseTypeInstance is a first class object type
type GeoLicenseTypeInstance struct { type GeoLicenseTypeInstance struct {
ID string ID string
@ -44,6 +60,12 @@ type GeoLicenseTypeInstance struct {
StateID string StateID string
} }
// DomainLicenseTypeInstanceChannelWrapper wraps the object with the security principal
type DomainLicenseTypeInstanceChannelWrapper struct {
// Obj regs_models.DomainLicenseTypeInstance
Principal User
}
// DomainLicenseTypeInstance is a first class object type // DomainLicenseTypeInstance is a first class object type
type DomainLicenseTypeInstance struct { type DomainLicenseTypeInstance struct {
ID string ID string

View File

@ -2,6 +2,12 @@ package app
import "database/sql" import "database/sql"
// LogChannelWrapper wraps the object with the security principal
type LogChannelWrapper struct {
// Obj devops_models.AppLog
Principal User
}
// Log is a first class object type // Log is a first class object type
type Log struct { type Log struct {
ID string ID string

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/regs/regs_models"
)
// NotebookChannelWrapper wraps the object with the security principal
type NotebookChannelWrapper struct {
Obj regs_models.Notebook
Principal User
}
// Notebook is a first class object type // Notebook is a first class object type
type Notebook struct { type Notebook struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/regs/regs_models"
)
// NotebookItemChannelWrapper wraps the object with the security principal
type NotebookItemChannelWrapper struct {
Obj regs_models.NotebookItem
Principal User
}
// NotebookItem is a first class object type // NotebookItem is a first class object type
type NotebookItem struct { type NotebookItem struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/ops/ops_models"
)
// OrderChannelWrapper wraps the object with the security principal
type OrderChannelWrapper struct {
Obj ops_models.Order
Principal User
}
// Order is a first class object type // Order is a first class object type
type Order struct { type Order struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/ops/ops_models"
)
// OrderItemChannelWrapper wraps the object with the security principal
type OrderItemChannelWrapper struct {
Obj ops_models.OrderItem
Principal User
}
// OrderItem is a first class object type // OrderItem is a first class object type
type OrderItem struct { type OrderItem struct {

View File

@ -1,5 +1,13 @@
package app package app
import "code.tnxs.net/taxnexus/lib/api/workflow/workflow_models"
// OutgoingEmailMessageChannelWrapper wraps the object with the security principal
type OutgoingEmailMessageChannelWrapper struct {
Obj workflow_models.OutgoingEmailMessage
Principal User
}
// OutgoingEmailMessage is a first class object type // OutgoingEmailMessage is a first class object type
type OutgoingEmailMessage struct { type OutgoingEmailMessage struct {
ID string ID string

View File

@ -1,5 +1,11 @@
package app package app
// OutgoingEmailMessageReceiptChannelWrapper wraps the object with the security principal
type OutgoingEmailMessageReceiptChannelWrapper struct {
// Obj workflow_models.OutgoingEmailMessageReceipt
Principal User
}
// OutgoingEmailMessageReceipt is a first class object type // OutgoingEmailMessageReceipt is a first class object type
type OutgoingEmailMessageReceipt struct { type OutgoingEmailMessageReceipt struct {
ID string ID string

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/ops/ops_models"
)
// PaymentMethodChannelWrapper wraps the object with the security principal
type PaymentMethodChannelWrapper struct {
Obj ops_models.PaymentMethod
Principal User
}
// PaymentMethod is a first class object type // PaymentMethod is a first class object type
type PaymentMethod struct { type PaymentMethod struct {

View File

@ -2,6 +2,12 @@ package app
import "database/sql" import "database/sql"
// PDFChannelWrapper wraps the object with the security principal
type PDFChannelWrapper struct {
// Obj stash_models.Pdf
Principal User
}
// PDF is a first class object type // PDF is a first class object type
type PDF struct { type PDF struct {
ID string ID string

View File

@ -2,8 +2,16 @@ package app
import ( import (
"database/sql" "database/sql"
"code.tnxs.net/taxnexus/lib/api/ledger/ledger_models"
) )
// PeriodChannelWrapper wraps the object with the security principal
type PeriodChannelWrapper struct {
Obj ledger_models.Period
Principal User
}
// Period is a first class object type // Period is a first class object type
type Period struct { type Period struct {
ID string ID string

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/geo/geo_models"
)
// PlaceChannelWrapper wraps the object with the security principal
type PlaceChannelWrapper struct {
Obj geo_models.Place
Principal User
}
// Place is a first class object type // Place is a first class object type
type Place struct { type Place struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/ops/ops_models"
)
// PurchaseOrderChannelWrapper wraps the object with the security principal
type PurchaseOrderChannelWrapper struct {
Obj ops_models.PurchaseOrder
Principal User
}
// PurchaseOrder is a first class object type // PurchaseOrder is a first class object type
type PurchaseOrder struct { type PurchaseOrder struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/ops/ops_models"
)
// PurchaseOrderItemChannelWrapper wraps the object with the security principal
type PurchaseOrderItemChannelWrapper struct {
Obj ops_models.PurchaseOrderItem
Principal User
}
// PurchaseOrderItem is a first class object type // PurchaseOrderItem is a first class object type
type PurchaseOrderItem struct { type PurchaseOrderItem struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/ops/ops_models"
)
// ProductChannelWrapper wraps the object with the security principal
type ProductChannelWrapper struct {
Obj ops_models.Product
Principal User
}
// Product is a first class object type // Product is a first class object type
type Product struct { type Product struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/ops/ops_models"
)
// QuoteChannelWrapper wraps the object with the security principal
type QuoteChannelWrapper struct {
Obj ops_models.Quote
Principal User
}
// Quote is a first class object type // Quote is a first class object type
type Quote struct { type Quote struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/ops/ops_models"
)
// QuoteItemChannelWrapper wraps the object with the security principal
type QuoteItemChannelWrapper struct {
Obj ops_models.QuoteItem
Principal User
}
// QuoteItem is a first class object type // QuoteItem is a first class object type
type QuoteItem struct { type QuoteItem struct {

View File

@ -1,9 +1,18 @@
package app package app
import "github.com/go-sql-driver/mysql" import (
"code.tnxs.net/taxnexus/lib/api/regs/regs_models"
"github.com/go-sql-driver/mysql"
)
// Ratingengine is a first class object type // RatingengineChannelWrapper wraps the object with the security principal
type Ratingengine struct { type RatingengineChannelWrapper struct {
Obj regs_models.RatingEngine
Principal User
}
// RatingEngine is a first class object type
type RatingEngine struct {
Account string Account string
Backend string Backend string
Createdbyid string Createdbyid string

View File

@ -1,9 +1,18 @@
package app package app
import "github.com/go-sql-driver/mysql" import (
"code.tnxs.net/taxnexus/lib/api/regs/regs_models"
"github.com/go-sql-driver/mysql"
)
// Ratingengineitem is a first class object type // RatingEngineItemChannelWrapper wraps the object with the security principal
type Ratingengineitem struct { type RatingEngineItemChannelWrapper struct {
Obj regs_models.RatingEngineItem
Principal User
}
// RatingEngineItem is a first class object type
type RatingEngineItem struct {
Createdbyid string Createdbyid string
Createddate mysql.NullTime Createddate mysql.NullTime
ID string ID string

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/devops/devops_models"
)
// RoleChannelWrapper wraps the object with the security principal
type RoleChannelWrapper struct {
Obj devops_models.Role
Principal User
}
// Role is a first class object type // Role is a first class object type
type Role struct { type Role struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/devops/devops_models"
)
// ServiceChannelWrapper wraps the object with the security principal
type ServiceChannelWrapper struct {
Obj devops_models.Service
Principal User
}
// Service is a first class object type // Service is a first class object type
type Service struct { type Service struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/geo/geo_models"
)
// StateChannelWrapper wraps the object with the security principal
type StateChannelWrapper struct {
Obj geo_models.State
Principal User
}
// State is a first class object type // State is a first class object type
type State struct { type State struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/regs/regs_models"
)
// SubmissionChannelWrapper wraps the object with the security principal
type SubmissionChannelWrapper struct {
Obj regs_models.Submission
Principal User
}
// Submission is a first class object type // Submission is a first class object type
type Submission struct { type Submission struct {

View File

@ -4,6 +4,12 @@ import (
"database/sql" "database/sql"
) )
// TaskChannelWrapper wraps the object with the security principal
type TaskChannelWrapper struct {
// Obj workflow_models.Task
Principal User
}
// Task is a first class object type // Task is a first class object type
type Task struct { type Task struct {
AccountID string AccountID string

View File

@ -4,6 +4,12 @@ import (
"database/sql" "database/sql"
) )
// TaskRelationChannelWrapper wraps the object with the security principal
type TaskRelationChannelWrapper struct {
// Obj workflow_models.TaskRelation
Principal User
}
// TaskRelation is a first class object type // TaskRelation is a first class object type
type TaskRelation struct { type TaskRelation struct {
AccountID string AccountID string

View File

@ -4,6 +4,12 @@ import (
"database/sql" "database/sql"
) )
// TaskWhoRelationChannelWrapper wraps the object with the security principal
type TaskWhoRelationChannelWrapper struct {
// Obj workflow_models.TaskWhoRelation
Principal User
}
// TaskWhoRelation is a first class object type // TaskWhoRelation is a first class object type
type TaskWhoRelation struct { type TaskWhoRelation struct {
AccountID string AccountID string

View File

@ -2,8 +2,16 @@ package app
import ( import (
"database/sql" "database/sql"
"code.tnxs.net/taxnexus/lib/api/geo/geo_models"
) )
// TaxInstanceChannelWrapper wraps the object with the security principal
type TaxInstanceChannelWrapper struct {
Obj geo_models.TaxInstance
Principal User
}
// TaxInstance is a first class object type // TaxInstance is a first class object type
type TaxInstance struct { type TaxInstance struct {
ID string ID string

View File

@ -1,5 +1,13 @@
package app package app
import "code.tnxs.net/taxnexus/lib/api/geo/geo_models"
// TaxnexusCodeChannelWrapper wraps the object with the security principal
type TaxnexusCodeChannelWrapper struct {
Obj geo_models.TaxnexusCode
Principal User
}
// TaxnexusCode is a first class object type // TaxnexusCode is a first class object type
type TaxnexusCode struct { type TaxnexusCode struct {
ID string `json:"id,omitempty"` ID string `json:"id,omitempty"`

View File

@ -1,5 +1,13 @@
package app package app
import "code.tnxs.net/taxnexus/lib/api/geo/geo_models"
// TaxRateChannelWrapper wraps the object with the security principal
type TaxRateChannelWrapper struct {
Obj geo_models.TaxRate
Principal User
}
// TaxRate is a principal object type // TaxRate is a principal object type
type TaxRate struct { type TaxRate struct {
CombinedRate float64 CombinedRate float64

View File

@ -2,8 +2,16 @@ package app
import ( import (
"database/sql" "database/sql"
"code.tnxs.net/taxnexus/lib/api/ops/ops_models"
) )
// TaxTransactionChannelWrapper wraps the object with the security principal
type TaxTransactionChannelWrapper struct {
Obj ops_models.TaxTransaction
Principal User
}
// TaxTransaction is the in-memory struct for a Taxnexus Tax Transaction // TaxTransaction is the in-memory struct for a Taxnexus Tax Transaction
type TaxTransaction struct { type TaxTransaction struct {
ID string ID string

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/geo/geo_models"
)
// TaxTypeChannelWrapper wraps the object with the security principal
type TaxTypeChannelWrapper struct {
Obj geo_models.TaxType
Principal User
}
// TaxType is a first class object type // TaxType is a first class object type
type TaxType struct { type TaxType struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/regs/regs_models"
)
// TaxTypeAccountChannelWrapper wraps the object with the security principal
type TaxTypeAccountChannelWrapper struct {
Obj regs_models.TaxTypeAccount
Principal User
}
// TaxTypeAccount is a first class object type // TaxTypeAccount is a first class object type
type TaxTypeAccount struct { type TaxTypeAccount struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/devops/devops_models"
)
// TemplateChannelWrapper wraps the object with the security principal
type TemplateChannelWrapper struct {
Obj devops_models.Template
Principal User
}
// Template is a first class object type // Template is a first class object type
type Template struct { type Template struct {

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/devops/devops_models"
)
// TenantChannelWrapper wraps the object with the security principal
type TenantChannelWrapper struct {
Obj devops_models.Tenant
Principal User
}
// Tenant is a first class object type // Tenant is a first class object type
type Tenant struct { type Tenant struct {

View File

@ -1,5 +1,13 @@
package app package app
import "code.tnxs.net/taxnexus/lib/api/devops/devops_models"
// TenantUserChannelWrapper wraps the object with the security principal
type TenantUserChannelWrapper struct {
Obj devops_models.TenantUser
Principal User
}
// TenantUser is a first class object type // TenantUser is a first class object type
type TenantUser struct { type TenantUser struct {
AccessLevel string AccessLevel string

View File

@ -1,5 +1,13 @@
package app package app
import "code.tnxs.net/taxnexus/lib/api/ops/ops_models"
// TotalChannelWrapper wraps the object with the security principal
type TotalChannelWrapper struct {
Obj ops_models.Total
Principal User
}
// Total is a DB object // Total is a DB object
type Total struct { type Total struct {
ID string ID string

View File

@ -1,5 +1,13 @@
package app package app
import "code.tnxs.net/taxnexus/lib/api/ops/ops_models"
// TotalItemChannelWrapper wraps the object with the security principal
type TotalItemChannelWrapper struct {
Obj ops_models.TotalItem
Principal User
}
// TotalItem is a DB struct // TotalItem is a DB struct
type TotalItem struct { type TotalItem struct {
ID string ID string

View File

@ -1,5 +1,13 @@
package app package app
import "code.tnxs.net/taxnexus/lib/api/ops/ops_models"
// TotalTaxItemChannelWrapper wraps the object with the security principal
type TotalTaxItemChannelWrapper struct {
Obj ops_models.TotalTaxItem
Principal User
}
// TotalTaxItem is a DB struct // TotalTaxItem is a DB struct
type TotalTaxItem struct { type TotalTaxItem struct {
ID string ID string

View File

@ -1,6 +1,16 @@
package app package app
import "database/sql" import (
"database/sql"
"code.tnxs.net/taxnexus/lib/api/regs/regs_models"
)
// TransactionItemChannelWrapper wraps the object with the security principal
type TransactionItemChannelWrapper struct {
Obj regs_models.Transaction
Principal User
}
// Transaction is a first class object type // Transaction is a first class object type
type Transaction struct { type Transaction struct {

View File

@ -1,9 +1,16 @@
package app package app
import ( import (
"code.tnxs.net/taxnexus/lib/api/devops/devops_models"
"github.com/go-openapi/runtime" "github.com/go-openapi/runtime"
) )
// UserChannelWrapper wraps the object with the security principal
type UserChannelWrapper struct {
Obj devops_models.User
Principal User
}
// User is a first class object type // User is a first class object type
type User struct { type User struct {
ID string ID string

View File

@ -1,5 +1,13 @@
package app package app
import "code.tnxs.net/taxnexus/lib/api/devops/devops_models"
// UserRoleChannelWrapper wraps the object with the security principal
type UserRoleChannelWrapper struct {
Obj devops_models.UserRole
Principal User
}
// UserRole is a first class object type // UserRole is a first class object type
type UserRole struct { type UserRole struct {
RoleID string RoleID string