use base context to handle the cases where the user IP address is unavailable

This commit is contained in:
MaysWind
2026-04-09 23:44:53 +08:00
parent fcedb3147d
commit d44798bf0f
6 changed files with 18 additions and 2 deletions
+1
View File
@@ -5,6 +5,7 @@ import "context"
// Context is the base context of ezBookkeeping
type Context interface {
context.Context
ClientIP() string
GetContextId() string
GetClientLocale() string
}