Compare commits
2 Commits
85d297aeaa
...
9ae4838986
Author | SHA1 | Date | |
---|---|---|---|
9ae4838986 | |||
0d5fa6e9f7 |
@ -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: "11",
|
Email: req.Email,
|
||||||
Password: "22",
|
Password: req.Password,
|
||||||
})
|
})
|
||||||
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: 111}
|
resp = &user.LoginResp{UserId: int32(req.Password[0])}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user