api_constants.dart 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  1. //网络请求相关Api常量
  2. class ApiConstants {
  3. //当前服务器环境
  4. static const isServerRelease = false;
  5. //新加坡的域名
  6. static const sgBaseUrl = isServerRelease ? 'http://singapore.casualabour.com' : 'http://singapore-dev.casualabour.com';
  7. //英国的域名
  8. static const ukBaseUrl = isServerRelease ? 'https://uk.casualabour.com' : 'http://vietnam-dev.casualabour.com';
  9. //越南的域名
  10. static const vnBaseUrl = isServerRelease ? 'https://vietnam.casualabour.com' : 'http://vietnam-dev.casualabour.com';
  11. // =========================== 用户相关 ↓=========================================
  12. // 酒店登录
  13. static const apiUserLogin = "/index.php/api/v1/hotel/login";
  14. // 用户登出系统
  15. static const apiUserLogout = "/index.php/api/v1/hotel/logout";
  16. // 用户修改密码
  17. static const apiResetPassword = "/index.php/api/v1/hotel/reset";
  18. //获取用户的详情信息
  19. static const apiHotelInfo = "/index.php/api/v1/hotel/info";
  20. //用户注册
  21. static const apiHotelRegister = "/index.php/api/v1/hotel/register";
  22. //用户注销
  23. static const apiHotelDeactivate = "/index.php/api/v1/hotel/deactivate";
  24. // =========================== 用工请求 ↓=========================================
  25. //筛选条件
  26. static const apiLabourRequestIndex = "/index.php/api/v1/hotel/lab-req/index";
  27. //用工列表
  28. static const apiLabourRequestList = "/index.php/api/v1/hotel/lab-req/table";
  29. //添加的选择条件
  30. static const apiLabourRequestAddOption = "/index.php/api/v1/hotel/lab-req/add-view";
  31. //添加用工请求
  32. static const apiLabourRequestAddSubmit = "/index.php/api/v1/hotel/lab-req/add-submit";
  33. //编辑的选项
  34. static const apiLabourRequestEditDetail = "/index.php/api/v1/hotel/lab-req/edit-view";
  35. //编辑的发布
  36. static const apiLabourRequestEditSubmit = "/index.php/api/v1/hotel/lab-req/edit-submit";
  37. //用工请求的审核状态工作流
  38. static const apiLabourRequestStateWorkFlow = "/index.php/api/v1/hotel/lab-req/status-view";
  39. //撤回用工请求
  40. static const apiLabourRequestRecall = "/index.php/api/v1/hotel/lab-req/recall";
  41. // =========================== 工作列表 ↓=========================================
  42. // 工作列表首页选项
  43. static const apiJobListIndex = "/index.php/api/v1/hotel/job/index";
  44. // 工作列表首页列表
  45. static const apiJobListTable = "/index.php/api/v1/hotel/job/table";
  46. // 工作列表首页详情
  47. static const apiJobListDetail = "/index.php/api/v1/hotel/job/detail";
  48. // 工作已申请员工列表-工作的信息
  49. static const apiJobListAppliedJobInfo = "/index.php/api/v1/hotel/applied/index";
  50. // 工作已申请员工列表-员工列表
  51. static const apiJobListAppliedStaffList = "/index.php/api/v1/hotel/applied/table";
  52. // 工作已申请员工列表-添加员工查询全部员工
  53. static const apiJobListAppliedStaffSearch = "/index.php/api/v1/hotel/applied/staff-view";
  54. // 工作已申请员工列表-添加员工提交
  55. static const apiJobListAppliedStaffAdd = "/index.php/api/v1/hotel/applied/staff-submit";
  56. // 工作已申请员工列表-批量修改员工状态
  57. static const apiJobListAppliedStaffBatchEdit = "/index.php/api/v1/hotel/applied/batch-edit";
  58. // 工作已申请员工列表-编辑员工信息的详情数据
  59. static const apiJobListAppliedStaffEditIndex = "/index.php/api/v1/hotel/applied/edit-view";
  60. // 工作已申请员工列表-编辑员工信息提交
  61. static const apiJobListAppliedStaffEditSubmit = "/index.php/api/v1/hotel/applied/edit-submit";
  62. // 工作已申请员工列表-评价员工的详情数据
  63. static const apiJobListAppliedStaffReviewIndex = "/index.php/api/v1/hotel/applied/remark-view";
  64. // 工作已申请员工列表-评价员工的提交
  65. static const apiJobListAppliedStaffReviewSubmit = "/index.php/api/v1/hotel/applied/remark-submit";
  66. // 工作已申请员工列表-评价员工的提交
  67. static const apiJobListAppliedStaffStateWorkflow = "/index.php/api/v1/hotel/applied/status-view";
  68. // 工作已申请员工列表- 提交指定员工们到审核流程
  69. static const apiJobListAppliedApprove = "/index.php/api/v1/hotel/applied/approve";
  70. //员工详情
  71. static const apiJobListStaffDetail = "/index.php/api/v1/hotel/member/detail";
  72. //员工做工历史记录
  73. static const apiJobListStaffLabourHistory = "/index.php/api/v1/hotel/member/history";
  74. //员工做工评价记录
  75. static const apiJobListStaffRemarkHistory = "/index.php/api/v1/hotel/member/remarks";
  76. // =========================== 签到签出 ↓=========================================
  77. // 用户签到签出列表
  78. static const apiSignApplied = "/index.php/api/v1/hotel/sign/table";
  79. // 用户签到签出
  80. static const apiSignInOut = "/index.php/api/v1/hotel/sign/clock";
  81. // =========================== 新加坡用工 ↓=========================================
  82. // 工作标题列表
  83. static const apiJobTitleListSG = "/index.php/api/v1/hotel/title/table";
  84. // 添加工作标题的选项数据
  85. static const apiJobTitleAddIndexSG = "/index.php/api/v1/hotel/title/add-view";
  86. // 添加工作标题提交
  87. static const apiJobTitleAddSubmitSG = "/index.php/api/v1/hotel/title/add-submit";
  88. // 编辑工作标题的选项数据
  89. static const apiJobTitleEditIndexSG = "/index.php/api/v1/hotel/title/edit-view";
  90. // 编辑工作标题提交
  91. static const apiJobTitleEditSubmitSG = "/index.php/api/v1/hotel/title/edit-submit";
  92. // 删除工作标题
  93. static const apiJobTitleDeleteSG = "/index.php/api/v1/hotel/title/delete";
  94. // 工作模板列表
  95. static const apiJobTemplateListSG = "/index.php/api/v1/hotel/temp/table";
  96. // 添加工作模板选项数据
  97. static const apiJobTemplateAddIndexSG = "/index.php/api/v1/hotel/temp/add-view";
  98. // 添加工作模板选提交
  99. static const apiJobTemplateAddSubmitSG = "/index.php/api/v1/hotel/temp/add-submit";
  100. // 编辑工作模板选项数据
  101. static const apiJobTemplateEditIndexSG = "/index.php/api/v1/hotel/temp/edit-view";
  102. // 编辑工作模板提交
  103. static const apiJobTemplateEditSubmitSG = "/index.php/api/v1/hotel/temp/edit-submit";
  104. // 删除工作模板
  105. static const apiJobTemplateDeleteSG = "/index.php/api/v1/hotel/temp/delete";
  106. //用工请求的列表 Option
  107. static const apiLabourRequestOptionSG = "/index.php/api/v2/hotel/lab-req/index";
  108. //用工请求的列表 Table
  109. static const apiLabourRequestTableSG = "/index.php/api/v2/hotel/lab-req/table";
  110. //用工请求的添加页面选项数据
  111. static const apiLabourRequestAddOptionSG = "/index.php/api/v2/hotel/lab-req/add-view";
  112. //用工请求的添加提交
  113. static const apiLabourRequestAddSubmitSG = "/index.php/api/v2/hotel/lab-req/add-submit";
  114. //用工请求的编辑页面详情数据
  115. static const apiLabourRequestEditDetailSG = "/index.php/api/v2/hotel/lab-req/edit-view";
  116. //用工请求的编辑页面提交
  117. static const apiLabourRequestEditSubmitSG = "/index.php/api/v2/hotel/lab-req/edit-submit";
  118. //用工请求的撤回
  119. static const apiLabourRequestRecallSG = "/index.php/api/v2/hotel/lab-req/recall";
  120. //新加坡的用工请求删除
  121. static const apiLabourRequestDelete = "/index.php/api/v2/hotel/lab-req/destroy";
  122. //新加坡工作详情的审核流列表
  123. static const apiLabourRequestWorkflowSG = "/index.php/api/v2/hotel/lab-req/status-view";
  124. //用工请求的查询选项(Job List)
  125. static const apiJobListIndexSG = "/index.php/api/v1/hotel/job/index";
  126. //用工请求的查询列表(Job List)
  127. static const apiJobListTableSG = "/index.php/api/v1/hotel/job/table";
  128. //用工请求的编辑详情(Job List)
  129. static const apiJobListEditIndexSG = "/index.php/api/v1/hotel/job/edit-view";
  130. //用工请求的编辑提交(Job List)
  131. static const apiJobListEditSubmitSG = "/index.php/api/v1/hotel/job/edit-submit";
  132. //用工请求的取消(Job List)
  133. static const apiJobListCancelSG = "/index.php/api/v1/hotel/job/cancel";
  134. //用工请求的删除(Job List)
  135. static const apiJobListDeleteSG = "/index.php/api/v1/hotel/job/delete";
  136. //用工请求的考勤确认(Job List)现在是发送到 Attendance Review 列表中
  137. static const apiJobAppliedApproveSG = "/index.php/api/v2/hotel/applied/batch-approve";
  138. // =========================== 新加坡工作相关 ↓=========================================
  139. //新加坡工作已申请的选项
  140. static const apiJobAppliedIndexSG = "/index.php/api/v1/hotel/applied/index";
  141. //新加坡工作已申请的列表
  142. static const apiJobAppliedListSG = "/index.php/api/v1/hotel/applied/table";
  143. //新加坡工作已申请的列表-添加员工搜索
  144. static const apiJobAppliedSearchStaffSG = "/index.php/api/v1/hotel/applied/staff-view";
  145. //新加坡工作已申请的列表-添加员工提交
  146. static const apiJobAppliedAddStaffSubmitSG = "/index.php/api/v1/hotel/applied/staff-submit";
  147. //新加坡工作已申请的列表-批量修改
  148. static const apiJobAppliedBatchEditSG = "/index.php/api/v1/hotel/applied/batch-edit";
  149. //新加坡工作已申请的列表-单独编辑的详情
  150. static const apiJobAppliedEditViewSG = "/index.php/api/v1/hotel/applied/edit-view";
  151. //新加坡工作已申请的列表-提交编辑
  152. static const apiJobAppliedEditSubmitSG = "/index.php/api/v1/hotel/applied/edit-submit";
  153. //新加坡工作已申请的列表-修改状态
  154. static const apiJobAppliedChangeStatusSG = "/index.php/api/v1/hotel/applied/edit-status";
  155. //新加坡工作已申请的列表-评价展示
  156. static const apiJobAppliedRemarkViewSG = "/index.php/api/v1/hotel/applied/remark-view";
  157. //新加坡工作已申请的列表-提交评价
  158. static const apiJobAppliedRemarkSubmitSG = "/index.php/api/v1/hotel/applied/remark-submit";
  159. //员工详情
  160. static const apiJobListStaffDetailSG = "/index.php/api/v1/hotel/member/detail";
  161. //员工做工历史记录
  162. static const apiJobListStaffLabourHistorySG = "/index.php/api/v1/hotel/member/history";
  163. //员工做工评价顶部数据
  164. static const apiJobListStaffReviewHeadSG = "/index.php/api/v1/hotel/member/review";
  165. //员工做工评价列表
  166. static const apiJobListStaffReViewHistorySG = "/index.php/api/v1/hotel/member/review/table";
  167. //员工修改记录-选项
  168. static const apiReviseIndexSG = "/index.php/api/v1/hotel/revise/index";
  169. //员工修改记录-列表
  170. static const apiReviseListSG = "/index.php/api/v1/hotel/revise/table";
  171. //给指定的申请记录添加 Revise 数据(详情)
  172. static const apiAddReviseViewSG = "/index.php/api/v1/hotel/revise/add-view";
  173. //给指定的申请记录添加 Revise 数据(提交)
  174. static const apiAddReviseSubmitSG = "/index.php/api/v1/hotel/revise/add-submit";
  175. //给指定的申请记录编辑 Revise 数据(详情)
  176. static const apiEditReviseViewSG = "/index.php/api/v1/hotel/revise/edit-view";
  177. //给指定的申请记录编辑 Revise 数据(提交)
  178. static const apiEditReviseSubmitSG = "/index.php/api/v1/hotel/revise/edit-submit";
  179. //撤回指定的 Revise 数据
  180. static const apiRecallReviseSG = "/index.php/api/v1/hotel/revise/recall";
  181. //删除指定的 Revise 数据
  182. static const apiDeleteReviseSG = "/index.php/api/v1/hotel/revise/delete";
  183. //Revise 的操作日志
  184. static const apiReviseLogListSG = "/index.php/api/v1/hotel/revise/logs";
  185. // =========================== 报表与其他 ↓=========================================
  186. // 设备列表
  187. static const apiDeviceList = "/index.php/api/v1/hotel/device/table";
  188. //财务报表
  189. static const apiReportFiance = "/index.php/api/v1/hotel/report/finance";
  190. //用工报表
  191. static const apiReportLabour = "/index.php/api/v1/hotel/report/casual";
  192. //员工申请报表
  193. static const apiReportStaffRequest = "/index.php/api/v1/hotel/report/staff";
  194. // =========================== 越南的审核 ↓=========================================
  195. // 用工审核选项
  196. static const apiLabourReviewIndex = "/index.php/api/v1/hotel/lab-review/index";
  197. // 用工审核列表
  198. static const apiLabourReviewTable = "/index.php/api/v1/hotel/lab-review/table";
  199. // 用工审核的编辑详情
  200. static const apiLabourReviewDetail = "/index.php/api/v1/hotel/lab-review/edit-view";
  201. // 用工审核的编辑提交
  202. static const apiLabourReviewEdit = "/index.php/api/v1/hotel/lab-review/edit-submit";
  203. // 用工审核的审核流程列表
  204. static const apiLabourReviewStatusView = "/index.php/api/v1/hotel/lab-review/status-view";
  205. // 用工审核的批量同意
  206. static const apiLabourReviewApprove = "/index.php/api/v1/hotel/lab-review/approve";
  207. // 用工审核的批量拒绝
  208. static const apiLabourReviewReject = "/index.php/api/v1/hotel/lab-review/reject";
  209. // 考勤的审核列表
  210. static const apiAttendanceReviewTable = "/index.php/api/v1/hotel/att-review/table";
  211. // 考勤的批量同意
  212. static const apiAttendanceReviewApprove = "/index.php/api/v1/hotel/att-review/approve";
  213. // 考勤的批量拒绝
  214. static const apiAttendanceReviewReject = "/index.php/api/v1/hotel/att-review/reject";
  215. // =================================== 新加坡 V2 ↓ ===================================
  216. //登录
  217. static const apiAuthLoginV2 = "/index.php/api/v2/hotel/login";
  218. //首页信息
  219. static const apiHotelInfoV2 = "/index.php/api/v2/hotel/info";
  220. //中介列表Option
  221. static const apiAgencyOption = "/index.php/api/v2/hotel/agency/index";
  222. //中介列表
  223. static const apiAgencyTable = "/index.php/api/v2/hotel/agency/table";
  224. //中介的删除
  225. static const apiAgencyDelete = "/index.php/api/v2/hotel/agency/destroy";
  226. //添加中介
  227. static const apiAgencyAdd = "/index.php/api/v2/hotel/agency/add-submit";
  228. //中介详情
  229. static const apiAgencyDetail = "/index.php/api/v2/hotel/agency/edit-view";
  230. //编辑中介
  231. static const apiAgencyEdit = "/index.php/api/v2/hotel/agency/edit-submit";
  232. //中介职位的列表
  233. static const apiAgencyPositionTable = "/index.php/api/v2/hotel/position/table";
  234. //中介职位的添加
  235. static const apiAgencyPositionAdd = "/index.php/api/v2/hotel/position/add-submit";
  236. //中介职位的编辑
  237. static const apiAgencyPositionEdit = "/index.php/api/v2/hotel/position/edit-submit";
  238. //中介职位的删除
  239. static const apiAgencyPositionDelete = "/index.php/api/v2/hotel/position/destroy";
  240. //中介合同列表Option
  241. static const apiContractOption = "/index.php/api/v2/hotel/contract/index";
  242. //中介合同列表
  243. static const apiContractTable = "/index.php/api/v2/hotel/contract/table";
  244. //中介合同添加Option
  245. static const apiContractAddOption = "/index.php/api/v2/hotel/contract/add-view";
  246. //中介合同添加的提交
  247. static const apiContractAddSubmit = "/index.php/api/v2/hotel/contract/add-submit";
  248. //中介合同的详情
  249. static const apiContractDetail = "/index.php/api/v2/hotel/contract/edit-view";
  250. //中介合同的编辑提交
  251. static const apiContractEditSubmit = "/index.php/api/v2/hotel/contract/edit-submit";
  252. //中介合同的renew操作
  253. static const apiContractRenew = "/index.php/api/v2/hotel/contract/renew";
  254. //合同关联职位 Option
  255. static const apiContractPositionOption = "/index.php/api/v2/hotel/contract-position/index";
  256. //合同关联职位 Table
  257. static const apiContractPositionTable = "/index.php/api/v2/hotel/contract-position/table";
  258. //合同关联职位 添加
  259. static const apiContractPositionAddOption = "/index.php/api/v2/hotel/contract-position/add-view";
  260. //合同关联职位 添加提交
  261. static const apiContractPositionAddSubmit = "/index.php/api/v2/hotel/contract-position/add-submit";
  262. //合同关联职位 详情
  263. static const apiContractPositionRateDetail = "/index.php/api/v2/hotel/contract-rate/setting-view";
  264. //合同关联职位 编辑提交
  265. static const apiContractPositionRateEditSubmit = "/index.php/api/v2/hotel/contract-rate/setting-submit";
  266. //中介合同时薪列表
  267. static const apiContractRateTable = "/index.php/api/v2/hotel/contract-rate/table";
  268. //中介合同时薪 添加指定日期Option
  269. static const apiContractRateSpecificOption = "/index.php/api/v2/hotel/contract-rate/special-view";
  270. //中介合同时薪 添加指定日期 Submit
  271. static const apiContractRateSpecificAddSubmit = "/index.php/api/v2/hotel/contract-rate/special-submit";
  272. //中介合同时薪 修改金额
  273. static const apiContractRateAmountEdit = "/index.php/api/v2/hotel/contract-rate/edit-amount";
  274. //中介合同时薪 记录删除
  275. static const apiContractRateDelete = "/index.php/api/v2/hotel/contract-rate/destroy";
  276. //新加坡 V2 Labour Request Review 选项
  277. static const apiLabourRequestReviewOptionSG = "/index.php/api/v2/hotel/lab-review/index";
  278. //新加坡 V2 Labour Request Review 列表
  279. static const apiLabourRequestReviewTableSG = "/index.php/api/v2/hotel/lab-review/table";
  280. //新加坡 V2 Labour Request Review 批量批准
  281. static const apiLabourRequestReviewApproveSG = "/index.php/api/v2/hotel/lab-review/batch-approve";
  282. //新加坡 V2 Labour Request Review 批量拒绝
  283. static const apiLabourRequestReviewRejectSG = "/index.php/api/v2/hotel/lab-review/batch-reject";
  284. //新加坡 V2 Labour Request Review 编辑提交
  285. static const apiLabourRequestReviewEditSubmitSG = "/index.php/api/v2/hotel/lab-review/edit-submit";
  286. //新加坡 V2 Job Attendance Review 选项
  287. static const apiAttendanceReviewOptionSG = "/index.php/api/v2/hotel/att-review/index";
  288. //新加坡 V2 Job Attendance Review 列表
  289. static const apiAttendanceReviewTableSG = "/index.php/api/v2/hotel/att-review/table";
  290. //新加坡 V2 Attendance Review 批量批准
  291. static const apiAttendanceReviewApproveSG = "/index.php/api/v2/hotel/att-review/batch-approve";
  292. //新加坡 V2 Attendance Review 批量拒绝
  293. static const apiAttendanceReviewRejectSG = "/index.php/api/v2/hotel/att-review/batch-reject";
  294. //新加坡 V2 Attendance Review 状态流
  295. static const apiAttendanceReviewWorkflowSG = "/index.php/api/v2/hotel/att-review/status-view";
  296. //新加坡 V2 Dashboard 的列表
  297. static const apiDashboardTableSG = "/index.php/api/v2/hotel/home";
  298. }