登录接口

This commit is contained in:
2020-10-09 14:31:10 +08:00
parent 2a1e290d12
commit e9a37efe02
4 changed files with 29 additions and 6 deletions

View File

@@ -7,10 +7,14 @@ import { AxiosPromise } from 'axios'
* @param type 类型 0国内 1国外
*/
export function sendsms(phone: string, type?: number): Promise<AxiosPromise>{
export function sendsms(phone: string, type?: number): Promise<AxiosPromise>{
return post('SendSms',{phone, type})
}
export function loginpass(phone: string, password: string): Promise<AxiosPromise>{
return post("login",{type: 2,username: phone, password: password})
}
// 下面是示例接口 可以删除