diff --git a/docs/后端代码规范文档.md b/docs/后端代码规范文档.md index 6dbdf9a..69fd33b 100644 --- a/docs/后端代码规范文档.md +++ b/docs/后端代码规范文档.md @@ -67,3 +67,7 @@ public WeatherForecastController(IDemo demo) ``` 3. 在 Controller 方法中使用 `_demo` 调用业务逻辑方法。 + +## 4. 模型类字段使用规范 + +### 4.1 类中状态相关字段,例如:Status,返回值为sbyte。若类中有同名字段+后缀Enum,则优先使用后者,StatusEnum。