JAVA 增删改查接口命名规范(dao层与 service 层

开发时,有很多规范,这里写的是命名规范。

本页展示阿里和网络上两种不错规范备用

1:  阿里支命名规范(后端

  2: 前端的:restful的CRUD---员工列表,比较传统与现代命名规范

    restful 采用标准 CRUD---员工列表

 

 

 2:感觉也不错规范

Dao 接口命名
 
  • insert
  • batchInsert
  • selectOne
  • selectById
  • count
  • selectList
  • update
  • deleteById

 

Service 接口命名
 
  • add
  • findById
  • findByXXX
  • findXXXList
  • modify
  • remove
posted @ 2020-01-18 14:46  码哥之旅  阅读(7357)  评论(0编辑  收藏  举报