We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b681b9a commit a64aa5bCopy full SHA for a64aa5b
1 file changed
src/main/java/top/cadecode/simple/common/response/SimpleResIgnore.java
@@ -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