diff options
| author | haturatu <taro@eyes4you.org> | 2025-10-13 06:17:21 +0900 |
|---|---|---|
| committer | haturatu <taro@eyes4you.org> | 2025-10-13 06:17:21 +0900 |
| commit | a4a5b418e367c3172439c080490cd5b3dfb526c1 (patch) | |
| tree | bd14ea5ed4d1e6c46856127eb50c10586010e5f6 /types | |
| parent | bf63281f289d09367aca24088760c9b0a0b9da3d (diff) | |
ref(types): move EnrichedUser
Diffstat (limited to 'types')
| -rw-r--r-- | types/types.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/types/types.go b/types/types.go index 79059d4..44cb60a 100644 --- a/types/types.go +++ b/types/types.go @@ -97,3 +97,9 @@ type WorkerPool struct { Wg sync.WaitGroup Active int64 } + +// EnrichedUser is a wrapper for User with additional computed fields for admin views. +type EnrichedUser struct { + *User + TimeSinceLogin string `json:"time_since_login"` +}
\ No newline at end of file |
