feat: sku

This commit is contained in:
2025-01-08 15:45:28 +08:00
parent 4c10e8ed71
commit b23865f4f1
5 changed files with 22 additions and 10 deletions

View File

@@ -46,10 +46,11 @@ class GoodRequest extends FormRequest
}
protected array $scenes = [
'add_spu' => ['date', 'kitchen_id', 'chef_id', 'title', 'sub_title', 'category_id', 'saleable'],
'list_cycle' => [],
'add_spu' => ['cycle_id', 'kitchen_id', 'chef_id', 'title', 'sub_title', 'category_id', 'saleable'],
'edit_spu' => ['id','kitchen_id', 'chef_id', 'title', 'sub_title', 'category_id', 'saleable'],
'del_spu' => ['id'],
'spu' => ['id'],
'list_spu' => ['cycle_id']
'list_spu' => ['cycle_id'],
];
}