api_constants.dart 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 apiUserLogout = "/index.php/api/v1/hotel/logout";
  12. // 用户修改密码
  13. static const apiResetPassword = "/index.php/api/v1/hotel/reset";
  14. // 用户忘记密码
  15. static const apiForgotPassword = "/index.php/api/v1/hotel/reset";
  16. //用户注册
  17. static const apiAuthRegister = "/api/v1/user/auth/register";
  18. //用户注销
  19. static const apiAuthDeactivate = "/index.php/api/v1/hotel/deactivate";
  20. //验证码图片
  21. static const apiCaptchaImage = "/api/v1/user/captcha/index";
  22. //发送短信
  23. static const apiSendSMS = "/api/v1/user/sms/send";
  24. // =========================== 首页 ↓=========================================
  25. // =========================== Profile ↓=========================================
  26. //用户Me页面详情
  27. static const apiProfileInfo = "/api/v1/user/me/index";
  28. // =========================== 其他 ↓=========================================
  29. //服务器时间
  30. static const apiServerTime = "/index.php/api/employee/extra/time";
  31. }