jm_job_node.py 291 B

12345678910111213141516171819
  1. from typing import List, Optional
  2. from pydantic import BaseModel
  3. class JmJobNode(BaseModel):
  4. id: str
  5. # 作业id
  6. homework_id: Optional[int]
  7. # 作业名称
  8. homework_name: str
  9. class JmJobEdge(BaseModel):
  10. # 入节点
  11. source: str
  12. # 出节点
  13. target: str