service

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 19, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessService

type AccessService interface {
	HasAccessRight(ctx context.Context, endpoint string, role string) (bool, error)
}

type AuthService

type AuthService interface {
	GetAccessToken(ctx context.Context, model model.UserJwt) (string, error)
	GetRefreshToken(ctx context.Context, model model.UserJwt) (string, error)
	VerifyRefreshToken(ctx context.Context, token string) (model.UserClaims, error)
	VerifyAccessToken(ctx context.Context, token string) (model.UserClaims, error)
}

type UserService

type UserService interface {
	Create(ctx context.Context, info *model.UserInfo) (int64, error)
	Get(ctx context.Context, id int64) (*model.User, error)
	Delete(ctx context.Context, id int64) error
	Update(ctx context.Context, info *model.User) error
	GetByEmail(ctx context.Context, email string) (*model.User, error)
	FindByName(ctx context.Context, name string) ([]*model.UserName, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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