refactor: config vxe

This commit is contained in:
xingyu4j
2022-11-22 15:10:00 +08:00
parent 7b2871ac72
commit 3dd2203803
4 changed files with 219 additions and 242 deletions

View File

@ -1,8 +1,30 @@
import request from '@/config/axios'
import type { ConfigVO } from './types'
export type ConfigVO = {
id: number
group: string
name: string
key: string
value: string
type: string
visible: boolean
remark: string
createTime: string
}
export interface ConfigPageReqVO extends PageParam {
name?: string
type?: number
createTime?: string[]
}
export interface ConfigExportReqVO {
name?: string
type?: number
createTime?: string[]
}
// 查询参数列表
export const getConfigPageApi = (params) => {
export const getConfigPageApi = (params: ConfigPageReqVO) => {
return request.get({ url: '/infra/config/page', params })
}
@ -32,6 +54,6 @@ export const deleteConfigApi = (id: number) => {
}
// 导出参数
export const exportConfigApi = (params) => {
export const exportConfigApi = (params: ConfigExportReqVO) => {
return request.download({ url: '/infra/config/export', params })
}