service

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SrvGroupIns = new(ServicesEntrance)

Functions

func LoadAllJwtBlack

func LoadAllJwtBlack()

Types

type JwtService

type JwtService struct{}

func (*JwtService) GetRedisJwt

func (j *JwtService) GetRedisJwt(userName string) (redisJwt string, err error)

func (*JwtService) IsBlack

func (j *JwtService) IsBlack(jwt string) bool

func (*JwtService) JsonSetBlack

func (j *JwtService) JsonSetBlack(jb model.JwtBlack) (err error)

func (*JwtService) SetRedisJwt

func (j *JwtService) SetRedisJwt(jwt string, userName string) (err error)

type ServicesEntrance

type ServicesEntrance struct {
	UserService
	JwtService
}

type UserService

type UserService struct{}

func (*UserService) ChangePassword

func (us *UserService) ChangePassword(u *model.SrvUser, newPassword string) (userInter *model.SrvUser, err error)

func (*UserService) Login

func (us *UserService) Login(u *model.SrvUser) (userInter *model.SrvUser, err error)

func (*UserService) Register

func (us *UserService) Register(u model.SrvUser) (userInter model.SrvUser, err error)

func (*UserService) ResetPassword added in v0.18.0

func (us *UserService) ResetPassword(ID uint) (err error)

Jump to

Keyboard shortcuts

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