Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能不能将一些不依赖mybatis和 sqlparsel的类独立一个模块 #846

Open
avery-hub-z opened this issue Jan 22, 2025 · 3 comments
Open

Comments

@avery-hub-z
Copy link

能不能将一些不依赖mybatis和 sqlparsel的类独立一个模块,以用于分布式项目(比如dubbo,接口层) ,
比如 IPage,Page,PageInfo相关API操作

@abel533
Copy link
Collaborator

abel533 commented Jan 23, 2025

分页入参只要结构一致(也能配置字段名)就可以使用。PageInfo是对Page的转换。
所以这两部分都可以自己定义,因此不建议直接依赖这几个类,只在服务内部使用。

@avery-hub-z
Copy link
Author

请教下如何自定义呢,比如我自定义PageInfo,目前好像没看到支持扩展的类和继承的接口,

@abel533
Copy link
Collaborator

abel533 commented Jan 24, 2025

MyPageInfo(List rows, int total){}

将Page或者PageInfo转换为MyPageInfo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants