Commit d089895c50474e19eed21c10a2271b46d800d841
1 parent
3b8d2193
[留言板]手机端留言列表
Showing
1 changed file
with
34 additions
and
0 deletions
trunk/Message/Api/Controller/Message/ListController.class.php
0 → 100644
1 | +<?php | ||
2 | +/** | ||
3 | + * 留言列表 | ||
4 | + * User: <362431947@qq.com> | ||
5 | + * Date: 2018-10-12 Time: 16:59 | ||
6 | + */ | ||
7 | +namespace Api\Controller\Message; | ||
8 | + | ||
9 | +use Api\Controller\AbstractController; | ||
10 | +use Common\Model\MessageModel; | ||
11 | + | ||
12 | +class ListController extends AbstractController | ||
13 | +{ | ||
14 | + /** | ||
15 | + * 留言列表 | ||
16 | + * @author <362431947@qq.com> | ||
17 | + * @date 2018-10-10 | ||
18 | + */ | ||
19 | + public function Index_post() | ||
20 | + { | ||
21 | + $input = I('post.'); | ||
22 | + | ||
23 | +// $uid = $input['uid']; | ||
24 | +// if (! $uid ) E('_ERROR_USER_ID_EMPTY'); | ||
25 | + | ||
26 | + $m_message = new MessageModel(); | ||
27 | + | ||
28 | + $page = isset($input['page']) ? intval($input['page']) : 1; | ||
29 | + | ||
30 | + $message_list = $m_message->messageList($input,$page); | ||
31 | + | ||
32 | + $this->_result = $message_list; | ||
33 | + } | ||
34 | +} | ||
0 | \ No newline at end of file | 35 | \ No newline at end of file |