You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
49
hyhproject/app/controller/Messages.php
Executable file
49
hyhproject/app/controller/Messages.php
Executable file
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
namespace wstmart\app\controller;
|
||||
use wstmart\app\model\Messages as M;
|
||||
/**
|
||||
* ============================================================================
|
||||
* 商城消息控制器
|
||||
*/
|
||||
class Messages extends Base{
|
||||
// 前置方法执行列表
|
||||
protected $beforeActionList = [
|
||||
'checkAuth'
|
||||
];
|
||||
/**
|
||||
* 查看商城消息
|
||||
*/
|
||||
public function msgList(){
|
||||
$m = new M();
|
||||
exit(jsonReturn('',1,$m->pageQuery()));
|
||||
//return $this->fetch('users/messages/list');
|
||||
}
|
||||
/**
|
||||
* 获取列表
|
||||
*/
|
||||
public function pageQuery(){
|
||||
$m = new M();
|
||||
return $m->pageQuery();
|
||||
}
|
||||
/**
|
||||
* 获取指定ID详情
|
||||
*/
|
||||
public function getById(){
|
||||
$m = new M();
|
||||
exit(jsonReturn('',1,$m->getById()));
|
||||
}
|
||||
/**
|
||||
* 删除消息
|
||||
*/
|
||||
public function del(){
|
||||
$m = new M();
|
||||
return $m->del();
|
||||
}
|
||||
/**
|
||||
* 批量删除消息
|
||||
*/
|
||||
public function batchDel(){
|
||||
$m = new M();
|
||||
return $m->batchDel();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user