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

This commit is contained in:
2026-07-23 15:57:47 +08:00
parent 95c31a359a
commit b937b189c2
2 changed files with 110 additions and 3 deletions

View File

@@ -134,6 +134,18 @@ export interface OutdoorFairCompanyQrCodeInfo {
qrCodeContent: string;
}
/** 管理端查看的招聘会微信小程序码。 */
export interface OutdoorFairMiniProgramQrCodeInfo {
fairId: number;
page: string;
scene: string;
imageData: string;
/** getUnlimitedQRCode 生成的小程序码长期有效。 */
permanent: boolean;
/** 小程序码本身是否需要周期轮换。 */
rotationRequired: boolean;
}
/** 企业审核通过后可读取的只读展位图。 */
export interface OutdoorFairCompanyBoothMap {
currentCompanyId: number;
@@ -307,6 +319,17 @@ export async function getMyOutdoorFairQrCode(fairId: number) {
);
}
/**
* 管理员获取招聘会微信小程序码
* GET /api/cms/outdoor-fair/{fairId}/mini-program-qrcode
*/
export async function getOutdoorFairMiniProgramQrCode(fairId: number) {
return request<{ code: number; msg?: string; data: OutdoorFairMiniProgramQrCodeInfo }>(
`${CMS_OUTDOOR_FAIR_BASE}/${fairId}/mini-program-qrcode`,
{ method: 'GET' },
);
}
/**
* 上传户外招聘会照片
* POST /api/common/upload