feat: 添加账号删除功能
This commit is contained in:
@@ -87,6 +87,10 @@ class ProfileApi {
|
||||
return _toSettings(data);
|
||||
}
|
||||
|
||||
Future<void> deleteAccount() async {
|
||||
await _apiClient.deleteNoContent('/api/v1/users/me');
|
||||
}
|
||||
|
||||
ProfileSettingsV1 _toSettings(Map<String, dynamic> json) {
|
||||
final settingsRaw = json['settings'];
|
||||
final preferencesRaw = settingsRaw is Map<String, dynamic>
|
||||
|
||||
Reference in New Issue
Block a user