Publish Docker image (Multi-arch) / Build & push (amd64) (push) Failing after 1m40s
Release (Linux, macOS, Windows) / Linux Release (push) Failing after 42m16s
Publish Docker image (Multi-arch) / Build & push (arm64) (push) Canceled after 0s
Release (Linux, macOS, Windows) / macOS Release (push) Canceled after 0s
Release (Linux, macOS, Windows) / Windows Release (push) Canceled after 0s
Publish Docker image (Multi-arch) / Create multi-arch manifests (push) Canceled after 0s
Sync production source including routing, billing, Astra detection and public uptime. Update custom build instructions and license packaging.
28 lines
2.4 KiB
Go
28 lines
2.4 KiB
Go
package dto
|
|
|
|
type UserSetting struct {
|
|
NotifyType string `json:"notify_type,omitempty"` // QuotaWarningType 额度预警类型
|
|
QuotaWarningThreshold float64 `json:"quota_warning_threshold,omitempty"` // QuotaWarningThreshold 额度预警阈值
|
|
WebhookUrl string `json:"webhook_url,omitempty"` // WebhookUrl webhook地址
|
|
WebhookSecret string `json:"webhook_secret,omitempty"` // WebhookSecret webhook密钥
|
|
NotificationEmail string `json:"notification_email,omitempty"` // NotificationEmail 通知邮箱地址
|
|
BarkUrl string `json:"bark_url,omitempty"` // BarkUrl Bark推送URL
|
|
GotifyUrl string `json:"gotify_url,omitempty"` // GotifyUrl Gotify服务器地址
|
|
GotifyToken string `json:"gotify_token,omitempty"` // GotifyToken Gotify应用令牌
|
|
GotifyPriority int `json:"gotify_priority"` // GotifyPriority Gotify消息优先级
|
|
UpstreamModelUpdateNotifyEnabled bool `json:"upstream_model_update_notify_enabled,omitempty"` // 是否接收上游模型更新定时检测通知(仅管理员)
|
|
AcceptUnsetRatioModel bool `json:"accept_unset_model_ratio_model,omitempty"` // AcceptUnsetRatioModel 是否接受未设置价格的模型
|
|
RecordIpLog bool `json:"record_ip_log,omitempty"` // 是否记录请求和错误日志IP
|
|
SidebarModules string `json:"sidebar_modules,omitempty"` // SidebarModules 左侧边栏模块配置
|
|
BillingPreference string `json:"billing_preference,omitempty"` // BillingPreference 扣费策略(订阅/钱包)
|
|
Language string `json:"language,omitempty"` // Language 用户语言偏好 (zh, en)
|
|
AstraCostNoticeAck bool `json:"astra_cost_notice_ack,omitempty"` // Astra 费用说明已确认
|
|
}
|
|
|
|
var (
|
|
NotifyTypeEmail = "email" // Email 邮件
|
|
NotifyTypeWebhook = "webhook" // Webhook
|
|
NotifyTypeBark = "bark" // Bark 推送
|
|
NotifyTypeGotify = "gotify" // Gotify 推送
|
|
)
|