Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hel-developer-guide
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Spencer Chang
hel-developer-guide
Commits
8d78ee08
Commit
8d78ee08
authored
Jul 31, 2017
by
yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update codeStyle.md
parent
68a5921e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
codeStyle.md
codeStyle.md
+6
-4
No files found.
codeStyle.md
View file @
8d78ee08
##
一、后端开发规范[
](#backEndDev)
##
[一、后端开发规范
](#backEndDev)
1.
所有的项目文件必须采用UTF-8编码,IDEA及Eclipse需要手动设置项目编码以及编译编码。
-
Eclipse中修改项目编码的方法参考:
[
Eclipse修改编码方法
](
http://jingyan.baidu.com/article/647f0115b0c9887f2148a822.html
)
-
IDEA中修改项目编码的方法参考:
[
IDEA修改编码方法
](
http://jingyan.baidu.com/article/948f5924e4de57d80ff5f998.html]
)
...
...
@@ -38,7 +38,7 @@ if(user.getStatus() == EXPIRED_USER_STATUS){
```
--- ---
##
二、后端命名规范[
](#backEndName)
##
[二、后端命名规范
](#backEndName)
1.
所有的命名不允许使用
**拼音或者拼音英文混合**
方式,但部分公认的拼音允许使用,如
**shanghai,beijing**
等。
2.
所有的命名不允许使用
**下划线`_`**
或者
**美元符`$`**
作为起始或者结束。错误的情况有不限于以下几种:
-
**_param**
...
...
@@ -129,9 +129,11 @@ if(user.getStatus() == EXPIRED_USER_STATUS){
5.
对数据库进行数据更新的方法,一般以
**update**
开头,后接插入的对象,若是允许批量插入对象,对象名可变为复数,如:
-
`public SysRole updateSysRole(SysRole role)`
-
`public int updateSysUsers(List<SysUser> users)`
--- ---
## 三、前端开发规范[](#frontEndDev)
## [三、前端开发规范](#frontEndDev)
--- ---
##
四、前端命名规范[
](#frontEndName)
##
[四、前端命名规范
](#frontEndName)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment