usecase

package
v0.0.0-...-a051c0a Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: MIT Imports: 14 Imported by: 0

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
}

Jump to

Keyboard shortcuts

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