fix: useTable warning

This commit is contained in:
xingyu
2022-07-25 22:54:12 +08:00
parent 3d0cb5200b
commit 877254af10
11 changed files with 87 additions and 23 deletions

View File

@ -1,10 +1,10 @@
import { useAxios } from '@/hooks/web/useAxios'
import type { PostVO } from './types'
import type { PostVO, PostPageReqVO, PostExportReqVO } from './types'
const request = useAxios()
// 查询岗位列表
export const getPostPageApi = async (params) => {
export const getPostPageApi = async (params: PostPageReqVO) => {
return await request.get({ url: '/system/post/page', params })
}
@ -33,6 +33,6 @@ export const deletePostApi = async (id: number) => {
}
// 导出岗位
export const exportPostApi = async (params) => {
export const exportPostApi = async (params: PostExportReqVO) => {
return await request.download({ url: '/system/post/export', params })
}