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