package domain import ( "time" "nex/backend/pkg/modelid" ) // Model 模型领域模型(id 为 UUID 自动生成) type Model struct { ID string `json:"id"` ProviderID string `json:"provider_id"` ModelName string `json:"model_name"` Enabled bool `json:"enabled"` CreatedAt time.Time `json:"created_at"` } // UnifiedModelID 返回统一模型 ID(格式:provider_id/model_name) func (m *Model) UnifiedModelID() string { return modelid.FormatUnifiedModelID(m.ProviderID, m.ModelName) }