//如果需要定义 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; | |
} | |
} |