[fix] negodata: /me 응답 role 을 UserRole enum 으로 직렬화 (Pydantic 경고 제거)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
f19c6f57ea
commit
78bef0f5f9
@ -4,7 +4,7 @@ from fastapi import Depends
|
|||||||
|
|
||||||
from common.database.db_session_manager import DB_SESSION_MNG
|
from common.database.db_session_manager import DB_SESSION_MNG
|
||||||
from common.database.model.models import users
|
from common.database.model.models import users
|
||||||
from common.enums import DBWRType, ErrorType, UserStatus
|
from common.enums import DBWRType, ErrorType, UserRole, UserStatus
|
||||||
from common.logger import LOG
|
from common.logger import LOG
|
||||||
from common.models.gmodel import UserInfo
|
from common.models.gmodel import UserInfo
|
||||||
from crud.user_crud import IUserCRUD, UserCRUD
|
from crud.user_crud import IUserCRUD, UserCRUD
|
||||||
@ -112,7 +112,7 @@ class AuthService:
|
|||||||
res.name = user.name
|
res.name = user.name
|
||||||
res.email = user.email
|
res.email = user.email
|
||||||
res.contact_number = user.contact_number
|
res.contact_number = user.contact_number
|
||||||
res.role = user.role
|
res.role = UserRole(user.role)
|
||||||
res.company = company
|
res.company = company
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user