修改包结构.

This commit is contained in:
lijiahang
2023-10-09 17:47:55 +08:00
parent 8f626d278c
commit fea28e018c
20 changed files with 43 additions and 44 deletions

View File

@@ -1,26 +0,0 @@
package com.orion.ops.framework.common.annotation;
import com.orion.ops.framework.common.constant.IgnoreLogMode;
import java.lang.annotation.*;
/**
* 不执行统一日志打印
*
* @author Jiahang Li
* @version 1.0.0
* @since 2022/4/20 10:33
*/
@Target({ElementType.METHOD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface IgnoreLog {
/**
* 日志忽略模式
*
* @return 日志忽略模式
*/
IgnoreLogMode value() default IgnoreLogMode.ALL;
}

View File

@@ -1,16 +0,0 @@
package com.orion.ops.framework.common.annotation;
import java.lang.annotation.*;
/**
* 无需包装返回
*
* @author Jiahang Li
* @version 1.0.0
* @since 2021/4/2 10:36
*/
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface IgnoreWrapper {
}

View File

@@ -1,19 +0,0 @@
package com.orion.ops.framework.common.annotation;
import java.lang.annotation.*;
/**
* 统一返回包装
*
* @author Jiahang Li
* @version 1.0.0
* @see Void#TYPE
* @see IgnoreWrapper
* @since 2021/4/2 12:34
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RestWrapper {
}

View File

@@ -1,34 +0,0 @@
package com.orion.ops.framework.common.constant;
/**
* 日志忽略模式
*
* @author Jiahang Li
* @version 1.0.0
* @since 2023/7/21 9:54
*/
public enum IgnoreLogMode {
/**
* 不打印任何日志
*/
ALL,
/**
* 不打印参数
*/
ARGS,
/**
* 不打印返回值
*/
RET,
/**
* 不打印参数以及返回值
*/
ARGS_RET,
;
}