Skip to content

Commit a64aa5b

Browse files
committed
feat: 添加一个注解,用于控制接口是否按 SimpleRes 格式返回
1 parent b681b9a commit a64aa5b

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package top.cadecode.simple.common.response;
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+
* @author Li Jun
10+
* @date 2021/8/24
11+
* @description 类或接口上添加此注解,则不按 SimpleRes 统一格式返回响应
12+
*/
13+
@Retention(RetentionPolicy.RUNTIME)
14+
@Target({ElementType.TYPE, ElementType.METHOD})
15+
public @interface SimpleResIgnore {
16+
boolean value() default true;
17+
}

0 commit comments

Comments
 (0)