import 'api_client.dart'; class AuthApi { final ApiClient _client; AuthApi(this._client); Future> login(String phone, String password) { return _client.post('/auth/login', data: {'phone': phone, 'password': password}); } Future> register(String phone, String password, String nickname) { return _client.post('/auth/register', data: {'phone': phone, 'password': password, 'nickname': nickname}); } Future> logout() { return _client.post('/auth/logout'); } Future> getProfile() { return _client.get('/user/profile'); } Future> bindEmail(String email) { return _client.put('/user/email', data: {'email': email}); } Future> switchActiveFamily(String? familyId) { return _client.put('/user/active-family', data: {'familyId': familyId}); } }