企业屏蔽功能开发
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:
francis-fh
2026-07-12 10:49:52 +08:00
parent 0cff24aab1
commit 9f5c3c2c10
11 changed files with 384 additions and 11 deletions

View File

@@ -182,3 +182,22 @@ export async function submitJobComplaint(params: {
});
}
/** 屏蔽企业 POST /cms/blockCompany */
export async function blockCompany(params: { userId: number; companyId: number }) {
return request<API.Result>('/api/cms/blockCompany', {
method: 'POST',
data: params,
});
}
/** 获取屏蔽企业列表 GET /cms/blockCompany/list */
export async function getBlockedCompanyList(params?: { pageNum?: number; pageSize?: number }) {
return request<API.Result>('/api/cms/blockCompany/list', {
method: 'GET',
params: {
pageNum: params?.pageNum || 1,
pageSize: params?.pageSize || 10,
},
});
}