update docs/架构设计/开发视图设计.md.

Signed-off-by: xujian <xujian@kylinos.cn>
This commit is contained in:
xujian 2024-02-28 06:40:14 +00:00 committed by Gitee
parent 81de472879
commit 0e8574763e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 27 additions and 0 deletions

View File

@ -7,3 +7,30 @@
2. 目录内各平行功能模块之间也遵循高内聚、低耦合模块划分原则,原则上不允许平行功能模块之间的函数调用,例如应用层的漏洞扫描模块不应调用应用层的基线扫描模块的外部函数。
## 诊脉编码规范
1、类型、类、外部函数采用大驼峰命名法
```
type
ReportBaseLine struct {
ReportCommon
}
func
GetTemplateReportBaseLine() (*ReportBaseLine){
}
```
1、变量、内部函数采用小驼峰命名法
```
var remoteUpdateStatus int
var remoteStatus int
func (cliConf *ClientConfig) createClient(host string, port int, username, password string){
}
```