fix(platform): Platform.desc 和 WorkflowTask.desc 改为 Optional[str],兼容 API 返回 null
This commit is contained in:
1 parent
6912c51e43
commit
ad374d604f
1 file changed
+2
-2
@@ -39,7 +39,7 @@ class Platform(BaseModel):
|
|||||||
platformType: str = "" # HAB
|
platformType: str = "" # HAB
|
||||||
source: str = "" # CUSTOM_CREATE
|
source: str = "" # CUSTOM_CREATE
|
||||||
adminIds: List[str] = []
|
adminIds: List[str] = []
|
||||||
desc: str = ""
|
desc: Optional[str] = None
|
||||||
importMethod: List[str] = []
|
importMethod: List[str] = []
|
||||||
createTime: int = 0
|
createTime: int = 0
|
||||||
updateTime: int = 0
|
updateTime: int = 0
|
||||||
@@ -54,7 +54,7 @@ class WorkflowTask(BaseModel):
|
|||||||
name: str = ""
|
name: str = ""
|
||||||
type: str = "" # clock / ekuaibao-ebot-trigger / http / stop / ...
|
type: str = "" # clock / ekuaibao-ebot-trigger / http / stop / ...
|
||||||
label: str = ""
|
label: str = ""
|
||||||
desc: str = ""
|
desc: Optional[str] = None
|
||||||
groupName: str = "" # trigger / action / control
|
groupName: str = "" # trigger / action / control
|
||||||
orderIndex: int = 0
|
orderIndex: int = 0
|
||||||
status: str = "" # success / ...
|
status: str = "" # success / ...
|
||||||
|
|||||||
Reference in new issue
Block a user