algorithms.py 725 B

123456789101112131415161718192021222324252627282930313233
  1. from typing import Dict, List, Optional
  2. from pydantic import BaseModel
  3. from app.models.domain.base import ResponseBase
  4. class GraphColoringResponse(BaseModel):
  5. is_solvable: bool
  6. colored: Dict[str, int]
  7. class GraphColoringRequest(BaseModel):
  8. graph: dict[str, list[str]]
  9. class AttendeesRecommendationRequest(BaseModel):
  10. companyId: str
  11. initiatorId: str
  12. meetingRoomId: Optional[str]
  13. meetingRoomLocation: Optional[str]
  14. topic: Optional[str]
  15. seatCount: Optional[int]
  16. startTime: Optional[str]
  17. endTime: Optional[str]
  18. class AttendeesRecommendationResult(BaseModel):
  19. userIdList: List
  20. class AttendeesRecommendationResponse(ResponseBase):
  21. data: AttendeesRecommendationResult