Documentation ¶
Index ¶
- Variables
- type ExampleRepo
- type ExampleUsecase
- func (suc *ExampleUsecase) CreateExample(ctx context.Context, example *domain.Example) (*domain.Example, error)
- func (suc *ExampleUsecase) DeleteExample(ctx context.Context, example *domain.Example) error
- func (suc *ExampleUsecase) GetExample(ctx context.Context, example *domain.Example) (*domain.Example, error)
- func (suc *ExampleUsecase) ListExample(ctx context.Context, page, pageSize int64, params map[string]interface{}) ([]*domain.Example, int64, error)
- func (suc *ExampleUsecase) RecoverExample(ctx context.Context, example *domain.Example) error
- func (suc *ExampleUsecase) UpdateExample(ctx context.Context, example *domain.Example) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewExampleUsecase)
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
type ExampleRepo ¶
type ExampleRepo interface { ListExample(ctx context.Context, page, pageSize int64, params map[string]interface{}) ([]*domain.Example, error) GetExampleCount(ctx context.Context, params map[string]interface{}) (int64, error) GetExample(ctx context.Context, params map[string]interface{}) (*domain.Example, error) CreateExample(ctx context.Context, example *domain.Example) (*domain.Example, error) UpdateExample(ctx context.Context, example *domain.Example) error DeleteExample(ctx context.Context, example *domain.Example) error RecoverExample(ctx context.Context, example *domain.Example) error }
type ExampleUsecase ¶
type ExampleUsecase struct {
// contains filtered or unexported fields
}
func NewExampleUsecase ¶
func NewExampleUsecase(repo ExampleRepo, logger log.Logger) *ExampleUsecase
func (*ExampleUsecase) CreateExample ¶
func (*ExampleUsecase) DeleteExample ¶
func (*ExampleUsecase) GetExample ¶
func (*ExampleUsecase) ListExample ¶
func (*ExampleUsecase) RecoverExample ¶
func (*ExampleUsecase) UpdateExample ¶
Click to show internal directories.
Click to hide internal directories.