the first commit
This commit is contained in:
35
src/app/models/item.model.ts
Normal file
35
src/app/models/item.model.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
export interface Item {
|
||||
id: string;
|
||||
name: string;
|
||||
visible: boolean;
|
||||
priority: number;
|
||||
quantity: number;
|
||||
price: number;
|
||||
currency: string;
|
||||
imgs: string[];
|
||||
tags: string[];
|
||||
simpleDescription: string;
|
||||
description: ItemDescriptionField[];
|
||||
subcategoryId: string;
|
||||
comments?: Comment[];
|
||||
}
|
||||
|
||||
export interface ItemDescriptionField {
|
||||
key: string;
|
||||
value: string;
|
||||
}
|
||||
|
||||
export interface Comment {
|
||||
id: string;
|
||||
text: string;
|
||||
createdAt: Date;
|
||||
author?: string;
|
||||
}
|
||||
|
||||
export interface ItemsListResponse {
|
||||
items: Item[];
|
||||
total: number;
|
||||
page: number;
|
||||
limit: number;
|
||||
hasMore: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user