Initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
export interface ServiceMeta {
|
||||
total: number
|
||||
page: number
|
||||
pageSize: number
|
||||
hasMore: boolean
|
||||
}
|
||||
|
||||
export interface ServiceResponse<T> {
|
||||
data: T
|
||||
meta?: ServiceMeta
|
||||
error?: string | null
|
||||
}
|
||||
|
||||
export type ListResponse<T> = ServiceResponse<T[]>
|
||||
export type ItemResponse<T> = ServiceResponse<T>
|
||||
Reference in New Issue
Block a user