forked from eatvio/eatvio_app
refactor: scroll
This commit is contained in:
@@ -27,24 +27,24 @@ abstract class FeedService {
|
||||
|
||||
@GET('/api/blogPosts/{id}/comments/show')
|
||||
Future<CommentModel> getBlogPostComments({
|
||||
@Path() required int id,
|
||||
@Path() required String id,
|
||||
});
|
||||
|
||||
@POST('/api/blogPosts/{id}/comment/create')
|
||||
Future<void> sendBlogPostComment({
|
||||
@Path() required int id,
|
||||
@Path() required String id,
|
||||
@Part() required String body,
|
||||
@Part() int? parentCommentId,
|
||||
});
|
||||
|
||||
@GET('/api/diets/{id}/comments/show')
|
||||
Future<CommentModel> getDietsComments({
|
||||
@Path() required int id,
|
||||
@Path() required String id,
|
||||
});
|
||||
|
||||
@POST('/api/diets/{id}/comment/create')
|
||||
Future<void> sendDietsComment({
|
||||
@Path() required int id,
|
||||
@Path() required String id,
|
||||
@Part() required String body,
|
||||
@Part() int? parentCommentId,
|
||||
});
|
||||
|
||||
@@ -128,7 +128,7 @@ class _FeedService implements FeedService {
|
||||
}
|
||||
|
||||
@override
|
||||
Future<CommentModel> getBlogPostComments({required int id}) async {
|
||||
Future<CommentModel> getBlogPostComments({required String id}) async {
|
||||
final _extra = <String, dynamic>{};
|
||||
final queryParameters = <String, dynamic>{};
|
||||
final _headers = <String, dynamic>{};
|
||||
@@ -162,7 +162,7 @@ class _FeedService implements FeedService {
|
||||
|
||||
@override
|
||||
Future<void> sendBlogPostComment({
|
||||
required int id,
|
||||
required String id,
|
||||
required String body,
|
||||
int? parentCommentId,
|
||||
}) async {
|
||||
@@ -201,7 +201,7 @@ class _FeedService implements FeedService {
|
||||
}
|
||||
|
||||
@override
|
||||
Future<CommentModel> getDietsComments({required int id}) async {
|
||||
Future<CommentModel> getDietsComments({required String id}) async {
|
||||
final _extra = <String, dynamic>{};
|
||||
final queryParameters = <String, dynamic>{};
|
||||
final _headers = <String, dynamic>{};
|
||||
@@ -235,7 +235,7 @@ class _FeedService implements FeedService {
|
||||
|
||||
@override
|
||||
Future<void> sendDietsComment({
|
||||
required int id,
|
||||
required String id,
|
||||
required String body,
|
||||
int? parentCommentId,
|
||||
}) async {
|
||||
|
||||
Reference in New Issue
Block a user