feat: Add example-dialog demo

This commit is contained in:
kailong321200875
2022-02-19 13:17:38 +08:00
parent 41533c15e7
commit 262f4211cf
16 changed files with 311 additions and 24 deletions

View File

@@ -10,6 +10,28 @@ export const getTableListApi = ({ params }: AxiosConfig) => {
}>({ url: '/example/list', method: 'get', params })
}
export const saveTableApi = ({ data }: AxiosConfig) => {
export const saveTableApi = ({ data }: AxiosConfig<Recordable, TableData>) => {
return request({ url: '/example/save', method: 'post', data })
}
export const getTableDetApi = ({
params
}: AxiosConfig<
{
id: string
},
Recordable
>) => {
return request<TableData>({ url: '/example/detail', method: 'get', params })
}
export const delTableListApi = ({
data
}: AxiosConfig<
Recordable,
{
id: string[] | number[]
}
>) => {
return request({ url: '/example/delete', method: 'post', data })
}