后台会员组管理

This commit is contained in:
TL 2022-07-05 18:12:05 +08:00
parent ea9924b13f
commit fb7378ed52
1 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,7 @@ class CustomerGroupController extends Controller
'descriptions' => $request->get('descriptions', [])
];
$customerGroup = CustomerGroupService::create($data);
$customerGroup->load('descriptions');
return json_success('创建成功!', $customerGroup);
}
@ -58,6 +59,7 @@ class CustomerGroupController extends Controller
'descriptions' => $request->get('descriptions', [])
];
$customerGroup = CustomerGroupService::update($id, $data);
$customerGroup->load('descriptions');
return json_success('更新成功!', $customerGroup);
}