fix: update update interface cannot be null

This commit is contained in:
Methapon2001 2024-03-18 17:52:25 +07:00
parent e64dbf20ce
commit 8339c55472
2 changed files with 34 additions and 59 deletions

View file

@ -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;
};