repository

package
v0.0.0-...-02df951 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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) Delete

func (repo *KutipanRepositoryImpl) Delete(ctx *gin.Context, id int64) (string, error)

Remove Kutipan

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.

func (*KutipanRepositoryImpl) FindById

func (repo *KutipanRepositoryImpl) FindById(ctx *gin.Context, id int64) (model.Kutipan, error)

FindById implements KutipanRepository.

func (*KutipanRepositoryImpl) Save

func (repo *KutipanRepositoryImpl) Save(ctx *gin.Context, kutipan model.Kutipan) (model.Kutipan, error)

Save implements KutipanRepository.

func (*KutipanRepositoryImpl) Upsert

func (repo *KutipanRepositoryImpl) Upsert(ctx *gin.Context, kutipan model.Kutipan) (model.Kutipan, error)

Save and Update 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.

func (*TabungRepositoryImpl) FindAll

func (repo *TabungRepositoryImpl) FindAll(ctx *gin.Context) ([]model.Tabung, error)

FindAll implements TabungRepository.

func (*TabungRepositoryImpl) FindById

func (repo *TabungRepositoryImpl) FindById(ctx *gin.Context, id int64) (model.Tabung, error)

FindById implements TabungRepository.

func (*TabungRepositoryImpl) Save

func (repo *TabungRepositoryImpl) Save(ctx *gin.Context, tabung model.Tabung) (model.Tabung, error)

Save 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.

Jump to

Keyboard shortcuts

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