api_constants.dart 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. //网络请求相关Api常量
  2. class ApiConstants {
  3. //当前服务器环境
  4. static const isServerRelease = false;
  5. //新加坡的域名
  6. static const baseUrl = isServerRelease ? 'https://www.casualabour.com' : 'http://yyjobs-api-dev.guadoutech.com';
  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. static const apiHotelDeactivate = "/index.php/api/v1/hotel/deactivate";
  20. // =========================== 用工请求 ↓=========================================
  21. //筛选条件
  22. static const apiLabourRequestIndex = "/index.php/api/v1/hotel/lab-req/index";
  23. //用工列表
  24. static const apiLabourRequestList = "/index.php/api/v1/hotel/lab-req/table";
  25. //添加的选择条件
  26. static const apiLabourRequestAddOption = "/index.php/api/v1/hotel/lab-req/add-view";
  27. //添加用工请求
  28. static const apiLabourRequestAddSubmit = "/index.php/api/v1/hotel/lab-req/add-submit";
  29. //编辑的选项
  30. static const apiLabourRequestEditDetail = "/index.php/api/v1/hotel/lab-req/edit-view";
  31. //编辑的发布
  32. static const apiLabourRequestEditSubmit = "/index.php/api/v1/hotel/lab-req/edit-submit";
  33. //用工请求的审核状态工作流
  34. static const apiLabourRequestStateWorkFlow = "/index.php/api/v1/hotel/lab-req/status-view";
  35. //撤回用工请求
  36. static const apiLabourRequestRecall = "/index.php/api/v1/hotel/lab-req/recall";
  37. // =========================== 工作列表 ↓=========================================
  38. // 工作列表首页选项
  39. static const apiJobListIndex = "/index.php/api/v1/hotel/job/index";
  40. // 工作列表首页列表
  41. static const apiJobListTable = "/index.php/api/v1/hotel/job/table";
  42. // 工作列表首页详情
  43. static const apiJobListDetail = "/index.php/api/v1/hotel/job/detail";
  44. // 工作已申请员工列表-工作的信息
  45. static const apiJobListAppliedJobInfo = "/index.php/api/v1/hotel/applied/index";
  46. // 工作已申请员工列表-员工列表
  47. static const apiJobListAppliedStaffList = "/index.php/api/v1/hotel/applied/table";
  48. // 工作已申请员工列表-添加员工查询全部员工
  49. static const apiJobListAppliedStaffSearch = "/index.php/api/v1/hotel/applied/staff-view";
  50. // 工作已申请员工列表-添加员工提交
  51. static const apiJobListAppliedStaffAdd = "/index.php/api/v1/hotel/applied/staff-submit";
  52. // 工作已申请员工列表-批量修改员工状态
  53. static const apiJobListAppliedStaffBatchEdit = "/index.php/api/v1/hotel/applied/batch-edit";
  54. // 工作已申请员工列表-编辑员工信息的详情数据
  55. static const apiJobListAppliedStaffEditIndex = "/index.php/api/v1/hotel/applied/edit-view";
  56. // 工作已申请员工列表-编辑员工信息提交
  57. static const apiJobListAppliedStaffEditSubmit = "/index.php/api/v1/hotel/applied/edit-submit";
  58. // 工作已申请员工列表-评价员工的详情数据
  59. static const apiJobListAppliedStaffReviewIndex = "/index.php/api/v1/hotel/applied/remark-view";
  60. // 工作已申请员工列表-评价员工的提交
  61. static const apiJobListAppliedStaffReviewSubmit = "/index.php/api/v1/hotel/applied/remark-submit";
  62. // 工作已申请员工列表-评价员工的提交
  63. static const apiJobListAppliedStaffStateWorkflow = "/index.php/api/v1/hotel/applied/status-view";
  64. // 工作已申请员工列表- 提交指定员工们到审核流程
  65. static const apiJobListAppliedApprove = "/index.php/api/v1/hotel/applied/approve";
  66. //员工详情
  67. static const apiJobListStaffDetail = "/index.php/api/v1/hotel/member/detail";
  68. //员工做工历史记录
  69. static const apiJobListStaffLabourHistory = "/index.php/api/v1/hotel/member/history";
  70. //员工做工评价记录
  71. static const apiJobListStaffRemarkHistory = "/index.php/api/v1/hotel/member/remarks";
  72. // =========================== 签到签出 ↓=========================================
  73. // 用户签到签出列表
  74. static const apiSignApplied = "/index.php/api/v1/hotel/sign/table";
  75. // 用户签到签出
  76. static const apiSignInOut = "/index.php/api/v1/hotel/sign/clock";
  77. // =========================== 新加坡用工 ↓=========================================
  78. // 工作标题列表
  79. static const apiJobTitleListSG = "/index.php/api/v1/hotel/title/table";
  80. // 添加工作标题的选项数据
  81. static const apiJobTitleAddIndexSG = "/index.php/api/v1/hotel/title/add-view";
  82. // 添加工作标题提交
  83. static const apiJobTitleAddSubmitSG = "/index.php/api/v1/hotel/title/add-submit";
  84. // 编辑工作标题的选项数据
  85. static const apiJobTitleEditIndexSG = "/index.php/api/v1/hotel/title/edit-view";
  86. // 编辑工作标题提交
  87. static const apiJobTitleEditSubmitSG = "/index.php/api/v1/hotel/title/edit-submit";
  88. // 删除工作标题
  89. static const apiJobTitleDeleteSG = "/index.php/api/v1/hotel/title/delete";
  90. // 工作模板列表
  91. static const apiJobTemplateListSG = "/index.php/api/v1/hotel/temp/table";
  92. // 添加工作模板选项数据
  93. static const apiJobTemplateAddIndexSG = "/index.php/api/v1/hotel/temp/add-view";
  94. // 添加工作模板选提交
  95. static const apiJobTemplateAddSubmitSG = "/index.php/api/v1/hotel/temp/add-submit";
  96. // 编辑工作模板选项数据
  97. static const apiJobTemplateEditIndexSG = "/index.php/api/v1/hotel/temp/edit-view";
  98. // 编辑工作模板提交
  99. static const apiJobTemplateEditSubmitSG = "/index.php/api/v1/hotel/temp/edit-submit";
  100. // 删除工作模板
  101. static const apiJobTemplateDeleteSG = "/index.php/api/v1/hotel/temp/delete";
  102. //用工请求首页数据
  103. static const apiLabourRequestMainSG = "/index.php/api/v1/hotel/lab-req/index";
  104. //用工请求的添加页面选项数据
  105. static const apiLabourRequestAddIndexSG = "/index.php/api/v1/hotel/lab-req/add-view";
  106. //用工请求的添加提交
  107. static const apiLabourRequestAddSubmitSG = "/index.php/api/v1/hotel/lab-req/add-submit";
  108. //用工请求的查询选项(Job List)
  109. static const apiJobListIndexSG = "/index.php/api/v1/hotel/job/index";
  110. //用工请求的查询列表(Job List)
  111. static const apiJobListTableSG = "/index.php/api/v1/hotel/job/table";
  112. //用工请求的编辑详情(Job List)
  113. static const apiJobListEditIndexSG = "/index.php/api/v1/hotel/job/edit-view";
  114. //用工请求的编辑提交(Job List)
  115. static const apiJobListEditSubmitSG = "/index.php/api/v1/hotel/job/edit-submit";
  116. //用工请求的取消(Job List)
  117. static const apiJobListCancelSG = "/index.php/api/v1/hotel/job/cancel";
  118. //用工请求的删除(Job List)
  119. static const apiJobListDeleteSG = "/index.php/api/v1/hotel/job/delete";
  120. //用工请求的考勤确认(Job List)
  121. static const apiJobListConfirmSG = "/index.php/api/v1/hotel/job/confirm";
  122. // =========================== 新加坡工作相关 ↓=========================================
  123. //新加坡工作已申请的选项
  124. static const apiJobAppliedIndexSG = "/index.php/api/v1/hotel/applied/index";
  125. //新加坡工作已申请的列表
  126. static const apiJobAppliedListSG = "/index.php/api/v1/hotel/applied/table";
  127. //新加坡工作已申请的列表-添加员工搜索
  128. static const apiJobAppliedSearchStaffSG = "/index.php/api/v1/hotel/applied/staff-view";
  129. //新加坡工作已申请的列表-添加员工提交
  130. static const apiJobAppliedAddStaffSubmitSG = "/index.php/api/v1/hotel/applied/staff-submit";
  131. //新加坡工作已申请的列表-批量修改
  132. static const apiJobAppliedBatchEditSG = "/index.php/api/v1/hotel/applied/batch-edit";
  133. //新加坡工作已申请的列表-单独编辑的详情
  134. static const apiJobAppliedEditViewSG = "/index.php/api/v1/hotel/applied/edit-view";
  135. //新加坡工作已申请的列表-提交编辑
  136. static const apiJobAppliedEditSubmitSG = "/index.php/api/v1/hotel/applied/edit-submit";
  137. //新加坡工作已申请的列表-修改状态
  138. static const apiJobAppliedChangeStatusSG = "/index.php/api/v1/hotel/applied/edit-status";
  139. //新加坡工作已申请的列表-评价展示
  140. static const apiJobAppliedRemarkViewSG = "/index.php/api/v1/hotel/applied/remark-view";
  141. //新加坡工作已申请的列表-提交评价
  142. static const apiJobAppliedRemarkSubmitSG = "/index.php/api/v1/hotel/applied/remark-submit";
  143. //员工详情
  144. static const apiJobListStaffDetailSG = "/index.php/api/v1/hotel/member/detail";
  145. //员工做工历史记录
  146. static const apiJobListStaffLabourHistorySG = "/index.php/api/v1/hotel/member/history";
  147. //员工做工评价顶部数据
  148. static const apiJobListStaffReviewHeadSG = "/index.php/api/v1/hotel/member/review";
  149. //员工做工评价列表
  150. static const apiJobListStaffReViewHistorySG = "/index.php/api/v1/hotel/member/review/table";
  151. //员工修改记录-选项
  152. static const apiReviseIndexSG = "/index.php/api/v1/hotel/revise/index";
  153. //员工修改记录-列表
  154. static const apiReviseListSG = "/index.php/api/v1/hotel/revise/table";
  155. //给指定的申请记录添加 Revise 数据(详情)
  156. static const apiAddReviseViewSG = "/index.php/api/v1/hotel/revise/add-view";
  157. //给指定的申请记录添加 Revise 数据(提交)
  158. static const apiAddReviseSubmitSG = "/index.php/api/v1/hotel/revise/add-submit";
  159. //给指定的申请记录编辑 Revise 数据(详情)
  160. static const apiEditReviseViewSG = "/index.php/api/v1/hotel/revise/edit-view";
  161. //给指定的申请记录编辑 Revise 数据(提交)
  162. static const apiEditReviseSubmitSG = "/index.php/api/v1/hotel/revise/edit-submit";
  163. //撤回指定的 Revise 数据
  164. static const apiRecallReviseSG = "/index.php/api/v1/hotel/revise/recall";
  165. //删除指定的 Revise 数据
  166. static const apiDeleteReviseSG = "/index.php/api/v1/hotel/revise/delete";
  167. //Revise 的操作日志
  168. static const apiReviseLogListSG = "/index.php/api/v1/hotel/revise/logs";
  169. // =========================== 报表与其他 ↓=========================================
  170. // 设备列表
  171. static const apiDeviceList = "/index.php/api/v1/hotel/device/table";
  172. //财务报表
  173. static const apiReportFiance = "/index.php/api/v1/hotel/report/finance";
  174. //用工报表
  175. static const apiReportLabour = "/index.php/api/v1/hotel/report/casual";
  176. //员工申请报表
  177. static const apiReportStaffRequest = "/index.php/api/v1/hotel/report/staff";
  178. // =========================== 越南的审核 ↓=========================================
  179. // 用工审核选项
  180. static const apiLabourReviewIndex = "/index.php/api/v1/hotel/lab-review/index";
  181. // 用工审核列表
  182. static const apiLabourReviewTable = "/index.php/api/v1/hotel/lab-review/table";
  183. // 用工审核的编辑详情
  184. static const apiLabourReviewDetail = "/index.php/api/v1/hotel/lab-review/edit-view";
  185. // 用工审核的编辑提交
  186. static const apiLabourReviewEdit = "/index.php/api/v1/hotel/lab-review/edit-submit";
  187. // 用工审核的审核流程列表
  188. static const apiLabourReviewStatusView = "/index.php/api/v1/hotel/lab-review/status-view";
  189. // 用工审核的批量同意
  190. static const apiLabourReviewApprove = "/index.php/api/v1/hotel/lab-review/approve";
  191. // 用工审核的批量拒绝
  192. static const apiLabourReviewReject = "/index.php/api/v1/hotel/lab-review/reject";
  193. // 考勤的审核列表
  194. static const apiAttendanceReviewTable = "/index.php/api/v1/hotel/att-review/table";
  195. // 考勤的批量同意
  196. static const apiAttendanceReviewApprove = "/index.php/api/v1/hotel/att-review/approve";
  197. // 考勤的批量拒绝
  198. static const apiAttendanceReviewReject = "/index.php/api/v1/hotel/att-review/reject";
  199. // =========================== 其他 ↓=========================================
  200. //服务器时间
  201. static const apiServerTime = "/index.php/api/employee/extra/time";
  202. }