user_setting.go 890 B

12345678910111213141516
  1. package constant
  2. var (
  3. UserSettingNotifyType = "notify_type" // QuotaWarningType 额度预警类型
  4. UserSettingQuotaWarningThreshold = "quota_warning_threshold" // QuotaWarningThreshold 额度预警阈值
  5. UserSettingWebhookUrl = "webhook_url" // WebhookUrl webhook地址
  6. UserSettingWebhookSecret = "webhook_secret" // WebhookSecret webhook密钥
  7. UserSettingNotificationEmail = "notification_email" // NotificationEmail 通知邮箱地址
  8. UserAcceptUnsetRatioModel = "accept_unset_model_ratio_model" // AcceptUnsetRatioModel 是否接受未设置价格的模型
  9. UserSettingRecordIpLog = "record_ip_log" // 是否记录请求和错误日志IP
  10. )
  11. var (
  12. NotifyTypeEmail = "email" // Email 邮件
  13. NotifyTypeWebhook = "webhook" // Webhook
  14. )