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:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user