增加有条件必传的数据验证

This commit is contained in:
2024-05-16 21:12:17 +08:00
parent 84d515bce2
commit 050fdcd504
2 changed files with 45 additions and 2 deletions

View File

@ -34,7 +34,8 @@ type FieldRule struct {
//
// Date : 10:58 2024/4/29
type RequiredCondition struct {
DependOnField string `json:"depend_on_field"` // 依赖数据中的那一个字段
DependOnField string `json:"depend_on_field"` // 依赖数据中的那一个字段
DependOnFieldType string `json:"depend_on_field_type"` // 依赖数据源数据类型
DependOnFieldStatus []string `json:"depend_on_field_status"` // 依赖数据状态 : NOT_FOUND / IS_NIL / IS_ZERO / IS_EMPTY / IS_FALSE
}