Actions
업무 #390
진행중
JL
JL
Port UserService.GetUser to alphea-ai-edge
업무 #390:
Port UserService.GetUser to alphea-ai-edge
설명
목표¶
alphea-rpc-next (Go) 의 UserService.GetUser RPC 를 alphea-ai-edge (Rust/tonic) 로 포팅한다.
범위¶
-
proto/alphea/v1/user.proto추가 -
src/store/users.rs—get_by_wallet,get_friend_count쿼리 -
src/handler/user.rs—UserHandler::get_user구현 -
src/server/mod.rs— UserService 등록 -
src/server/auth_middleware.rs—GetUser를 public allow-list 에 추가 -
examples/user_get.rs— E2E 확인
DoD¶
- proto 정의 완료 및 빌드 통과
-
GetUser(wallet_address)→GetUserResponse { wallet_address, username, profile_icon, grade, friend_count, is_active, created_at }반환 -
grade 는 friend_count 기반
gradeByFriendCount로직 이식 (clay → diamond) -
is_active:
last_active_at이 24h 이내이면 true -
존재하지 않는 wallet →
NOT_FOUND - E2E 예제 동작 확인
Actions