fix github proxy && add webpush api

This commit is contained in:
jxxghp
2024-06-05 18:08:34 +08:00
parent 7e1951b8e4
commit efd0fc39c6
7 changed files with 92 additions and 9 deletions

View File

@ -84,3 +84,22 @@ class NotificationSwitch(BaseModel):
synologychat: Optional[bool] = False
# VoceChat开关
vocechat: Optional[bool] = False
class Subscription(BaseModel):
"""
客户端消息订阅
"""
endpoint: Optional[str]
keys: Optional[dict] = {}
class SubscriptionMessage(BaseModel):
"""
客户端订阅消息体
"""
title: Optional[str]
body: Optional[str]
icon: Optional[str]
url: Optional[str]
data: Optional[dict] = {}