import { WX_GET_PHONE, WX_GET_USER } from '../utils/apiList' import { request, Response } from '../utils/http' interface PhoneParams { code: string encryptedData: string iv: string } interface PhoneResType { countryCode: string phoneNumber: string purePhoneNumber: string } interface UserResType { } type UserRes = Response & { data: PhoneRes } type PhoneRes = Response & { data: PhoneResType } export const getUserInfo = async (): Promise => { const res = await request.get(WX_GET_USER) return res.data } export const decrptPhone = async (params: PhoneParams): Promise => { const res = await request.get(WX_GET_PHONE, params) return res.data }