You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

25 lines
390 B

declare namespace Http {
interface IBase<T> {
code: number
success: boolean
data: T
msg: string
}
type PageParams = {
pageNo: number
pageSize: number
}
type IPage<T> = IBase<{
totalPages: number
pageSize: number
pageNo: number
total: number
list: T[]
}>
type IRes<T> = Promise<IBase<T>>
type IPageRes<T> = Promise<IPage<T>>
}