From b7ed54f8de6920eabe6a56401d9fd2d67644c119 Mon Sep 17 00:00:00 2001 From: ChenRussell <792608290@qq.com> Date: Fri, 13 Mar 2026 11:24:15 +0800 Subject: [PATCH] fix: add missing UserInfo in organization.go --- client/organization.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/client/organization.go b/client/organization.go index ee6c40238..aec504052 100644 --- a/client/organization.go +++ b/client/organization.go @@ -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