功能特性: - 用户端充值记录页面,从使用日志中分离 - 充值记录中的去开发票功能 - 管理员发票管理页面 - 发票申请、处理、邮件通知功能 - 侧边栏菜单更新 - UI优化和控制台清理 - Docker部署配置 - 生产环境安全配置
17 lines
989 B
Go
17 lines
989 B
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 通知邮箱地址
|
|
AcceptUnsetRatioModel bool `json:"accept_unset_model_ratio_model,omitempty"` // AcceptUnsetRatioModel 是否接受未设置价格的模型
|
|
RecordIpLog bool `json:"record_ip_log,omitempty"` // 是否记录请求和错误日志IP
|
|
}
|
|
|
|
var (
|
|
NotifyTypeEmail = "email" // Email 邮件
|
|
NotifyTypeWebhook = "webhook" // Webhook
|
|
)
|