mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-03-01 03:24:14 +08:00
46 lines
1.1 KiB
Go
46 lines
1.1 KiB
Go
package dto
|
|
|
|
import "time"
|
|
|
|
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 OllamaModelDropList struct {
|
|
ID uint `json:"id"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type OllamaModelName struct {
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
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"`
|
|
}
|