package com.nms.swspkmas_standalone.controller; import com.nms.swspkmas_standalone.entity.User; import com.nms.swspkmas_standalone.entity.vo.UserVO; import com.nms.swspkmas_standalone.response.CommonPage; import com.nms.swspkmas_standalone.response.CommonResult; import com.nms.swspkmas_standalone.service.UserService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import javax.validation.Valid; /** *
* 用户表 前端控制器 *
* * @author kzy * @since 2023-09-19 16:30:35 */ @Api(tags = "系统用户控制器") @RestController @RequestMapping("/api/user") public class UserController { @Autowired private UserService userService; @ApiOperation(value = "系统用户列表") @ApiImplicitParams({ @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"), @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数量 默认10"), @ApiImplicitParam(paramType = "query", name = "username", dataType = "string", required = false, value = "登录名") }) @GetMapping("/userList") public CommonResult