mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-06-29 00:42:50 +08:00
25 lines
887 B
Java
25 lines
887 B
Java
package xyz.playedu.api.controller.admin;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import xyz.playedu.api.domain.AdminUser;
|
|
import xyz.playedu.api.service.impl.AdminUserServiceImpl;
|
|
import xyz.playedu.api.types.PaginationResult;
|
|
import xyz.playedu.api.types.ResponseBody;
|
|
|
|
@RestController
|
|
public class AdminUserController {
|
|
|
|
@Autowired
|
|
private AdminUserServiceImpl adminUserService;
|
|
|
|
@GetMapping("/admin/user/index")
|
|
public ResponseBody<Object> List(@RequestParam("page") Integer page, @RequestParam("size") Integer size) {
|
|
PaginationResult<AdminUser> result = adminUserService.paginate(page, size, null);
|
|
return ResponseBody.data(result);
|
|
}
|
|
|
|
}
|