ttk-app-core
Version:
enterprise develop framework
18 lines (15 loc) • 565 B
JavaScript
/**
* webapi.js 封装app所需的所有web请求
* 供app测试使用,app加入网站后webpai应该由网站通过config,提供给每个app
*/
import { fetch } from 'edf-utils'
export default {
user: {
resetPassword: (option) => fetch.post('/v1/edf/user/resetPassword', option),
existsMobile: (mobile) => fetch.post('/v1/edf/user/existsMobile', {mobile})
},
captcha: {
fetch: (mobile) => fetch.post('/v1/edf/captcha/fetch', mobile),
validate: (captcha) => fetch.post('/v1/edf/captcha/validate', captcha)
}
}