Entity Create Function
This commit is contained in:
parent
d17e31fbad
commit
c81dacadc6
3 changed files with 36 additions and 0 deletions
|
|
@ -25,3 +25,13 @@ export class PosExecutive extends EntityBase {
|
|||
@OneToMany(() => PosDict, (posDict) => posDict.posExecutive)
|
||||
posDicts: PosDict[];
|
||||
}
|
||||
|
||||
export class CreatePosExecutive {
|
||||
@Column()
|
||||
posExecutiveName: string;
|
||||
|
||||
@Column()
|
||||
posExecutivePriority: number;
|
||||
}
|
||||
|
||||
export type UpdatePosExecutive = Partial<CreatePosExecutive>;
|
||||
|
|
@ -51,3 +51,19 @@ export class PosLevel extends EntityBase {
|
|||
@OneToMany(() => PosDict, (posDict) => posDict.posLevel)
|
||||
posDicts: PosDict[];
|
||||
}
|
||||
|
||||
export class CreatePosLevel {
|
||||
@Column()
|
||||
posLevelName: string;
|
||||
|
||||
@Column()
|
||||
posLevelRank: number;
|
||||
|
||||
@Column()
|
||||
posLevelAuthority: string;
|
||||
|
||||
@Column("uuid")
|
||||
posTypeId: string;
|
||||
}
|
||||
|
||||
export type UpdatePosLevel = Partial<CreatePosLevel>;
|
||||
|
|
|
|||
|
|
@ -30,3 +30,13 @@ export class PosType extends EntityBase {
|
|||
@OneToMany(() => PosDict, (posDict) => posDict.posType)
|
||||
posDicts: PosDict[];
|
||||
}
|
||||
|
||||
export class CreatePosType {
|
||||
@Column()
|
||||
posTypeName: string;
|
||||
|
||||
@Column()
|
||||
posTypeRank: number;
|
||||
}
|
||||
|
||||
export type UpdatePosType = Partial<CreatePosType>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue