feat: 新增户外招聘会企业退订功能
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled
This commit is contained in:
@@ -321,6 +321,17 @@ export async function signupOutdoorFair(fairId: number) {
|
||||
);
|
||||
}
|
||||
|
||||
/** 当前企业退订已审核通过的户外招聘会。 */
|
||||
export async function unsubscribeOutdoorFair(fairId: number, reason: string) {
|
||||
return request<{ code: number; msg?: string }>(
|
||||
`${CMS_OUTDOOR_FAIR_BASE}/${fairId}/company/unsubscribe`,
|
||||
{
|
||||
method: 'POST',
|
||||
data: { reason },
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取当前企业户外招聘会二维码
|
||||
* GET /api/cms/outdoor-fair/{fairId}/company/qrcode
|
||||
|
||||
@@ -1027,6 +1027,26 @@ export async function getParticipatingCompanies(
|
||||
);
|
||||
}
|
||||
|
||||
/** 获取招聘会企业退订记录。 */
|
||||
export async function getCompanyUnsubscribes(
|
||||
fairId: number,
|
||||
params?: {
|
||||
current?: number;
|
||||
pageSize?: number;
|
||||
companyName?: string;
|
||||
},
|
||||
) {
|
||||
return request<{
|
||||
code: number;
|
||||
msg?: string;
|
||||
total: number;
|
||||
rows: API.OutdoorFairDetail.CompanyUnsubscribe[];
|
||||
}>(`/api/cms/outdoor-fair/${fairId}/company-unsubscribes`, {
|
||||
method: 'GET',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
/** 分页获取招聘会参会岗位,可按企业懒加载。 */
|
||||
export async function getParticipatingJobs(
|
||||
fairId: number,
|
||||
|
||||
Reference in New Issue
Block a user