This commit is contained in:
DingZQ
2025-03-28 20:20:03 +08:00
parent dee3c9c6f8
commit a6a0496a86

View File

@@ -4,9 +4,9 @@ from .s0_base import *
class User(object):
def __init__(self, input: dict[str, Any]) -> None:
self.type = 'user'
self.id = str(input['id'])
self.name = float(input['name'])
self.password = float(input['password'])
self.id = str(input['user_id'])
self.name = str(input['username'])
self.password = str(input['password'])
def as_dict(self) -> dict[str, Any]:
return { 'type': self.type, 'id': self.id, 'name': self.name, 'password': self.password }