简体   繁体   English

用于验证 DOB 的 Gosu 注释

[英]Gosu annotation for validating DOB

I'm working in gosu(guidewire) and having an annotation for the Date Of Birth(DOB).The expression under that annotation is supposed to return an error if the year of the DOB is less than 1897 or if it is greater than 2001.我在 gosu(guidewire) 工作并且有一个关于出生日期 (DOB) 的注释。如果 DOB 的年份小于 1897 或大于 2001,则该注释下的表达式应该返回错误.

I'm new to gosu so can someone please help me with this?我是 gosu 的新手,所以有人可以帮助我吗?

There is no OOTB annotation for DOB Validation. DOB 验证没有 OOTB 注释。 You have to create custom annotation for achieving the same.您必须创建自定义注释才能实现相同的目的。

Create New Gosu Class -> Change the kind as Annotation创建新的 Gosu 类 -> 将种类更改为注释

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM