api_constants.dart 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. //网络请求相关Api常量
  2. class ApiConstants {
  3. //当前服务器环境
  4. static const isServerRelease = true;
  5. //越南的域名
  6. static const baseUrl = isServerRelease ? 'https://vietnam.casualabour.com' : 'http://vietnam-dev.casualabour.com';
  7. //新加坡的域名
  8. static const sgBaseUrl = isServerRelease ? 'https://singapore.casualabour.com' : 'http://singapore-dev.casualabour.com';
  9. // =========================== 用户相关 ↓=========================================
  10. // 酒店登录
  11. static const apiUserLogin = "/index.php/api/v1/hotel/login";
  12. // 用户登出系统
  13. static const apiUserLogout = "/index.php/api/v1/hotel/logout";
  14. // 用户修改密码
  15. static const apiResetPassword = "/index.php/api/v1/hotel/reset";
  16. //获取用户的详情信息
  17. static const apiHotelInfo = "/index.php/api/v1/hotel/info";
  18. //用户注册
  19. static const apiHotelRegister = "/index.php/api/v1/hotel/register";
  20. //用户注销
  21. static const apiHotelDeactivate = "/index.php/api/v1/hotel/deactivate";
  22. // =========================== 用工请求 ↓=========================================
  23. //筛选条件
  24. static const apiLabourRequestIndex = "/index.php/api/v1/hotel/lab-req/index";
  25. //用工列表
  26. static const apiLabourRequestList = "/index.php/api/v1/hotel/lab-req/table";
  27. //添加的选择条件
  28. static const apiLabourRequestAddOption = "/index.php/api/v1/hotel/lab-req/add-view";
  29. //添加用工请求
  30. static const apiLabourRequestAddSubmit = "/index.php/api/v1/hotel/lab-req/add-submit";
  31. //编辑的选项
  32. static const apiLabourRequestEditDetail = "/index.php/api/v1/hotel/lab-req/edit-view";
  33. //编辑的发布
  34. static const apiLabourRequestEditSubmit = "/index.php/api/v1/hotel/lab-req/edit-submit";
  35. //用工请求的审核状态工作流
  36. static const apiLabourRequestStateWorkFlow = "/index.php/api/v1/hotel/lab-req/status-view";
  37. //撤回用工请求
  38. static const apiLabourRequestRecall = "/index.php/api/v1/hotel/lab-req/recall";
  39. // =========================== 工作列表 ↓=========================================
  40. // 工作列表首页选项
  41. static const apiJobListIndex = "/index.php/api/v1/hotel/job/index";
  42. // 工作列表首页列表
  43. static const apiJobListTable = "/index.php/api/v1/hotel/job/table";
  44. // 工作列表首页详情
  45. static const apiJobListDetail = "/index.php/api/v1/hotel/job/detail";
  46. // 工作已申请员工列表-工作的信息
  47. static const apiJobListAppliedJobInfo = "/index.php/api/v1/hotel/applied/index";
  48. // 工作已申请员工列表-员工列表
  49. static const apiJobListAppliedStaffList = "/index.php/api/v1/hotel/applied/table";
  50. // 工作已申请员工列表-添加员工查询全部员工
  51. static const apiJobListAppliedStaffSearch = "/index.php/api/v1/hotel/applied/staff-view";
  52. // 工作已申请员工列表-添加员工提交
  53. static const apiJobListAppliedStaffAdd = "/index.php/api/v1/hotel/applied/staff-submit";
  54. // 工作已申请员工列表-批量修改员工状态
  55. static const apiJobListAppliedStaffBatchEdit = "/index.php/api/v1/hotel/applied/batch-edit";
  56. // 工作已申请员工列表-编辑员工信息的详情数据
  57. static const apiJobListAppliedStaffEditIndex = "/index.php/api/v1/hotel/applied/edit-view";
  58. // 工作已申请员工列表-编辑员工信息提交
  59. static const apiJobListAppliedStaffEditSubmit = "/index.php/api/v1/hotel/applied/edit-submit";
  60. // 工作已申请员工列表-评价员工的详情数据
  61. static const apiJobListAppliedStaffReviewIndex = "/index.php/api/v1/hotel/applied/remark-view";
  62. // 工作已申请员工列表-评价员工的提交
  63. static const apiJobListAppliedStaffReviewSubmit = "/index.php/api/v1/hotel/applied/remark-submit";
  64. // 工作已申请员工列表-评价员工的提交
  65. static const apiJobListAppliedStaffStateWorkflow = "/index.php/api/v1/hotel/applied/status-view";
  66. // 工作已申请员工列表- 提交指定员工们到审核流程
  67. static const apiJobListAppliedApprove = "/index.php/api/v1/hotel/applied/approve";
  68. //员工详情
  69. static const apiJobListStaffDetail = "/index.php/api/v1/hotel/member/detail";
  70. //员工做工历史记录
  71. static const apiJobListStaffLabourHistory = "/index.php/api/v1/hotel/member/history";
  72. //员工做工评价记录
  73. static const apiJobListStaffRemarkHistory = "/index.php/api/v1/hotel/member/remarks";
  74. // =========================== 签到签出 ↓=========================================
  75. // 用户签到签出列表
  76. static const apiSignApplied = "/index.php/api/v1/hotel/sign/table";
  77. // 用户签到签出
  78. static const apiSignInOut = "/index.php/api/v1/hotel/sign/clock";
  79. }