添加业务模式

This commit is contained in:
Yun
2025-08-23 19:17:40 +08:00
parent 124d75a205
commit 75efec48bf
3 changed files with 31 additions and 0 deletions
+11
View File
@@ -9,3 +9,14 @@ type LoggerInterface interface {
Error(ctx context.Context, args ...any)
Errorf(ctx context.Context, format string, args ...any)
}
// Debug 使用的日志接口
// Waring 警告的日志接口
type DebugLoggerInterface interface {
LoggerInterface
Debug(ctx context.Context, args ...any)
Debugf(ctx context.Context, format string, args ...any)
Warn(ctx context.Context, args ...any)
Warnf(ctx context.Context, format string, args ...any)
}