You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
58
hyhproject/admin/controller/Privileges.php
Executable file
58
hyhproject/admin/controller/Privileges.php
Executable file
@ -0,0 +1,58 @@
|
||||
<?php
|
||||
namespace wstmart\admin\controller;
|
||||
use wstmart\admin\model\Privileges as M;
|
||||
/**
|
||||
* ============================================================================
|
||||
* 权限控制器
|
||||
*/
|
||||
class privileges extends Base{
|
||||
/**
|
||||
* 获取权限列表
|
||||
*/
|
||||
public function listQuery(){
|
||||
$m = new M();
|
||||
return WSTGrid($m->listQuery((int)Input("id")));
|
||||
}
|
||||
/**
|
||||
* 获取权限
|
||||
*/
|
||||
public function get(){
|
||||
$m = new M();
|
||||
return $m->getById((int)Input("id"));
|
||||
}
|
||||
/**
|
||||
* 新增权限
|
||||
*/
|
||||
public function add(){
|
||||
$m = new M();
|
||||
return $m->add();
|
||||
}
|
||||
/**
|
||||
* 编辑权限
|
||||
*/
|
||||
public function edit(){
|
||||
$m = new M();
|
||||
return $m->edit();
|
||||
}
|
||||
/**
|
||||
* 删除权限
|
||||
*/
|
||||
public function del(){
|
||||
$m = new M();
|
||||
return $m->del();
|
||||
}
|
||||
/**
|
||||
* 检测权限代码是否存在
|
||||
*/
|
||||
public function checkPrivilegeCode(){
|
||||
$m = new M();
|
||||
return $m->checkPrivilegeCode();
|
||||
}
|
||||
/**
|
||||
* 获取角色的权限
|
||||
*/
|
||||
public function listQueryByRole(){
|
||||
$m = new M();
|
||||
return $m->listQueryByRole((int)Input("id"));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user