fix message

This commit is contained in:
jxxghp
2024-07-04 18:45:22 +08:00
parent 5f01dd5625
commit 965e40e630
14 changed files with 281 additions and 232 deletions
+2 -4
View File
@@ -2,8 +2,6 @@ from typing import Optional
from pydantic import BaseModel
from app.schemas import NotificationType
class MediaServerConf(BaseModel):
"""
@@ -58,8 +56,8 @@ class NotificationSwitchConf(BaseModel):
通知场景开关配置
"""
# 场景名称
type: NotificationType = None
# 通知范围 all/user/admin/userandadmin
type: str = None
# 通知范围 all/user/admin
action: Optional[str] = 'all'