forked from eatvio/eatvio_app
fix(calendar): Finished days fix
This commit is contained in:
@@ -22,8 +22,7 @@ abstract class DiaryService {
|
||||
Future<dynamic> getChart(@Path() int id);
|
||||
|
||||
@GET('/diary/product_nutritional_values/filter')
|
||||
Future<Map<String, List<Product>>> getInputProduct(
|
||||
@Query('name') String name);
|
||||
Future<Map<String, List<Product>>> getInputProduct(@Query('name') String name);
|
||||
|
||||
@POST('/diary/{diary_id}/meal/{meal_id}/satiety/fill')
|
||||
Future<Map<String, int>> sendSatietyData(
|
||||
@@ -79,9 +78,9 @@ abstract class DiaryService {
|
||||
@POST('/diary/{diary_id}/finishDay')
|
||||
Future<void> sendFinishDay(
|
||||
@Path() int diary_id,
|
||||
@Query('wakeUp') String wakeup,
|
||||
@Query('retire') String retire,
|
||||
@Query('comment') String comment,
|
||||
//@Query('wakeUp') String wakeup,
|
||||
//@Query('retire') String retire,
|
||||
//@Query('comment') String comment,
|
||||
);
|
||||
|
||||
@DELETE('/diary/{diary_id}/meal/{meal_id}/portions/{portion_id}/delete')
|
||||
|
||||
@@ -365,18 +365,9 @@ class _DiaryService implements DiaryService {
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> sendFinishDay(
|
||||
int diary_id,
|
||||
String wakeup,
|
||||
String retire,
|
||||
String comment,
|
||||
) async {
|
||||
Future<void> sendFinishDay(int diary_id) async {
|
||||
final _extra = <String, dynamic>{};
|
||||
final queryParameters = <String, dynamic>{
|
||||
r'wakeUp': wakeup,
|
||||
r'retire': retire,
|
||||
r'comment': comment,
|
||||
};
|
||||
final queryParameters = <String, dynamic>{};
|
||||
final _headers = <String, dynamic>{};
|
||||
const Map<String, dynamic>? _data = null;
|
||||
await _dio.fetch<void>(_setStreamType<void>(Options(
|
||||
|
||||
Reference in New Issue
Block a user