Files
addons
app_download_files
extend
hyhproject
admin
behavior
common
conf
controller
Accreds.php
Addons.php
Adgoods.php
Adpositions.php
Ads.php
Areas.php
Articlecats.php
Articles.php
Attributes.php
Banks.php
Base.php
Brands.php
Carts.php
Cashdraws.php
Chargeitems.php
Cronjobs.php
Datacats.php
Datas.php
Ectday.php
Ectdeal.php
Ecttarget.php
Express.php
Friendlinks.php
Goods.php
Goodsappraises.php
Goodscats.php
Goodsclassify.php
Goodsconsult.php
Homemenus.php
Hooks.php
Images.php
Index.php
Informs.php
LogSysData.php
Logmoneys.php
Logoperates.php
Logsms.php
Logstafflogins.php
Member.php
Menus.php
Messages.php
Mobilebtns.php
Navs.php
Ordercomplains.php
Orderrefunds.php
Orders.php
Payments.php
Platform.php
Privileges.php
Recommends.php
Reports.php
Roles.php
Settlements.php
Shops.php
Speccats.php
Staffs.php
Styles.php
Sysconfigs.php
Templatemsgs.php
TradeRule.php
Userranks.php
Users.php
Userscores.php
Wsysconfigs.php
Wxmenus.php
Wxpassivereplys.php
Wxtemplatemsgs.php
Wxusers.php
model
validate
view
app
common
home
home2
mobile2
wechat2
.htaccess
command.php
mobile
oss
static
thinkphp
upload
vendor
wxtmp
.gitignore
.htaccess
.user.ini
404.html
H5436787D.wgt
admin.php
app-release.apk
app_download.html
cash.lock
demo.php
get_startup.php
get_version.php
get_version_new.php
index.html
index.php
reg.lock
robots.txt
qlg.tsgz.moe/hyhproject/admin/controller/Privileges.php
2019-09-06 23:53:10 +08:00

59 lines
1.1 KiB
PHP
Executable File

<?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"));
}
}