package com.jwl.driver.server.controller; 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; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RestController; /** *
* 用户表; 前端控制器 *
* * @author Automated procedures * @since 2023-08-10 */ @RestController @Api(tags = "用户管理") @RequestMapping("/tdSysUser") @Slf4j public class TdSysUserController { @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)); } }