userclient

package
v0.0.0-...-8625c6b Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetSmsReq

type GetSmsReq = user.GetSmsReq

type GetUserInfoReq

type GetUserInfoReq = user.GetUserInfoReq

type LoginReq

type LoginReq = user.LoginReq

type RegisterReq

type RegisterReq = user.RegisterReq

type UpdateUserInfoReq

type UpdateUserInfoReq = user.UpdateUserInfoReq

type User

type User interface {
	//  获取短信验证码
	GetSms(ctx context.Context, in *GetSmsReq, opts ...grpc.CallOption) (*UserReply, error)
	//  用户注册
	Register(ctx context.Context, in *RegisterReq, opts ...grpc.CallOption) (*UserReply, error)
	//  用户登陆
	Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*UserReply, error)
	//  获取用户信息
	GetUserInfo(ctx context.Context, in *GetUserInfoReq, opts ...grpc.CallOption) (*UserReply, error)
	//  修改用户信息
	UpdateUserInfo(ctx context.Context, in *UpdateUserInfoReq, opts ...grpc.CallOption) (*UserReply, error)
}

func NewUser

func NewUser(cli zrpc.Client) User

type UserReply

type UserReply = user.UserReply

Jump to

Keyboard shortcuts

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