三层架构命名规范

操作 Controller层 Service层 Mapper层
新增 addXxx saveXxx insertXxx
查询单个 getXxxByXxx getXxxByXxx selectXxxByXxx
查询列表 listXxxs listXxxs selectXxxs
更新 updateXxx updateXxx updateXxx
删除 deleteXxxByXxx deleteXxxByXxx deleteXxxByXxx
分页查询 getXxxPage getXxxPage findXxxByPage
posted @ 2025-03-21 20:17  一喵良  阅读(22)  评论(0)    收藏  举报