[FEAT] (사용자 로직): 프로필 서비스 구현 완료

v0.1.3 (2025-11-16)
- 프로필 조회, 프로필 업데이트, 탈퇴 구현 완료.
This commit is contained in:
2025-11-16 18:02:27 +09:00
parent e20c7d58b1
commit abf405f8ae
20 changed files with 464 additions and 109 deletions

View File

@@ -32,7 +32,7 @@ class Users(db.Model):
self.password = hash_password
# 선택적 필드
self.user_name = kwargs.get('user_name')
self.user_name = kwargs.get("user_name")
# 타임스탬프
current_time = int(get_timestamp_ms())
@@ -56,13 +56,13 @@ class Users(db.Model):
def to_dict(self) -> Dict[str, Any]:
"""딕셔너리로 변환"""
return {
'user_uuid': self.user_uuid,
'id': self.id,
'user_name': self.user_name,
'auth_level': self.auth_level,
'count': self.count,
'created_at': self.created_at,
'updated_at': self.updated_at
"user_uuid": self.user_uuid,
"id": self.id,
"user_name": self.user_name,
"auth_level": self.auth_level,
"count": self.count,
"created_at": self.created_at,
"updated_at": self.updated_at
}
def __repr__(self) -> str: