feat(carcondition): 添加车主姓名非空验证
- 在 CarConditionAddRequest 中为 ownerName 字段添加 @NotBlank 验证注解 - 在 CarConditionEditRequest 中为 ownerName 字段添加 @NotBlank 验证注解 - 导入 jakarta.validation.constraints.NotBlank 依赖包 - 设置验证失败时的错误消息为"车主姓名不能为空"
Showing
2 changed files
with
3 additions
and
0 deletions
-
Please register or sign in to post a comment