actiity

package
v0.0.0-...-d2a2bec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FinancialLog

type FinancialLog struct {
	ID             string `gorm:"primary_key"`
	Log            Log    `gorm:"foreignkey:ID"`
	Type           string `gorm:"default:DEBIT"` // DEBIT: Money Out from wallet; CREDIT: Money In to wallet
	ServiceID      string // TOPUP, PURCHASE, PAYMENT
	Amount         float64
	Fee            float64
	ReferenceNo    string
	GLNo           string
	Channel        string
	BankCode       string
	AdditionalInfo string
}

func (*FinancialLog) BeforeCreate

func (model *FinancialLog) BeforeCreate(scope *gorm.Scope) error

func (FinancialLog) TableName

func (FinancialLog) TableName() string

type Log

type Log struct {
	alira.Model
	Class      string `gorm:"default:FINANCIAL"` // FINANCIAL, TRANSACTION
	ActionDate time.Time
	ActionBy   string `sql:"index"`
	Status     string
	Error      string
}

func (*Log) BeforeCreate

func (model *Log) BeforeCreate(scope *gorm.Scope) error

func (Log) TableName

func (Log) TableName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL