text: import request from '@/utils/request'
  
  const adminAPI = {
    adminList: '/admin/all',
    adminUser: '/admin',
    adminCreate: '/admin/add',
    adminUpdate: '/admin/update',
    adminDelete: '/admin/del',
    adminByid: '/admin/id',
    adminCase: '/admin/case',
    adminPhoto: '/admin/photo',
    adminDynimic: '/admin/dynamic',
    adminTeam: '/admin/team'
  }
  export function adminTeam (params) {
    return request({
      url: adminAPI.adminTeam,
      method: 'get',
      params
    })
  }
  export function adminDymic (params) {
    return request({
      url: adminAPI.adminDynimic,
      method: 'get',
      params
    })
  }
  // export function Case (params) {
  //   return request({
  //     url: adminAPI.Case,
  //     method: 'get',
  //     params
  //   })
  // }
  export function adminPhoto (data) {
    return request({
      url: adminAPI.adminPhoto,
      method: 'post',
      data
    })
  }
  export function adminCase (params) {
    return request({
      url: adminAPI.adminCase,
      method: 'get',
      params
    })
  }
  export function adminByid (params) {
    return request({
      url: adminAPI.adminByid,
      method: 'get',
      params
    })
  }
  export function adminDelete (params) {
    return request({
      url: adminAPI.adminDelete,
      method: 'delete',
      params
    })
  }
  export function adminUpdate (data) {
    return request({
      url: adminAPI.adminUpdate,
      method: 'put',
      data
    })
  }
  export function adminAvaratChange (data) {
    return request({
      url: adminAPI.adminUser,
      method: 'put',
      data
    })
  }
  
  export function adminList (params) {
    return request({
      url: adminAPI.adminList,
      method: 'get',
      params
    })
  }
  export function adminUser (params) {
    return request({
      url: adminAPI.adminUser,
      method: 'get',
      params
    })
  }
  export function adminCreate (data) {
    return request({
      url: adminAPI.adminCreate,
      method: 'post',
      data
    })
  }
  