handler

package
v0.0.0-...-9ff475a Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UserModelToResp

func UserModelToResp(u *model.User) *user.UserModel

模型转换

func UserModelsToResp

func UserModelsToResp(us []model.User) []*user.UserModel

Types

type UserServer

type UserServer struct {
	user.UnimplementedUserServer
}

func (*UserServer) CheckPassword

func (this *UserServer) CheckPassword(c context.Context, req *user.CheckPasswordReq) (*user.CheckPasswordResp, error)

func (*UserServer) CreateUser

func (this *UserServer) CreateUser(c context.Context, req *user.CreateUserReq) (*user.CreateUserResp, error)

func (*UserServer) GetUserById

func (this *UserServer) GetUserById(c context.Context, req *user.GetUserByIdReq) (*user.GetUserByIdResp, error)

func (*UserServer) GetUserByMobile

func (this *UserServer) GetUserByMobile(c context.Context, req *user.GetUserByMobileReq) (*user.GetUserByMobileResp, error)

func (*UserServer) GetUserList

func (this *UserServer) GetUserList(c context.Context, req *user.GetUserListReq) (*user.GetUserListResp, error)

func (*UserServer) Ping

func (this *UserServer) Ping(c context.Context, req *user.Empty) (*user.Empty, error)

func (*UserServer) UpdateUser

func (this *UserServer) UpdateUser(c context.Context, req *user.UpdateUserReq) (*user.Empty, error)

Jump to

Keyboard shortcuts

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