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:
8
src/types/Management/list.d.ts
vendored
8
src/types/Management/list.d.ts
vendored
@@ -23,6 +23,9 @@ declare namespace API.ManagementList {
|
||||
longitude?: number;
|
||||
maxSalary?: number;
|
||||
minSalary?: number;
|
||||
salaryComposition?: string;
|
||||
welfareBenefits?: string;
|
||||
workSchedule?: string;
|
||||
postingDate?: string;
|
||||
vacancies?: number;
|
||||
view?: number;
|
||||
@@ -32,6 +35,7 @@ declare namespace API.ManagementList {
|
||||
jobContactList?: ContactPerson[];
|
||||
createTime?: string;
|
||||
jobCategory?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface AddParams {
|
||||
@@ -52,6 +56,9 @@ declare namespace API.ManagementList {
|
||||
longitude?: number;
|
||||
maxSalary?: number;
|
||||
minSalary?: number;
|
||||
salaryComposition?: string;
|
||||
welfareBenefits?: string;
|
||||
workSchedule?: string;
|
||||
postingDate?: string;
|
||||
vacancies?: number;
|
||||
view?: number;
|
||||
@@ -60,6 +67,7 @@ declare namespace API.ManagementList {
|
||||
jobType?: string;
|
||||
jobContactList?: ContactPerson[];
|
||||
jobCategory?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface ListParams {
|
||||
|
||||
11
src/types/company/list.d.ts
vendored
11
src/types/company/list.d.ts
vendored
@@ -9,7 +9,6 @@ declare namespace API.CompanyList {
|
||||
export interface CompanyContact {
|
||||
contactPerson: string;
|
||||
contactPersonPhone: string;
|
||||
position?: string;
|
||||
}
|
||||
|
||||
export interface Company {
|
||||
@@ -19,8 +18,12 @@ declare namespace API.CompanyList {
|
||||
location?: any;
|
||||
industry: string;
|
||||
scale: string;
|
||||
companyNature?: string;
|
||||
code: string;
|
||||
description: string;
|
||||
registeredAddress?: string;
|
||||
legalPerson?: string;
|
||||
legalPhone?: string;
|
||||
companyContactList?: CompanyContact[];
|
||||
contactPerson?: string;
|
||||
contactPersonPhone?: string;
|
||||
@@ -36,7 +39,13 @@ declare namespace API.CompanyList {
|
||||
location?: any;
|
||||
industry?: string;
|
||||
scale?: string;
|
||||
companyNature?: string;
|
||||
code?: string;
|
||||
description?: string;
|
||||
registeredAddress?: string;
|
||||
legalPerson?: string;
|
||||
legalPhone?: string;
|
||||
companyContactList?: CompanyContact[];
|
||||
status?: 0 | 1 | 2;
|
||||
startDate?: string;
|
||||
endDate?: string;
|
||||
|
||||
Reference in New Issue
Block a user