logic

package
v0.0.0-...-f45b2b9 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: GPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCode

func GenerateCode() string

Types

type CheckParams

type CheckParams struct {
	Point *captcha.Point `json:"point"`
	Token string         `json:"token"`
}

type Data

type Data struct {
	Point *captcha.Point `json:"point"`
}

type RegisterReq

type RegisterReq struct {
	Secret string `json:"secret"`
	Users  []struct {
		UserID   string `json:"userID"`
		Nickname string `json:"nickname"`
		FaceURL  string `json:"faceURL"`
	} `json:"users"`
}

type RegisterResp

type RegisterResp struct {
	ErrCode int    `json:"errCode"`
	ErrMsg  string `json:"errMsg"`
	ErrDlt  string `json:"errDlt"`
}

type Token

type Token struct {
	AccessToken  string
	RefreshToken string
	ChatToken    string
}

type UserCenterLogic

type UserCenterLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUserCenterLogic

func NewUserCenterLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UserCenterLogic

func (*UserCenterLogic) ConfirmCaptcha

func (*UserCenterLogic) ConfirmEmailCode

func (*UserCenterLogic) GenerateToken

func (*UserCenterLogic) GetCaptcha

func (*UserCenterLogic) GetUser

func (*UserCenterLogic) Login

func (*UserCenterLogic) RefreshToken

func (*UserCenterLogic) Register

func (*UserCenterLogic) RegisterToOpenIM

func (l *UserCenterLogic) RegisterToOpenIM(Name, UserID string) error

func (*UserCenterLogic) RetrievePassword

func (*UserCenterLogic) SearchUser

func (*UserCenterLogic) SendEmailCode

func (*UserCenterLogic) SendToMail

func (l *UserCenterLogic) SendToMail(subject, body string, to []string) error

func (*UserCenterLogic) UpdateUser

Jump to

Keyboard shortcuts

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