|
@@ -1,6 +1,7 @@
|
|
|
package shop.alien.store.controller;
|
|
package shop.alien.store.controller;
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import io.swagger.annotations.*;
|
|
import io.swagger.annotations.*;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -18,6 +19,8 @@ import shop.alien.store.service.SystemService;
|
|
|
import shop.alien.util.common.TokenInfo;
|
|
import shop.alien.util.common.TokenInfo;
|
|
|
import springfox.documentation.annotations.ApiIgnore;
|
|
import springfox.documentation.annotations.ApiIgnore;
|
|
|
|
|
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 商家会员记录 前端控制器
|
|
* 商家会员记录 前端控制器
|
|
|
*
|
|
*
|
|
@@ -129,6 +132,21 @@ public class SystemController {
|
|
|
return systemService.clearUserDepartment(userId);
|
|
return systemService.clearUserDepartment(userId);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // 查询部门所有用户
|
|
|
|
|
+ @ApiOperation("查询所有用户")
|
|
|
|
|
+ @ApiOperationSupport(order = 9)
|
|
|
|
|
+ @GetMapping(value = "/getUsers")
|
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
|
+ @ApiImplicitParam(name = "page", value = "页码(默认1)", dataType = "int", paramType = "query"),
|
|
|
|
|
+ @ApiImplicitParam(name = "size", value = "每页大小(默认10)", dataType = "int", paramType = "query"),
|
|
|
|
|
+ })
|
|
|
|
|
+ public R<List<LifeSys>> getUsers(@RequestParam(defaultValue = "1") int page,
|
|
|
|
|
+ @RequestParam(defaultValue = "10") int size) {
|
|
|
|
|
+ log.info("SystemController.getUsers => page={}, size={}", page, size);
|
|
|
|
|
+ List<LifeSys> records = systemService.page(new Page<>(page, size)).getRecords();
|
|
|
|
|
+ return R.data(records);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 废弃
|
|
* 废弃
|
|
|
*/
|
|
*/
|