Documentation
¶
Index ¶
- type Account
- type AccountBase
- type Customer
- type CustomerActivity
- type CustomerBase
- type CustomerPrefrence
- type CustomerService
- type Institution
- type InstitutionBase
- type InstitutionConfig
- type InstitutionMeta
- type InstitutionStaff
- type Payment
- type PaymentBase
- type PaymentChannel
- type PaymentCommission
- type PaymentItem
- type PaymentMeta
- type PaymentResult
- type Permission
- type PermissionBase
- type Person
- type PersonBase
- type PersonConnection
- type PersonLegalInquiry
- type PersonMeta
- type PersonStatus
- type PersonVerificationCannel
- type PersonVerificationToken
- type RoleAbstract
- type RoleBase
- type RoleCustomer
- type RoleCustomerActivityNotification
- type RoleCustomerHistory
- type RoleIndevisual
- type RoleInstitutional
- type Service
- type ServiceBase
- type ServiceStatus
- type Workflow
- type WorkflowAbstract
- type WorkflowBase
- type WorkflowPermission
- type WorkflowPermissionBase
- type WorkflowPermissionType
- type WorkflowStatus
- type WorkflowStep
- type WorkflowStepPermission
- type WorkflowStepPermissionType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountBase ¶
func (*AccountBase) BeforeCreate ¶
func (base *AccountBase) BeforeCreate(tx *gorm.DB) (err error)
func (AccountBase) TableName ¶
func (AccountBase) TableName() string
type Customer ¶
type Customer struct {
gorm.Model
CustomerBase
Type string `default:"person" json:"type" xml:"type" enum:"person,institue,business"`
}
Polymorhic mode for customer -> person,institue,business
type CustomerActivity ¶
type CustomerPrefrence ¶
type CustomerService ¶
type Institution ¶
type Institution struct {
gorm.Model
InstitutionBase
Title string
}
type InstitutionBase ¶
type InstitutionConfig ¶
type InstitutionStaff ¶
type PaymentChannel ¶
type PaymentChannel struct {
gorm.Model
PaymentBase
Channel string // Satna, Shaba, Paya, Swift
}
type PaymentCommission ¶
type PaymentCommission struct {
gorm.Model
PaymentBase
PaymentId int // FK
Commission int
}
type PaymentItem ¶
type PaymentMeta ¶
type PaymentResult ¶
type Permission ¶
type Permission struct {
gorm.Model
PermissionBase
Title string
Value string
}
type PersonConnection ¶
type PersonLegalInquiry ¶
type PersonMeta ¶
type PersonStatus ¶
type PersonVerificationToken ¶
type RoleAbstract ¶
type RoleCustomer ¶
type RoleCustomer struct {
gorm.Model
RoleBase
RoleType string `default:"individual" json:"roleType" xml:"roleType" enum:"institutional,individual"`
RoleId int // FK
CustomerId int // FK
}
Polymorphic role handling
type RoleCustomerActivityNotification ¶
type RoleCustomerActivityNotification struct {
gorm.Model
RoleBase
Channel string `default:"sms" json:"channel" xml:"channel" enum:"sms,slack,bale"`
Values []string
Template string
CriteriaType string `default:"sql" json:"criteriaType" xml:"criteriaType" enum:"sql,go"`
Criteria string // user=='admin'
}
type RoleCustomerHistory ¶
type RoleIndevisual ¶
type RoleInstitutional ¶
type ServiceStatus ¶
type ServiceStatus struct {
gorm.Model
ServiceBase
ServiceId int
Status string
}
type Workflow ¶
type Workflow struct {
gorm.Model
WorkflowBase
WorkflowAbstract []WorkflowAbstract `json:"workflowAbstract" xml:"workflowAbstract" gorm:"foreignKey:WorkflowAbstractId"`
WorkflowAbstractId int `json:"workflowAbstractId" xml:"workflowAbstractId"`
Payment int `json:"payment" xml:"payment" gorm:"foreignKey:PaymentId"`
PaymentId int `json:"paymentId" xml:"paymentId" `
Status WorkflowStatus
}
type WorkflowAbstract ¶
type WorkflowBase ¶
type WorkflowPermission ¶
type WorkflowPermission struct {
gorm.Model
WorkflowPermissionBase
Workflow []Workflow `json:"workflow" xml:"workflow" gorm:"foreignKey:workflowId"`
WorkflowId int `json:"workflowId" xml:"workflowId"`
Customer []Customer `json:"customer" xml:"customer" gorm:"foreignKey:customerId"`
CustomerId int `json:"customerId" xml:"customerId"`
Permission []WorkflowPermissionType `json:"permission" xml:"permission" gorm:"foreignKey:permissionId"`
PermissionId int `json:"permissionId" xml:"permissionId"`
}
type WorkflowPermissionBase ¶
type WorkflowPermissionType ¶
type WorkflowPermissionType struct {
gorm.Model
WorkflowPermissionBase
Title string `json:"title" xml:"title" gorm:"index,not null"`
Value string `json:"value" xml:"value" gorm:"index,not null"`
}
type WorkflowStatus ¶
type WorkflowStep ¶
type WorkflowStepPermission ¶
type WorkflowStepPermission struct {
gorm.Model
WorkflowPermissionBase
WorkflowStep []WorkflowStep `json:"workflowStep" xml:"workflowStep" gorm:"foreignKey:workflowStepId"`
WorkflowStepId int `json:"workflowStepId" xml:"workflowStepId"`
Customer []Customer `json:"customer" xml:"customer" gorm:"foreignKey:customerId"`
CustomerId int `json:"customerId" xml:"customerId"`
Permission []WorkflowStepPermissionType `json:"permission" xml:"permission" gorm:"foreignKey:permissionId"`
PermissionId int `json:"permissionId" xml:"permissionId"`
}
type WorkflowStepPermissionType ¶
type WorkflowStepPermissionType struct {
gorm.Model
WorkflowPermissionBase
Title string `json:"title" xml:"title" gorm:"index,not null"`
Value string `json:"value" xml:"value" gorm:"index,not null"`
}
Click to show internal directories.
Click to hide internal directories.