Compare commits
No commits in common. "9ae483898659a979bd0b68eb0cc9b7602d575c59" and "85d297aeaae3036c8630e7688b371a2e9d6b6f67" have entirely different histories.
9ae4838986
...
85d297aeaa
@ -39,8 +39,8 @@ func (h *RegisterService) Run(req *facade.RegisterReq) (resp *facade.RegisterRes
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
loginResp, err := rpcClient.Login(h.Context, &user1.LoginReq{
|
loginResp, err := rpcClient.Login(h.Context, &user1.LoginReq{
|
||||||
Email: req.Email,
|
Email: "11",
|
||||||
Password: req.Password,
|
Password: "22",
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
@ -16,6 +16,6 @@ func NewLoginService(ctx context.Context) *LoginService {
|
|||||||
func (s *LoginService) Run(req *user.LoginReq) (resp *user.LoginResp, err error) {
|
func (s *LoginService) Run(req *user.LoginReq) (resp *user.LoginResp, err error) {
|
||||||
// Finish your business logic.
|
// Finish your business logic.
|
||||||
|
|
||||||
resp = &user.LoginResp{UserId: int32(req.Password[0])}
|
resp = &user.LoginResp{UserId: 111}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user