beelink/src/api/index.ts
2020-10-09 16:04:20 +08:00

16 lines
360 B
TypeScript

import { get, post } from './base'
/**
* 请求验证码
* @param phone 手机号
* @param type 类型 0国内 1国外
*/
export function sendsms(phone: string, type?: number){
return post('SendSms',{phone, type})
}
export function loginpass(phone: string, password: string){
return post("login",{type: 2,username: phone, password: password})
}