shoppingmallv2 init...
This commit is contained in:
parent
333af5646b
commit
8340e07db0
@ -17,8 +17,13 @@ class UserController extends AdminController
|
|||||||
}
|
}
|
||||||
public function getFields(string $action = ""): array
|
public function getFields(string $action = ""): array
|
||||||
{
|
{
|
||||||
$fields = ["id", "passwd", 'name', "email", "email", "phone", "role", "status"];
|
|
||||||
switch ($action) {
|
switch ($action) {
|
||||||
|
case 'insert':
|
||||||
|
return ["id", "passwd", 'name', "email", "email", "phone", "role", "status"];
|
||||||
|
break;
|
||||||
|
case 'update':
|
||||||
|
return ["passwd", 'name', "email", "email", "phone", "role", "status"];
|
||||||
|
break;
|
||||||
case "index":
|
case "index":
|
||||||
case "excel":
|
case "excel":
|
||||||
return ["id", 'name', "email", "email", "phone", "role", "status", 'created_at'];
|
return ["id", 'name', "email", "email", "phone", "role", "status", 'created_at'];
|
||||||
@ -27,7 +32,7 @@ class UserController extends AdminController
|
|||||||
return ["id", 'name', "email", "email", "phone", "role", "status", 'updated_at', 'created_at'];
|
return ["id", 'name', "email", "email", "phone", "role", "status", 'updated_at', 'created_at'];
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return $fields;
|
return throw new \Exception("{$action} 해당기능은 없습니다.");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user