declare interface API { code: number; data?: T; message: string; }