mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-09 20:57:21 +08:00
refactor: PageDataResp => PageResp
This commit is contained in:
@@ -38,7 +38,7 @@ import top.charles7c.continew.admin.monitor.model.resp.SystemLogDetailResp;
|
||||
import top.charles7c.continew.admin.monitor.model.resp.SystemLogResp;
|
||||
import top.charles7c.continew.admin.monitor.service.LogService;
|
||||
import top.charles7c.continew.starter.extension.crud.model.query.PageQuery;
|
||||
import top.charles7c.continew.starter.extension.crud.model.resp.PageDataResp;
|
||||
import top.charles7c.continew.starter.extension.crud.model.resp.PageResp;
|
||||
import top.charles7c.continew.starter.extension.crud.model.resp.R;
|
||||
import top.charles7c.continew.starter.log.common.annotation.Log;
|
||||
|
||||
@@ -59,24 +59,24 @@ public class LogController {
|
||||
@Log(module = "登录日志")
|
||||
@Operation(summary = "分页查询登录日志列表", description = "分页查询登录日志列表")
|
||||
@GetMapping("/login")
|
||||
public R<PageDataResp<LoginLogResp>> page(LoginLogQuery query, @Validated PageQuery pageQuery) {
|
||||
PageDataResp<LoginLogResp> pageData = logService.page(query, pageQuery);
|
||||
public R<PageResp<LoginLogResp>> page(LoginLogQuery query, @Validated PageQuery pageQuery) {
|
||||
PageResp<LoginLogResp> pageData = logService.page(query, pageQuery);
|
||||
return R.ok(pageData);
|
||||
}
|
||||
|
||||
@Log(module = "操作日志")
|
||||
@Operation(summary = "分页查询操作日志列表", description = "分页查询操作日志列表")
|
||||
@GetMapping("/operation")
|
||||
public R<PageDataResp<OperationLogResp>> page(OperationLogQuery query, @Validated PageQuery pageQuery) {
|
||||
PageDataResp<OperationLogResp> pageData = logService.page(query, pageQuery);
|
||||
public R<PageResp<OperationLogResp>> page(OperationLogQuery query, @Validated PageQuery pageQuery) {
|
||||
PageResp<OperationLogResp> pageData = logService.page(query, pageQuery);
|
||||
return R.ok(pageData);
|
||||
}
|
||||
|
||||
@Log(module = "系统日志")
|
||||
@Operation(summary = "分页查询系统日志列表", description = "分页查询系统日志列表")
|
||||
@GetMapping("/system")
|
||||
public R<PageDataResp<SystemLogResp>> page(SystemLogQuery query, @Validated PageQuery pageQuery) {
|
||||
PageDataResp<SystemLogResp> pageData = logService.page(query, pageQuery);
|
||||
public R<PageResp<SystemLogResp>> page(SystemLogQuery query, @Validated PageQuery pageQuery) {
|
||||
PageResp<SystemLogResp> pageData = logService.page(query, pageQuery);
|
||||
return R.ok(pageData);
|
||||
}
|
||||
|
||||
|
@@ -34,7 +34,7 @@ import top.charles7c.continew.admin.auth.model.resp.OnlineUserResp;
|
||||
import top.charles7c.continew.admin.auth.service.OnlineUserService;
|
||||
import top.charles7c.continew.starter.core.util.validate.CheckUtils;
|
||||
import top.charles7c.continew.starter.extension.crud.model.query.PageQuery;
|
||||
import top.charles7c.continew.starter.extension.crud.model.resp.PageDataResp;
|
||||
import top.charles7c.continew.starter.extension.crud.model.resp.PageResp;
|
||||
import top.charles7c.continew.starter.extension.crud.model.resp.R;
|
||||
|
||||
/**
|
||||
@@ -54,8 +54,8 @@ public class OnlineUserController {
|
||||
@Operation(summary = "分页查询列表", description = "分页查询列表")
|
||||
@SaCheckPermission("monitor:online:user:list")
|
||||
@GetMapping
|
||||
public R<PageDataResp<OnlineUserResp>> page(OnlineUserQuery query, @Validated PageQuery pageQuery) {
|
||||
PageDataResp<OnlineUserResp> pageData = onlineUserService.page(query, pageQuery);
|
||||
public R<PageResp<OnlineUserResp>> page(OnlineUserQuery query, @Validated PageQuery pageQuery) {
|
||||
PageResp<OnlineUserResp> pageData = onlineUserService.page(query, pageQuery);
|
||||
return R.ok(pageData);
|
||||
}
|
||||
|
||||
|
@@ -35,7 +35,7 @@ import top.charles7c.continew.admin.system.model.resp.MessageUnreadResp;
|
||||
import top.charles7c.continew.admin.system.service.MessageService;
|
||||
import top.charles7c.continew.admin.system.service.MessageUserService;
|
||||
import top.charles7c.continew.starter.extension.crud.model.query.PageQuery;
|
||||
import top.charles7c.continew.starter.extension.crud.model.resp.PageDataResp;
|
||||
import top.charles7c.continew.starter.extension.crud.model.resp.PageResp;
|
||||
import top.charles7c.continew.starter.extension.crud.model.resp.R;
|
||||
import top.charles7c.continew.starter.log.common.annotation.Log;
|
||||
|
||||
@@ -56,9 +56,9 @@ public class MessageController {
|
||||
|
||||
@Operation(summary = "分页查询列表", description = "分页查询列表")
|
||||
@GetMapping
|
||||
public R<PageDataResp<MessageResp>> page(MessageQuery query, @Validated PageQuery pageQuery) {
|
||||
public R<PageResp<MessageResp>> page(MessageQuery query, @Validated PageQuery pageQuery) {
|
||||
query.setUserId(LoginHelper.getUserId());
|
||||
PageDataResp<MessageResp> pageData = baseService.page(query, pageQuery);
|
||||
PageResp<MessageResp> pageData = baseService.page(query, pageQuery);
|
||||
return R.ok(pageData);
|
||||
}
|
||||
|
||||
|
@@ -41,7 +41,7 @@ import top.charles7c.continew.admin.tool.service.GeneratorService;
|
||||
import top.charles7c.continew.starter.core.autoconfigure.project.ProjectProperties;
|
||||
import top.charles7c.continew.starter.core.util.validate.ValidationUtils;
|
||||
import top.charles7c.continew.starter.extension.crud.model.query.PageQuery;
|
||||
import top.charles7c.continew.starter.extension.crud.model.resp.PageDataResp;
|
||||
import top.charles7c.continew.starter.extension.crud.model.resp.PageResp;
|
||||
import top.charles7c.continew.starter.extension.crud.model.resp.R;
|
||||
|
||||
/**
|
||||
@@ -63,7 +63,7 @@ public class GeneratorController {
|
||||
@Operation(summary = "分页查询数据表", description = "分页查询数据表")
|
||||
@SaCheckPermission("tool:generator:list")
|
||||
@GetMapping("/table")
|
||||
public R<PageDataResp<TableResp>> pageTable(TableQuery query, @Validated PageQuery pageQuery) throws SQLException {
|
||||
public R<PageResp<TableResp>> pageTable(TableQuery query, @Validated PageQuery pageQuery) throws SQLException {
|
||||
return R.ok(generatorService.pageTable(query, pageQuery));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user