Skip to content

Commit

Permalink
阿里更新了api
Browse files Browse the repository at this point in the history
  • Loading branch information
lemisky committed Aug 31, 2021
1 parent 123e23e commit 77606a2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions aligo/types/BaseDrive.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ class BaseDrive(DataClass):
relative_path: str = field(default=None, repr=False)
encrypt_mode: str = field(default=None, repr=False)
encrypt_data_access: bool = field(default=None, repr=False)
permission: str = field(default=None, repr=False)
5 changes: 3 additions & 2 deletions aligo/types/BaseFile.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"""..."""
from dataclasses import dataclass, field
from typing import Dict
from typing import Dict, List

from .Enum import *
from .DataClass import DataClass
from .Enum import *
from .ImageMedia import ImageMedia
from .VideoMedia import VideoMedia
from .VideoPreview import VideoPreview
Expand Down Expand Up @@ -50,6 +50,7 @@ class BaseFile(DataClass):
video_media_metadata: VideoMedia = field(default=None, repr=False)
video_preview_metadata: VideoPreview = field(default=None, repr=False)
location: str = field(default=None, repr=False)
action_list: List[str] = field(default_factory=list, repr=False)

# def __post_init__(self):
# self.image_media_metadata = _null_dict(ImageMedia, self.image_media_metadata)
Expand Down
5 changes: 4 additions & 1 deletion aligo/types/BaseShareFile.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""基本分享文件"""
from dataclasses import dataclass
from dataclasses import dataclass, field
from typing import List

from .DataClass import DataClass
from .Enum import BaseFileCategory, BaseFileType
Expand Down Expand Up @@ -34,3 +35,5 @@ class BaseShareFile(DataClass):
mime_extension: str = None
mime_type: str = None
punish_flag: int = 0
# 2021年08月31日17时56分14秒
action_list: List[str] = field(default_factory=list, repr=False)
1 change: 1 addition & 0 deletions aligo/types/BaseUser.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ class BaseUser(DataClass):
user_data: dict = field(default=None, repr=False)
deny_change_password_by_self: bool = field(default=False, repr=False)
need_change_password_next_login: bool = field(default=False, repr=False)
permission: str = field(default=None, repr=False)

0 comments on commit 77606a2

Please sign in to comment.