packages/server/src/modules/productUnit/unit.interface.ts
Properties |
desc |
Type : string
|
Decorators :
@IsString()
|
Optional id |
Type : number
|
label |
Type : string
|
Decorators :
@IsString()
|
name |
Type : string
|
Decorators :
@IsString()
|
import { IsNumber, IsString, Max, Min } from "class-validator";
import { BaseQuery } from "@/common/interfaces/query";
export class ProductUnitBodyRequest {
id?: number;
@IsString()
name: string;
@IsString()
label: string;
@IsString()
desc: string;
}
export class ProductUnitQuery extends BaseQuery {
}