Controller 路径命名
例:用户浏览功能基础接口
@RestController
@RequestMapping("/open/user/h5/user/view")
- /save
- /find/{id}
- /find/list
- /modify
- /delete/{id}
- /logic/delete
- /toggle/able/status
Service 接口命名
- save
- findById
- findByXXX
- findXXXList
- modify
- delete
- logicDelete
- toggleAbleSstatus
Dao 接口命名
- insert
- batchInsert
- selectOne
- selectById
- count
- selectList
- update
- deleteById
网友评论