service

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 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 DTONgetes

type DTONgetes struct {
	Name string
}

DTONgetes dto for ngetes service

type DTOTesBaru

type DTOTesBaru struct {
	Apacing int
	Test    bool
}

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
}

Jump to

Keyboard shortcuts

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