refactor: flatten infrastructure packages

This commit is contained in:
wh
2026-04-14 13:19:39 +08:00
parent e3c796da27
commit 0af19cf1b5
10 changed files with 66 additions and 20 deletions

View File

@@ -0,0 +1,18 @@
package com.label.annotation;
import java.lang.annotation.*;
/**
* Marks a method for audit logging.
* The AuditAspect intercepts this annotation and writes to sys_operation_log.
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface OperationLog {
/** Operation type, e.g., "EXTRACTION_APPROVE", "USER_LOGIN", "TASK_CLAIM" */
String type();
/** Target entity type, e.g., "annotation_task", "sys_user" */
String targetType() default "";
}