2026-02-05 16:54:55 +08:00
|
|
|
package model
|
|
|
|
|
|
2026-11-06 00:44:50 +08:00
|
|
|
import "time"
|
|
|
|
|
|
2026-02-05 16:54:55 +08:00
|
|
|
type AgentAccount struct {
|
|
|
|
|
BaseModel
|
2026-11-13 14:04:11 +08:00
|
|
|
AccountType string `json:"accountType"`
|
2026-11-06 00:44:50 +08:00
|
|
|
AppInstallID uint `json:"appInstallId"`
|
|
|
|
|
Provider string `json:"provider"`
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
APIKey string `json:"apiKey"`
|
|
|
|
|
BaseURL string `json:"baseUrl"`
|
|
|
|
|
APIType string `json:"apiType"`
|
|
|
|
|
AuthMode string `json:"authMode"`
|
|
|
|
|
VerifyModel string `json:"verifyModel"`
|
|
|
|
|
RememberAPIKey bool `json:"rememberApiKey"`
|
|
|
|
|
VerifiedAt *time.Time `json:"verifiedAt"`
|
|
|
|
|
VerifyError string `json:"verifyError"`
|
2026-11-16 14:49:32 +08:00
|
|
|
Status string `json:"status"`
|
2026-11-06 00:44:50 +08:00
|
|
|
ValidateAvailability bool `json:"validateAvailability"`
|
|
|
|
|
Remark string `json:"remark"`
|
|
|
|
|
MasterAccountID uint `json:"masterAccountId" gorm:"index"`
|
2026-02-05 16:54:55 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (AgentAccount) TableName() string {
|
|
|
|
|
return "agent_provider_accounts"
|
|
|
|
|
}
|