|
|
@@ -5,6 +5,7 @@ import com.example.controller.response.NormalRes;
|
|
|
import com.example.controller.response.Response;
|
|
|
import com.example.entity.User;
|
|
|
import com.example.services.LoginService;
|
|
|
+import com.example.services.pojo.LoginPojo;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import lombok.val;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -31,7 +32,7 @@ public class LoginController {
|
|
|
public Response userLogin(@RequestParam(value="username", required = false) String username,
|
|
|
@RequestParam(value = "password", required = false) String password) {
|
|
|
try {
|
|
|
- val rsl = loginService.verifyUser(username, password);
|
|
|
+ LoginPojo rsl = loginService.verifyUser(username, password);
|
|
|
return new NormalRes(rsl);
|
|
|
} catch (NullPointerException e) {
|
|
|
e.printStackTrace();
|