调用了接口

This commit is contained in:
2020-10-09 09:45:13 +08:00
parent 1d0b8f2043
commit 645001f128
3 changed files with 22 additions and 5 deletions

View File

@@ -1,6 +1,19 @@
import { get, post } from './base'
import { AxiosPromise } from 'axios'
/**
* 请求验证码
* @param phone 手机号
* @param type 类型 0国内 1国外
*/
export function sendsms(phone: string, type?: number): Promise<AxiosPromise>{
return post('SendSms',{phone, type})
}
// 下面是示例接口 可以删除
/**
* 请求用户信息
*/