refactor: 调整注解路径至common包下

This commit is contained in:
Ray.Hao
2024-12-08 16:35:29 +08:00
parent 113e48ec08
commit c17077aba8
26 changed files with 53 additions and 57 deletions

View File

@@ -0,0 +1,49 @@
package com.youlai.boot.common.annotation;
import com.youlai.boot.common.enums.LogModuleEnum;
import java.lang.annotation.*;
/**
* 日志注解
*
* @author Ray
* @since 2024/6/25
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Documented
public @interface Log {
/**
* 日志描述
*
* @return 日志描述
*/
String value() default "";
/**
* 日志模块
*
* @return 日志模块
*/
LogModuleEnum module();
/**
* 是否记录请求参数
*
* @return 是否记录请求参数
*/
boolean params() default true;
/**
* 是否记录响应结果
* <br/>
* 响应结果默认不记录,避免日志过大
* @return 是否记录响应结果
*/
boolean result() default false;
}