chore: initial commit
This commit is contained in:
33
frontend/packages/lib-shared/models/product.ts
Normal file
33
frontend/packages/lib-shared/models/product.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
import type { ModuleField } from './common';
|
||||
|
||||
export interface ProductListItem {
|
||||
id: string;
|
||||
name: string;
|
||||
status: string;
|
||||
price: number;
|
||||
createUser: string;
|
||||
updateUser: string;
|
||||
createTime: number;
|
||||
updateTime: number;
|
||||
createUserName: string;
|
||||
updateUserName: string;
|
||||
moduleFields: ModuleField[];
|
||||
}
|
||||
|
||||
export interface SaveProductParams {
|
||||
name: string;
|
||||
moduleFields: ModuleField[];
|
||||
}
|
||||
|
||||
export interface UpdateProductParams extends SaveProductParams {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface UpdatePriceParams extends SaveProductParams {
|
||||
id: string;
|
||||
status: boolean;
|
||||
}
|
||||
|
||||
export interface AddPriceParams extends SaveProductParams {
|
||||
status: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user