Skip to content

module/skill.py

module.skill

skill

RecruitQuery

Bases: BaseModel

RecruitQuery

Struct
Source code in module/skill.py
class RecruitQuery(BaseModel):
    ''' RecruitQuery

    Struct:
        - `teams`: List of [module.skill.TeamsEnum][].
        - `skill`: List of [module.skill.SkillEnum][].
        - `status`: List of [module.skill.StatusEnum][].

    '''
    teams: List[TeamsEnum] = []
    skill: List[SkillEnum] = []
    status: List[StatusEnum] = []

    class Config:
        ''' Config '''
        use_enum_values = True

Config

Config

Source code in module/skill.py
class Config:
    ''' Config '''
    use_enum_values = True

SkillEnum

Bases: str, Enum

SkillEnum

Source code in module/skill.py
@unique
class SkillEnum(str, Enum):
    ''' SkillEnum '''
    L001 = 'L001'
    L002 = 'L002'
    L003 = 'L003'
    L004 = 'L004'
    A001 = 'A001'
    S001 = 'S001'
    S002 = 'S002'
    S003 = 'S003'
    S004 = 'S004'
    S005 = 'S005'
    S006 = 'S006'
    O001 = 'O001'
    O002 = 'O002'
    O003 = 'O003'
    O004 = 'O004'
    O005 = 'O005'
    O006 = 'O006'
    O007 = 'O007'

SkillEnumDesc

Bases: str, Enum

SkillEnum with desc

Source code in module/skill.py
@unique
class SkillEnumDesc(str, Enum):
    ''' SkillEnum with desc '''
    L001 = '語言:中文'
    L002 = '語言:臺語 / tâi-gí'
    L003 = '語言:英文'
    L004 = '語言:日本語'
    A001 = '企劃活動'
    S001 = '影片剪輯'
    S002 = '線上轉播導播'
    S003 = 'Podcast'
    S004 = '撰寫新聞稿'
    S005 = '精通 Adobe'
    S006 = 'A6 小冊子'
    O001 = '熱血'
    O002 = '助人'
    O003 = '力量'
    O004 = '喜愛站在講台上'
    O005 = '喜愛站在台下'
    O006 = '想事情的時候會看右邊'
    O007 = '想事情的時候會看左邊'

StatusEnum

Bases: IntEnum

StatusEnum

Source code in module/skill.py
@unique
class StatusEnum(IntEnum):
    ''' StatusEnum '''
    ST01 = 1
    ST02 = 2
    ST03 = 3

StatusEnumDesc

Bases: str, Enum

StatusEnumDesc

Source code in module/skill.py
@unique
class StatusEnumDesc(str, Enum):
    ''' StatusEnumDesc '''
    ST01 = '學生'
    ST02 = '工作'
    ST03 = '退休'

TeamsEnum

Bases: IntEnum

TeamsEnum

Source code in module/skill.py
@unique
class TeamsEnum(IntEnum):
    ''' TeamsEnum '''
    COORDINATOR = 1
    SECRETARY = 2
    PROGRAM = 3
    MARKETING = 4
    SPONSOR = 5
    IT = 6
    PHOTO = 7
    FINANCE = 8
    FIELD = 9
    STREAMING = 10
    DOCUMENTARY = 11

TeamsEnumDesc

Bases: str, Enum

TeamsEnum with desc

Source code in module/skill.py
@unique
class TeamsEnumDesc(str, Enum):
    ''' TeamsEnum with desc '''
    COORDINATOR = '總召'
    SECRETARY = '行政'
    PROGRAM = '議程'
    MARKETING = '行銷'
    SPONSOR = '贊助'
    IT = '資訊'
    PHOTO = '攝影'
    FINANCE = '財務'
    FIELD = '場務'
    STREAMING = '製播'
    DOCUMENTARY = '紀錄'

TobeVolunteerStruct

Bases: BaseModel

TobeVolunteer

Struct
Source code in module/skill.py
class TobeVolunteerStruct(BaseModel):
    ''' TobeVolunteer

    Struct:
        - `uid`: user is.
        - `ok`: OK to be volunteer.
        - `teams`: List of [module.skill.TeamsEnum][].
        - `skill`: List of [module.skill.SkillEnum][].
        - `hours`: Hours.
        - `status`: Status in [module.skill.StatusEnum][].
        - `desc`: Description.

    '''
    uid: str = ''
    ok: bool = False
    teams: List[TeamsEnum] = []
    skill: List[SkillEnum] = []
    hours: int = 0
    status: Optional[StatusEnum]
    desc: str = ''

    class Config:
        ''' Config '''
        use_enum_values = True

Config

Config

Source code in module/skill.py
class Config:
    ''' Config '''
    use_enum_values = True