import { http } from '../utils/http.util'; export let helper = { resetPassword:{} } helper.resetPassword = function (password,id) { const data = { password:password, userId:id } const path = "/admin/rest/user/forget/password"; return new Promise(function (resolve,reject) { http.post(path, data).subscribe(function (res) { if(res.code == 200){ resolve(res); }else { reject(res.code); } }) }) }