api.ts 512 B

1234567891011121314151617
  1. import fetch from '@/axios-config'
  2. export const getExampleListApi = ({ params }: any) => {
  3. return fetch({ url: '/example/list2', method: 'get', params })
  4. }
  5. export const delsExampApi = ({ data }: any) => {
  6. return fetch({ url: '/example/delete', method: 'post', data })
  7. }
  8. export const setExampApi = ({ data }: any) => {
  9. return fetch({ url: '/example/save', method: 'post', data })
  10. }
  11. export const getExampDetApi = ({ params }: any) => {
  12. return fetch({ url: '/example/detail', method: 'get', params })
  13. }