mirror of
https://gitee.com/bootx/dax-pay-h5
synced 2026-08-02 19:56:16 +08:00
49 lines
699 B
TypeScript
49 lines
699 B
TypeScript
import type { PageResult } from '@/types/axios'
|
|
|
|
/**
|
|
* 分页参数
|
|
*/
|
|
export interface PageParam {
|
|
// 每页数量
|
|
size: number
|
|
// 当前页数
|
|
current: number
|
|
}
|
|
|
|
/**
|
|
* 分页表格列表对象
|
|
*/
|
|
export interface TablePageModel<T = any> {
|
|
// 分页参数
|
|
pages: PageParam
|
|
// 查询参数
|
|
queryParam: object
|
|
// 结果
|
|
pagination: PageResult<T>
|
|
}
|
|
|
|
/**
|
|
* 基础实体对象
|
|
*/
|
|
export interface BaseEntity {
|
|
id?: number | string | null
|
|
}
|
|
|
|
/**
|
|
* 键值对对象
|
|
*/
|
|
export interface KeyValue {
|
|
key: string
|
|
value: string
|
|
}
|
|
|
|
/**
|
|
* 请求头信息
|
|
*/
|
|
export interface WebHeaders {
|
|
/** token */
|
|
'AccessToken': string
|
|
/** 终端编码 */
|
|
'x-client-code': string
|
|
}
|