mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
18 lines
335 B
Python
18 lines
335 B
Python
from typing import Literal
|
|
|
|
from typing_extensions import override
|
|
|
|
from ....schemas import BaseUser
|
|
from ...constant import GAME_TYPE
|
|
|
|
|
|
class User(BaseUser[Literal['TOP']]):
|
|
platform: Literal['TOP'] = GAME_TYPE
|
|
|
|
user_name: str
|
|
|
|
@property
|
|
@override
|
|
def unique_identifier(self) -> str:
|
|
return self.user_name
|