package dto import "time" type ModelGPUDevice struct { ID string `json:"id"` Name string `json:"name"` Type string `json:"type"` UUID string `json:"uuid,omitempty"` Available bool `json:"available"` } type ModelGPUDevices struct { Devices []ModelGPUDevice `json:"devices"` Warnings []string `json:"warnings"` } type ModelGPUConfig struct { Mode string `json:"mode"` Count int `json:"count,omitempty"` Error string `json:"error,omitempty"` Enabled bool `json:"enabled"` DeviceIDs []string `json:"deviceIDs"` Capabilities []string `json:"capabilities"` } type OllamaModelInfo struct { ID uint `json:"id"` Name string `json:"name"` Size string `json:"size"` From string `json:"from"` LogFileExist bool `json:"logFileExist"` Status string `json:"status"` Message string `json:"message"` CreatedAt time.Time `json:"createdAt"` } type OllamaModelName struct { Name string `json:"name"` TaskID string `json:"taskID"` } type OllamaModelAccountSync struct { ID uint `json:"id" validate:"required"` ModelAccountBaseURLType string `json:"modelAccountBaseURLType" validate:"required,oneof=container localhost systemIP custom"` ModelAccountBaseURL string `json:"modelAccountBaseURL"` } type OllamaBindDomain struct { Domain string `json:"domain" validate:"required"` AppInstallID uint `json:"appInstallID" validate:"required"` SSLID uint `json:"sslID"` WebsiteID uint `json:"websiteID"` IPList string `json:"ipList"` } type OllamaBindDomainReq struct { AppInstallID uint `json:"appInstallID" validate:"required"` } type OllamaBindDomainRes struct { Domain string `json:"domain"` SSLID uint `json:"sslID"` AllowIPs []string `json:"allowIPs"` WebsiteID uint `json:"websiteID"` ConnUrl string `json:"connUrl"` AcmeAccountID uint `json:"acmeAccountID"` }