fix: update update interface cannot be null
This commit is contained in:
parent
e64dbf20ce
commit
8339c55472
2 changed files with 34 additions and 59 deletions
|
|
@ -177,68 +177,49 @@ export class ProfileEducation extends EntityBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
export class CreateProfileEducation {
|
export class CreateProfileEducation {
|
||||||
@Column("uuid")
|
|
||||||
profileId: string | null;
|
profileId: string | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
isActive: boolean;
|
isActive: boolean;
|
||||||
|
|
||||||
@Column()
|
|
||||||
country: string | null;
|
country: string | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
degree: string | null;
|
degree: string | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
duration: string | null;
|
duration: string | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
durationYear: number;
|
durationYear: number;
|
||||||
|
|
||||||
@Column()
|
|
||||||
field: string | null;
|
field: string | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
finishDate: Date | null;
|
finishDate: Date | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
fundName: string | null;
|
fundName: string | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
gpa: string | null;
|
gpa: string | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
institute: string | null;
|
institute: string | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
other: string | null;
|
other: string | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
startDate: Date | null;
|
startDate: Date | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
endDate: Date | null;
|
endDate: Date | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
educationLevel: string | null;
|
educationLevel: string | null;
|
||||||
|
|
||||||
@Column("uuid")
|
|
||||||
educationLevelId: string | null;
|
educationLevelId: string | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
positionPath: string | null;
|
positionPath: string | null;
|
||||||
|
|
||||||
@Column("uuid")
|
|
||||||
positionPathId: string | null;
|
positionPathId: string | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
isDate: boolean | null;
|
isDate: boolean | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
isEducation: boolean | null;
|
isEducation: boolean | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
note: string | null;
|
note: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type UpdateProfileEducation = Partial<CreateProfileEducation>;
|
export type UpdateProfileEducation = {
|
||||||
|
profileId?: string | null;
|
||||||
|
isActive?: boolean;
|
||||||
|
country?: string | null;
|
||||||
|
degree?: string | null;
|
||||||
|
duration?: string | null;
|
||||||
|
durationYear?: number;
|
||||||
|
field?: string | null;
|
||||||
|
finishDate?: Date | null;
|
||||||
|
fundName?: string | null;
|
||||||
|
gpa?: string | null;
|
||||||
|
institute?: string | null;
|
||||||
|
other?: string | null;
|
||||||
|
startDate?: Date | null;
|
||||||
|
endDate?: Date | null;
|
||||||
|
educationLevel?: string | null;
|
||||||
|
educationLevelId?: string | null;
|
||||||
|
positionPath?: string | null;
|
||||||
|
positionPathId?: string | null;
|
||||||
|
isDate?: boolean | null;
|
||||||
|
isEducation?: boolean | null;
|
||||||
|
note?: string | null;
|
||||||
|
};
|
||||||
|
|
|
||||||
|
|
@ -75,29 +75,23 @@ export class ProfileHonor extends EntityBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
export class CreateProfileHonor {
|
export class CreateProfileHonor {
|
||||||
@Column("uuid")
|
|
||||||
profileId: string | null;
|
profileId: string | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
isActive: boolean;
|
isActive: boolean;
|
||||||
|
|
||||||
@Column()
|
|
||||||
detail: string | null;
|
detail: string | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
issueDate: Date | null;
|
issueDate: Date | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
issuer: string | null;
|
issuer: string | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
refCommandDate: Date | null;
|
refCommandDate: Date | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
refCommandNo: string | null;
|
refCommandNo: string | null;
|
||||||
|
|
||||||
@Column()
|
|
||||||
isDate: boolean | null;
|
isDate: boolean | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type UpdateProfileHonor = Partial<CreateProfileHonor>;
|
export type UpdateProfileHonor = {
|
||||||
|
profileId?: string | null;
|
||||||
|
isActive?: boolean;
|
||||||
|
detail?: string | null;
|
||||||
|
issueDate?: Date | null;
|
||||||
|
issuer?: string | null;
|
||||||
|
refCommandDate?: Date | null;
|
||||||
|
refCommandNo?: string | null;
|
||||||
|
isDate?: boolean | null;
|
||||||
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue