usecase

package
v0.0.0-...-833fa1d Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package usecase account implementation

Index

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

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

Jump to

Keyboard shortcuts

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