repository

package
v0.0.0-...-a104c3d Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 4 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(ctx *gin.Context, id int) (model.Cadangan, error)
	GetCadanganById(ctx *gin.Context, id int, isOpen bool, paginate model.Paginate) (model.Response, error)
	GetCadanganByIsOpen(ctx *gin.Context, isOpen bool, paginate model.Paginate) (model.Response, error)
	GetTotalCadanganByTypeCount(ctx *gin.Context) (interface{}, error)
	Save(ctx *gin.Context, cadangan model.Cadangan) error
	Delete(ctx *gin.Context, id int) error
}

func NewCadanganRepository

func NewCadanganRepository() CadanganRepository

type CadanganRepositoryImpl

type CadanganRepositoryImpl struct {
}

func (*CadanganRepositoryImpl) Delete

func (repo *CadanganRepositoryImpl) Delete(ctx *gin.Context, id int) error

func (*CadanganRepositoryImpl) GetCadanganById

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

func (*CadanganRepositoryImpl) GetCadanganByIsOpen

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

func (*CadanganRepositoryImpl) GetOne

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

func (*CadanganRepositoryImpl) GetTotalCadanganByTypeCount

func (repo *CadanganRepositoryImpl) GetTotalCadanganByTypeCount(ctx *gin.Context) (interface{}, error)

func (*CadanganRepositoryImpl) Save

func (repo *CadanganRepositoryImpl) Save(ctx *gin.Context, cadangan model.Cadangan) error

Jump to

Keyboard shortcuts

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