text: import request from '@/utils/request'
  
  export function login(data) {
    return request({
      url: '/sessions',
      method: 'post',
      data
    })
  }
  
  export function signin(data) {
    return request({
      url: '/sessions/signin',
      method: 'post',
      data
    })
  }
  
  export function getInfo(params) {
    return request({
      url: '/sessions/',
      method: 'get',
      params
    })
  }
  
  export function logout(params) {
    return request({
      url: '/sessions/',
      method: 'delete',
      params
    })
  }
  
  export function getSMS(params) {
    return request({
      url: '/sessions/sms',
      method: 'get',
      params
    })
  }
  
  export function getUsers(params) {
    return request({
      url: '/users',
      method: 'get',
      params
    })
  }
  
  export function addUser(data) {
    return request({
      url: '/users',
      method: 'post',
      data
    })
  }
  
  export function updateUser(data) {
    return request({
      url: '/users',
      method: 'put',
      data
    })
  }
  
  export function updatePassword(data) {
    return request({
      url: '/users/password',
      method: 'put',
      data
    })
  }
  