mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
feat: 新增数据池 hook
This commit is contained in:
@@ -150,16 +150,27 @@ type RequestPublicConfigType = {
|
||||
requestParams: RequestParams
|
||||
}
|
||||
|
||||
// 数据池项类型
|
||||
export type RequestDataPondItemType = {
|
||||
dataPondId: string,
|
||||
dataPondName: string,
|
||||
dataPondRequestConfig: RequestConfigType
|
||||
}
|
||||
|
||||
// 全局的图表请求配置
|
||||
export interface RequestGlobalConfigType extends RequestPublicConfigType {
|
||||
// 组件定制轮询时间
|
||||
requestInterval: number
|
||||
// 请求源地址
|
||||
requestOriginUrl?: string
|
||||
// 公共数据池
|
||||
requestDataPond: RequestDataPondItemType[]
|
||||
}
|
||||
|
||||
// 单个图表请求配置
|
||||
export interface RequestConfigType extends RequestPublicConfigType {
|
||||
// 所选全局数据池的对应 id
|
||||
requestDataPondId?: string
|
||||
// 组件定制轮询时间
|
||||
requestInterval?: number
|
||||
// 获取数据的方式
|
||||
|
||||
Reference in New Issue
Block a user