Annotation Interface ConditionalField


@Target(TYPE) @Retention(RUNTIME) @Repeatable(ConditionalRequired.class) public @interface ConditionalField
根据某个字段的值判断是否要必填
Since:
2025-07-29 10:05
Author:
xieyubin
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    依赖字段
    条件字段名
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    条件值 相等
    错误提示
    条件值 不相等
  • Element Details

    • field

      String field
      条件字段名
    • dependsOn

      String dependsOn
      依赖字段
    • eq

      String[] eq
      条件值 相等
      Default:
      {}
    • ne

      String[] ne
      条件值 不相等
      Default:
      {}
    • message

      String message
      错误提示
      Default:
      "{TIRSCI.BaseRequest.notNull}"