//网络请求相关Api常量 class ApiConstants { //当前服务器环境 static const isServerRelease = false; //新加坡的域名 static const sgBaseUrl = isServerRelease ? 'http://singapore.casualabour.com' : 'http://singapore-dev.casualabour.com'; //英国的域名 static const ukBaseUrl = isServerRelease ? 'https://uk.casualabour.com' : 'http://vietnam-dev.casualabour.com'; //越南的域名 static const vnBaseUrl = isServerRelease ? 'https://vietnam.casualabour.com' : 'http://vietnam-dev.casualabour.com'; // =========================== 用户相关 ↓========================================= // 酒店登录 static const apiUserLogin = "/index.php/api/v1/hotel/login"; // 用户登出系统 static const apiUserLogout = "/index.php/api/v1/hotel/logout"; // 用户修改密码 static const apiResetPassword = "/index.php/api/v1/hotel/reset"; //获取用户的详情信息 static const apiHotelInfo = "/index.php/api/v1/hotel/info"; //用户注册 static const apiHotelRegister = "/index.php/api/v1/hotel/register"; //用户注销 static const apiHotelDeactivate = "/index.php/api/v1/hotel/deactivate"; // =========================== 用工请求 ↓========================================= //筛选条件 static const apiLabourRequestIndex = "/index.php/api/v1/hotel/lab-req/index"; //用工列表 static const apiLabourRequestList = "/index.php/api/v1/hotel/lab-req/table"; //添加的选择条件 static const apiLabourRequestAddOption = "/index.php/api/v1/hotel/lab-req/add-view"; //添加用工请求 static const apiLabourRequestAddSubmit = "/index.php/api/v1/hotel/lab-req/add-submit"; //编辑的选项 static const apiLabourRequestEditDetail = "/index.php/api/v1/hotel/lab-req/edit-view"; //编辑的发布 static const apiLabourRequestEditSubmit = "/index.php/api/v1/hotel/lab-req/edit-submit"; //用工请求的审核状态工作流 static const apiLabourRequestStateWorkFlow = "/index.php/api/v1/hotel/lab-req/status-view"; //撤回用工请求 static const apiLabourRequestRecall = "/index.php/api/v1/hotel/lab-req/recall"; // =========================== 工作列表 ↓========================================= // 工作列表首页选项 static const apiJobListIndex = "/index.php/api/v1/hotel/job/index"; // 工作列表首页列表 static const apiJobListTable = "/index.php/api/v1/hotel/job/table"; // 工作列表首页详情 static const apiJobListDetail = "/index.php/api/v1/hotel/job/detail"; // 工作已申请员工列表-工作的信息 static const apiJobListAppliedJobInfo = "/index.php/api/v1/hotel/applied/index"; // 工作已申请员工列表-员工列表 static const apiJobListAppliedStaffList = "/index.php/api/v1/hotel/applied/table"; // 工作已申请员工列表-添加员工查询全部员工 static const apiJobListAppliedStaffSearch = "/index.php/api/v1/hotel/applied/staff-view"; // 工作已申请员工列表-添加员工提交 static const apiJobListAppliedStaffAdd = "/index.php/api/v1/hotel/applied/staff-submit"; // 工作已申请员工列表-批量修改员工状态 static const apiJobListAppliedStaffBatchEdit = "/index.php/api/v1/hotel/applied/batch-edit"; // 工作已申请员工列表-编辑员工信息的详情数据 static const apiJobListAppliedStaffEditIndex = "/index.php/api/v1/hotel/applied/edit-view"; // 工作已申请员工列表-编辑员工信息提交 static const apiJobListAppliedStaffEditSubmit = "/index.php/api/v1/hotel/applied/edit-submit"; // 工作已申请员工列表-评价员工的详情数据 static const apiJobListAppliedStaffReviewIndex = "/index.php/api/v1/hotel/applied/remark-view"; // 工作已申请员工列表-评价员工的提交 static const apiJobListAppliedStaffReviewSubmit = "/index.php/api/v1/hotel/applied/remark-submit"; // 工作已申请员工列表-评价员工的提交 static const apiJobListAppliedStaffStateWorkflow = "/index.php/api/v1/hotel/applied/status-view"; // 工作已申请员工列表- 提交指定员工们到审核流程 static const apiJobListAppliedApprove = "/index.php/api/v1/hotel/applied/approve"; //员工详情 static const apiJobListStaffDetail = "/index.php/api/v1/hotel/member/detail"; //员工做工历史记录 static const apiJobListStaffLabourHistory = "/index.php/api/v1/hotel/member/history"; //员工做工评价记录 static const apiJobListStaffRemarkHistory = "/index.php/api/v1/hotel/member/remarks"; // =========================== 签到签出 ↓========================================= // 用户签到签出列表 static const apiSignApplied = "/index.php/api/v1/hotel/sign/table"; // 用户签到签出 static const apiSignInOut = "/index.php/api/v1/hotel/sign/clock"; // =========================== 新加坡用工 ↓========================================= // 工作标题列表 static const apiJobTitleListSG = "/index.php/api/v1/hotel/title/table"; // 添加工作标题的选项数据 static const apiJobTitleAddIndexSG = "/index.php/api/v1/hotel/title/add-view"; // 添加工作标题提交 static const apiJobTitleAddSubmitSG = "/index.php/api/v1/hotel/title/add-submit"; // 编辑工作标题的选项数据 static const apiJobTitleEditIndexSG = "/index.php/api/v1/hotel/title/edit-view"; // 编辑工作标题提交 static const apiJobTitleEditSubmitSG = "/index.php/api/v1/hotel/title/edit-submit"; // 删除工作标题 static const apiJobTitleDeleteSG = "/index.php/api/v1/hotel/title/delete"; // 工作模板列表 static const apiJobTemplateListSG = "/index.php/api/v1/hotel/temp/table"; // 添加工作模板选项数据 static const apiJobTemplateAddIndexSG = "/index.php/api/v1/hotel/temp/add-view"; // 添加工作模板选提交 static const apiJobTemplateAddSubmitSG = "/index.php/api/v1/hotel/temp/add-submit"; // 编辑工作模板选项数据 static const apiJobTemplateEditIndexSG = "/index.php/api/v1/hotel/temp/edit-view"; // 编辑工作模板提交 static const apiJobTemplateEditSubmitSG = "/index.php/api/v1/hotel/temp/edit-submit"; // 删除工作模板 static const apiJobTemplateDeleteSG = "/index.php/api/v1/hotel/temp/delete"; //用工请求的列表 Option static const apiLabourRequestOptionSG = "/index.php/api/v2/hotel/lab-req/index"; //用工请求的列表 Table static const apiLabourRequestTableSG = "/index.php/api/v2/hotel/lab-req/table"; //用工请求的添加页面选项数据 static const apiLabourRequestAddOptionSG = "/index.php/api/v2/hotel/lab-req/add-view"; //用工请求的添加提交 static const apiLabourRequestAddSubmitSG = "/index.php/api/v2/hotel/lab-req/add-submit"; //用工请求的编辑页面详情数据 static const apiLabourRequestEditDetailSG = "/index.php/api/v2/hotel/lab-req/edit-view"; //用工请求的编辑页面提交 static const apiLabourRequestEditSubmitSG = "/index.php/api/v2/hotel/lab-req/edit-submit"; //用工请求的撤回 static const apiLabourRequestRecallSG = "/index.php/api/v2/hotel/lab-req/recall"; //新加坡的用工请求删除 static const apiLabourRequestDelete = "/index.php/api/v2/hotel/lab-req/destroy"; //新加坡工作详情的审核流列表 static const apiLabourRequestWorkflowSG = "/index.php/api/v2/hotel/lab-req/status-view"; //用工请求的查询选项(Job List) static const apiJobListIndexSG = "/index.php/api/v1/hotel/job/index"; //用工请求的查询列表(Job List) static const apiJobListTableSG = "/index.php/api/v1/hotel/job/table"; //用工请求的编辑详情(Job List) static const apiJobListEditIndexSG = "/index.php/api/v1/hotel/job/edit-view"; //用工请求的编辑提交(Job List) static const apiJobListEditSubmitSG = "/index.php/api/v1/hotel/job/edit-submit"; //用工请求的取消(Job List) static const apiJobListCancelSG = "/index.php/api/v1/hotel/job/cancel"; //用工请求的删除(Job List) static const apiJobListDeleteSG = "/index.php/api/v1/hotel/job/delete"; //用工请求的考勤确认(Job List) static const apiJobListConfirmSG = "/index.php/api/v1/hotel/job/confirm"; // =========================== 新加坡工作相关 ↓========================================= //新加坡工作已申请的选项 static const apiJobAppliedIndexSG = "/index.php/api/v1/hotel/applied/index"; //新加坡工作已申请的列表 static const apiJobAppliedListSG = "/index.php/api/v1/hotel/applied/table"; //新加坡工作已申请的列表-添加员工搜索 static const apiJobAppliedSearchStaffSG = "/index.php/api/v1/hotel/applied/staff-view"; //新加坡工作已申请的列表-添加员工提交 static const apiJobAppliedAddStaffSubmitSG = "/index.php/api/v1/hotel/applied/staff-submit"; //新加坡工作已申请的列表-批量修改 static const apiJobAppliedBatchEditSG = "/index.php/api/v1/hotel/applied/batch-edit"; //新加坡工作已申请的列表-单独编辑的详情 static const apiJobAppliedEditViewSG = "/index.php/api/v1/hotel/applied/edit-view"; //新加坡工作已申请的列表-提交编辑 static const apiJobAppliedEditSubmitSG = "/index.php/api/v1/hotel/applied/edit-submit"; //新加坡工作已申请的列表-修改状态 static const apiJobAppliedChangeStatusSG = "/index.php/api/v1/hotel/applied/edit-status"; //新加坡工作已申请的列表-评价展示 static const apiJobAppliedRemarkViewSG = "/index.php/api/v1/hotel/applied/remark-view"; //新加坡工作已申请的列表-提交评价 static const apiJobAppliedRemarkSubmitSG = "/index.php/api/v1/hotel/applied/remark-submit"; //员工详情 static const apiJobListStaffDetailSG = "/index.php/api/v1/hotel/member/detail"; //员工做工历史记录 static const apiJobListStaffLabourHistorySG = "/index.php/api/v1/hotel/member/history"; //员工做工评价顶部数据 static const apiJobListStaffReviewHeadSG = "/index.php/api/v1/hotel/member/review"; //员工做工评价列表 static const apiJobListStaffReViewHistorySG = "/index.php/api/v1/hotel/member/review/table"; //员工修改记录-选项 static const apiReviseIndexSG = "/index.php/api/v1/hotel/revise/index"; //员工修改记录-列表 static const apiReviseListSG = "/index.php/api/v1/hotel/revise/table"; //给指定的申请记录添加 Revise 数据(详情) static const apiAddReviseViewSG = "/index.php/api/v1/hotel/revise/add-view"; //给指定的申请记录添加 Revise 数据(提交) static const apiAddReviseSubmitSG = "/index.php/api/v1/hotel/revise/add-submit"; //给指定的申请记录编辑 Revise 数据(详情) static const apiEditReviseViewSG = "/index.php/api/v1/hotel/revise/edit-view"; //给指定的申请记录编辑 Revise 数据(提交) static const apiEditReviseSubmitSG = "/index.php/api/v1/hotel/revise/edit-submit"; //撤回指定的 Revise 数据 static const apiRecallReviseSG = "/index.php/api/v1/hotel/revise/recall"; //删除指定的 Revise 数据 static const apiDeleteReviseSG = "/index.php/api/v1/hotel/revise/delete"; //Revise 的操作日志 static const apiReviseLogListSG = "/index.php/api/v1/hotel/revise/logs"; // =========================== 报表与其他 ↓========================================= // 设备列表 static const apiDeviceList = "/index.php/api/v1/hotel/device/table"; //财务报表 static const apiReportFiance = "/index.php/api/v1/hotel/report/finance"; //用工报表 static const apiReportLabour = "/index.php/api/v1/hotel/report/casual"; //员工申请报表 static const apiReportStaffRequest = "/index.php/api/v1/hotel/report/staff"; // =========================== 越南的审核 ↓========================================= // 用工审核选项 static const apiLabourReviewIndex = "/index.php/api/v1/hotel/lab-review/index"; // 用工审核列表 static const apiLabourReviewTable = "/index.php/api/v1/hotel/lab-review/table"; // 用工审核的编辑详情 static const apiLabourReviewDetail = "/index.php/api/v1/hotel/lab-review/edit-view"; // 用工审核的编辑提交 static const apiLabourReviewEdit = "/index.php/api/v1/hotel/lab-review/edit-submit"; // 用工审核的审核流程列表 static const apiLabourReviewStatusView = "/index.php/api/v1/hotel/lab-review/status-view"; // 用工审核的批量同意 static const apiLabourReviewApprove = "/index.php/api/v1/hotel/lab-review/approve"; // 用工审核的批量拒绝 static const apiLabourReviewReject = "/index.php/api/v1/hotel/lab-review/reject"; // 考勤的审核列表 static const apiAttendanceReviewTable = "/index.php/api/v1/hotel/att-review/table"; // 考勤的批量同意 static const apiAttendanceReviewApprove = "/index.php/api/v1/hotel/att-review/approve"; // 考勤的批量拒绝 static const apiAttendanceReviewReject = "/index.php/api/v1/hotel/att-review/reject"; // =================================== 新加坡 V2 ↓ =================================== //登录 static const apiAuthLoginV2 = "/index.php/api/v2/hotel/login"; //首页信息 static const apiHotelInfoV2 = "/index.php/api/v2/hotel/info"; //中介列表Option static const apiAgencyOption = "/index.php/api/v2/hotel/agency/index"; //中介列表 static const apiAgencyTable = "/index.php/api/v2/hotel/agency/table"; //中介的删除 static const apiAgencyDelete = "/index.php/api/v2/hotel/agency/destroy"; //添加中介 static const apiAgencyAdd = "/index.php/api/v2/hotel/agency/add-submit"; //中介详情 static const apiAgencyDetail = "/index.php/api/v2/hotel/agency/edit-view"; //编辑中介 static const apiAgencyEdit = "/index.php/api/v2/hotel/agency/edit-submit"; //中介职位的列表 static const apiAgencyPositionTable = "/index.php/api/v2/hotel/position/table"; //中介职位的添加 static const apiAgencyPositionAdd = "/index.php/api/v2/hotel/position/add-submit"; //中介职位的编辑 static const apiAgencyPositionEdit = "/index.php/api/v2/hotel/position/edit-submit"; //中介职位的删除 static const apiAgencyPositionDelete = "/index.php/api/v2/hotel/position/destroy"; //中介合同列表Option static const apiContractOption = "/index.php/api/v2/hotel/contract/index"; //中介合同列表 static const apiContractTable = "/index.php/api/v2/hotel/contract/table"; //中介合同添加Option static const apiContractAddOption = "/index.php/api/v2/hotel/contract/add-view"; //中介合同添加的提交 static const apiContractAddSubmit = "/index.php/api/v2/hotel/contract/add-submit"; //中介合同的详情 static const apiContractDetail = "/index.php/api/v2/hotel/contract/edit-view"; //中介合同的编辑提交 static const apiContractEditSubmit = "/index.php/api/v2/hotel/contract/edit-submit"; //中介合同的renew操作 static const apiContractRenew = "/index.php/api/v2/hotel/contract/renew"; //合同关联职位 Option static const apiContractPositionOption = "/index.php/api/v2/hotel/contract-position/index"; //合同关联职位 Table static const apiContractPositionTable = "/index.php/api/v2/hotel/contract-position/table"; //合同关联职位 添加 static const apiContractPositionAddOption = "/index.php/api/v2/hotel/contract-position/add-view"; //合同关联职位 添加提交 static const apiContractPositionAddSubmit = "/index.php/api/v2/hotel/contract-position/add-submit"; //合同关联职位 详情 static const apiContractPositionRateDetail = "/index.php/api/v2/hotel/contract-rate/setting-view"; //合同关联职位 编辑提交 static const apiContractPositionRateEditSubmit = "/index.php/api/v2/hotel/contract-rate/setting-submit"; //中介合同时薪列表 static const apiContractRateTable = "/index.php/api/v2/hotel/contract-rate/table"; //中介合同时薪 添加指定日期Option static const apiContractRateSpecificOption = "/index.php/api/v2/hotel/contract-rate/special-view"; //中介合同时薪 添加指定日期 Submit static const apiContractRateSpecificAddSubmit = "/index.php/api/v2/hotel/contract-rate/special-submit"; //中介合同时薪 修改金额 static const apiContractRateAmountEdit = "/index.php/api/v2/hotel/contract-rate/edit-amount"; //中介合同时薪 记录删除 static const apiContractRateDelete = "/index.php/api/v2/hotel/contract-rate/destroy"; //新加坡 V2 Labour Request Review 选项 static const apiLabourRequestReviewOptionSG = "/index.php/api/v2/hotel/lab-review/index"; //新加坡 V2 Labour Request Review 列表 static const apiLabourRequestReviewTableSG = "/index.php/api/v2/hotel/lab-review/table"; //新加坡 V2 Labour Request Review 批量批准 static const apiLabourRequestReviewApproveSG = "/index.php/api/v2/hotel/lab-review/batch-approve"; //新加坡 V2 Labour Request Review 批量拒绝 static const apiLabourRequestReviewRejectSG = "/index.php/api/v2/hotel/lab-review/batch-reject"; //新加坡 V2 Labour Request Review 编辑提交 static const apiLabourRequestReviewEditSubmitSG = "/index.php/api/v2/hotel/lab-review/edit-submit"; }