消息推送API追加用户积分数据

This commit is contained in:
2026-06-26 17:04:39 +08:00
parent 87bbc5c1c1
commit de63c44ba3
4 changed files with 55 additions and 4 deletions
+1
View File
@@ -10,3 +10,4 @@ from app.enums.generation_task import *
from app.enums.recent_generation import *
from app.enums.generation_status import *
from app.enums.sms import *
from app.enums.notification import *
+26
View File
@@ -0,0 +1,26 @@
from __future__ import annotations
from enum import StrEnum
class NotificationType(StrEnum):
"""通知类型。"""
SYSTEM = "system"
CREDIT = "credit"
VIDEO = "video"
GENERATION = "generation"
PAYMENT = "payment"
RECHARGE = "recharge"
UNKNOWN = "unknown"
NOTIFICATION_TYPE_LABELS = {
NotificationType.SYSTEM.value: "系统通知",
NotificationType.CREDIT.value: "积分通知",
NotificationType.VIDEO.value: "视频通知",
NotificationType.GENERATION.value: "生成通知",
NotificationType.PAYMENT.value: "支付通知",
NotificationType.RECHARGE.value: "充值通知",
NotificationType.UNKNOWN.value: "未知通知",
}