You've already forked qlg.tsgz.moe
							
							
		
			
				
	
	
		
			50 lines
		
	
	
		
			959 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			50 lines
		
	
	
		
			959 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
<?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();
 | 
						|
	}
 | 
						|
}
 |