feat 订阅支持选择站点范围

This commit is contained in:
jxxghp
2023-07-13 13:00:44 +08:00
parent 670ddaf0a7
commit b58993798d
7 changed files with 97 additions and 12 deletions

View File

@ -1,4 +1,4 @@
from typing import Optional
from typing import Optional, List
from pydantic import BaseModel
@ -45,6 +45,8 @@ class Subscribe(BaseModel):
last_update: Optional[str] = None
# 订阅用户
username: Optional[str] = None
# 订阅站点
sites: Optional[List[int]] = None
class Config:
orm_mode = True