forked from eatvio/eatvio_app
feat: diary comments view
This commit is contained in:
@@ -292,6 +292,7 @@ class DiaryRepository {
|
||||
required int diaryId,
|
||||
}) async {
|
||||
try {
|
||||
await diaryService.viewCommentOfDiaryDayByConsultant(diaryId: diaryId);
|
||||
return await diaryService.getDiaryComments(planId: planId, diaryId: diaryId);
|
||||
} catch (e) {
|
||||
rethrow;
|
||||
|
||||
@@ -150,4 +150,9 @@ abstract class DiaryService {
|
||||
@Path() required int planId,
|
||||
@Path() required int diaryId,
|
||||
});
|
||||
|
||||
@POST('/api/diary/{diaryId}/consultant/comment/view')
|
||||
Future<void> viewCommentOfDiaryDayByConsultant({
|
||||
@Path() required int diaryId,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user