Documentation
¶
Index ¶
- type Repository
- func (r *Repository) Delete(ctx context.Context, id string) (err error)
- func (r *Repository) Fetch(ctx context.Context) (val []pmbulbi.ProgramStudi, err error)
- func (r *Repository) GetById(ctx context.Context, id string) (val pmbulbi.ProgramStudi, err error)
- func (r *Repository) Insert(ctx context.Context, val pmbulbi.ProgramStudi) (err error)
- func (r *Repository) Update(ctx context.Context, id string, val pmbulbi.ProgramStudi) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶ added in v0.4.3
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶ added in v0.4.3
func NewRepository(db *gorm.DB) *Repository
func (*Repository) Delete ¶ added in v0.4.3
func (r *Repository) Delete(ctx context.Context, id string) (err error)
func (*Repository) Fetch ¶ added in v0.4.3
func (r *Repository) Fetch(ctx context.Context) (val []pmbulbi.ProgramStudi, err error)
func (*Repository) GetById ¶ added in v0.4.3
func (r *Repository) GetById(ctx context.Context, id string) (val pmbulbi.ProgramStudi, err error)
func (*Repository) Insert ¶ added in v0.4.3
func (r *Repository) Insert(ctx context.Context, val pmbulbi.ProgramStudi) (err error)
func (*Repository) Update ¶ added in v0.4.3
func (r *Repository) Update(ctx context.Context, id string, val pmbulbi.ProgramStudi) (err error)
Click to show internal directories.
Click to hide internal directories.