feat!: ClientAdminUserActions の対象のIDを指定する引数を削除 #140

develop
yupix 3 months ago
parent db28252292
commit 69103b09db
No known key found for this signature in database
GPG Key ID: 2FF705F5C56D9C06

@ -107,59 +107,38 @@ class ClientAdminUserActions(SharedAdminUserActions):
self.__user_id = user_id self.__user_id = user_id
@override @override
async def delete_account(self, *, user_id: str | None = None) -> bool: async def delete_account(self) -> bool:
user_id = user_id or self.__user_id return await super().delete_account(user_id=self.__user_id)
return await super().delete_account(user_id=user_id)
@override @override
async def show_user(self, *, user_id: str | None = None): async def show_user(self):
"""ユーザーの情報を取得します """ユーザーの情報を取得します"""
Parameters return await super().show_user(user_id=self.__user_id)
----------
user_id : str
対象のユーザーID
"""
user_id = user_id or self.__user_id
return await super().show_user(user_id=user_id)
@override @override
async def suspend(self, *, user_id: str | None = None) -> bool: async def suspend(self) -> bool:
"""対象のユーザーを凍結します """対象のユーザーを凍結します
Parameters
----------
user_id : str
対象のユーザーID
Returns Returns
------- -------
bool bool
成功ならTrue 成功ならTrue
""" """
user_id = user_id or self.__user_id
return await super().suspend(user_id=user_id) return await super().suspend(user_id=self.__user_id)
@override @override
async def unsuspend(self, *, user_id: str | None = None) -> bool: async def unsuspend(self) -> bool:
"""ユーザーの凍結を解除します """ユーザーの凍結を解除します
Parameters
----------
user_id : str
対象のユーザーID
Returns Returns
------- -------
bool bool
成功ならTrue 成功ならTrue
""" """
user_id = user_id or self.__user_id
return await super().unsuspend(user_id=user_id) return await super().unsuspend(user_id=self.__user_id)
class AdminUserActions(SharedAdminUserActions): class AdminUserActions(SharedAdminUserActions):

Loading…
Cancel
Save