api_constants.dart 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725
  1. //网络请求相关Api常量
  2. class ApiConstants {
  3. //当前服务器环境
  4. static const isServerRelease = false;
  5. //新加坡的域名
  6. static const sgBaseUrl = isServerRelease ? 'https://casualabour.com/' : 'http://singapore-dev.casualabour.com';
  7. //英国的域名
  8. static const ukBaseUrl = isServerRelease ? 'https://uk.casualabour.com' : 'http://uk-dev.casualabour.com';
  9. //越南的域名
  10. static const vnBaseUrl = isServerRelease ? 'https://vietnam.casualabour.com' : 'http://vietnam-dev.casualabour.com';
  11. //马来的域名
  12. static const msBaseUrl = isServerRelease ? 'https://malaysia.casualabour.com' : 'http://malaysia-dev.casualabour.com';
  13. //荷兰的域名
  14. static const nlBaseUrl = isServerRelease ? 'https://netherlands.casualabour.com' : 'http://netherlands-dev.casualabour.com';
  15. //泰国的域名
  16. static const thBaseUrl = isServerRelease ? 'https://thailand.casualabour.com' : 'http://thailand-dev.casualabour.com';
  17. // =========================== 用户相关 ↓=========================================
  18. // 酒店登录
  19. static const apiUserLogin = "/index.php/api/v1/hotel/login";
  20. // 用户登出系统
  21. static const apiUserLogout = "/index.php/api/v1/hotel/logout";
  22. // 用户修改密码
  23. static const apiResetPassword = "/index.php/api/v1/hotel/reset";
  24. //获取用户的详情信息
  25. static const apiHotelInfo = "/index.php/api/v1/hotel/info";
  26. //用户注册
  27. static const apiHotelRegister = "/index.php/api/v1/hotel/register";
  28. //用户注销
  29. static const apiHotelDeactivate = "/index.php/api/v1/hotel/deactivate";
  30. // =========================== 用工请求 ↓=========================================
  31. //筛选条件
  32. static const apiLabourRequestIndex = "/index.php/api/v1/hotel/lab-req/index";
  33. //用工列表
  34. static const apiLabourRequestList = "/index.php/api/v1/hotel/lab-req/table";
  35. //添加的选择条件
  36. static const apiLabourRequestAddOption = "/index.php/api/v1/hotel/lab-req/add-view";
  37. //添加用工请求
  38. static const apiLabourRequestAddSubmit = "/index.php/api/v1/hotel/lab-req/add-submit";
  39. //编辑的选项
  40. static const apiLabourRequestEditDetail = "/index.php/api/v1/hotel/lab-req/edit-view";
  41. //编辑的发布
  42. static const apiLabourRequestEditSubmit = "/index.php/api/v1/hotel/lab-req/edit-submit";
  43. //用工请求的审核状态工作流
  44. static const apiLabourRequestStateWorkFlow = "/index.php/api/v1/hotel/lab-req/status-view";
  45. //撤回用工请求
  46. static const apiLabourRequestRecall = "/index.php/api/v1/hotel/lab-req/recall";
  47. // =========================== 工作列表 ↓=========================================
  48. // 工作列表首页选项
  49. static const apiJobListIndex = "/index.php/api/v1/hotel/job/index";
  50. // 工作列表首页列表
  51. static const apiJobListTable = "/index.php/api/v1/hotel/job/table";
  52. // 工作列表首页详情
  53. static const apiJobListDetail = "/index.php/api/v1/hotel/job/detail";
  54. // 工作已申请员工列表-工作的信息
  55. static const apiJobListAppliedJobInfo = "/index.php/api/v1/hotel/applied/index";
  56. // 工作已申请员工列表-员工列表
  57. static const apiJobListAppliedStaffList = "/index.php/api/v1/hotel/applied/table";
  58. // 工作已申请员工列表-添加员工查询全部员工
  59. static const apiJobListAppliedStaffSearch = "/index.php/api/v1/hotel/applied/staff-view";
  60. // 工作已申请员工列表-添加员工提交
  61. static const apiJobListAppliedStaffAdd = "/index.php/api/v1/hotel/applied/staff-submit";
  62. // 工作已申请员工列表-批量修改员工状态
  63. static const apiJobListAppliedStaffBatchEdit = "/index.php/api/v1/hotel/applied/batch-edit";
  64. // 工作已申请员工列表-编辑员工信息的详情数据
  65. static const apiJobListAppliedStaffEditIndex = "/index.php/api/v1/hotel/applied/edit-view";
  66. // 工作已申请员工列表-编辑员工信息提交
  67. static const apiJobListAppliedStaffEditSubmit = "/index.php/api/v1/hotel/applied/edit-submit";
  68. // 工作已申请员工列表-评价员工的详情数据
  69. static const apiJobListAppliedStaffReviewIndex = "/index.php/api/v1/hotel/applied/remark-view";
  70. // 工作已申请员工列表-评价员工的提交
  71. static const apiJobListAppliedStaffReviewSubmit = "/index.php/api/v1/hotel/applied/remark-submit";
  72. // 工作已申请员工列表-评价员工的提交
  73. static const apiJobListAppliedStaffStateWorkflow = "/index.php/api/v1/hotel/applied/status-view";
  74. // 工作已申请员工列表- 提交指定员工们到审核流程
  75. static const apiJobListAppliedApprove = "/index.php/api/v1/hotel/applied/approve";
  76. //员工详情
  77. static const apiJobListStaffDetail = "/index.php/api/v1/hotel/member/detail";
  78. //员工做工历史记录
  79. static const apiJobListStaffLabourHistory = "/index.php/api/v1/hotel/member/history";
  80. //员工做工评价记录
  81. static const apiJobListStaffRemarkHistory = "/index.php/api/v1/hotel/member/remarks";
  82. // =========================== 签到签出 ↓=========================================
  83. // 用户签到签出列表
  84. static const apiSignApplied = "/index.php/api/v1/hotel/sign/table";
  85. // 用户签到签出
  86. static const apiSignInOut = "/index.php/api/v1/hotel/sign/clock";
  87. // =========================== 新加坡用工 ↓=========================================
  88. // 工作标题列表
  89. static const apiJobTitleListSG = "/index.php/api/v1/hotel/title/table";
  90. // 添加工作标题的选项数据
  91. static const apiJobTitleAddIndexSG = "/index.php/api/v1/hotel/title/add-view";
  92. // 添加工作标题提交
  93. static const apiJobTitleAddSubmitSG = "/index.php/api/v1/hotel/title/add-submit";
  94. // 编辑工作标题的选项数据
  95. static const apiJobTitleEditIndexSG = "/index.php/api/v1/hotel/title/edit-view";
  96. // 编辑工作标题提交
  97. static const apiJobTitleEditSubmitSG = "/index.php/api/v1/hotel/title/edit-submit";
  98. // 删除工作标题
  99. static const apiJobTitleDeleteSG = "/index.php/api/v1/hotel/title/delete";
  100. // 工作模板列表
  101. static const apiJobTemplateListSG = "/index.php/api/v1/hotel/temp/table";
  102. // 添加工作模板选项数据
  103. static const apiJobTemplateAddIndexSG = "/index.php/api/v1/hotel/temp/add-view";
  104. // 添加工作模板选提交
  105. static const apiJobTemplateAddSubmitSG = "/index.php/api/v1/hotel/temp/add-submit";
  106. // 编辑工作模板选项数据
  107. static const apiJobTemplateEditIndexSG = "/index.php/api/v1/hotel/temp/edit-view";
  108. // 编辑工作模板提交
  109. static const apiJobTemplateEditSubmitSG = "/index.php/api/v1/hotel/temp/edit-submit";
  110. // 删除工作模板
  111. static const apiJobTemplateDeleteSG = "/index.php/api/v1/hotel/temp/delete";
  112. //用工请求的列表 Option
  113. static const apiLabourRequestOptionSG = "/index.php/api/v2/hotel/lab-req/index";
  114. //用工请求的列表 Table
  115. static const apiLabourRequestTableSG = "/index.php/api/v2/hotel/lab-req/table";
  116. //用工请求的添加页面选项数据
  117. static const apiLabourRequestAddOptionSG = "/index.php/api/v2/hotel/lab-req/add-view";
  118. //用工请求的添加提交
  119. static const apiLabourRequestAddSubmitSG = "/index.php/api/v2/hotel/lab-req/add-submit";
  120. //用工请求的编辑页面详情数据
  121. static const apiLabourRequestEditDetailSG = "/index.php/api/v2/hotel/lab-req/edit-view";
  122. //用工请求的编辑页面提交
  123. static const apiLabourRequestEditSubmitSG = "/index.php/api/v2/hotel/lab-req/edit-submit";
  124. //用工请求的撤回
  125. static const apiLabourRequestRecallSG = "/index.php/api/v2/hotel/lab-req/recall";
  126. //新加坡的用工请求删除
  127. static const apiLabourRequestDelete = "/index.php/api/v2/hotel/lab-req/destroy";
  128. //新加坡工作详情的审核流列表
  129. static const apiLabourRequestWorkflowSG = "/index.php/api/v2/hotel/lab-req/status-view";
  130. //用工请求的查询选项(Job List)
  131. static const apiJobListIndexSG = "/index.php/api/v1/hotel/job/index";
  132. //用工请求的查询列表(Job List)
  133. static const apiJobListTableSG = "/index.php/api/v1/hotel/job/table";
  134. //用工请求的编辑详情(Job List)
  135. static const apiJobListEditIndexSG = "/index.php/api/v1/hotel/job/edit-view";
  136. //用工请求的编辑提交(Job List)
  137. static const apiJobListEditSubmitSG = "/index.php/api/v1/hotel/job/edit-submit";
  138. //用工请求的取消(Job List)
  139. static const apiJobListCancelSG = "/index.php/api/v1/hotel/job/cancel";
  140. //用工请求的删除(Job List)
  141. static const apiJobListDeleteSG = "/index.php/api/v1/hotel/job/delete";
  142. //用工请求的考勤确认(Job List)现在是发送到 Attendance Review 列表中
  143. static const apiJobAppliedApproveSG = "/index.php/api/v2/hotel/applied/batch-approve";
  144. // =========================== 新加坡工作相关 ↓=========================================
  145. //新加坡工作已申请的选项
  146. static const apiJobAppliedIndexSG = "/index.php/api/v1/hotel/applied/index";
  147. //新加坡工作已申请的列表
  148. static const apiJobAppliedListSG = "/index.php/api/v1/hotel/applied/table";
  149. //新加坡工作已申请的列表-添加员工搜索
  150. static const apiJobAppliedSearchStaffSG = "/index.php/api/v1/hotel/applied/staff-view";
  151. //新加坡工作已申请的列表-添加员工提交
  152. static const apiJobAppliedAddStaffSubmitSG = "/index.php/api/v1/hotel/applied/staff-submit";
  153. //新加坡工作已申请的列表-批量修改
  154. static const apiJobAppliedBatchEditSG = "/index.php/api/v1/hotel/applied/batch-edit";
  155. //新加坡工作已申请的列表-单独编辑的详情
  156. static const apiJobAppliedEditViewSG = "/index.php/api/v1/hotel/applied/edit-view";
  157. //新加坡工作已申请的列表-提交编辑
  158. static const apiJobAppliedEditSubmitSG = "/index.php/api/v1/hotel/applied/edit-submit";
  159. //新加坡工作已申请的列表-修改状态
  160. static const apiJobAppliedChangeStatusSG = "/index.php/api/v1/hotel/applied/edit-status";
  161. //新加坡工作已申请的列表-评价展示
  162. static const apiJobAppliedRemarkViewSG = "/index.php/api/v1/hotel/applied/remark-view";
  163. //新加坡工作已申请的列表-提交评价
  164. static const apiJobAppliedRemarkSubmitSG = "/index.php/api/v1/hotel/applied/remark-submit";
  165. //员工详情
  166. static const apiJobListStaffDetailSG = "/index.php/api/v1/hotel/member/detail";
  167. //员工做工历史记录
  168. static const apiJobListStaffLabourHistorySG = "/index.php/api/v1/hotel/member/history";
  169. //员工做工评价顶部数据
  170. static const apiJobListStaffReviewHeadSG = "/index.php/api/v1/hotel/member/review";
  171. //员工做工评价列表
  172. static const apiJobListStaffReViewHistorySG = "/index.php/api/v1/hotel/member/review/table";
  173. //员工修改记录-选项
  174. static const apiReviseIndexSG = "/index.php/api/v1/hotel/revise/index";
  175. //员工修改记录-列表
  176. static const apiReviseListSG = "/index.php/api/v1/hotel/revise/table";
  177. //给指定的申请记录添加 Revise 数据(详情)
  178. static const apiAddReviseViewSG = "/index.php/api/v1/hotel/revise/add-view";
  179. //给指定的申请记录添加 Revise 数据(提交)
  180. static const apiAddReviseSubmitSG = "/index.php/api/v1/hotel/revise/add-submit";
  181. //给指定的申请记录编辑 Revise 数据(详情)
  182. static const apiEditReviseViewSG = "/index.php/api/v1/hotel/revise/edit-view";
  183. //给指定的申请记录编辑 Revise 数据(提交)
  184. static const apiEditReviseSubmitSG = "/index.php/api/v1/hotel/revise/edit-submit";
  185. //撤回指定的 Revise 数据
  186. static const apiRecallReviseSG = "/index.php/api/v1/hotel/revise/recall";
  187. //删除指定的 Revise 数据
  188. static const apiDeleteReviseSG = "/index.php/api/v1/hotel/revise/delete";
  189. //Revise 的操作日志
  190. static const apiReviseLogListSG = "/index.php/api/v1/hotel/revise/logs";
  191. // =========================== 英国特有的一些接口 ↓=========================================
  192. // 添加工作模板 获取 工作模板 和 证书列表 和 交通工具 选项
  193. static const apiJobTemplateAddIndexUK = "/index.php/api/v1/hotel/temp/add-view";
  194. // 获取工作模板详情
  195. static const apiJobTemplateDetailUK = "/index.php/api/v1/hotel/temp/edit-view";
  196. // 工作详情中 根据所选模板 获取 工作标题
  197. static const apiJobTemplateTitleOptionsUK = "/index.php/api/v1/hotel/temp/show-template-title";
  198. // 选择工作标题后 获取该标题对应的模板数据
  199. static const apiJobTemplateDetailBySelectTitleUK = "/index.php/api/v1/hotel/temp/show-template-record";
  200. // labourrequest 快速复制工作
  201. static const apiLabourRequestQuickCopyUK = "/index.php/api/v1/hotel/lab-req/quick-copy";
  202. // 预选人列表
  203. static const apiLabourRequestPreSelectListUK = "/index.php/api/v1/hotel/prestaff/table";
  204. // 筛选的条件
  205. static const apiLabourRequestPreSelectIndexUK = "/index.php/api/v1/hotel/prestaff/index";
  206. // 预选人 -添加员工的列表
  207. static const apiLabourRequestPreSelectAddStaffListUK = "/index.php/api/v1/hotel/prestaff/staff-view";
  208. // 预选人 - 批量添加员工
  209. static const apiLabourRequestPreSelectAddBatchUK = "/index.php/api/v1/hotel/prestaff/staff-submit";
  210. // 预选人-删除员工
  211. static const apiLabourRequestPreSelectDeleteUK = "/index.php/api/v1/hotel/prestaff/delete";
  212. // labourequest - 根据模板id 显示模板数据
  213. static const apiLabourRequestTemplateShowUK = "/index.php/api/v1/hotel/lab-req/show-template";
  214. // labourequest-review 列表
  215. static const apiLabourRequestReViewListUK = "/index.php/api/v1/hotel/lab-req/review";
  216. // labourequest-review workflow的审核详情
  217. static const apiLabourRequestReViewWorkFlowDetailUK = "/index.php/api/v1/hotel/lab-req/review-workflow";
  218. // labourrequest-review 编辑提交
  219. static const apiLabourRequestReViewEditUK = "/index.php/api/v1/hotel/lab-req/review-submit";
  220. // labourrequest-review 批量审核(确认和拒绝)提交
  221. static const apiLabourRequestReViewBatchSubmitUK = "/index.php/api/v1/hotel/lab-req/review-batch";
  222. // applied 行业列表
  223. static const apiAppliedStaffIndustryListUK = "/index.php/api/v1/hotel/prestaff/industry";
  224. // applied - 根据行业id 获取工作标题列表
  225. static const apiAppliedStaffJobTitleListUK = "/index.php/api/v1/hotel/prestaff/show-job-title";
  226. // applied - 设置小费
  227. static const apiAppliedStaffBatchSetTipUK = "/index.php/api/v1/hotel/applied/batch-tips";
  228. // revise - 列表
  229. static const apiAppliedStaffReviseListUK = "/index.php/api/v1/hotel/revise/table";
  230. // revise - add 时的 详情页面
  231. static const apiAppliedStaffReviseAddUK = "/index.php/api/v1/hotel/revise/add-view";
  232. // revise - edit 时的 详情页面
  233. static const apiAppliedStaffReviseEditUK = "/index.php/api/v1/hotel/revise/edit-view";
  234. // revise 添加 提交
  235. static const apiAppliedStaffReviseAddSubmitUK = "/index.php/api/v1/hotel/revise/add-submit";
  236. // revise 编辑 提交
  237. static const apiAppliedStaffReviseEditSubmitUK = "/index.php/api/v1/hotel/revise/edit-submit";
  238. // revise recall
  239. static const apiAppliedStaffReviseRecallUK = "/index.php/api/v1/hotel/revise/recall";
  240. // revise delete
  241. static const apiAppliedStaffReviseDeleteUK = "/index.php/api/v1/hotel/revise/delete";
  242. // revise logs
  243. static const apiAppliedStaffReviseLogsUK = "/index.php/api/v1/hotel/revise/logs";
  244. // staff - set favourite
  245. static const apiAppliedStaffSetFavouriteUK = "/index.php/api/v1/hotel/member/favourite";
  246. // staff - detail
  247. static const apiStaffDetailUK = "/index.php/api/v1/hotel/member/detail-new";
  248. // staff - labour history
  249. static const apiStaffLabourHistoryUK = "/index.php/api/v1/hotel/member/history";
  250. // attentanceReview 列表
  251. static const apiAttendanceReviewTableUK = "/index.php/api/v1/hotel/applied/attn-review";
  252. // attentanceReview 批量审核/批量拒绝
  253. static const apiAttendanceReviewBatchSubmitUK = "/index.php/api/v1/hotel/applied/attn-batch";
  254. // attentanceReview 获取批注
  255. static const apiAttendanceReviewRemarksUK = "/index.php/api/v1/hotel/applied/attn-remarks";
  256. //门卫的考勤选项
  257. static const apiSecurityAttendanceOptionUK = "/index.php/api/v1/hotel/security/index";
  258. //门卫的考勤列表
  259. static const apiSecurityAttendanceListUK = "/index.php/api/v1/hotel/security/table";
  260. //门卫的考勤编辑
  261. static const apiSecurityAttendanceEditUK = "/index.php/api/v1/hotel/applied/security-submit";
  262. //电子考勤选项
  263. static const apiEAttendanceOptionUK = "/index.php/api/v1/hotel/eattendance/index";
  264. //电子考勤列表
  265. static const apiEAttendanceListUK = "/index.php/api/v1/hotel/eattendance/table";
  266. //UK的报表筛选条件
  267. static const apiReportOptionUK = "/index.php/api/v1/hotel/report/index";
  268. //UK的用工报表
  269. static const apiReportLabourUK = "/index.php/api/v1/hotel/report/labour-request";
  270. //UK的outlet报表
  271. static const apiReportOutletUK = "/index.php/api/v1/hotel/report/outlet";
  272. //UK的电子考勤报表
  273. static const apiReportAttendanceUK = "/index.php/api/v1/hotel/report/attendance";
  274. //UK的财务报表
  275. static const apiReportFianceUK = "/index.php/api/v1/hotel/report/finale";
  276. //UK的工作时长报表
  277. static const apiReportWorkingHoursUK = "/index.php/api/v1/hotel/report/working-hours";
  278. // UK casual-report报表
  279. static const apiReportCasualUK = "/index.php/api/v1/hotel/report/casual-report";
  280. //UK casual-payout 报表
  281. static const apiReportCasualPayoutUK = "/index.php/api/v1/hotel/report/casual-payout";
  282. // =========================== 报表与其他 ↓=========================================
  283. // 设备列表
  284. static const apiDeviceList = "/index.php/api/v1/hotel/device/table";
  285. //财务报表
  286. static const apiReportFiance = "/index.php/api/v1/hotel/report/finance";
  287. //用工报表
  288. static const apiReportLabour = "/index.php/api/v1/hotel/report/casual";
  289. //员工申请报表
  290. static const apiReportStaffRequest = "/index.php/api/v1/hotel/report/staff";
  291. // =========================== 越南的审核 ↓=========================================
  292. // 用工审核选项
  293. static const apiLabourReviewIndex = "/index.php/api/v1/hotel/lab-review/index";
  294. // 用工审核列表
  295. static const apiLabourReviewTable = "/index.php/api/v1/hotel/lab-review/table";
  296. // 用工审核的编辑详情
  297. static const apiLabourReviewDetail = "/index.php/api/v1/hotel/lab-review/edit-view";
  298. // 用工审核的编辑提交
  299. static const apiLabourReviewEdit = "/index.php/api/v1/hotel/lab-review/edit-submit";
  300. // 用工审核的审核流程列表
  301. static const apiLabourReviewStatusView = "/index.php/api/v1/hotel/lab-review/status-view";
  302. // 用工审核的批量同意
  303. static const apiLabourReviewApprove = "/index.php/api/v1/hotel/lab-review/approve";
  304. // 用工审核的批量拒绝
  305. static const apiLabourReviewReject = "/index.php/api/v1/hotel/lab-review/reject";
  306. // 考勤的审核列表
  307. static const apiAttendanceReviewTable = "/index.php/api/v1/hotel/att-review/table";
  308. // 考勤的批量同意
  309. static const apiAttendanceReviewApprove = "/index.php/api/v1/hotel/att-review/approve";
  310. // 考勤的批量拒绝
  311. static const apiAttendanceReviewReject = "/index.php/api/v1/hotel/att-review/reject";
  312. // =================================== 新加坡 V2 ↓ ===================================
  313. //登录
  314. static const apiAuthLoginV2 = "/index.php/api/v2/hotel/login";
  315. //首页信息
  316. static const apiHotelInfoV2 = "/index.php/api/v2/hotel/info";
  317. //中介列表Option
  318. static const apiAgencyOption = "/index.php/api/v2/hotel/agency/index";
  319. //中介列表
  320. static const apiAgencyTable = "/index.php/api/v2/hotel/agency/table";
  321. //中介的删除
  322. static const apiAgencyDelete = "/index.php/api/v2/hotel/agency/destroy";
  323. //添加中介
  324. static const apiAgencyAdd = "/index.php/api/v2/hotel/agency/add-submit";
  325. //中介详情
  326. static const apiAgencyDetail = "/index.php/api/v2/hotel/agency/edit-view";
  327. //编辑中介
  328. static const apiAgencyEdit = "/index.php/api/v2/hotel/agency/edit-submit";
  329. //中介职位的列表
  330. static const apiAgencyPositionTable = "/index.php/api/v2/hotel/position/table";
  331. //中介职位的添加
  332. static const apiAgencyPositionAdd = "/index.php/api/v2/hotel/position/add-submit";
  333. //中介职位的编辑
  334. static const apiAgencyPositionEdit = "/index.php/api/v2/hotel/position/edit-submit";
  335. //中介职位的删除
  336. static const apiAgencyPositionDelete = "/index.php/api/v2/hotel/position/destroy";
  337. //中介合同列表Option
  338. static const apiContractOption = "/index.php/api/v2/hotel/contract/index";
  339. //中介合同列表
  340. static const apiContractTable = "/index.php/api/v2/hotel/contract/table";
  341. //中介合同添加Option
  342. static const apiContractAddOption = "/index.php/api/v2/hotel/contract/add-view";
  343. //中介合同添加的提交
  344. static const apiContractAddSubmit = "/index.php/api/v2/hotel/contract/add-submit";
  345. //中介合同的详情
  346. static const apiContractDetail = "/index.php/api/v2/hotel/contract/edit-view";
  347. //中介合同的编辑提交
  348. static const apiContractEditSubmit = "/index.php/api/v2/hotel/contract/edit-submit";
  349. //中介合同的renew操作
  350. static const apiContractRenew = "/index.php/api/v2/hotel/contract/renew";
  351. //合同关联职位 Option
  352. static const apiContractPositionOption = "/index.php/api/v2/hotel/contract-position/index";
  353. //合同关联职位 Table
  354. static const apiContractPositionTable = "/index.php/api/v2/hotel/contract-position/table";
  355. //合同关联职位 添加
  356. static const apiContractPositionAddOption = "/index.php/api/v2/hotel/contract-position/add-view";
  357. //合同关联职位 添加提交
  358. static const apiContractPositionAddSubmit = "/index.php/api/v2/hotel/contract-position/add-submit";
  359. //合同关联职位 详情
  360. static const apiContractPositionRateDetail = "/index.php/api/v2/hotel/contract-rate/setting-view";
  361. //合同关联职位 编辑提交
  362. static const apiContractPositionRateEditSubmit = "/index.php/api/v2/hotel/contract-rate/setting-submit";
  363. //中介合同时薪列表
  364. static const apiContractRateTable = "/index.php/api/v2/hotel/contract-rate/table";
  365. //中介合同时薪 添加指定日期Option
  366. static const apiContractRateSpecificOption = "/index.php/api/v2/hotel/contract-rate/special-view";
  367. //中介合同时薪 添加指定日期 Submit
  368. static const apiContractRateSpecificAddSubmit = "/index.php/api/v2/hotel/contract-rate/special-submit";
  369. //中介合同时薪 修改金额
  370. static const apiContractRateAmountEdit = "/index.php/api/v2/hotel/contract-rate/edit-amount";
  371. //中介合同时薪 记录删除
  372. static const apiContractRateDelete = "/index.php/api/v2/hotel/contract-rate/destroy";
  373. //新加坡 V2 Labour Request Review 选项
  374. static const apiLabourRequestReviewOptionSG = "/index.php/api/v2/hotel/lab-review/index";
  375. //新加坡 V2 Labour Request Review 列表
  376. static const apiLabourRequestReviewTableSG = "/index.php/api/v2/hotel/lab-review/table";
  377. //新加坡 V2 Labour Request Review 批量批准
  378. static const apiLabourRequestReviewApproveSG = "/index.php/api/v2/hotel/lab-review/batch-approve";
  379. //新加坡 V2 Labour Request Review 批量拒绝
  380. static const apiLabourRequestReviewRejectSG = "/index.php/api/v2/hotel/lab-review/batch-reject";
  381. //新加坡 V2 Labour Request Review 编辑提交
  382. static const apiLabourRequestReviewEditSubmitSG = "/index.php/api/v2/hotel/lab-review/edit-submit";
  383. //新加坡 V2 Job Attendance Review 选项
  384. static const apiAttendanceReviewOptionSG = "/index.php/api/v2/hotel/att-review/index";
  385. //新加坡 V2 Job Attendance Review 列表
  386. static const apiAttendanceReviewTableSG = "/index.php/api/v2/hotel/att-review/table";
  387. //新加坡 V2 Attendance Review 批量批准
  388. static const apiAttendanceReviewApproveSG = "/index.php/api/v2/hotel/att-review/batch-approve";
  389. //新加坡 V2 Attendance Review 批量拒绝
  390. static const apiAttendanceReviewRejectSG = "/index.php/api/v2/hotel/att-review/batch-reject";
  391. //新加坡 V2 Attendance Review 状态流
  392. static const apiAttendanceReviewWorkflowSG = "/index.php/api/v2/hotel/att-review/status-view";
  393. //新加坡 V2 Dashboard 的列表
  394. static const apiDashboardTableSG = "/index.php/api/v2/hotel/home";
  395. // =================================== 马来接口 ↓ ===================================
  396. //登录
  397. static const apiLoginMS = "/index.php/api/v1/er/login";
  398. //账户信息
  399. static const apiAccountInfoMS = "/index.php/api/v1/er/auth/info";
  400. //账户列表
  401. static const apiAccountListMS = "/index.php/api/v1/er/auth/account";
  402. //切换账号
  403. static const apiSwitchAccountMS = "/index.php/api/v1/er/auth/switch";
  404. //签到员工列表
  405. static const apiSignListMS = "/index.php/api/v1/er/sign/table";
  406. //签到保存
  407. static const apiSignSaveMS = "/index.php/api/v1/er/sign/save";
  408. // 用户登出系统
  409. static const apiUserLogoutMS = "/index.php/api/v1/er/logout";
  410. // =================================== 泰国接口 ↓ ===================================
  411. //登录
  412. static const apiLoginTH = "/index.php/api/er/login";
  413. //账户信息
  414. static const apiAccountInfoTH = "/index.php/api/er/auth/info";
  415. //账户列表
  416. static const apiAccountListTH = "/index.php/api/er/auth/account";
  417. //切换账号
  418. static const apiSwitchAccountTH = "/index.php/api/er/auth/switch";
  419. // ER 的用工请求列表
  420. static const apiERLabourRequestTH = "/index.php/api/er/lab-req/index";
  421. // ER 的用工请求添加选项
  422. static const apiERLabourRequestAddOptionTH = "/index.php/api/er/lab-req/view-add";
  423. // ER 的用工请求新增提交
  424. static const apiERLabourRequestAddSubmitTH = "/index.php/api/er/lab-req/add-submit";
  425. //ER 工作列表选项
  426. static const apiERJobListOptionTH = "/index.php/api/er/job/index";
  427. //ER 工作列表
  428. static const apiERJobListTableTH = "/index.php/api/er/job/table";
  429. //ER 工作列表删除
  430. static const apiERJobListDeleteTH = "/index.php/api/er/job/action";
  431. //ER 工作列表详情
  432. static const apiERJobListDetailTH = "/index.php/api/er/job/view-edit";
  433. // ER 的用工请求编辑提交
  434. static const apiERLabourRequestEditSubmitTH = "/index.php/api/er/job/edit-submit";
  435. //ER 工作 Applied Index
  436. static const apiERAppliedOptionTH = "/index.php/api/er/applied/index";
  437. //ER 工作 Applied List
  438. static const apiERAppliedListTH = "/index.php/api/er/applied/table";
  439. //ER 工作 Applied 批量批准
  440. static const apiERAppliedApproveTH = "/index.php/api/er/applied/batch-approve";
  441. //ER 工作 Applied 批量修改
  442. static const apiERAppliedEditTH = "/index.php/api/er/applied/batch-modify";
  443. //ER 工作 Applied 编辑个人考勤
  444. static const apiERAppliedEditAttTH = "/index.php/api/er/applied/view-edit";
  445. //ER 工作 Applied 编辑个人考勤的提交
  446. static const apiERAppliedEditAttSubmitTH = "/index.php/api/er/applied/edit-submit";
  447. //ER 工作 Applied 添加员工列表
  448. static const apiERAppliedAddEmployeeTH = "/index.php/api/er/applied/staff-table";
  449. //ER 工作 Applied 添加员工提交
  450. static const apiERAppliedAddEmployeeSubmitTH = "/index.php/api/er/applied/staff-submit";
  451. //ER 员工信息
  452. static const apiEREmployeeInfoTH = "/index.php/api/er/member/detail";
  453. //ER 员工工作历史
  454. static const apiEREmployeeHistoryTH = "/index.php/api/er/member/history";
  455. //ER 员工评价列表
  456. static const apiEREmployeeEvaluationTH = "/index.php/api/er/member/remarks";
  457. // 工作已申请员工列表-评价员工的详情数据
  458. static const apiERAppliedStaffReviewIndexTH = "/index.php/api/er/applied/view-remark";
  459. // 工作已申请员工列表-评价员工的提交
  460. static const apiERAppliedStaffReviewSubmitTH = "/index.php/api/er/applied/remark-submit";
  461. // 工作已申请员工列表-评价员工的提交
  462. static const apiERAppliedStaffStateWorkflowTH = "/index.php/api/er/applied/view-status";
  463. // OA 用工请求的选项
  464. static const apiOALabourRequestOptionTH = "/index.php/api/oa/lab-req/index";
  465. // OA 用工请求的列表
  466. static const apiOALabourRequestTableTH = "/index.php/api/oa/lab-req/table";
  467. // OA 用工请求的撤回
  468. static const apiOALabourRequestRecallTH = "/index.php/api/oa/lab-req/recall";
  469. // OA 用工请求的删除
  470. static const apiOALabourRequestDeleteTH = "/index.php/api/oa/lab-req/destroy";
  471. // OA 用工请求的状态流
  472. static const apiOALabourRequestWorkflowTH = "/index.php/api/oa/lab-req/view-status";
  473. // OA 用工请求添加选项
  474. static const apiOALabourRequestAddOptionTH = "/index.php/api/oa/lab-req/view-add";
  475. // OA 用工请求详情
  476. static const apiOALabourRequestDetailTH = "/index.php/api/oa/lab-req/view-edit";
  477. // OA 用工请求添加提交
  478. static const apiOALabourRequestAddSubmitTH = "/index.php/api/oa/lab-req/add-submit";
  479. // OA 用工请求编辑提交
  480. static const apiOALabourRequestEditSubmitTH = "/index.php/api/oa/lab-req/edit-submit";
  481. // TH 泰国上传文件
  482. static const apiUploadFileTH = "/index.php/api/er/upload/file";
  483. //OA 附件列表
  484. static const apiOAAttachmentListTH = "/index.php/api/oa/lab-req/att-table";
  485. //OA 附件新增
  486. static const apiOAAttachmentAddTH = "/index.php/api/oa/lab-req/att-submit";
  487. //OA 附件删除
  488. static const apiOAAttachmentDeleteTH = "/index.php/api/oa/lab-req/att-delete";
  489. //OA 用工审核列表选项
  490. static const apiOALabourReviewOptionTH = "/index.php/api/oa/lab-req/review/index";
  491. //OA 用工审核列表
  492. static const apiOALabourReviewTableTH = "/index.php/api/oa/lab-req/review/table";
  493. //OA 用工审核编辑提交
  494. static const apiOALabourReviewEditSubmitTH = "/index.php/api/oa/lab-req/review/edit-submit";
  495. //OA 用工审核的批量操作
  496. static const apiOALabourReviewBatchTH = "/index.php/api/oa/lab-req/review/batch-audit";
  497. //OA 用工审核工作流
  498. static const apiOALabourReviewWorkflowTH = "/index.php/api/oa/lab-req/review/view-status";
  499. }