Quellcode durchsuchen

录用审批详情的接口加了个/hr的前缀

ZGC4846 vor 4 Tagen
Ursprung
Commit
7ba90c1c8f
2 geänderte Dateien mit 6 neuen und 6 gelöschten Zeilen
  1. 1 1
      src/api/bpm/components/offerApproval/index.js
  2. 5 5
      src/api/hr/hiringApproval.js

+ 1 - 1
src/api/bpm/components/offerApproval/index.js

@@ -87,7 +87,7 @@ export function adaptHiringApproval(raw = {}) {
 
 /** 根据业务主键获取录用审批详情(审批页 businessId) */
 export async function getHiringApprovalById(id) {
-  const res = await request.get(`/recruit/hiring-approvals/${id}`);
+  const res = await request.get(`/hr/recruit/hiring-approvals/${id}`);
   if (res.data.code == 0) {
     return adaptHiringApproval(res.data.data || {});
   }

+ 5 - 5
src/api/hr/hiringApproval.js

@@ -318,29 +318,29 @@ export function serializeHiringApprovalQuery(params = {}) {
 /** 录用审批分页查询 GET /recruit/hiring-approvals */
 export const getHiringApprovalPage = async (params = {}) =>
   unwrap(
-    await request.get("/recruit/hiring-approvals", {
+    await request.get("/hr/recruit/hiring-approvals", {
       params: serializeHiringApprovalQuery(params),
     }),
   );
 
-/** 录用审批详情查询 GET /recruit/hiring-approvals/{id},id 为列表主键 */
+/** 录用审批详情查询 GET /hr/recruit/hiring-approvals/{id},id 为列表主键 */
 export const getHiringApprovalById = async (id) => {
   const hiringId = keepBigIntId(id);
   if (hiringId == null || hiringId === "") {
     return Promise.reject(new Error("缺少录用审批主键"));
   }
   return adaptHiringApproval(
-    await unwrap(await request.get(`/recruit/hiring-approvals/${hiringId}`)),
+    await unwrap(await request.get(`/hr/recruit/hiring-approvals/${hiringId}`)),
   );
 };
 
 /**
- * 保存录用审批草稿 POST /recruit/hiring-approvals
+ * 保存录用审批草稿 POST /hr/recruit/hiring-approvals
  * 成功返回主键 id;前端发起时再调 BPM create
  */
 export const createHiringApproval = async (data) => {
   const payload = serializeHiringApproval(data || {});
-  return unwrap(await request.post("/recruit/hiring-approvals", payload));
+  return unwrap(await request.post("/hr/recruit/hiring-approvals", payload));
 };
 
 /** 与 create 同一接口(文档无独立修改接口) */