基本完成
This commit is contained in:
@@ -218,6 +218,12 @@ class ServerAPI:
|
||||
resp.raise_for_status()
|
||||
return resp.json()
|
||||
|
||||
def today_applied_count(self) -> int:
|
||||
"""当天(北京时间)实际投递数量"""
|
||||
resp = requests.get(f"{self.base_url}/api/jobs/today-count", headers=self._headers(), timeout=15)
|
||||
resp.raise_for_status()
|
||||
return int(resp.json().get("count", 0))
|
||||
|
||||
def get_history(self, limit: int = 50, apply_type: str | None = None) -> list[dict]:
|
||||
params = {"limit": limit}
|
||||
if apply_type:
|
||||
|
||||
Reference in New Issue
Block a user