| 崔向南 | 464e19d | 2025-06-05 17:46:27 +0800 | [diff] [blame] | 1 | //如果需要定义 API 类型(如接口返回的用户信息、列表数据等),推荐: |
| 2 | |||||
| 3 | declare namespace API { | ||||
| 4 | // 补充 Bounty 类型定义(根据实际接口返回字段调整) | ||||
| 5 | export interface Bounty { | ||||
| 6 | id: number; | ||||
| 7 | title: string; | ||||
| 8 | description: string; | ||||
| 9 | reward: number; | ||||
| 10 | deadline: string; | ||||
| 11 | status: number; // 0-进行中,1-已完成,2-已关闭 | ||||
| 12 | creator_id: number; | ||||
| 13 | } | ||||
| 14 | } | ||||