text: import request from '@/utils/request'
  
  const userApi = {
    Login: '/v1/upload/login',
    Logout: '/auth/logout',
    UserInfo: '/v1/upload/user/info'
  }
  
  /**
   * login func
   * parameter: {
   *     username: '',
   *     password: '',
   *     remember_me: true,
   *     captcha: '12345'
   * }
   * @param parameter
   * @returns {*}
   */
  export function login (parameter) {
    return request({
      url: userApi.Login,
      method: 'post',
      data: parameter
    })
  }
  
  export function getSmsCaptcha (parameter) {
    return request({
      url: userApi.SendSms,
      method: 'post',
      data: parameter
    })
  }
  
  export function getInfo () {
    return request({
      url: userApi.UserInfo,
      method: 'get',
      headers: {
        'Content-Type': 'application/json;charset=UTF-8'
      }
    })
  }
  
  export function getCurrentUserNav () {
    return request({
      url: userApi.UserMenu,
      method: 'get'
    })
  }
  
  export function logout () {
    return request({
      url: userApi.Logout,
      method: 'post',
      headers: {
        'Content-Type': 'application/json;charset=UTF-8'
      }
    })
  }
  
  /**
   * get user 2step code open?
   * @param parameter {*}
   */
  export function get2step (parameter) {
    return request({
      url: userApi.twoStepCode,
      method: 'post',
      data: parameter
    })
  }
  