api_constants.dart 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. //网络请求相关Api常量
  2. class ApiConstants {
  3. //当前服务器环境
  4. static const isServerRelease = false;
  5. //域名
  6. static const baseUrl = isServerRelease ? 'http://dev-yyhome.guadoutech.com' : 'http://dev-yyhome.guadoutech.com';
  7. // =========================== 用户相关 ↓=========================================
  8. // 登录
  9. static const apiUserLogin = "/api/v1/user/auth/login";
  10. // 用户重置密码
  11. static const apiResetPassword = "/api/v1/user/me/setting/reset-password";
  12. // 用户忘记密码
  13. static const apiForgotPassword = "/api/v1/user/auth/forget-password";
  14. //用户注册
  15. static const apiAuthRegister = "/api/v1/user/auth/register";
  16. //验证码图片
  17. static const apiCaptchaImage = "/api/v1/user/captcha/index";
  18. //发送短信
  19. static const apiSendSMS = "/api/v1/user/sms/send";
  20. // 登出系统
  21. static const apiUserLogout = "/index.php/api/v1/hotel/logout";
  22. //用户注销
  23. static const apiAuthDeactivate = "/index.php/api/v1/hotel/deactivate";
  24. // =========================== 首页 ↓=========================================
  25. // =========================== Profile ↓=========================================
  26. //用户Me页面详情
  27. static const apiProfileInfo = "/api/v1/user/me/index";
  28. //更新用户信息
  29. static const apiUpdateProfile = "/api/v1/user/me/profile/update";
  30. //用户的默认头像列表
  31. static const apiDefaultAvatar = "/api/v1/user/me/profile/default-avatar";
  32. //修改手机号码
  33. static const apiChangeMobile = "/api/v1/user/me/setting/change-phone";
  34. // =========================== 其他 ↓=========================================
  35. //服务器时间
  36. static const apiServerTime = "/index.php/api/employee/extra/time";
  37. }