@Documented
@Retention(value=RUNTIME)
@Target(value={METHOD,TYPE})
public @interface ExpectedCode
默认为 0
接口返回值 code 不统一,有些接口 code 为 0 时表明成功,有些则为 1
因此创建此注解
| 限定符和类型 | 可选元素和说明 |
|---|---|
java.lang.String |
codeFieldName
code 字段名,默认是 code
|
boolean |
ignoreFieldInitialCase
是否忽略 code 字段首字母大小写
|
int |
value |
Copyright © 2019. All Rights Reserved.