useraction

package
v0.0.0-...-18974b4 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertUserInfo

func ConvertUserInfo(ctx context.Context, userId int64, info operation.TUserInfo) (res *user.UserInfo, err error)

func DataToResp

func DataToResp(ctx context.Context, userId int64) (resp *user.RegisterResponse, err error)

func GetUserInfo

func GetUserInfo(ctx context.Context, request *user.UserInfoRequest) (resp *user.UserInfoResponse, err error)

func PackRegisterResponse

func PackRegisterResponse(userId int64, token string, status constant.Status) (response *user.RegisterResponse)

func PackUserInfoResponse

func PackUserInfoResponse(info *user.UserInfo) (response *user.UserInfoResponse)

func ReqToTUser

func ReqToTUser(req *user.RegisterRequest) (info *operation.TUserInfo)

func VerifyUserInfo

func VerifyUserInfo(ctx context.Context, request *user.LoginRequest) (resp *user.LoginResponse, err error)

func WriteUserInfo

func WriteUserInfo(ctx context.Context, request *user.RegisterRequest) (resp *user.RegisterResponse, err error)

func WriteUserInfoHandler

func WriteUserInfoHandler(ctx context.Context, request *user.RegisterRequest) (resp *user.RegisterResponse, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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