common增加通用log模块
This commit is contained in:
15
log/consts/log_const.go
Normal file
15
log/consts/log_const.go
Normal 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" // 操作日志集合名称
|
||||
)
|
||||
Reference in New Issue
Block a user