Documentation ¶
Overview ¶
Package usecase account implementation
Index ¶
- type AuthclientUsecase
- func (a *AuthclientUsecase) Count(ctx context.Context, filter *authclient.Filter) (int64, error)
- func (a *AuthclientUsecase) Create(ctx context.Context, authclientObj *model.AuthClient) (string, error)
- func (a *AuthclientUsecase) Delete(ctx context.Context, id string) error
- func (a *AuthclientUsecase) FetchList(ctx context.Context, filter *authclient.Filter) ([]*model.AuthClient, error)
- func (a *AuthclientUsecase) Get(ctx context.Context, id string) (*model.AuthClient, error)
- func (a *AuthclientUsecase) Update(ctx context.Context, id string, authclientObj *model.AuthClient) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthclientUsecase ¶
type AuthclientUsecase struct {
// contains filtered or unexported fields
}
AuthclientUsecase provides bussiness logic for account access
func NewAuthclientUsecase ¶
func NewAuthclientUsecase(repo authclient.Repository) *AuthclientUsecase
NewAuthclientUsecase object controller
func (*AuthclientUsecase) Count ¶
func (a *AuthclientUsecase) Count(ctx context.Context, filter *authclient.Filter) (int64, error)
Count of accounts by filter
func (*AuthclientUsecase) Create ¶
func (a *AuthclientUsecase) Create(ctx context.Context, authclientObj *model.AuthClient) (string, error)
Create new object in database
func (*AuthclientUsecase) Delete ¶
func (a *AuthclientUsecase) Delete(ctx context.Context, id string) error
Delete delites record by ID
func (*AuthclientUsecase) FetchList ¶
func (a *AuthclientUsecase) FetchList(ctx context.Context, filter *authclient.Filter) ([]*model.AuthClient, error)
FetchList of accounts by filter
func (*AuthclientUsecase) Get ¶
func (a *AuthclientUsecase) Get(ctx context.Context, id string) (*model.AuthClient, error)
Get returns the group by ID if have access
func (*AuthclientUsecase) Update ¶
func (a *AuthclientUsecase) Update(ctx context.Context, id string, authclientObj *model.AuthClient) error
Update object in database
Click to show internal directories.
Click to hide internal directories.