You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
1.4 KiB

"use strict";const s=require("../../request/index.js"),u={login:e=>s.request({url:"/member/auth/login",method:"POST",data:e,custom:{showSuccess:!0,loadingMsg:"登录中",successMsg:"登录成功"}}),smsLogin:e=>s.request({url:"/member/auth/sms-login",method:"POST",data:e,custom:{showSuccess:!0,loadingMsg:"登录中",successMsg:"登录成功"}}),sendSmsCode:(e,r)=>s.request({url:"/member/auth/send-sms-code",method:"POST",data:{mobile:e,scene:r},custom:{loadingMsg:"发送中",showSuccess:!0,successMsg:"发送成功"}}),logout:()=>s.request({url:"/member/auth/logout",method:"POST"}),refreshToken:e=>s.request({url:"/member/auth/refresh-token",method:"POST",params:{refreshToken:e},custom:{loading:!1,showError:!1}}),socialAuthRedirect:(e,r)=>s.request({url:"/member/auth/social-auth-redirect",method:"GET",params:{type:e,redirectUri:r},custom:{showSuccess:!0,loadingMsg:"登陆中"}}),socialLogin:(e,r,t)=>s.request({url:"/member/auth/social-login",method:"POST",data:{type:e,code:r,state:t},custom:{showSuccess:!0,loadingMsg:"登陆中"}}),weixinMiniAppLogin:(e,r,t)=>s.request({url:"/member/auth/weixin-mini-app-login",method:"POST",data:{phoneCode:e,loginCode:r,state:t},custom:{showSuccess:!0,loadingMsg:"登陆中",successMsg:"登录成功"}}),createWeixinMpJsapiSignature:e=>s.request({url:"/member/auth/create-weixin-jsapi-signature",method:"POST",params:{url:e},custom:{showError:!1,showLoading:!1}})};exports.AuthUtil=u;