import Service from '../lib/service' class LoginService extends Service { constructor () { super() } //登录 async Login (params = {}) { let res = await this.postAll("Host80","/custom/login", params); return res } //登出 async Logout (params = {}) { let res = await this.postAll("Host80","/custom/logout", params); return res } //注册 async Register (params = {}, config = {}) { let res = await this.postAll("Host80","/custom/register", params, config); return res } //发送邮件验证 async Code (params = {}) { let res = await this.postAll("Host80","/custom/register/send/code", params); return res } //当前国家编码 async CodeById (params = {}) { let res = await this.postAll("Host80","/country/getCodeByIp", params); return res } // 获取登录信息 async CustomLoginInfo (params = {}) { let res = await this.postAll("Host80","/custom/info", params); return res } //语言切换 async switchLanguage (params = {}) { let res = await this.postAll("Host80","/custom/switch/lang", params); return res } //忘记密码发送邮件 async forgetPwd (params = {}) { let res = await this.postAll("Host80","/custom/update/password/send/email", params); return res } //忘记密码 async forgetPwdUpdate (params = {}) { let res = await this.postAll("Host80","/custom/update/email/password", params); return res } //trading密码重置 async tradingPwdUpdate (params = {}) { let res = await this.postAll("Host80","/account/deal/password/reset/apply", params); return res } //客户文件列表 async CustomFileList (params = {}) { let res = await this.postAll("Host80","/custom/file/list", params); return res } //浏览器语言 async getLanguage (params = {}) { let res = await this.postAll("Host80","/custom/get/language", params); return res } //发送邮件验证 async sendCode (params = {}) { let res = await this.post("/custom/send/code", params); return res } //登录验证方式 async loginValid (params = {}) { let res = await this.post("/custom/login/valid", params); return res } } export default new LoginService