Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminUseCase ¶
type AdminUseCase interface { ValidateToken(ctx context.Context, token string) (model.ValidateTokenResponse, error) SignUp(ctx context.Context, request model.AdminSignUpRequest) error BanUser(ctx context.Context, clientID int64) error CreateInviteToken(ctx context.Context, ttl int64) (string, error) GetUsers(ctx context.Context, limit, offset int64) ([]model.User, bool, error) GetClientIDByLogin(ctx context.Context, login string) (int64, error) }
type UseCase ¶
type UseCase struct { Admin AdminUseCase // contains filtered or unexported fields }
func New ¶
func New( cfg config.UseCaseConfig, cache *cache.RedisCache, repo *repository.PgClientRepository, tx *tx_manager.TxManager, log *slog.Logger, ) *UseCase
Click to show internal directories.
Click to hide internal directories.