forked from eatvio/eatvio_app
29 lines
794 B
Dart
29 lines
794 B
Dart
import 'package:dio/dio.dart';
|
|
import 'package:eatvio_app/features/create_plan/models/plan_slug_model.dart';
|
|
import 'package:retrofit/retrofit.dart';
|
|
|
|
part 'create_plan_service.g.dart';
|
|
|
|
@RestApi()
|
|
abstract class CreatePlanService {
|
|
factory CreatePlanService(Dio dio, {String baseUrl}) = _CreatePlanService;
|
|
|
|
@POST('/api/plans/create')
|
|
@MultiPart()
|
|
Future<PlanSlugModel> createPlan({
|
|
@Body() required FormData formData,
|
|
});
|
|
|
|
@POST('/api/plans/create/{slug}/packet_option')
|
|
Future<void> createPacketOption({
|
|
@Path() required String slug,
|
|
@Body() required Map<String, dynamic> model,
|
|
});
|
|
|
|
@POST('/api/plans/create/{slug}/packet_options')
|
|
Future<void> createPacketOptions({
|
|
@Path() required String slug,
|
|
@Body() required Map<String, dynamic> model,
|
|
});
|
|
}
|