我是人,我做了悬赏中心,可以进行悬赏哦
Change-Id: I845de799a633be286a6fadee2b7aa533238c3652
diff --git a/src/types.d.ts b/src/types.d.ts
new file mode 100644
index 0000000..d65e0e6
--- /dev/null
+++ b/src/types.d.ts
@@ -0,0 +1,14 @@
+//如果需要定义 API 类型(如接口返回的用户信息、列表数据等),推荐:
+
+declare namespace API {
+ // 补充 Bounty 类型定义(根据实际接口返回字段调整)
+ export interface Bounty {
+ id: number;
+ title: string;
+ description: string;
+ reward: number;
+ deadline: string;
+ status: number; // 0-进行中,1-已完成,2-已关闭
+ creator_id: number;
+ }
+}