forked from eatvio/eatvio_app
20 lines
544 B
Dart
20 lines
544 B
Dart
import 'package:dio/dio.dart';
|
|
import 'package:retrofit/retrofit.dart';
|
|
|
|
part 'reset_password_service.g.dart';
|
|
|
|
@RestApi()
|
|
abstract class ResetPasswordService {
|
|
factory ResetPasswordService(Dio dio, {String baseUrl}) = _ResetPasswordService;
|
|
|
|
@POST('/api/send_password_reset_code')
|
|
Future<HttpResponse> sendEmailCodeForPasswordChange({
|
|
@Body() required Map<String, dynamic> data,
|
|
});
|
|
|
|
@POST('/api/confirm_password_reset_code')
|
|
Future<HttpResponse> confirmPasswordChange({
|
|
@Body() required Map<String, dynamic> data,
|
|
});
|
|
}
|