api_constants.dart 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. //反馈的分类列表
  26. static const apiFeedbackCategory = "/api/v1/user/feedback/category/index";
  27. //反馈的发布
  28. static const apiFeedbackPost = "/api/v1/user/feedback/index/publish";
  29. //已发布的反馈列表
  30. static const apiFeedbackList = "/api/v1/user/feedback/index";
  31. //反馈详情
  32. static const apiFeedbackDetail = "/api/v1/user/feedback/index/detail";
  33. //创建访客
  34. static const apiCreateVisitor = "/api/v1/user/visitor/index/apply";
  35. //访客状态列表
  36. static const apiVisitorList = "/api/v1/user/visitor/index";
  37. //首页的列表接口
  38. static const apiHomeList = "/api/v1/user/home/index";
  39. //首页-最新新闻列表
  40. static const apiLatestNewsList = "/api/v1/user/latest/news/list";
  41. //首页-最新新闻列表
  42. static const apiLatestNewsDetail = "/api/v1/user/latest/news/detail";
  43. //首页-管理员指引列表
  44. static const apiManageGuideList = "/api/v1/user/strata-management/guide/list";
  45. //首页-管理员详情
  46. static const apiManageGuideDetail = "/api/v1/user/strata-management/guide/detail";
  47. // =========================== Profile ↓=========================================
  48. //用户Me页面详情
  49. static const apiProfileInfo = "/api/v1/user/me/index";
  50. //更新用户信息
  51. static const apiUpdateProfile = "/api/v1/user/me/profile/update";
  52. //用户的默认头像列表
  53. static const apiDefaultAvatar = "/api/v1/user/me/profile/default-avatar";
  54. //修改手机号码
  55. static const apiChangeMobile = "/api/v1/user/me/setting/change-phone";
  56. //设置房产单元为默认
  57. static const apiSetEstateDefault = "/api/v1/user/estate/unit-user/set-default";
  58. //删除指定的房产单元
  59. static const apiDeleteEstateUnit = "/api/v1/user/estate/unit-user/delete";
  60. //搜索房产
  61. static const apiEstateSearch = "/api/v1/user/estate/estate/index";
  62. //加入房产的单元校验
  63. static const apiEstateUnitCheck = "/api/v1/user/estate/unit-user/join-check";
  64. //加入房产单元
  65. static const apiEstateUnitJoin = "/api/v1/user/estate/unit-user/join";
  66. // =========================== Form ↓=========================================
  67. // 在线表单的可申请列表
  68. static const apiFormList = "/api/v1/user/online-form/form/index";
  69. // 在线表单的已批准的申请
  70. static const apiFormApprovedList = "/api/v1/user/online-form/approved/index";
  71. // 在线表单的已拒绝的申请
  72. static const apiFormRejectedList = "/api/v1/user/online-form/rejected/index";
  73. // 在线表单的已提交的申请
  74. static const apiFormSubmittedList = "/api/v1/user/online-form/submitted/index";
  75. //在线表单的选项列表
  76. static const apiFormOption = "/api/v1/user/online-form/form/options";
  77. //在线表单的提交,注意后面要拼接type
  78. static const apiFormSubmit = "/api/v1/user/online-form/apply/submit/";
  79. //在线表单的提交详情
  80. static const apiFormDetail = "/api/v1/user/online-form/apply/detail";
  81. // =========================== Facility ↓=========================================
  82. //可用的设施列表
  83. static const apiFacilityList = "/api/v1/user/facility/type/index";
  84. //指定设施在指定日期下的可申请详情
  85. static const apiFacilityDate = "/api/v1/user/facility/type/detail";
  86. //预定指定的设施指定的日期
  87. static const apiFacilityBook = "/api/v1/user/facility/booking/book";
  88. //当前已预定的设施列表
  89. static const apiFacilityActiveList = "/api/v1/user/facility/active/index";
  90. //当前已预定的押金列表
  91. static const apiFacilityDepositList = "/api/v1/user/facility/deposit/index";
  92. //当前已预定的历史记录
  93. static const apiFacilityHistoryList = "/api/v1/user/facility/history/index";
  94. //获取预约Booking的详情
  95. static const apiFacilityBookingDetail = "/api/v1/user/facility/booking/detail";
  96. // =========================== Payment ↓=========================================
  97. //可支付列表
  98. static const apiPaymentList = "/api/v1/user/payment/bill/index";
  99. // =========================== 其他 ↓=========================================
  100. //服务器时间
  101. static const apiServerTime = "/index.php/api/employee/extra/time";
  102. }