属性下拉

This commit is contained in:
2025-06-17 17:16:06 +08:00
parent fee2241317
commit 2a0bfc92cb
3 changed files with 31 additions and 0 deletions
@@ -48,6 +48,21 @@ class VehicleNewAttributesService extends BaseService
]
];
},
'preset' => function ($params) {
return [
'filters' => [
],
'fields' => ['id','status'],
'relations' => [
'translation' => ['attributes_id', 'locale', 'attribute_name'],
'value' => ['id', 'attribute_id', 'sort_order'],
'value.translation' => ['id', 'values_id', 'locale', 'value_name'],
],
'sorts' => [
['field' => 'created_at', 'direction' => 'desc']
],
];
},
'show' => function ($params) {
return [
'filters' => [