PMFlow/backend/app/services/plane.py

15 lines
441 B
Python

"""Plane 服务兼容层(最小可运行实现)。"""
from __future__ import annotations
class PlaneService:
async def sync_tasks(self, tasks: list[dict], is_urgent: bool = False) -> dict:
return {"synced_count": len(tasks or []), "urgent": is_urgent}
async def update_issue_status(self, issue_key: str, status: str) -> dict:
return {"issue_key": issue_key, "status": status}
plane_service = PlaneService()