Files
ruoyi-vue-pro/yudao-module-system
芋道源码 d673c5c0cb Add mail login to management backend
Add email and password login functionality to the management backend.

* **AuthController.java**
  - Add a new endpoint `/mail-login` for email and password login.
  - Use `@PostMapping` and `@Operation` annotations for the new endpoint.
  - Call the `authService.mailLogin` method in the new endpoint.

* **AdminAuthService.java**
  - Add a new method `AuthLoginRespVO mailLogin(AuthMailLoginReqVO reqVO)` to the interface.

* **AdminAuthServiceImpl.java**
  - Implement the `mailLogin` method in the `AdminAuthServiceImpl` class.
  - Authenticate the user using the email and password.
  - Create a token after successful login and return the response.

* **AdminUserService.java**
  - Add a method `AdminUserDO getUserByEmail(String email)` to the interface.

* **AdminUserServiceImpl.java**
  - Implement the `getUserByEmail` method to fetch user details based on email.

* **AuthMailLoginReqVO.java**
  - Create a new class `AuthMailLoginReqVO` for handling email and password login requests.
  - Add fields `email` and `password` with appropriate validation annotations.
  - Add a constructor, getters, and setters for the fields.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/YunaiV/ruoyi-vue-pro?shareId=XXXX-XXXX-XXXX-XXXX).
2024-08-09 16:22:16 +08:00
..
2022-04-22 00:07:54 +08:00