add login route

This commit is contained in:
2026-07-02 03:30:51 +07:00
parent d22ad7cb09
commit 20ada8caa2
9 changed files with 389 additions and 12 deletions
+10
View File
@@ -47,3 +47,13 @@ func (s *server) RefreshPassword(ctx context.Context, req *proto.RefreshPassword
}
return &proto.RefreshPasswordRsp{}, nil
}
func (s *server) Login(ctx context.Context, req *proto.LoginReq) (*proto.LoginRsp, error) {
err := s.usersService.Login(ctx, req.Email, req.Password)
if err != nil {
return &proto.LoginRsp{
Error: err.Error(),
}, nil
}
return &proto.LoginRsp{}, nil
}