forked from eatvio/eatvio_app
feat(comments): added actions bottom sheet with different actions for comments, added copy, reply and complain
This commit is contained in:
15
lib/core/comments/services/comments_service.dart
Normal file
15
lib/core/comments/services/comments_service.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
import 'package:dio/dio.dart';
|
||||
import 'package:retrofit/retrofit.dart';
|
||||
|
||||
part 'comments_service.g.dart';
|
||||
|
||||
@RestApi()
|
||||
abstract class CommentsService {
|
||||
factory CommentsService(Dio dio, {String baseUrl}) = _CommentsService;
|
||||
|
||||
@DELETE('/api/comments/{comment}')
|
||||
Future<void> deleteComment(@Path('id') int id);
|
||||
|
||||
@PATCH('/api/comments/{comment}')
|
||||
Future<void> updateComment(@Path('id') int id, @Body() String body);
|
||||
}
|
||||
Reference in New Issue
Block a user