Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DTOTesBaru ¶
DTOTesBaru dto for tes baru service
type NgetesService ¶
type NgetesService interface {
GetNgetesByID(ctx context.Context, id string) (*entity.Ngetes, error)
GetListNgetes(ctx context.Context, request *utils.RequestOption) ([]*entity.Ngetes, *utils.MetaResponse, error)
CreateNgetes(ctx context.Context, dto DTONgetes) error
UpdateNgetes(ctx context.Context, id string, dto DTONgetes) error
}
NgetesService ngetes service template
type SvcTx ¶
type SvcTx interface {
BeginTx(ctx context.Context, operation func(ctx context.Context, svc *Wrapper) error) error
}
SvcTx template for common transaction pattern
type TesBaruService ¶
type TesBaruService interface {
GetTesBaruByID(ctx context.Context, id string) (*entity.TesBaru, error)
GetListTesBaru(ctx context.Context, request *utils.RequestOption) ([]*entity.TesBaru, *utils.MetaResponse, error)
CreateTesBaru(ctx context.Context, dto DTOTesBaru) error
UpdateTesBaru(ctx context.Context, id string, dto DTOTesBaru) error
DeleteTesBaru(ctx context.Context, id string) error
}
TesBaruService tes baru service template
type Wrapper ¶
type Wrapper struct {
TesBaruSvc TesBaruService
NgetesSvc NgetesService
SvcTx
}
Click to show internal directories.
Click to hide internal directories.