api_constants.dart 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737
  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. static const apiAccountInfoUk = "/index.php/api/v1/hotel/info";
  193. // 工作详情中 根据所选国家 获取城市选项
  194. static const apiCityOptionsUK = "/index.php/api/v1/hotel/temp/show-city";
  195. // 添加工作模板 获取countrycode lIST
  196. static const apiCountryCodeOptionsUK = "/index.php/api/v1/hotel/temp/show-country-code";
  197. // 添加工作模板 获取 工作模板 和 证书列表 和 交通工具 选项
  198. static const apiJobTemplateAddIndexUK = "/index.php/api/v1/hotel/temp/add-view";
  199. // 获取工作模板详情
  200. static const apiJobTemplateDetailUK = "/index.php/api/v1/hotel/temp/edit-view";
  201. // 工作详情中 根据所选模板 获取 工作标题
  202. static const apiJobTemplateTitleOptionsUK = "/index.php/api/v1/hotel/temp/show-template-title";
  203. // 选择工作标题后 获取该标题对应的模板数据
  204. static const apiJobTemplateDetailBySelectTitleUK = "/index.php/api/v1/hotel/temp/show-template-record";
  205. // labourrequest 快速复制工作
  206. static const apiLabourRequestQuickCopyUK = "/index.php/api/v1/hotel/lab-req/quick-copy";
  207. // 预选人列表
  208. static const apiLabourRequestPreSelectListUK = "/index.php/api/v1/hotel/prestaff/table";
  209. // 筛选的条件
  210. static const apiLabourRequestPreSelectIndexUK = "/index.php/api/v1/hotel/prestaff/index";
  211. // 预选人 -添加员工的列表
  212. static const apiLabourRequestPreSelectAddStaffListUK = "/index.php/api/v1/hotel/prestaff/staff-view";
  213. // 预选人 - 批量添加员工
  214. static const apiLabourRequestPreSelectAddBatchUK = "/index.php/api/v1/hotel/prestaff/staff-submit";
  215. // 预选人-删除员工
  216. static const apiLabourRequestPreSelectDeleteUK = "/index.php/api/v1/hotel/prestaff/delete";
  217. // labourequest - 根据模板id 显示模板数据
  218. static const apiLabourRequestTemplateShowUK = "/index.php/api/v1/hotel/lab-req/show-template";
  219. // labourequest-review 列表
  220. static const apiLabourRequestReViewListUK = "/index.php/api/v1/hotel/lab-req/review";
  221. // labourequest-review workflow的审核详情
  222. static const apiLabourRequestReViewWorkFlowDetailUK = "/index.php/api/v1/hotel/lab-req/review-workflow";
  223. // labourrequest-review 编辑提交
  224. static const apiLabourRequestReViewEditUK = "/index.php/api/v1/hotel/lab-req/review-submit";
  225. // labourrequest-review 批量审核(确认和拒绝)提交
  226. static const apiLabourRequestReViewBatchSubmitUK = "/index.php/api/v1/hotel/lab-req/review-batch";
  227. // applied-staff location 选项
  228. static const apiAppliedStaffLocationListUK = "/index.php/api/v1/hotel/prestaff/location";
  229. // applied 行业列表
  230. static const apiAppliedStaffIndustryListUK = "/index.php/api/v1/hotel/prestaff/industry";
  231. // applied - 根据行业id 获取工作标题列表
  232. static const apiAppliedStaffJobTitleListUK = "/index.php/api/v1/hotel/prestaff/show-job-title";
  233. // applied - 设置小费
  234. static const apiAppliedStaffBatchSetTipUK = "/index.php/api/v1/hotel/applied/batch-tips";
  235. // revise - 列表
  236. static const apiAppliedStaffReviseListUK = "/index.php/api/v1/hotel/revise/table";
  237. // revise - add 时的 详情页面
  238. static const apiAppliedStaffReviseAddUK = "/index.php/api/v1/hotel/revise/add-view";
  239. // revise - edit 时的 详情页面
  240. static const apiAppliedStaffReviseEditUK = "/index.php/api/v1/hotel/revise/edit-view";
  241. // revise 添加 提交
  242. static const apiAppliedStaffReviseAddSubmitUK = "/index.php/api/v1/hotel/revise/add-submit";
  243. // revise 编辑 提交
  244. static const apiAppliedStaffReviseEditSubmitUK = "/index.php/api/v1/hotel/revise/edit-submit";
  245. // revise recall
  246. static const apiAppliedStaffReviseRecallUK = "/index.php/api/v1/hotel/revise/recall";
  247. // revise delete
  248. static const apiAppliedStaffReviseDeleteUK = "/index.php/api/v1/hotel/revise/delete";
  249. // revise logs
  250. static const apiAppliedStaffReviseLogsUK = "/index.php/api/v1/hotel/revise/logs";
  251. // staff - set favourite
  252. static const apiAppliedStaffSetFavouriteUK = "/index.php/api/v1/hotel/member/favourite";
  253. // staff - detail
  254. static const apiStaffDetailUK = "/index.php/api/v1/hotel/member/detail-new";
  255. // staff - labour history
  256. static const apiStaffLabourHistoryUK = "/index.php/api/v1/hotel/member/history";
  257. // attentanceReview 列表
  258. static const apiAttendanceReviewTableUK = "/index.php/api/v1/hotel/applied/attn-review";
  259. // attentanceReview 批量审核/批量拒绝
  260. static const apiAttendanceReviewBatchSubmitUK = "/index.php/api/v1/hotel/applied/attn-batch";
  261. // attentanceReview 获取批注
  262. static const apiAttendanceReviewRemarksUK = "/index.php/api/v1/hotel/applied/attn-remarks";
  263. // job list
  264. static const apiJobListDetailUk = "/index.php/api/v1/hotel/job/detail";
  265. //门卫的考勤选项
  266. static const apiSecurityAttendanceOptionUK = "/index.php/api/v1/hotel/security/index";
  267. //门卫的考勤列表
  268. static const apiSecurityAttendanceListUK = "/index.php/api/v1/hotel/security/table";
  269. //门卫的考勤编辑
  270. static const apiSecurityAttendanceEditUK = "/index.php/api/v1/hotel/applied/security-submit";
  271. //电子考勤选项
  272. static const apiEAttendanceOptionUK = "/index.php/api/v1/hotel/eattendance/index";
  273. //电子考勤列表
  274. static const apiEAttendanceListUK = "/index.php/api/v1/hotel/eattendance/table";
  275. //UK的报表筛选条件
  276. static const apiReportOptionUK = "/index.php/api/v1/hotel/report/index";
  277. //UK的用工报表
  278. static const apiReportLabourUK = "/index.php/api/v1/hotel/report/labour-request";
  279. //UK的outlet报表
  280. static const apiReportOutletUK = "/index.php/api/v1/hotel/report/outlet";
  281. //UK的电子考勤报表
  282. static const apiReportAttendanceUK = "/index.php/api/v1/hotel/report/attendance";
  283. //UK的财务报表
  284. static const apiReportFianceUK = "/index.php/api/v1/hotel/report/finale";
  285. //UK的工作时长报表
  286. static const apiReportWorkingHoursUK = "/index.php/api/v1/hotel/report/working-hours";
  287. // UK casual-report报表
  288. static const apiReportCasualUK = "/index.php/api/v1/hotel/report/casual-report";
  289. //UK casual-payout 报表
  290. static const apiReportCasualPayoutUK = "/index.php/api/v1/hotel/report/casual-payout";
  291. // =========================== 报表与其他 ↓=========================================
  292. // 设备列表
  293. static const apiDeviceList = "/index.php/api/v1/hotel/device/table";
  294. //财务报表
  295. static const apiReportFiance = "/index.php/api/v1/hotel/report/finance";
  296. //用工报表
  297. static const apiReportLabour = "/index.php/api/v1/hotel/report/casual";
  298. //员工申请报表
  299. static const apiReportStaffRequest = "/index.php/api/v1/hotel/report/staff";
  300. // =========================== 越南的审核 ↓=========================================
  301. // 用工审核选项
  302. static const apiLabourReviewIndex = "/index.php/api/v1/hotel/lab-review/index";
  303. // 用工审核列表
  304. static const apiLabourReviewTable = "/index.php/api/v1/hotel/lab-review/table";
  305. // 用工审核的编辑详情
  306. static const apiLabourReviewDetail = "/index.php/api/v1/hotel/lab-review/edit-view";
  307. // 用工审核的编辑提交
  308. static const apiLabourReviewEdit = "/index.php/api/v1/hotel/lab-review/edit-submit";
  309. // 用工审核的审核流程列表
  310. static const apiLabourReviewStatusView = "/index.php/api/v1/hotel/lab-review/status-view";
  311. // 用工审核的批量同意
  312. static const apiLabourReviewApprove = "/index.php/api/v1/hotel/lab-review/approve";
  313. // 用工审核的批量拒绝
  314. static const apiLabourReviewReject = "/index.php/api/v1/hotel/lab-review/reject";
  315. // 考勤的审核列表
  316. static const apiAttendanceReviewTable = "/index.php/api/v1/hotel/att-review/table";
  317. // 考勤的批量同意
  318. static const apiAttendanceReviewApprove = "/index.php/api/v1/hotel/att-review/approve";
  319. // 考勤的批量拒绝
  320. static const apiAttendanceReviewReject = "/index.php/api/v1/hotel/att-review/reject";
  321. // =================================== 新加坡 V2 ↓ ===================================
  322. //登录
  323. static const apiAuthLoginV2 = "/index.php/api/v2/hotel/login";
  324. //首页信息
  325. static const apiHotelInfoV2 = "/index.php/api/v2/hotel/info";
  326. //中介列表Option
  327. static const apiAgencyOption = "/index.php/api/v2/hotel/agency/index";
  328. //中介列表
  329. static const apiAgencyTable = "/index.php/api/v2/hotel/agency/table";
  330. //中介的删除
  331. static const apiAgencyDelete = "/index.php/api/v2/hotel/agency/destroy";
  332. //添加中介
  333. static const apiAgencyAdd = "/index.php/api/v2/hotel/agency/add-submit";
  334. //中介详情
  335. static const apiAgencyDetail = "/index.php/api/v2/hotel/agency/edit-view";
  336. //编辑中介
  337. static const apiAgencyEdit = "/index.php/api/v2/hotel/agency/edit-submit";
  338. //中介职位的列表
  339. static const apiAgencyPositionTable = "/index.php/api/v2/hotel/position/table";
  340. //中介职位的添加
  341. static const apiAgencyPositionAdd = "/index.php/api/v2/hotel/position/add-submit";
  342. //中介职位的编辑
  343. static const apiAgencyPositionEdit = "/index.php/api/v2/hotel/position/edit-submit";
  344. //中介职位的删除
  345. static const apiAgencyPositionDelete = "/index.php/api/v2/hotel/position/destroy";
  346. //中介合同列表Option
  347. static const apiContractOption = "/index.php/api/v2/hotel/contract/index";
  348. //中介合同列表
  349. static const apiContractTable = "/index.php/api/v2/hotel/contract/table";
  350. //中介合同添加Option
  351. static const apiContractAddOption = "/index.php/api/v2/hotel/contract/add-view";
  352. //中介合同添加的提交
  353. static const apiContractAddSubmit = "/index.php/api/v2/hotel/contract/add-submit";
  354. //中介合同的详情
  355. static const apiContractDetail = "/index.php/api/v2/hotel/contract/edit-view";
  356. //中介合同的编辑提交
  357. static const apiContractEditSubmit = "/index.php/api/v2/hotel/contract/edit-submit";
  358. //中介合同的renew操作
  359. static const apiContractRenew = "/index.php/api/v2/hotel/contract/renew";
  360. //合同关联职位 Option
  361. static const apiContractPositionOption = "/index.php/api/v2/hotel/contract-position/index";
  362. //合同关联职位 Table
  363. static const apiContractPositionTable = "/index.php/api/v2/hotel/contract-position/table";
  364. //合同关联职位 添加
  365. static const apiContractPositionAddOption = "/index.php/api/v2/hotel/contract-position/add-view";
  366. //合同关联职位 添加提交
  367. static const apiContractPositionAddSubmit = "/index.php/api/v2/hotel/contract-position/add-submit";
  368. //合同关联职位 详情
  369. static const apiContractPositionRateDetail = "/index.php/api/v2/hotel/contract-rate/setting-view";
  370. //合同关联职位 编辑提交
  371. static const apiContractPositionRateEditSubmit = "/index.php/api/v2/hotel/contract-rate/setting-submit";
  372. //中介合同时薪列表
  373. static const apiContractRateTable = "/index.php/api/v2/hotel/contract-rate/table";
  374. //中介合同时薪 添加指定日期Option
  375. static const apiContractRateSpecificOption = "/index.php/api/v2/hotel/contract-rate/special-view";
  376. //中介合同时薪 添加指定日期 Submit
  377. static const apiContractRateSpecificAddSubmit = "/index.php/api/v2/hotel/contract-rate/special-submit";
  378. //中介合同时薪 修改金额
  379. static const apiContractRateAmountEdit = "/index.php/api/v2/hotel/contract-rate/edit-amount";
  380. //中介合同时薪 记录删除
  381. static const apiContractRateDelete = "/index.php/api/v2/hotel/contract-rate/destroy";
  382. //新加坡 V2 Labour Request Review 选项
  383. static const apiLabourRequestReviewOptionSG = "/index.php/api/v2/hotel/lab-review/index";
  384. //新加坡 V2 Labour Request Review 列表
  385. static const apiLabourRequestReviewTableSG = "/index.php/api/v2/hotel/lab-review/table";
  386. //新加坡 V2 Labour Request Review 批量批准
  387. static const apiLabourRequestReviewApproveSG = "/index.php/api/v2/hotel/lab-review/batch-approve";
  388. //新加坡 V2 Labour Request Review 批量拒绝
  389. static const apiLabourRequestReviewRejectSG = "/index.php/api/v2/hotel/lab-review/batch-reject";
  390. //新加坡 V2 Labour Request Review 编辑提交
  391. static const apiLabourRequestReviewEditSubmitSG = "/index.php/api/v2/hotel/lab-review/edit-submit";
  392. //新加坡 V2 Job Attendance Review 选项
  393. static const apiAttendanceReviewOptionSG = "/index.php/api/v2/hotel/att-review/index";
  394. //新加坡 V2 Job Attendance Review 列表
  395. static const apiAttendanceReviewTableSG = "/index.php/api/v2/hotel/att-review/table";
  396. //新加坡 V2 Attendance Review 批量批准
  397. static const apiAttendanceReviewApproveSG = "/index.php/api/v2/hotel/att-review/batch-approve";
  398. //新加坡 V2 Attendance Review 批量拒绝
  399. static const apiAttendanceReviewRejectSG = "/index.php/api/v2/hotel/att-review/batch-reject";
  400. //新加坡 V2 Attendance Review 状态流
  401. static const apiAttendanceReviewWorkflowSG = "/index.php/api/v2/hotel/att-review/status-view";
  402. //新加坡 V2 Dashboard 的列表
  403. static const apiDashboardTableSG = "/index.php/api/v2/hotel/home";
  404. // =================================== 马来接口 ↓ ===================================
  405. //登录
  406. static const apiLoginMS = "/index.php/api/v1/er/login";
  407. //账户信息
  408. static const apiAccountInfoMS = "/index.php/api/v1/er/auth/info";
  409. //账户列表
  410. static const apiAccountListMS = "/index.php/api/v1/er/auth/account";
  411. //切换账号
  412. static const apiSwitchAccountMS = "/index.php/api/v1/er/auth/switch";
  413. //签到员工列表
  414. static const apiSignListMS = "/index.php/api/v1/er/sign/table";
  415. //签到保存
  416. static const apiSignSaveMS = "/index.php/api/v1/er/sign/save";
  417. // 用户登出系统
  418. static const apiUserLogoutMS = "/index.php/api/v1/er/logout";
  419. // =================================== 泰国接口 ↓ ===================================
  420. //登录
  421. static const apiLoginTH = "/index.php/api/er/login";
  422. //账户信息
  423. static const apiAccountInfoTH = "/index.php/api/er/auth/info";
  424. //账户列表
  425. static const apiAccountListTH = "/index.php/api/er/auth/account";
  426. //切换账号
  427. static const apiSwitchAccountTH = "/index.php/api/er/auth/switch";
  428. // ER 的用工请求列表
  429. static const apiERLabourRequestTH = "/index.php/api/er/lab-req/index";
  430. // ER 的用工请求添加选项
  431. static const apiERLabourRequestAddOptionTH = "/index.php/api/er/lab-req/view-add";
  432. // ER 的用工请求新增提交
  433. static const apiERLabourRequestAddSubmitTH = "/index.php/api/er/lab-req/add-submit";
  434. //ER 工作列表选项
  435. static const apiERJobListOptionTH = "/index.php/api/er/job/index";
  436. //ER 工作列表
  437. static const apiERJobListTableTH = "/index.php/api/er/job/table";
  438. //ER 工作列表删除
  439. static const apiERJobListDeleteTH = "/index.php/api/er/job/action";
  440. //ER 工作列表详情
  441. static const apiERJobListDetailTH = "/index.php/api/er/job/view-edit";
  442. // ER 的用工请求编辑提交
  443. static const apiERLabourRequestEditSubmitTH = "/index.php/api/er/job/edit-submit";
  444. //ER 工作 Applied Index
  445. static const apiERAppliedOptionTH = "/index.php/api/er/applied/index";
  446. //ER 工作 Applied List
  447. static const apiERAppliedListTH = "/index.php/api/er/applied/table";
  448. //ER 工作 Applied 批量批准
  449. static const apiERAppliedApproveTH = "/index.php/api/er/applied/batch-approve";
  450. //ER 工作 Applied 批量修改
  451. static const apiERAppliedEditTH = "/index.php/api/er/applied/batch-modify";
  452. //ER 工作 Applied 编辑个人考勤
  453. static const apiERAppliedEditAttTH = "/index.php/api/er/applied/view-edit";
  454. //ER 工作 Applied 编辑个人考勤的提交
  455. static const apiERAppliedEditAttSubmitTH = "/index.php/api/er/applied/edit-submit";
  456. //ER 工作 Applied 添加员工列表
  457. static const apiERAppliedAddEmployeeTH = "/index.php/api/er/applied/staff-table";
  458. //ER 工作 Applied 添加员工提交
  459. static const apiERAppliedAddEmployeeSubmitTH = "/index.php/api/er/applied/staff-submit";
  460. //ER 员工信息
  461. static const apiEREmployeeInfoTH = "/index.php/api/er/member/detail";
  462. //ER 员工工作历史
  463. static const apiEREmployeeHistoryTH = "/index.php/api/er/member/history";
  464. //ER 员工评价列表
  465. static const apiEREmployeeEvaluationTH = "/index.php/api/er/member/remarks";
  466. // 工作已申请员工列表-评价员工的详情数据
  467. static const apiERAppliedStaffReviewIndexTH = "/index.php/api/er/applied/view-remark";
  468. // 工作已申请员工列表-评价员工的提交
  469. static const apiERAppliedStaffReviewSubmitTH = "/index.php/api/er/applied/remark-submit";
  470. // 工作已申请员工列表-评价员工的提交
  471. static const apiERAppliedStaffStateWorkflowTH = "/index.php/api/er/applied/view-status";
  472. // OA 用工请求的选项
  473. static const apiOALabourRequestOptionTH = "/index.php/api/oa/lab-req/index";
  474. // OA 用工请求的列表
  475. static const apiOALabourRequestTableTH = "/index.php/api/oa/lab-req/table";
  476. // OA 用工请求的撤回
  477. static const apiOALabourRequestRecallTH = "/index.php/api/oa/lab-req/recall";
  478. // OA 用工请求的删除
  479. static const apiOALabourRequestDeleteTH = "/index.php/api/oa/lab-req/destroy";
  480. // OA 用工请求的状态流
  481. static const apiOALabourRequestWorkflowTH = "/index.php/api/oa/lab-req/view-status";
  482. // OA 用工请求添加选项
  483. static const apiOALabourRequestAddOptionTH = "/index.php/api/oa/lab-req/view-add";
  484. // OA 用工请求详情
  485. static const apiOALabourRequestDetailTH = "/index.php/api/oa/lab-req/view-edit";
  486. // OA 用工请求添加提交
  487. static const apiOALabourRequestAddSubmitTH = "/index.php/api/oa/lab-req/add-submit";
  488. // OA 用工请求编辑提交
  489. static const apiOALabourRequestEditSubmitTH = "/index.php/api/oa/lab-req/edit-submit";
  490. // TH 泰国上传文件
  491. static const apiUploadFileTH = "/index.php/api/er/upload/file";
  492. //OA 附件列表
  493. static const apiOAAttachmentListTH = "/index.php/api/oa/lab-req/att-table";
  494. //OA 附件新增
  495. static const apiOAAttachmentAddTH = "/index.php/api/oa/lab-req/att-submit";
  496. //OA 附件删除
  497. static const apiOAAttachmentDeleteTH = "/index.php/api/oa/lab-req/att-delete";
  498. //OA 用工审核列表选项
  499. static const apiOALabourReviewOptionTH = "/index.php/api/oa/lab-req/review/index";
  500. //OA 用工审核列表
  501. static const apiOALabourReviewTableTH = "/index.php/api/oa/lab-req/review/table";
  502. //OA 用工审核编辑提交
  503. static const apiOALabourReviewEditSubmitTH = "/index.php/api/oa/lab-req/review/edit-submit";
  504. //OA 用工审核的批量操作
  505. static const apiOALabourReviewBatchTH = "/index.php/api/oa/lab-req/review/batch-audit";
  506. //OA 用工审核工作流
  507. static const apiOALabourReviewWorkflowTH = "/index.php/api/oa/lab-req/review/view-status";
  508. }