text: import axios from '@/api/axios'
  import url from './url'
  export default {
      login (data) {
          return axios.post(url.login, data)
      },
      register (data) {
          return axios.post(url.register, data)
      },
      get (params) {
          return axios.get(url.get, { params })
      },
      add (data) {
          return axios.post(url.add, data)
      },
      edit (data) {
          return axios.post(url.edit, data)
      },
      getById (params) {
          return axios.get(url.getById, { params })
      },
      delete (data) {
          return axios({
              method: 'post',
              url: url.delete,
              params: data
          })
      },
      status (data) {
          return axios.post(url.status, data)
      }
  }
  