登录接口
This commit is contained in:
@@ -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})
|
||||
}
|
||||
|
||||
|
||||
// 下面是示例接口 可以删除
|
||||
|
||||
|
||||
Reference in New Issue
Block a user