api_constants.dart 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. //网络请求相关Api常量
  2. class ApiConstants {
  3. //基础域名
  4. static const baseUrl = 'http://vietnam-dev.casualabour.com'; //测试环境
  5. //网络请求加密 Key
  6. static const encrypterKey = 'xxxx'; //加密Key
  7. // =========================== 用户相关 ↓=========================================
  8. // 酒店登录
  9. static const apiUserLogin = "/index.php/api/v1/hotel/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 apiHotelInfo = "/index.php/api/v1/hotel/info";
  16. //用户注册
  17. static const apiHotelRegister = "/index.php/api/v1/hotel/register";
  18. // =========================== 用工请求 ↓=========================================
  19. //筛选条件
  20. static const apiLabourRequestIndex = "/index.php/api/v1/hotel/lab-req/index";
  21. //用工列表
  22. static const apiLabourRequestList = "/index.php/api/v1/hotel/lab-req/table";
  23. //添加的选择条件
  24. static const apiLabourRequestAddOption = "/index.php/api/v1/hotel/lab-req/add-view";
  25. //添加用工请求
  26. static const apiLabourRequestAddSubmit = "/index.php/api/v1/hotel/lab-req/add-submit";
  27. //编辑的选项
  28. static const apiLabourRequestEditDetail = "/index.php/api/v1/hotel/lab-req/edit-view";
  29. //编辑的发布
  30. static const apiLabourRequestEditSubmit = "/index.php/api/v1/hotel/lab-req/edit-submit";
  31. //用工请求的审核状态工作流
  32. static const apiLabourRequestStateWorkFlow = "/index.php/api/v1/hotel/lab-req/status-view";
  33. //撤回用工请求
  34. static const apiLabourRequestRecall = "/index.php/api/v1/hotel/lab-req/recall";
  35. // =========================== 签到签出 ↓=========================================
  36. // 用户签到签出列表
  37. static const apiSignApplied = "/index.php/api/v1/hotel/sign/table";
  38. // 用户签到签出
  39. static const apiSignInOut = "/index.php/api/v1/hotel/sign/clock";
  40. }