MCPcopy Create free account
hub / github.com/LockGit/gochat / GetUserNameByUserId

Method GetUserNameByUserId

api/rpc/rpc.go:80–86  ·  view source on GitHub ↗
(req *proto.GetUserInfoRequest)

Source from the content-addressed store, hash-verified

78}
79
80func (rpc *RpcLogic) GetUserNameByUserId(req *proto.GetUserInfoRequest) (code int, userName string) {
81 reply := &proto.GetUserInfoResponse{}
82 LogicRpcClient.Call(context.Background(), "GetUserInfoByUserId", req, reply)
83 code = reply.Code
84 userName = reply.UserName
85 return
86}
87
88func (rpc *RpcLogic) CheckAuth(req *proto.CheckAuthRequest) (code int, userId int, userName string) {
89 reply := &proto.CheckAuthResponse{}

Callers 1

PushFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected