feat: Add example-dialog demo
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user