会员组管理
This commit is contained in:
parent
898750c916
commit
c4c6dfcaa9
|
|
@ -35,7 +35,7 @@ class CustomerGroupController extends Controller
|
||||||
public function store(CustomerGroupRequest $request)
|
public function store(CustomerGroupRequest $request)
|
||||||
{
|
{
|
||||||
$customerGroup = CustomerGroupService::create($request->all());
|
$customerGroup = CustomerGroupService::create($request->all());
|
||||||
$customerGroup->load('descriptions');
|
$customerGroup->load('descriptions', 'description');
|
||||||
|
|
||||||
return json_success('创建成功!', $customerGroup);
|
return json_success('创建成功!', $customerGroup);
|
||||||
}
|
}
|
||||||
|
|
@ -43,7 +43,7 @@ class CustomerGroupController extends Controller
|
||||||
public function update(CustomerGroupRequest $request, int $id)
|
public function update(CustomerGroupRequest $request, int $id)
|
||||||
{
|
{
|
||||||
$customerGroup = CustomerGroupService::update($id, $request->all());
|
$customerGroup = CustomerGroupService::update($id, $request->all());
|
||||||
$customerGroup->load('descriptions');
|
$customerGroup->load('descriptions', 'description');
|
||||||
|
|
||||||
return json_success('更新成功!', $customerGroup);
|
return json_success('更新成功!', $customerGroup);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue