repository

package
v0.0.0-...-ed11b55 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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

func (*LoginTable) GetUser

func (a *LoginTable) GetUser(ctx context.Context) (dest []models.Login, err error)

func (*LoginTable) Login

func (a *LoginTable) Login(ctx context.Context, data models.Login) bool

func (*LoginTable) Register

func (a *LoginTable) Register(ctx context.Context, data models.Login) (err error)

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

Jump to

Keyboard shortcuts

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