프로젝트

일반

사용자정보

Actions

업무 #390

진행중
JL JL

Port UserService.GetUser to alphea-ai-edge

업무 #390: Port UserService.GetUser to alphea-ai-edge

James Lee이(가) 약 7시간 전에 추가함.

상태:
해결
우선순위:
보통
담당자:
목표버전:
시작일:
2026/04/20
완료일:
진척도:

0%

추정시간:

설명

목표

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 예제 동작 확인

연결된 일감 1 (한 건 진행 중 — 모두 미완료)

다음 일감과 관련됨: 이슈 #434: [Go backport] Supabase GoTrue 인증 전환 — Phase 1: 인프라 + 인증 코어해결Henry Park2026/05/11

Actions
Actions

내보내기 PDF Atom