repository

package
v0.0.0-...-aea9c82 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TetapanRepository

type TetapanRepository interface {
	FindAll() ([]model.Tetapan, error)
	FindByKunci(kunci string) (model.Tetapan, error)
	Save(tetapan model.Tetapan) error
	SaveAll(tetapanList []model.Tetapan) error
	Delete(kunci string) error
}

func NewTetapanRepository

func NewTetapanRepository(db *gorm.DB) TetapanRepository

type TetapanRepositoryImpl

type TetapanRepositoryImpl struct {
	Db *gorm.DB
}

func (*TetapanRepositoryImpl) Delete

func (repo *TetapanRepositoryImpl) Delete(kunci string) error

func (*TetapanRepositoryImpl) FindAll

func (repo *TetapanRepositoryImpl) FindAll() ([]model.Tetapan, error)

func (*TetapanRepositoryImpl) FindByKunci

func (repo *TetapanRepositoryImpl) FindByKunci(kunci string) (model.Tetapan, error)

func (*TetapanRepositoryImpl) Save

func (repo *TetapanRepositoryImpl) Save(tetapan model.Tetapan) error

func (*TetapanRepositoryImpl) SaveAll

func (repo *TetapanRepositoryImpl) SaveAll(tetapanList []model.Tetapan) error

type TetapanTypeRepository

type TetapanTypeRepository interface {
	FindAllGroupNames() (model.TetapanTypeGroupNames, error)
	FindByGroupName(kunci string) ([]model.TetapanType, error)
}

func NewTetapanTypeRepository

func NewTetapanTypeRepository(db *gorm.DB) TetapanTypeRepository

type TetapanTypeRepositoryImpl

type TetapanTypeRepositoryImpl struct {
	Db *gorm.DB
}

func (*TetapanTypeRepositoryImpl) FindAllGroupNames

func (repo *TetapanTypeRepositoryImpl) FindAllGroupNames() (model.TetapanTypeGroupNames, error)

func (*TetapanTypeRepositoryImpl) FindByGroupName

func (repo *TetapanTypeRepositoryImpl) FindByGroupName(groupName string) ([]model.TetapanType, error)

Jump to

Keyboard shortcuts

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