|
@@ -128,11 +128,13 @@ class GoodsService extends BaseService
|
|
|
|
|
|
$return = [
|
|
|
"id" => $model->id,
|
|
|
+ "name" => $model->name,
|
|
|
"image_list" => $model->image_list,
|
|
|
"category" => $model->map->map(function (GoodsCategoryMap $map) {
|
|
|
return [
|
|
|
"id" => $map->category->id,
|
|
|
"is_public" => $map->is_public,
|
|
|
+ "name" => $map->category->name,
|
|
|
];
|
|
|
}),
|
|
|
"spec" => $model->spec,
|