已解决
react_16
来自网友在路上 156856提问 提问时间:2023-11-04 13:11:56阅读次数: 56
最佳答案 问答题库568位专家为你答疑解惑
R.ts文件
export default interface R<T>{code:number,data:T,message?:string}
Student.ts文件
export interface Student {id: number;name: string;sex?: string;age?: number;photo?: string;}export interface PageResp<T>{total: number,list : T[],}export interface StudentQueryForm{name?:string,sex?:string,age?:string}export interface Route{path:string,element:string}// 服务器返回的菜单数据
export interface Menu {key: string,label: string,children?: Menu[],icon: string,routePath: string
}// 路由 + 菜单
export interface MenuAndRoute {routeList: Route[]menuTree: Menu[]
}// 登录请求
export interface LoginReq {username: string,password: string
}// 登录响应
export interface LoginResp {token: string
}
查看全文
99%的人还看了
相似问题
猜你感兴趣
版权申明
本文"react_16":http://eshow365.cn/6-31816-0.html 内容来自互联网,请自行判断内容的正确性。如有侵权请联系我们,立即删除!