server

package
v0.0.0-...-7745932 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserServer

type UserServer struct {
	pb.UnimplementedUserServer
	// contains filtered or unexported fields
}

func NewUserServer

func NewUserServer(svcCtx *svc.ServiceContext) *UserServer

func (*UserServer) BatchCreateUsers

func (s *UserServer) BatchCreateUsers(ctx context.Context, in *pb.BatchCreateUserReq) (*pb.IDsResp, error)

func (*UserServer) BatchDeleteUser

func (s *UserServer) BatchDeleteUser(ctx context.Context, in *pb.IDsResp) (*pb.BaseResp, error)

func (*UserServer) ChangePassword

func (s *UserServer) ChangePassword(ctx context.Context, in *pb.ChangePasswdReq) (*pb.BaseResp, error)

func (*UserServer) CreateUser

func (s *UserServer) CreateUser(ctx context.Context, in *pb.CreateUserReq) (*pb.BaseResp, error)

func (*UserServer) DeleteUser

func (s *UserServer) DeleteUser(ctx context.Context, in *pb.IDReq) (*pb.BaseResp, error)

func (*UserServer) GetUser

func (s *UserServer) GetUser(ctx context.Context, in *pb.IDReq) (*pb.UserInfoResp, error)

func (*UserServer) GetUserList

func (s *UserServer) GetUserList(ctx context.Context, in *pb.PageInfoReq) (*pb.UserListResp, error)

func (*UserServer) Login

func (s *UserServer) Login(ctx context.Context, in *pb.LoginReq) (*pb.LoginResp, error)

func (*UserServer) UpdateProfile

func (s *UserServer) UpdateProfile(ctx context.Context, in *pb.UpdateProfileReq) (*pb.BaseResp, error)

func (*UserServer) UpdateUserStatus

func (s *UserServer) UpdateUserStatus(ctx context.Context, in *pb.StatusCodeReq) (*pb.BaseResp, error)

Jump to

Keyboard shortcuts

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