代码初始化
This commit is contained in:
34
application/api/controller/UserMessage.php
Normal file
34
application/api/controller/UserMessage.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace app\api\controller;
|
||||
|
||||
use app\common\controller\BaseCom;
|
||||
|
||||
class UserMessage extends BaseCom
|
||||
{
|
||||
//系统消息接口【废弃】
|
||||
public function get_message()
|
||||
{
|
||||
$message_id = input('message_id', 0);
|
||||
$reslut = model('UserMessage')->get_message($this->uid, $message_id);
|
||||
return V($reslut['code'], $reslut['msg'], $reslut['data']);
|
||||
}
|
||||
|
||||
//系统封面消息接口
|
||||
public function get_user_message_cover_info()
|
||||
{
|
||||
$reslut = model('UserMessage')->get_user_message_cover_info($this->uid);
|
||||
return V($reslut['code'], $reslut['msg'], $reslut['data']);
|
||||
}
|
||||
|
||||
//消息列表接口
|
||||
public function get_user_message_list()
|
||||
{
|
||||
$type = input('type', 0); //排序规则
|
||||
$page = input('page', 1);
|
||||
$page_limit = input('page_limit', 30);
|
||||
$reslut = model('UserMessage')->get_user_message_list($this->uid, $type, $page, $page_limit);
|
||||
return V($reslut['code'], $reslut['msg'], $reslut['data']);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user