|
@@ -3,6 +3,8 @@ package com.ozs.web.controller.system;
|
|
|
import java.util.List;
|
|
|
import java.util.stream.Collectors;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
+
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
import org.apache.commons.lang3.ArrayUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
@@ -40,6 +42,7 @@ import com.ozs.system.service.ISysUserService;
|
|
|
*/
|
|
|
@RestController
|
|
|
@RequestMapping("/system/user")
|
|
|
+@ApiOperation("用户信息")
|
|
|
public class SysUserController extends BaseController
|
|
|
{
|
|
|
@Autowired
|
|
@@ -59,6 +62,7 @@ public class SysUserController extends BaseController
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('system:user:list')")
|
|
|
@GetMapping("/list")
|
|
|
+ @ApiOperation("获取用户列表")
|
|
|
public TableDataInfo list(SysUser user)
|
|
|
{
|
|
|
startPage();
|
|
@@ -69,6 +73,7 @@ public class SysUserController extends BaseController
|
|
|
@Log(title = "用户管理", businessType = BusinessType.EXPORT)
|
|
|
@PreAuthorize("@ss.hasPermi('system:user:export')")
|
|
|
@PostMapping("/export")
|
|
|
+ @ApiOperation("用户管理")
|
|
|
public void export(HttpServletResponse response, SysUser user)
|
|
|
{
|
|
|
List<SysUser> list = userService.selectUserList(user);
|
|
@@ -79,6 +84,7 @@ public class SysUserController extends BaseController
|
|
|
@Log(title = "用户管理", businessType = BusinessType.IMPORT)
|
|
|
@PreAuthorize("@ss.hasPermi('system:user:import')")
|
|
|
@PostMapping("/importData")
|
|
|
+ @ApiOperation("用户管理")
|
|
|
public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception
|
|
|
{
|
|
|
ExcelUtil<SysUser> util = new ExcelUtil<SysUser>(SysUser.class);
|