19 lines
401 B
TypeScript
19 lines
401 B
TypeScript
/** 所有 api 接口的响应数据都应该准守该格式 */
|
|
interface ApiResponseData<T> {
|
|
isSucc: boolean
|
|
code: number
|
|
data: T
|
|
message: string
|
|
}
|
|
|
|
/** 所有 api 接口的响应数据都应该准守该格式,数组类型 */
|
|
interface ApiResponseDataArray<T> {
|
|
[x: string]: number
|
|
isSucc: boolean
|
|
code: number
|
|
data: Array<T>
|
|
message: string
|
|
totalRecord: number
|
|
otherInfo: any
|
|
}
|