Skip to content

Commit b555cc3

Browse files
committed
增加annotation用于标识字段是否必填
1 parent 6a19062 commit b555cc3

File tree

1 file changed

+19
-0
lines changed
  • weixin-java-common/src/main/java/me/chanjar/weixin/common/annotation

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package me.chanjar.weixin.common.annotation;
2+
3+
import java.lang.annotation.ElementType;
4+
import java.lang.annotation.Retention;
5+
import java.lang.annotation.RetentionPolicy;
6+
import java.lang.annotation.Target;
7+
8+
/**
9+
* 标识某个字段是否是必填的
10+
*
11+
* Created by Binary Wang on 2016/9/25.
12+
* @author binarywang (https://github.com/binarywang)
13+
*
14+
*/
15+
@Retention(RetentionPolicy.RUNTIME)
16+
@Target(ElementType.FIELD)
17+
public @interface Required {
18+
19+
}

0 commit comments

Comments
 (0)