Service Layer medium complexity mobile
1
Dependencies
2
Dependents
1
Entities
0
Integrations

Description

Business logic layer for reading and writing user profile data via the REST API. Fetches profile records tenant-scoped to the user's organization, resolves organization-specific terminology through the org labels system before surfacing data to the UI, and coordinates writes back through the User Repository. Uses BLoC for reactive state management.

Feature: Profile Data & Settings

profile-service

Responsibilities

  • Fetch user profile from REST API with correct organization tenant context
  • Apply organization-specific terminology labels to profile field values
  • Submit profile update requests and propagate success or error state
  • Coordinate avatar URL persistence after successful file upload

Interfaces

getProfile(userId: String): Future<UserProfile>
updateProfile(userId: String, data: ProfileUpdateDto): Future<UserProfile>
updateAvatarUrl(userId: String, avatarUrl: String): Future<void>
ProfileBloc: Stream<ProfileState>

Relationships

Dependencies (1)

Components this component depends on

Dependents (2)

Components that depend on this component

Related Data Entities (1)

Data entities managed by this component