driver-server/src/main/java/com/jwl/driver/server/controller/TdSysUserController.java

44 lines
1.2 KiB
Java
Raw Normal View History

2023-08-11 11:51:09 +08:00
package com.jwl.driver.server.controller;
2023-08-12 01:56:25 +08:00
import com.jwl.driver.server.dto.LoginUserDto;
import com.jwl.driver.server.response.BaseResponse;
import com.jwl.driver.server.service.ITdSysUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
2023-08-11 11:51:09 +08:00
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
2023-08-12 01:56:25 +08:00
import org.springframework.web.bind.annotation.RestController;
2023-08-11 11:51:09 +08:00
/**
* <p>
* ;
* </p>
*
* @author Automated procedures
* @since 2023-08-10
*/
2023-08-12 01:56:25 +08:00
@RestController
@Api(tags = "用户管理")
@RequestMapping("/tdSysUser")
@Slf4j
2023-08-11 11:51:09 +08:00
public class TdSysUserController {
2023-08-12 01:56:25 +08:00
@Autowired
private ITdSysUserService userService;
@ApiOperation("用户登陆")
@PostMapping("/login")
public BaseResponse login(@RequestBody LoginUserDto loginUserDto) throws Exception {
log.info("用户登录======>loginUserDto:{}", loginUserDto);
return BaseResponse.success(userService.login(loginUserDto));
}
2023-08-11 11:51:09 +08:00
}