Documentation ¶
Index ¶
- type LoginTable
- type RequestTrx
- type TransaksiTable
- func (a *TransaksiTable) DeleteTransaksi(ctx context.Context, kode string) (dest models.TransaksiPembelian, err error)
- func (a *TransaksiTable) GetByNoFak(ctx context.Context, nofaktur string) (dest models.TransaksiPembelian, err error)
- func (a *TransaksiTable) GetTransaksiData(ctx context.Context) (dest []models.TransaksiPembelian, err error)
- func (a *TransaksiTable) GetTrxbyNomorFaktur(ctx context.Context, kode int) (dest models.TransaksiPembelian, err error)
- func (a *TransaksiTable) InsertTransaksi(ctx context.Context, val *models.TransaksiPembelian) (err error)
- func (a *TransaksiTable) UpdateTransaksi(ctx context.Context, val *models.TransaksiPembelian) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginTable ¶
type LoginTable struct {
// contains filtered or unexported fields
}
func NewLogTable ¶
func NewLogTable(db *gorm.DB) *LoginTable
type RequestTrx ¶
type RequestTrx struct {
NomorFaktur int `gorm:"column:Nomor Faktur" json:"nomor-faktur"`
}
type TransaksiTable ¶
type TransaksiTable struct {
// contains filtered or unexported fields
}
func NewTransaksiTable ¶
func NewTransaksiTable(db *gorm.DB) *TransaksiTable
func (*TransaksiTable) DeleteTransaksi ¶
func (a *TransaksiTable) DeleteTransaksi(ctx context.Context, kode string) (dest models.TransaksiPembelian, err error)
QUERY DELETE
func (*TransaksiTable) GetByNoFak ¶
func (a *TransaksiTable) GetByNoFak(ctx context.Context, nofaktur string) (dest models.TransaksiPembelian, err error)
func (*TransaksiTable) GetTransaksiData ¶
func (a *TransaksiTable) GetTransaksiData(ctx context.Context) (dest []models.TransaksiPembelian, err error)
QUERY READ
func (*TransaksiTable) GetTrxbyNomorFaktur ¶
func (a *TransaksiTable) GetTrxbyNomorFaktur(ctx context.Context, kode int) (dest models.TransaksiPembelian, err error)
QUERY GET BY ID
func (*TransaksiTable) InsertTransaksi ¶
func (a *TransaksiTable) InsertTransaksi(ctx context.Context, val *models.TransaksiPembelian) (err error)
QUERY INSERT
func (*TransaksiTable) UpdateTransaksi ¶
func (a *TransaksiTable) UpdateTransaksi(ctx context.Context, val *models.TransaksiPembelian) (err error)
QUERY UPDATE
Click to show internal directories.
Click to hide internal directories.