controller中区分list和page方法

建议 3 1743
1. 现在的controller中提供了一个list方法,但实质核心是page方法,让使用者非常困惑,因为controller中往往会有list和page同时都有的情况,建议做区分。 2. 前后端分离,返回不应该出现LayuiPage这样命名的类。 [pre] @RequestMapping("/list") @RequiresPermissions("biz:xxx:list") public LayuiPage list(@RequestParam Map<String, Object> params){ LayuiPage page = xxxService.queryPage(params); return page; } [/pre] ps. 企业版是否考虑开放git给购买了会员的用户一起优化迭代项目。 Thanks
回帖