beelink/src/api/index.ts

16 lines
360 B
TypeScript
Raw Normal View History

2020-09-24 07:33:12 +00:00
import { get, post } from './base'
2020-10-09 01:45:13 +00:00
/**
*
* @param phone
* @param type 0 1
*/
2020-10-09 08:04:20 +00:00
export function sendsms(phone: string, type?: number){
2020-10-09 01:45:13 +00:00
return post('SendSms',{phone, type})
}
2020-10-09 08:04:20 +00:00
export function loginpass(phone: string, password: string){
2020-10-09 06:31:10 +00:00
return post("login",{type: 2,username: phone, password: password})
}