mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-16 18:56:22 +00:00
create get and post home api
This commit is contained in:
@ -12,4 +12,8 @@ export class HomeDto {
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
public homeId: string;
|
||||
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
public homeName: string;
|
||||
}
|
||||
|
@ -22,6 +22,11 @@ export class HomeEntity extends AbstractEntity<HomeDto> {
|
||||
})
|
||||
public homeId: string;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
})
|
||||
public homeName: string;
|
||||
|
||||
constructor(partial: Partial<HomeEntity>) {
|
||||
super();
|
||||
Object.assign(this, partial);
|
||||
|
Reference in New Issue
Block a user