repository

package
v0.0.0-...-aea9c82 Latest Latest
Warning

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

Go to latest
Published: May 12, 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 CadanganRepository

type CadanganRepository interface {
	GetOne(id int) (model.Cadangan, error)
	GetCadanganById(id int, isOpen bool, paginate model.Paginate) (model.Response, error)
	GetCadanganByIsOpen(isOpen bool, paginate model.Paginate) (model.Response, error)
	GetTotalCadanganByTypeCount() (interface{}, error)
	Save(cadangan model.Cadangan) error
	Delete(id int) error
}

func NewCadanganRepository

func NewCadanganRepository(db *gorm.DB) CadanganRepository

type CadanganRepositoryImpl

type CadanganRepositoryImpl struct {
	Db *gorm.DB
}

func (*CadanganRepositoryImpl) Delete

func (repo *CadanganRepositoryImpl) Delete(id int) error

func (*CadanganRepositoryImpl) GetCadanganById

func (repo *CadanganRepositoryImpl) GetCadanganById(id int, isOpen bool, paginate model.Paginate) (model.Response, error)

func (*CadanganRepositoryImpl) GetCadanganByIsOpen

func (repo *CadanganRepositoryImpl) GetCadanganByIsOpen(isOpen bool, paginate model.Paginate) (model.Response, error)

func (*CadanganRepositoryImpl) GetOne

func (repo *CadanganRepositoryImpl) GetOne(id int) (model.Cadangan, error)

func (*CadanganRepositoryImpl) GetTotalCadanganByTypeCount

func (repo *CadanganRepositoryImpl) GetTotalCadanganByTypeCount() (interface{}, error)

func (*CadanganRepositoryImpl) Save

func (repo *CadanganRepositoryImpl) Save(cadangan model.Cadangan) error

Jump to

Keyboard shortcuts

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