fix: add missing UserInfo in organization.go
This commit is contained in:
@@ -146,6 +146,19 @@ type SharedAgentInfo struct {
|
|||||||
SharedAt time.Time `json:"shared_at"`
|
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 ---
|
// --- Organization CRUD ---
|
||||||
|
|
||||||
// CreateOrganization creates a new organization
|
// CreateOrganization creates a new organization
|
||||||
|
|||||||
Reference in New Issue
Block a user