Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-csf
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xingmin
yd-csf
Commits
ba97fa1a
Commit
ba97fa1a
authored
Aug 03, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
操作日志2
parent
4bf8eaf1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
0 deletions
+43
-0
yd-csf-service/src/main/java/com/yd/csf/service/annotation/AuditField.java
+19
-0
yd-csf-service/src/main/java/com/yd/csf/service/annotation/Auditable.java
+24
-0
No files found.
yd-csf-service/src/main/java/com/yd/csf/service/annotation/AuditField.java
0 → 100644
View file @
ba97fa1a
package
com
.
yd
.
csf
.
service
.
annotation
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
/**
* 标记实体字段的中文显示名,优先级高于 information_schema 注释
*/
@Target
(
ElementType
.
FIELD
)
@Retention
(
RetentionPolicy
.
RUNTIME
)
public
@interface
AuditField
{
/**
* 字段中文显示名
*/
String
label
();
}
yd-csf-service/src/main/java/com/yd/csf/service/annotation/Auditable.java
0 → 100644
View file @
ba97fa1a
package
com
.
yd
.
csf
.
service
.
annotation
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
/**
* 标记实体类为可审计,指定数据库表名和主键字段名
*/
@Target
(
ElementType
.
TYPE
)
@Retention
(
RetentionPolicy
.
RUNTIME
)
public
@interface
Auditable
{
/**
* 数据库表名
*/
String
table
();
/**
* 主键字段名(Java 字段名,非数据库列名)
*/
String
idField
();
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment