diff --git a/app/console/service/BrandService.php b/app/console/service/BrandService.php index 40b7090..6c7af14 100644 --- a/app/console/service/BrandService.php +++ b/app/console/service/BrandService.php @@ -37,10 +37,10 @@ class BrandService extends BaseService 'fields' => ['id', 'status', 'sort', 'toppic', 'descpic', 'logo', 'letter', 'is_hot', 'created_at', 'updated_at'], 'relations' => [ 'translation' => ['brand_id', 'name', 'desc','toppic_alt','descpic_alt','logo_alt'], - 'banners' => ['id', 'pic', 'sort',], - 'banners.translation' => ['id', 'alt',], - 'traits' => ['id', 'sort',], - 'traits.translation' => ['id', 'title', 'content',], + 'banner' => ['id', 'pic', 'sort',], + 'banner.translation' => ['id', 'alt',], + 'trait' => ['id', 'sort',], + 'trait.translation' => ['id', 'title', 'content',], ], 'sorts' => [ ['field' => 'id', 'direction' => 'desc']