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 {
|
||||
@Column("uuid")
|
||||
profileId: string | null;
|
||||
|
||||
@Column()
|
||||
isActive: boolean;
|
||||
|
||||
@Column()
|
||||
country: string | null;
|
||||
|
||||
@Column()
|
||||
degree: string | null;
|
||||
|
||||
@Column()
|
||||
duration: string | null;
|
||||
|
||||
@Column()
|
||||
durationYear: number;
|
||||
|
||||
@Column()
|
||||
field: string | null;
|
||||
|
||||
@Column()
|
||||
finishDate: Date | null;
|
||||
|
||||
@Column()
|
||||
fundName: string | null;
|
||||
|
||||
@Column()
|
||||
gpa: string | null;
|
||||
|
||||
@Column()
|
||||
institute: string | null;
|
||||
|
||||
@Column()
|
||||
other: string | null;
|
||||
|
||||
@Column()
|
||||
startDate: Date | null;
|
||||
|
||||
@Column()
|
||||
endDate: Date | null;
|
||||
|
||||
@Column()
|
||||
educationLevel: string | null;
|
||||
|
||||
@Column("uuid")
|
||||
educationLevelId: string | null;
|
||||
|
||||
@Column()
|
||||
positionPath: string | null;
|
||||
|
||||
@Column("uuid")
|
||||
positionPathId: string | null;
|
||||
|
||||
@Column()
|
||||
isDate: boolean | null;
|
||||
|
||||
@Column()
|
||||
isEducation: boolean | null;
|
||||
|
||||
@Column()
|
||||
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 {
|
||||
@Column("uuid")
|
||||
profileId: string | null;
|
||||
|
||||
@Column()
|
||||
isActive: boolean;
|
||||
|
||||
@Column()
|
||||
detail: string | null;
|
||||
|
||||
@Column()
|
||||
issueDate: Date | null;
|
||||
|
||||
@Column()
|
||||
issuer: string | null;
|
||||
|
||||
@Column()
|
||||
refCommandDate: Date | null;
|
||||
|
||||
@Column()
|
||||
refCommandDate: Date | null;
|
||||
refCommandNo: string | null;
|
||||
|
||||
@Column()
|
||||
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