Documentation ¶
Index ¶
- type KutipanRepository
- type KutipanRepositoryImpl
- func (repo *KutipanRepositoryImpl) Delete(ctx *gin.Context, id int64) (string, error)
- func (repo *KutipanRepositoryImpl) FindAllByTabungId(ctx *gin.Context, tabungId int64) ([]model.Kutipan, error)
- func (repo *KutipanRepositoryImpl) FindAllByTabungIdBetweenCreateDate(ctx *gin.Context, params model.QueryParams, paginate model.Paginate) (model.Response, error)
- func (repo *KutipanRepositoryImpl) FindById(ctx *gin.Context, id int64) (model.Kutipan, error)
- func (repo *KutipanRepositoryImpl) Save(ctx *gin.Context, kutipan model.Kutipan) (model.Kutipan, error)
- func (repo *KutipanRepositoryImpl) Upsert(ctx *gin.Context, kutipan model.Kutipan) (model.Kutipan, error)
- type TabungRepository
- type TabungRepositoryImpl
- func (repo *TabungRepositoryImpl) Delete(ctx *gin.Context, id int64) error
- func (repo *TabungRepositoryImpl) FindAll(ctx *gin.Context) ([]model.Tabung, error)
- func (repo *TabungRepositoryImpl) FindById(ctx *gin.Context, id int64) (model.Tabung, error)
- func (repo *TabungRepositoryImpl) Save(ctx *gin.Context, tabung model.Tabung) (model.Tabung, error)
- type TabungTypeRepository
- type TabungTypeRepositoryImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KutipanRepository ¶
type KutipanRepository interface { FindAllByTabungId(ctx *gin.Context, tabungId int64) ([]model.Kutipan, error) FindAllByTabungIdBetweenCreateDate(ctx *gin.Context, params model.QueryParams, paginate model.Paginate) (model.Response, error) FindById(ctx *gin.Context, id int64) (model.Kutipan, error) Upsert(ctx *gin.Context, kutipan model.Kutipan) (model.Kutipan, error) Delete(ctx *gin.Context, id int64) (string, error) }
func NewKutipanRepository ¶
func NewKutipanRepository() KutipanRepository
type KutipanRepositoryImpl ¶
type KutipanRepositoryImpl struct { }
func (*KutipanRepositoryImpl) FindAllByTabungId ¶
func (repo *KutipanRepositoryImpl) FindAllByTabungId(ctx *gin.Context, tabungId int64) ([]model.Kutipan, error)
FindAllByTabungId implements KutipanRepository.
func (*KutipanRepositoryImpl) FindAllByTabungIdBetweenCreateDate ¶
func (repo *KutipanRepositoryImpl) FindAllByTabungIdBetweenCreateDate(ctx *gin.Context, params model.QueryParams, paginate model.Paginate) (model.Response, error)
FindAllByTabungIdBetweenCreateDate implements KutipanRepository.
type TabungRepository ¶
type TabungRepository interface { FindAll(ctx *gin.Context) ([]model.Tabung, error) FindById(ctx *gin.Context, id int64) (model.Tabung, error) Save(ctx *gin.Context, tabung model.Tabung) (model.Tabung, error) Delete(ctx *gin.Context, id int64) error }
func NewTabungRepository ¶
func NewTabungRepository() TabungRepository
type TabungRepositoryImpl ¶
type TabungRepositoryImpl struct { }
func (*TabungRepositoryImpl) Delete ¶
func (repo *TabungRepositoryImpl) Delete(ctx *gin.Context, id int64) error
Delete implements TabungRepository.
type TabungTypeRepository ¶
type TabungTypeRepository interface { FindAll(ctx *gin.Context) ([]model.TabungType, error) Save(ctx *gin.Context, tabungType model.TabungType) error Delete(ctx *gin.Context, id int64) error }
func NewTabungTypeRepository ¶
func NewTabungTypeRepository() TabungTypeRepository
type TabungTypeRepositoryImpl ¶
type TabungTypeRepositoryImpl struct { }
func (*TabungTypeRepositoryImpl) Delete ¶
func (repo *TabungTypeRepositoryImpl) Delete(ctx *gin.Context, id int64) error
Delete implements TabungTypeRepository.
func (*TabungTypeRepositoryImpl) FindAll ¶
func (repo *TabungTypeRepositoryImpl) FindAll(ctx *gin.Context) ([]model.TabungType, error)
FindAll implements TabungTypeRepository.
func (*TabungTypeRepositoryImpl) Save ¶
func (repo *TabungTypeRepositoryImpl) Save(ctx *gin.Context, tabungType model.TabungType) error
Save implements TabungTypeRepository.
Click to show internal directories.
Click to hide internal directories.