123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214 |
- namespace SC.XR.Unity.Module_PlatformAccount
- {
- /// <summary>
- /// 服务器接口返回代号
- /// </summary>
- public enum RemoteCode
- {
- /// <summary>
- /// 请求成功
- /// </summary>
- success = 200,
- /// <summary>
- /// 账号或密码错误
- /// </summary>
- accountError = 5010,
- /// <summary>
- /// 账号未注册
- /// </summary>
- accountNotRegistered = 5013,
- /// <summary>
- /// 账号未登陆过
- /// </summary>
- accountHasNotLogin = 5031,
- /// <summary>
- /// 需要输入图形验证码
- /// </summary>
- needCaptcha = 5979,
- /// <summary>
- /// 图形验证码不正确
- /// </summary>
- captchaError = 5981,
- /// <summary>
- /// 手机验证码长度必须是6个字符
- /// </summary>
- smsLengthError = 5003,
- /// <summary>
- /// 验证码错误
- /// </summary>
- smsCodeError = 5006,
- /// <summary>
- /// 账号不存在
- /// </summary>
- accountNotExist = 5021,
- /// <summary>
- /// 短信验证码次数用完
- /// </summary>
- noSmsCodeNum = 5983
- }
- /// <summary>
- /// 接口配置
- /// </summary>
- [System.Serializable]
- public class RemoteConfig
- {
- /// <summary>
- /// 账号登录
- /// </summary>
- public string accountLogin = "/v1/accountLogin";
- /// <summary>
- /// 图形验证码获取
- /// </summary>
- public string captcha = "/v1/captcha";
- /// <summary>
- /// 手机登录
- /// </summary>
- public string phoneLogin = "/v1/phoneLogin";
- /// <summary>
- /// 获取手机登录验证码
- /// </summary>
- public string smsCodeLogin = "/v1/sms/code/login";
- /// <summary>
- /// 账号登录状态查询(未登录)
- /// </summary>
- public string accountLoginStatus = "/v1/accountLoginStatus";
- /// <summary>
- /// 手机验证码次数查询
- /// </summary>
- public string smsRestCodeTimes = "/v1/sms/restCodeTimes";
- /// <summary>
- /// 查询剩余邮件次数
- /// </summary>
- public string emailRestCodeTimes = "/v1/email/restCodeTimes";
- /// <summary>
- /// 获取忘记密码验证码
- /// </summary>
- public string smsCodeForget = "/v1/sms/code/forget";
- /// <summary>
- /// 获取忘记密码验证码
- /// </summary>
- public string smsVerifyForgetPassword = "/v1/sms/verify/forgetPassword";
- /// <summary>
- /// 发送忘记密码邮箱验证码
- /// </summary>
- public string emailCodeForget = "/v1/email/code/forget";
- /// <summary>
- /// 验证忘记密码邮箱验证码
- /// </summary>
- public string emailVerifyForgetPassword = "/v1/email/verify/forgetPassword";
- /// <summary>
- /// 忘记密码重设(手机验证码)
- /// </summary>
- public string forgetPasswordByPhone = "/v1/forgetPasswordByPhone";
- /// <summary>
- /// 忘记密码重设(邮箱验证码)
- /// </summary>
- public string forgetPasswordByMail = "/v1/forgetPasswordByMail";
- /// <summary>
- /// 账号合法状态查询(已登录)
- /// </summary>
- public string accountLoginValid = "/v1/accountLoginValid";
- /// <summary>
- /// 查询用户信息
- /// </summary>
- public string userInfo = "/v1/user/info";
- /// <summary>
- /// 账号预登陆
- /// </summary>
- public string accountPreLogin = "/v1/accountPreLogin";
- /// <summary>
- /// 手机预登陆
- /// </summary>
- public string phonePreLogin = "/v1/phonePreLogin";
- /// <summary>
- /// 退出当前设备
- /// </summary>
- public string accountLogout = "/v1/account/logout";
- /// <summary>
- /// 获取注册验证码
- /// </summary>
- public string smsCodeRegister = "/v1/sms/code/register";
- /// <summary>
- /// 验证注册验证码
- /// </summary>
- public string smsVerifyRegister = "/v1/sms/verify/register";
- /// <summary>
- /// 获取手机修改验证码
- /// </summary>
- public string smsCodeModifyPhone = "/v1/sms/code/modifyPhone";
- /// <summary>
- /// 获取修改密码验证码
- /// </summary>
- public string smsCodeChangePassword = "/v1/sms/code/changePassword";
- /// <summary>
- /// 验证修改密码验证码
- /// </summary>
- public string smsVerifyChangePassword = "/v1/sms/verify/changePassword";
- /// <summary>
- /// 手机注册
- /// </summary>
- public string phoneRegister = "/v1/phoneRegister";
- /// <summary>
- /// 邮箱注册
- /// </summary>
- public string emailRegister = "/v1/emailRegister";
- /// <summary>
- /// 获取注册验证码
- /// </summary>
- public string emailCodeRegister = "/v1/email/code/register";
- /// <summary>
- /// 验证注册验证码
- /// </summary>
- public string emailVerifyRegister = "/v1/email/verify/register";
- /// <summary>
- /// 获取修改邮箱验证码
- /// </summary>
- public string emailCodeModifyEmail = "/v1/email/code/modifyEmail";
- /// <summary>
- /// 获取修改密码验证码
- /// </summary>
- public string emailCodeChangePassword = "/v1/email/code/changePassword";
- /// <summary>
- /// 验证修改密码验证码
- /// </summary>
- public string emailVerifyChangePassword = "/v1/email/verify/changePassword";
- /// <summary>
- /// 修改密码(手机)
- /// </summary>
- public string accountChangePasswordByPhone = "/v1/account/changePasswordByPhone";
- /// <summary>
- /// 修改密码(邮箱)
- /// </summary>
- public string accountChangePasswordByEmail = "/v1/account/changePasswordByEmail";
- /// <summary>
- /// 验证密码
- /// </summary>
- public string accountCheckPass = "/v1/account/checkPass";
- /// <summary>
- /// 设置密码
- /// </summary>
- public string accountSetPass = "/v1/account/setPass";
- /// <summary>
- /// 上传修改头像
- /// </summary>
- public string userAvatar = "/v1/user/avatar";
- /// <summary>
- /// 修改用户资料
- /// </summary>
- public string userProfile = "/v1/user/profile";
- /// <summary>
- /// 改绑手机
- /// </summary>
- public string userModifyPhone = "/v1/user/modifyPhone";
- /// <summary>
- /// 改绑邮箱
- /// </summary>
- public string userModifyEmail = "/v1/user/modifyEmail";
- /// <summary>
- /// 激活会员
- /// </summary>
- public string userActivation = "/v1/user/activation";
- }
- }
-
|