All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.dadiyang.httpinvoker.annotation.ExpectedCode Maven / Gradle / Ivy

There is a newer version: 1.2.4
Show newest version
package com.github.dadiyang.httpinvoker.annotation;

import java.lang.annotation.*;

/**
 * 正确的code是什么
 * 

* 默认为 0 *

* 接口返回值 code 不统一,有些接口 code 为 0 时表明成功,有些则为 1 *

* 因此创建此注解 * * @author huangxuyang * @since 1.1.4 */ @Documented @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.METHOD, ElementType.TYPE}) public @interface ExpectedCode { int value() default 0; /** * code 字段名,默认是 code */ String codeFieldName() default "code"; /** * 是否忽略 code 字段首字母大小写 */ boolean ignoreFieldInitialCase() default true; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy