user

package
v1.0.40 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Password

type Password struct {
	Password string `json:"password"`
	Time     int64  `json:"time"`
}

type UseCase

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

func NewUseCase

func NewUseCase(config *conf.Config) *UseCase

func (*UseCase) Login

func (uc *UseCase) Login(ctx kratosx.Context, username, password string) (string, error)

Login 用户登录

func (*UseCase) RefreshToken

func (uc *UseCase) RefreshToken(ctx kratosx.Context) (string, error)

RefreshToken 刷新用户token

Jump to

Keyboard shortcuts

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