service

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	CreateCodebook(ctx context.Context, req domain.Codebook) (int64, error)
	DetailCodebook(ctx context.Context, id int64) (domain.Codebook, error)
	ListCodebook(ctx context.Context, offset, limit int64) ([]domain.Codebook, int64, error)
	UpdateCodebook(ctx context.Context, req domain.Codebook) (int64, error)
	DeleteCodebook(ctx context.Context, id int64) (int64, error)
	ValidationSecret(ctx context.Context, identifier string, secret string) (bool, error)
	FindByUid(ctx context.Context, identifier string) (domain.Codebook, error)
	FindByUids(ctx context.Context, uids []string) ([]domain.Codebook, error)
}

func NewService

func NewService(repo repository.CodebookRepository) Service

Jump to

Keyboard shortcuts

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