Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountService ¶
type AccountService interface { Create(ctx context.Context, req model.AccountCreateRequest) (*model.AccountResponse, error) List(ctx context.Context, req model.AccountListRequest) ([]*model.AccountResponse, error) Get(ctx context.Context, req model.AccountGetRequest) (*model.AccountResponse, error) Update(ctx context.Context, req model.AccountUpdateRequest) (*model.AccountResponse, error) UpdatePassword(ctx context.Context, req model.AccountPasswordUpdateRequest) (*model.AccountResponse, error) Delete(ctx context.Context, req model.AccountDeleteRequest) error }
func NewAccountService ¶
func NewAccountService(accountRepository repository.AccountRepository) AccountService
type AuthService ¶
type AuthService interface {
Login(ctx context.Context, req model.AuthRequest) (*model.AuthResponse, error)
}
func NewAuthService ¶
func NewAuthService(accountRepository repository.AccountRepository) AuthService
type PostService ¶
type PostService interface { Create(ctx context.Context, req model.PostCreateRequest) (*model.PostResponse, error) List(ctx context.Context, req model.PostListRequest) ([]*model.PostResponse, error) Get(ctx context.Context, req model.PostGetRequest) (*model.PostResponse, error) Update(ctx context.Context, req model.PostUpdateRequest) (*model.PostResponse, error) Delete(ctx context.Context, req model.PostDeleteRequest) error }
func NewPostService ¶
func NewPostService(postRepository repository.PostRepository) PostService
Click to show internal directories.
Click to hide internal directories.