feat: add list user in sys
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package org.wfc.system.controller;
|
||||
|
||||
import com.github.pagehelper.Page;
|
||||
import org.apache.commons.lang3.ArrayUtils;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -16,6 +17,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.wfc.common.core.domain.R;
|
||||
import org.wfc.common.core.utils.MessageUtils;
|
||||
import org.wfc.common.core.utils.PageUtils;
|
||||
import org.wfc.common.core.utils.StringUtils;
|
||||
import org.wfc.common.core.utils.poi.ExcelUtil;
|
||||
import org.wfc.common.core.web.controller.BaseController;
|
||||
@@ -38,6 +40,8 @@ import org.wfc.system.service.ISysPermissionService;
|
||||
import org.wfc.system.service.ISysPostService;
|
||||
import org.wfc.system.service.ISysRoleService;
|
||||
import org.wfc.system.service.ISysUserService;
|
||||
import org.wfc.user.api.RemoteUUserService;
|
||||
import org.wfc.user.api.domain.UUser;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.IOException;
|
||||
@@ -80,6 +84,9 @@ public class SysUserController extends BaseController
|
||||
@Autowired
|
||||
private MessageSource messageSource;
|
||||
|
||||
@Autowired
|
||||
private RemoteUUserService remoteUUserService;
|
||||
|
||||
/**
|
||||
* 测试国际化
|
||||
*/
|
||||
@@ -113,6 +120,18 @@ public class SysUserController extends BaseController
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取用户平台-用户列表
|
||||
*/
|
||||
@GetMapping("/listUser")
|
||||
public TableDataInfo listUser(UUser user)
|
||||
{
|
||||
startPage();
|
||||
Page<Object> localPage = PageUtils.getLocalPage();
|
||||
TableDataInfo result = remoteUUserService.page(localPage.getPageNum(), localPage.getPageSize(), user);
|
||||
return result;
|
||||
}
|
||||
|
||||
@Log(title = "用户管理", businessType = BusinessType.EXPORT)
|
||||
@RequiresPermissions("system:user:export")
|
||||
@PostMapping("/export")
|
||||
|
||||
Reference in New Issue
Block a user