fix: add missing UserInfo in organization.go

This commit is contained in:
ChenRussell
2026-03-13 18:13:10 +08:00
committed by lyingbug
parent fb9e70fd16
commit b7ed54f8de
+13
View File
@@ -146,6 +146,19 @@ type SharedAgentInfo struct {
SharedAt time.Time `json:"shared_at"`
}
// UserInfo represents user information for API responses
type UserInfo struct {
ID string `json:"id"`
Username string `json:"username"`
Email string `json:"email"`
Avatar string `json:"avatar"`
TenantID uint64 `json:"tenant_id"`
IsActive bool `json:"is_active"`
CanAccessAllTenants bool `json:"can_access_all_tenants"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
// --- Organization CRUD ---
// CreateOrganization creates a new organization