first commit
This commit is contained in:
Vendored
+18
@@ -0,0 +1,18 @@
|
||||
/** 所有 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
|
||||
}
|
||||
Reference in New Issue
Block a user