|
|
@@ -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 同一接口(文档无独立修改接口) */
|