mirror of
https://gitee.com/niucloud-team/niucloud
synced 2026-08-13 07:55:41 +08:00
0.5.2
This commit is contained in:
@@ -106,7 +106,7 @@ class User extends BaseAdminController
|
||||
*/
|
||||
public function del($uid)
|
||||
{
|
||||
(new UserService())->del($uid);
|
||||
(new SiteUserService())->del($uid);
|
||||
return success('DELETE_SUCCESS');
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ class Schedule extends BaseAdminController
|
||||
{
|
||||
$data = $this->request->params([
|
||||
['key', ''],
|
||||
['status', ''],
|
||||
['status', 'all'],
|
||||
]);
|
||||
return success(data: (new ScheduleService())->getPage($data));
|
||||
|
||||
|
||||
@@ -86,6 +86,21 @@ class User extends BaseAdminController
|
||||
return success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑用户
|
||||
* @return Response
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function edit($uid) {
|
||||
$data = $this->request->params([
|
||||
['password', ''],
|
||||
['real_name', ''],
|
||||
['head_img', ''],
|
||||
]);
|
||||
(new UserService())->edit($uid, $data);
|
||||
return success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除用户
|
||||
* @param $uid
|
||||
|
||||
Reference in New Issue
Block a user