feat: add auth provider boundary

This commit is contained in:
QiuSW
2026-07-08 23:37:19 +08:00
parent 811a9c889f
commit 5aaac0b166
19 changed files with 788 additions and 40 deletions
+29
View File
@@ -0,0 +1,29 @@
package models
type AuthProviderOption struct {
Value string `json:"value"`
Label string `json:"label"`
Description string `json:"description"`
Enabled bool `json:"enabled"`
}
type AuthSession struct {
ID int64 `json:"id"`
UserID string `json:"userId"`
Username string `json:"username"`
Provider string `json:"provider"`
Token string `json:"token"`
CreatedAt string `json:"createdAt"`
ExpiresAt string `json:"expiresAt"`
Active bool `json:"active"`
}
type AuditLog struct {
ID int64 `json:"id"`
Actor string `json:"actor"`
Action string `json:"action"`
TargetType string `json:"targetType"`
TargetID string `json:"targetId"`
Detail string `json:"detail"`
CreatedAt string `json:"createdAt"`
}