user

package
v0.0.0-...-385b71e Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	Login(req *request.LoginRequest) (response.LoginResponse, error)
	Logout(req *request.LogoutRequest) error
	CreateUser(req *request.CreateUserRequest) error
	RefreshToken(token string) (response.RefreshTokenResponse, error)
	UpdateUserInfo(req *request.UpdateUserInfoRequest) error
	UpdateSelfInfo(req *request.UpdateSelfInfoRequest) error
	UpdateUserPhone(req *request.UpdateUserPhoneRequest) error
	UpdateUserEmail(req *request.UpdateUserEmailRequest) error
	UpdateUserPassword(req *request.UpdateUserPasswordRequest) error
	GetUserInfo(userID int64) (response.GetUserInfoResponse, error)
	GetUserList(req *request.GetUserListRequest) (response.GetUserListResponse, error)
	RemoveUser(userID int64) error
	RestPassword(req *request.ResetPasswordRequest) error

	GetUserTeam(req *request.GetUserTeamRequest) (response.GetUserTeamResponse, error)

	IsInBlacklist(token string) (bool, error)
}

func New

func New(dbRepo database.Repo, cacheRepo cache.Repo) Service

Jump to

Keyboard shortcuts

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