Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TransaksiRepository ¶
type TransaksiRepository interface { CreateTransaksi(transaksi entity.Transaksi) (entity.Transaksi, error) GetTransaksiById(transaksiId string) (entity.Transaksi, error) GetAllTransaksi(ownerId string) ([]entity.Transaksi, error) // can be used for komunal, if admin ownerId = NULL UpdateTransaksi(transaksi entity.Transaksi) (entity.Transaksi, error) DeleteTransaksi(transaksiId entity.Transaksi) error }
func NewTransaksiRepository ¶
func NewTransaksiRepository(db *gorm.DB) TransaksiRepository
type UserRepository ¶
type UserRepository interface { RegisterUser(ctx context.Context, tx *gorm.DB, user entity.User) (entity.User, error) GetUserById(ctx context.Context, tx *gorm.DB, userId string) (entity.User, error) CheckEmail(ctx context.Context, tx *gorm.DB, email string) (entity.User, bool, error) }
func NewUserRepository ¶
func NewUserRepository(db *gorm.DB) UserRepository
Click to show internal directories.
Click to hide internal directories.