feat(agent-office): 매물 알림 텔레그램 notify-listing(너+아내)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EqCYBhvTcdeCTUDX3RhWx9
This commit is contained in:
@@ -227,6 +227,24 @@ async def realestate_notify(body: RealestateNotifyBody):
|
||||
return await agent.on_new_matches(body.matches)
|
||||
|
||||
|
||||
# --- Realestate Listing Notify Endpoint (매물 알림, 청약 notify와 별도) ---
|
||||
|
||||
class ListingNotifyBody(BaseModel):
|
||||
listings: List[Dict[str, Any]] = []
|
||||
|
||||
|
||||
@app.post("/api/agent-office/realestate/notify-listing")
|
||||
async def realestate_notify_listing(body: ListingNotifyBody):
|
||||
from .notifiers.telegram_realestate_listing import send_listing_alerts
|
||||
from .db import add_log
|
||||
res = await send_listing_alerts(body.listings)
|
||||
for a in body.listings:
|
||||
add_log("realestate",
|
||||
f"매물알림 {a.get('deal_type')} {a.get('complex_name')} "
|
||||
f"{a.get('safety_tier') or a.get('valuation_tier')}", "info")
|
||||
return res
|
||||
|
||||
|
||||
# --- YouTube Research Agent Endpoints ---
|
||||
|
||||
class YouTubeResearchBody(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user