12345678910111213141516171819202122232425 |
- <?php
- namespace app\api\controller\v1;
- use app\api\controller\Base;
- use app\hander\HelpHander;
- class News extends Base
- {
- public function lists(){
- $cateId=input('cateId');
- $page = input('page/d',1);
- $size = input('size/d',10);
- $ret=model('News')->apiNewList($page,$size,$cateId,$this->userId,$this->orgId);
- HelpHander::success($ret);
- }
- public function search(){
- $title=input('title');
- $page = input('page/d',1);
- $size = input('size/d',10);
- $ret=model('News')->apiSearchs($page,$size,$title,$this->userId,$this->orgId);
- HelpHander::success($ret);
- }
- }
|