Skip to content

Commit

Permalink
Update schemas.py (#158)
Browse files Browse the repository at this point in the history
params  dict 中可能存在不同类型的数据,不约束其子类型
https://docs.pydantic.dev/latest/usage/types/dicts_mapping/
  • Loading branch information
QSummerY authored Sep 15, 2023
1 parent 448038a commit 2d46f0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helpdesk/views/api/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
from enum import Enum
from datetime import datetime
from typing import Dict, List, Optional
from typing import List, Optional
from pydantic import BaseModel


Expand Down Expand Up @@ -138,14 +138,14 @@ class NotifyMessage(BaseModel):
status: str
is_approved: bool
submitter: str
params: Dict[str, str]
params: dict
request_time: datetime
reason: str = ""
approval_flow: str = ""
current_node: str = ""
approvers: str = ""
next_node: Optional[str] = ""
approval_log: List[Dict] = []
approval_log: List[dict] = []
notify_type: str
notify_people: str = ""
comfirmed_by: str = ""
Expand Down

0 comments on commit 2d46f0a

Please sign in to comment.