33from dataclasses import dataclass
44from typing import Optional
55
6- from ..models import ClubDetail , ClubResponse , ClubSortBy , ClubType , SortDirection
6+ from ..models import ClubDetail , ClubResponse , ClubSortBy , ClubStatus , ClubType , SortDirection
77from ._base import BaseApi
88
99
@@ -14,7 +14,8 @@ class ClubRequest:
1414 Attributes:
1515 club_id: Club ID for exact match
1616 club_name: Club name for filtering
17- club_type: Club type filter (MAJOR_CLUB, JOB_CLUB, AUTONOMOUS_CLUB)
17+ club_type: Club type filter (MAJOR_CLUB, AUTONOMOUS_CLUB)
18+ status: Club operation status filter (ACTIVE, ABOLISHED)
1819 page: Page number (default: 0)
1920 size: Page size (default: 100)
2021 include_leader_in_participants: Include leader in participants list (default: False)
@@ -25,6 +26,7 @@ class ClubRequest:
2526 club_id : Optional [int ] = None
2627 club_name : Optional [str ] = None
2728 club_type : Optional [ClubType ] = None
29+ status : Optional [ClubStatus ] = None
2830 page : int = 0
2931 size : int = 100
3032 include_leader_in_participants : bool = False
@@ -41,6 +43,7 @@ def to_params(self) -> dict[str, Optional[object]]:
4143 "clubId" : self .club_id ,
4244 "clubName" : self .club_name ,
4345 "clubType" : self .club_type .value if self .club_type else None ,
46+ "status" : self .status .value if self .status else None ,
4447 "page" : self .page ,
4548 "size" : self .size ,
4649 "includeLeaderInParticipants" : self .include_leader_in_participants ,
0 commit comments