import request from './http'

// 密码登录方法
export const passwordLogin = (data) => {
  return request({
    method: 'post',
    url: `/token/login`,
    params: {
      client: 'dax-pay',
      account: data.account,
      password: data.password,
      loginType: 'password',
      captchaKey: '',
      captcha: ''
    }
  })
}

// 微信小程序登录方法
export const wxLogin = (code) => {
  return request({
    method: 'post',
    url: '/user/wx/login',
    data: {
      code
    }
  })
} 