feat(shopping): photo par article dans le catalogue
- Upload photo (context=product → thumbnail 150×150) dans CatalogueModal - Miniature affichée dans la liste et dans le formulaire - Schémas ProductCreate/Update/Response exposent image_path + thumbnail_path - Backend sert /media/* via StaticFiles (FastAPI) - Proxy /media → backend dans vite.config et nginx.conf Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -34,6 +34,8 @@ export interface Product {
|
||||
quantity_per_unit: string | null
|
||||
default_store_id: string | null
|
||||
frequency_score: number
|
||||
image_path: string | null
|
||||
thumbnail_path: string | null
|
||||
}
|
||||
|
||||
export interface ProductCreate {
|
||||
@@ -46,6 +48,8 @@ export interface ProductCreate {
|
||||
price?: string
|
||||
quantity_per_unit?: string
|
||||
default_store_id?: string
|
||||
image_path?: string
|
||||
thumbnail_path?: string
|
||||
}
|
||||
|
||||
export interface ProductUpdate {
|
||||
@@ -58,6 +62,8 @@ export interface ProductUpdate {
|
||||
price?: string
|
||||
quantity_per_unit?: string
|
||||
default_store_id?: string
|
||||
image_path?: string
|
||||
thumbnail_path?: string
|
||||
}
|
||||
|
||||
export interface ShoppingItem {
|
||||
|
||||
Reference in New Issue
Block a user