/*
 * @Author: your name
 * @Date: 2021-06-25 00:11:34
 * @LastEditTime: 2021-06-25 00:13:25
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \Mina_B_T\miniprogram\service\hwUser.impl.ts
 */
import { bannerApi, getAuthCodeApi, phoneLoginApi } from "../hwUser";

export const bannerImpl = () => bannerApi().then(res => {
  const data = (<responseOptionsType>res)
  return data
})

/**
 * 获取验证码
 * @param pamara 
 */
export const getAuthCodeImpl = (parma: getAuthCodeDataType) => getAuthCodeApi(parma).then(res => {
  const data = (<responseOptionsType>res)
  return data
})

/**
 * 电话号码登陆
 * @param parma 
 */
export const phoneLoginImpl = (parma: phoneLoginDataType) => phoneLoginApi(parma).then(res => {
  const data = (<responseOptionsType>res)
  return data
})