audit 记录审计日志
(action, userID, itemID, details string)
| 860 | |
| 861 | // audit 记录审计日志 |
| 862 | func (m *manager) audit(action, userID, itemID, details string) { |
| 863 | if m.auditStrategy == nil { |
| 864 | return |
| 865 | } |
| 866 | m.auditStrategy.Record(action, userID, itemID, details) |
| 867 | } |
| 868 | |
| 869 | // cleanupRoutine 清理协程 |
| 870 | func (m *manager) cleanupRoutine(ctx context.Context) { |
no test coverage detected