Documentation ¶
Index ¶
- type CadanganRepository
- type CadanganRepositoryImpl
- func (repo *CadanganRepositoryImpl) Delete(id int) error
- func (repo *CadanganRepositoryImpl) GetCadanganById(id int, isOpen bool, paginate model.Paginate) (model.Response, error)
- func (repo *CadanganRepositoryImpl) GetCadanganByIsOpen(isOpen bool, paginate model.Paginate) (model.Response, error)
- func (repo *CadanganRepositoryImpl) GetOne(id int) (model.Cadangan, error)
- func (repo *CadanganRepositoryImpl) GetTotalCadanganByTypeCount() (interface{}, error)
- func (repo *CadanganRepositoryImpl) Save(cadangan model.Cadangan) error
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 ¶
func (*CadanganRepositoryImpl) Delete ¶
func (repo *CadanganRepositoryImpl) Delete(id int) error
func (*CadanganRepositoryImpl) GetCadanganById ¶
func (*CadanganRepositoryImpl) GetCadanganByIsOpen ¶
func (*CadanganRepositoryImpl) GetOne ¶
func (repo *CadanganRepositoryImpl) GetOne(id int) (model.Cadangan, error)
func (*CadanganRepositoryImpl) GetTotalCadanganByTypeCount ¶
func (repo *CadanganRepositoryImpl) GetTotalCadanganByTypeCount() (interface{}, error)
Click to show internal directories.
Click to hide internal directories.