c# 命名规范
This commit is contained in:
parent
567680c5c5
commit
44e1ba962f
@ -1,4 +1,7 @@
|
||||
<h1 align="center">编码规范、代码风格</h1>
|
||||
<h1 align="center">
|
||||
编码规范、代码风格、电脑使用规范
|
||||
<h3>持续更新中……</h3>
|
||||
</h1>
|
||||
|
||||
### Pascal Case:Pascal 大驼峰式命名法
|
||||
|
||||
@ -36,7 +39,11 @@
|
||||
|
||||
### C#
|
||||
|
||||
- 类名、文件名使用 Pascal 式命名
|
||||
- record 名称、结构体名称、类名、公有属性、方法名称、文件名使用 Pascal 式命名
|
||||
- 接口 第一个字母应为大写 I
|
||||
- private 和 internal 属性使用小驼峰式命名(camelCase)或者开头添加 \_
|
||||
- 方法参数使用小驼峰式命名(camelCase)命名
|
||||
- 所有 ApiController 必须返回 ResultDto 类型,并且被 Ok() 函数包裹
|
||||
|
||||
## 工作目录
|
||||
|
||||
@ -50,3 +57,8 @@
|
||||
- pingan-iot-admin 管理后台前端项目根目录,和 git 服务器上的名称一致
|
||||
- smart-venue # 另一个项目名称
|
||||
- smart-venue-mp # 微信小程序端项目根目录,和 git 服务器上的名称一致
|
||||
|
||||
## 软件安装目录
|
||||
|
||||
- 默认安装 D 盘,保持除去盘符以外的软件默认安装路径
|
||||
- 不能安装工作使用以外的其他软件
|
||||
|
Loading…
x
Reference in New Issue
Block a user