servers

package
v0.0.0-...-6daead3 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JwtService

type JwtService struct {
	// contains filtered or unexported fields
}

func NewJwtService

func NewJwtService(ctx *models.Context) *JwtService

func (*JwtService) GetRedisToken

func (j *JwtService) GetRedisToken(userId string) (token string, err error)

GetRedisToken 获取redis token

func (*JwtService) IsHttps

func (j *JwtService) IsHttps() bool

IsHttps 判断是否是https请求

func (*JwtService) SetRedisToken

func (j *JwtService) SetRedisToken(userId string, token string) error

SetRedisToken 设置token

func (*JwtService) SetToken

func (j *JwtService) SetToken(userId string, token string) error

SetToken 设置token

type UserServer

type UserServer struct {
	// contains filtered or unexported fields
}

func NewUserServer

func NewUserServer() *UserServer

func (*UserServer) GetUserInfo

func (u *UserServer) GetUserInfo(userId string) (*models.UserInfo, error)

func (*UserServer) Login

func (u *UserServer) Login(user *models.UserLoginParams) (*models.UserInfo, error)

Login 登录

func (*UserServer) SignUp

SignUp 注册

Jump to

Keyboard shortcuts

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