common增加通用log模块

This commit is contained in:
2025-12-30 16:14:15 +08:00
parent b30be00e8b
commit 342a7b00cb
7 changed files with 483 additions and 0 deletions

15
log/consts/log_const.go Normal file
View File

@@ -0,0 +1,15 @@
package consts
// OperationType 操作类型常量
type OperationType string
const (
OperationCreate OperationType = "create" // 创建
OperationUpdate OperationType = "update" // 更新
OperationDelete OperationType = "delete" // 删除
)
// OperationLogCollection 操作日志集合名称常量
const (
OperationLogCollection = "operation_logs" // 操作日志集合名称
)