feat: Enhance Company and Job Portal functionality

- Added company nature selection to ManagementList and JobDetailPage.
- Implemented detailed tags for job benefits and schedules in JobDetailPage and JobListPage.
- Introduced CompanyInfoPage for managing company details, including nature, scale, and contacts.
- Enhanced ManagementList to support salary composition, welfare benefits, and work schedule fields.
- Created utility functions for parsing and serializing comma-separated tags.
- Updated API services to fetch and update current company information.
- Added tests for new utility functions to ensure correct parsing and serialization of tags.
This commit is contained in:
2026-07-20 11:53:43 +08:00
parent 4d48d33476
commit ed0ac7c4c2
17 changed files with 681 additions and 47 deletions

View File

@@ -58,3 +58,22 @@ export async function getCmsCompanyDetail(companyId: number | string) {
method: 'GET',
});
}
/** 获取当前企业用户关联的企业信息 */
export async function getCmsCurrentCompany() {
return request<{
code: number;
msg?: string;
data?: API.CompanyList.Company;
}>('/api/cms/company/current', {
method: 'GET',
});
}
/** 修改当前企业用户关联的企业信息 */
export async function putCmsCurrentCompany(params: API.CompanyList.Params) {
return request<API.CompanyList.CompanyListResult>('/api/cms/company/current', {
method: 'PUT',
data: params,
});
}