You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
511 B
TypeScript
18 lines
511 B
TypeScript
|
4 years ago
|
import fetch from '@/axios-config'
|
||
|
|
|
||
|
|
export const getExampleListApi = ({ params }: any) => {
|
||
|
|
return fetch({ url: '/example/list', method: 'get', params })
|
||
|
|
}
|
||
|
|
|
||
|
|
export const delsExampApi = ({ data }: any) => {
|
||
|
|
return fetch({ url: '/example/delete', method: 'post', data })
|
||
|
|
}
|
||
|
|
|
||
|
|
export const setExampApi = ({ data }: any) => {
|
||
|
|
return fetch({ url: '/example/save', method: 'post', data })
|
||
|
|
}
|
||
|
|
|
||
|
|
export const getExampDetApi = ({ params }: any) => {
|
||
|
|
return fetch({ url: '/example/detail', method: 'get', params })
|
||
|
|
}
|