RemoteConfig.cs 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. namespace SC.XR.Unity.Module_PlatformAccount
  2. {
  3. /// <summary>
  4. /// 服务器接口返回代号
  5. /// </summary>
  6. public enum RemoteCode
  7. {
  8. /// <summary>
  9. /// 请求成功
  10. /// </summary>
  11. success = 200,
  12. /// <summary>
  13. /// 账号或密码错误
  14. /// </summary>
  15. accountError = 5010,
  16. /// <summary>
  17. /// 账号未注册
  18. /// </summary>
  19. accountNotRegistered = 5013,
  20. /// <summary>
  21. /// 账号未登陆过
  22. /// </summary>
  23. accountHasNotLogin = 5031,
  24. /// <summary>
  25. /// 需要输入图形验证码
  26. /// </summary>
  27. needCaptcha = 5979,
  28. /// <summary>
  29. /// 图形验证码不正确
  30. /// </summary>
  31. captchaError = 5981,
  32. /// <summary>
  33. /// 手机验证码长度必须是6个字符
  34. /// </summary>
  35. smsLengthError = 5003,
  36. /// <summary>
  37. /// 验证码错误
  38. /// </summary>
  39. smsCodeError = 5006,
  40. /// <summary>
  41. /// 账号不存在
  42. /// </summary>
  43. accountNotExist = 5021,
  44. /// <summary>
  45. /// 短信验证码次数用完
  46. /// </summary>
  47. noSmsCodeNum = 5983
  48. }
  49. /// <summary>
  50. /// 接口配置
  51. /// </summary>
  52. [System.Serializable]
  53. public class RemoteConfig
  54. {
  55. /// <summary>
  56. /// 账号登录
  57. /// </summary>
  58. public string accountLogin = "/v1/accountLogin";
  59. /// <summary>
  60. /// 图形验证码获取
  61. /// </summary>
  62. public string captcha = "/v1/captcha";
  63. /// <summary>
  64. /// 手机登录
  65. /// </summary>
  66. public string phoneLogin = "/v1/phoneLogin";
  67. /// <summary>
  68. /// 获取手机登录验证码
  69. /// </summary>
  70. public string smsCodeLogin = "/v1/sms/code/login";
  71. /// <summary>
  72. /// 账号登录状态查询(未登录)
  73. /// </summary>
  74. public string accountLoginStatus = "/v1/accountLoginStatus";
  75. /// <summary>
  76. /// 手机验证码次数查询
  77. /// </summary>
  78. public string smsRestCodeTimes = "/v1/sms/restCodeTimes";
  79. /// <summary>
  80. /// 查询剩余邮件次数
  81. /// </summary>
  82. public string emailRestCodeTimes = "/v1/email/restCodeTimes";
  83. /// <summary>
  84. /// 获取忘记密码验证码
  85. /// </summary>
  86. public string smsCodeForget = "/v1/sms/code/forget";
  87. /// <summary>
  88. /// 获取忘记密码验证码
  89. /// </summary>
  90. public string smsVerifyForgetPassword = "/v1/sms/verify/forgetPassword";
  91. /// <summary>
  92. /// 发送忘记密码邮箱验证码
  93. /// </summary>
  94. public string emailCodeForget = "/v1/email/code/forget";
  95. /// <summary>
  96. /// 验证忘记密码邮箱验证码
  97. /// </summary>
  98. public string emailVerifyForgetPassword = "/v1/email/verify/forgetPassword";
  99. /// <summary>
  100. /// 忘记密码重设(手机验证码)
  101. /// </summary>
  102. public string forgetPasswordByPhone = "/v1/forgetPasswordByPhone";
  103. /// <summary>
  104. /// 忘记密码重设(邮箱验证码)
  105. /// </summary>
  106. public string forgetPasswordByMail = "/v1/forgetPasswordByMail";
  107. /// <summary>
  108. /// 账号合法状态查询(已登录)
  109. /// </summary>
  110. public string accountLoginValid = "/v1/accountLoginValid";
  111. /// <summary>
  112. /// 查询用户信息
  113. /// </summary>
  114. public string userInfo = "/v1/user/info";
  115. /// <summary>
  116. /// 账号预登陆
  117. /// </summary>
  118. public string accountPreLogin = "/v1/accountPreLogin";
  119. /// <summary>
  120. /// 手机预登陆
  121. /// </summary>
  122. public string phonePreLogin = "/v1/phonePreLogin";
  123. /// <summary>
  124. /// 退出当前设备
  125. /// </summary>
  126. public string accountLogout = "/v1/account/logout";
  127. /// <summary>
  128. /// 获取注册验证码
  129. /// </summary>
  130. public string smsCodeRegister = "/v1/sms/code/register";
  131. /// <summary>
  132. /// 验证注册验证码
  133. /// </summary>
  134. public string smsVerifyRegister = "/v1/sms/verify/register";
  135. /// <summary>
  136. /// 获取手机修改验证码
  137. /// </summary>
  138. public string smsCodeModifyPhone = "/v1/sms/code/modifyPhone";
  139. /// <summary>
  140. /// 获取修改密码验证码
  141. /// </summary>
  142. public string smsCodeChangePassword = "/v1/sms/code/changePassword";
  143. /// <summary>
  144. /// 验证修改密码验证码
  145. /// </summary>
  146. public string smsVerifyChangePassword = "/v1/sms/verify/changePassword";
  147. /// <summary>
  148. /// 手机注册
  149. /// </summary>
  150. public string phoneRegister = "/v1/phoneRegister";
  151. /// <summary>
  152. /// 邮箱注册
  153. /// </summary>
  154. public string emailRegister = "/v1/emailRegister";
  155. /// <summary>
  156. /// 获取注册验证码
  157. /// </summary>
  158. public string emailCodeRegister = "/v1/email/code/register";
  159. /// <summary>
  160. /// 验证注册验证码
  161. /// </summary>
  162. public string emailVerifyRegister = "/v1/email/verify/register";
  163. /// <summary>
  164. /// 获取修改邮箱验证码
  165. /// </summary>
  166. public string emailCodeModifyEmail = "/v1/email/code/modifyEmail";
  167. /// <summary>
  168. /// 获取修改密码验证码
  169. /// </summary>
  170. public string emailCodeChangePassword = "/v1/email/code/changePassword";
  171. /// <summary>
  172. /// 验证修改密码验证码
  173. /// </summary>
  174. public string emailVerifyChangePassword = "/v1/email/verify/changePassword";
  175. /// <summary>
  176. /// 修改密码(手机)
  177. /// </summary>
  178. public string accountChangePasswordByPhone = "/v1/account/changePasswordByPhone";
  179. /// <summary>
  180. /// 修改密码(邮箱)
  181. /// </summary>
  182. public string accountChangePasswordByEmail = "/v1/account/changePasswordByEmail";
  183. /// <summary>
  184. /// 验证密码
  185. /// </summary>
  186. public string accountCheckPass = "/v1/account/checkPass";
  187. /// <summary>
  188. /// 设置密码
  189. /// </summary>
  190. public string accountSetPass = "/v1/account/setPass";
  191. /// <summary>
  192. /// 上传修改头像
  193. /// </summary>
  194. public string userAvatar = "/v1/user/avatar";
  195. /// <summary>
  196. /// 修改用户资料
  197. /// </summary>
  198. public string userProfile = "/v1/user/profile";
  199. /// <summary>
  200. /// 改绑手机
  201. /// </summary>
  202. public string userModifyPhone = "/v1/user/modifyPhone";
  203. /// <summary>
  204. /// 改绑邮箱
  205. /// </summary>
  206. public string userModifyEmail = "/v1/user/modifyEmail";
  207. /// <summary>
  208. /// 激活会员
  209. /// </summary>
  210. public string userActivation = "/v1/user/activation";
  211. }
  212. }