feat: 更新新闻相关功能,整合 API 数据获取,优化新闻列表展示和详情页面

This commit is contained in:
2026-01-09 00:56:58 +07:00
parent 1e1cf00975
commit 83385b9d88
8 changed files with 236 additions and 46 deletions

View File

@@ -84,6 +84,10 @@ export type NotificationData = Treaty.Data<typeof client.api.notifications.get>[
export type NotificationBody = TreatyQuery<typeof client.api.notifications.get>;
export type NewBody = TreatyQuery<typeof client.api.news.get>;
export type NewData = Treaty.Data<typeof client.api.news.get>["data"][number];
/**
* 应用版本信息
*/