forked from eatvio/eatvio_app
feat(plans): plan creating has been completed
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
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';
|
||||
@@ -9,8 +10,8 @@ abstract class CreatePlanService {
|
||||
|
||||
@POST('/api/plans/create')
|
||||
@MultiPart()
|
||||
Future<void> createPlan({
|
||||
@Body() required Map<String, dynamic> model,
|
||||
Future<PlanSlugModel> createPlan({
|
||||
@Body() required FormData formData,
|
||||
});
|
||||
|
||||
@POST('/api/plans/create/{slug}/packet_option')
|
||||
@@ -19,7 +20,7 @@ abstract class CreatePlanService {
|
||||
@Body() required Map<String, dynamic> model,
|
||||
});
|
||||
|
||||
@POST('/api/plans/create/{slug}/packet_options')
|
||||
@POST('/api/plans/create/{slug}/packet_options')
|
||||
Future<void> createPacketOptions({
|
||||
@Path() required String slug,
|
||||
@Body() required Map<String, dynamic> model,
|
||||
|
||||
Reference in New Issue
Block a user