更新动态详情页

- 动态详情页UI更新
- 动态详情页新增删除功能
- 新增下拉菜单组件
- 消息列表UI更新

- 搜索页UI更新
- 图片查看器移除状态栏黑色遮罩
- 更新API,新增删除动态接口
- 更新MomentService,新增删除动态方法
- 更新Moment类,新增删除动态方法
- 更新NewPostViewModel,发布动态后刷新动态列表
- 更新MomentViewModel,
This commit is contained in:
2024-09-07 15:37:26 +08:00
parent d1e9365d69
commit 48b5962646
11 changed files with 246 additions and 276 deletions

View File

@@ -123,6 +123,10 @@ class MomentServiceImpl() : MomentService {
momentBackend.unfavoriteMoment(id)
}
override suspend fun deleteMoment(id: Int) {
momentBackend.deleteMoment(id)
}
}
class MomentBackend {
@@ -195,6 +199,10 @@ class MomentBackend {
ApiClient.api.unfavoritePost(id)
}
suspend fun deleteMoment(id: Int) {
ApiClient.api.deletePost(id)
}
}
/**