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