Skip to content

Commit 3a0c3e0

Browse files
committed
refactor(extension/crud): 调整 BaseController、BaseService 到 crud-core 模块
1 parent 3edf79c commit 3a0c3e0

File tree

6 files changed

+6
-301
lines changed

6 files changed

+6
-301
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import top.continew.starter.extension.crud.model.query.SortQuery;
3232
import top.continew.starter.extension.crud.model.req.BaseReq;
3333
import top.continew.starter.extension.crud.model.resp.BaseIdResp;
34-
import top.continew.starter.extension.crud.model.resp.PageResp;
34+
import top.continew.starter.extension.crud.model.resp.BasePageResp;
3535
import top.continew.starter.extension.crud.service.BaseService;
3636
import top.continew.starter.extension.crud.util.ValidateGroup;
3737

@@ -64,7 +64,7 @@ public abstract class BaseController<S extends BaseService<L, D, Q, C>, L, D, Q,
6464
@Operation(summary = "分页查询列表", description = "分页查询列表")
6565
@ResponseBody
6666
@GetMapping
67-
public PageResp<L> page(Q query, @Validated PageQuery pageQuery) {
67+
public BasePageResp<L> page(Q query, @Validated PageQuery pageQuery) {
6868
return baseService.page(query, pageQuery);
6969
}
7070

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
import jakarta.servlet.http.HttpServletResponse;
2121
import top.continew.starter.extension.crud.model.query.PageQuery;
2222
import top.continew.starter.extension.crud.model.query.SortQuery;
23+
import top.continew.starter.extension.crud.model.resp.BasePageResp;
2324
import top.continew.starter.extension.crud.model.resp.LabelValueResp;
24-
import top.continew.starter.extension.crud.model.resp.PageResp;
2525

2626
import java.util.List;
2727

@@ -44,7 +44,7 @@ public interface BaseService<L, D, Q, C> {
4444
* @param pageQuery 分页查询条件
4545
* @return 分页列表信息
4646
*/
47-
PageResp<L> page(Q query, PageQuery pageQuery);
47+
BasePageResp<L> page(Q query, PageQuery pageQuery);
4848

4949
/**
5050
* 查询列表

continew-starter-extension/continew-starter-extension-crud/continew-starter-extension-crud-mf/src/main/java/top/continew/starter/extension/crud/service/BaseService.java

Lines changed: 0 additions & 120 deletions
This file was deleted.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package top.continew.starter.extension.crud.service.impl;
17+
package top.continew.starter.extension.crud.service;
1818

1919
import cn.crane4j.core.support.OperateTemplate;
2020
import cn.hutool.core.bean.BeanUtil;
@@ -44,7 +44,6 @@
4444
import top.continew.starter.extension.crud.model.query.PageQuery;
4545
import top.continew.starter.extension.crud.model.query.SortQuery;
4646
import top.continew.starter.extension.crud.model.resp.PageResp;
47-
import top.continew.starter.extension.crud.service.BaseService;
4847
import top.continew.starter.file.excel.util.ExcelUtils;
4948

5049
import java.lang.reflect.Field;

continew-starter-extension/continew-starter-extension-crud/continew-starter-extension-crud-mp/src/main/java/top/continew/starter/extension/crud/controller/BaseController.java

Lines changed: 0 additions & 173 deletions
This file was deleted.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package top.continew.starter.extension.crud.service.impl;
17+
package top.continew.starter.extension.crud.service;
1818

1919
import cn.crane4j.core.support.OperateTemplate;
2020
import cn.hutool.core.bean.BeanUtil;
@@ -51,7 +51,6 @@
5151
import top.continew.starter.extension.crud.model.query.SortQuery;
5252
import top.continew.starter.extension.crud.model.resp.LabelValueResp;
5353
import top.continew.starter.extension.crud.model.resp.PageResp;
54-
import top.continew.starter.extension.crud.service.BaseService;
5554
import top.continew.starter.file.excel.util.ExcelUtils;
5655

5756
import java.lang.reflect.Field;

0 commit comments

Comments
 (0)