12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace app\api\controller\v1;
- use app\api\controller\Base;
- use app\hander\HelpHander;
- use think\App;
- use think\Db;
- use think\exception\Handle;
- class Article extends Base
- {
- public function __construct(App $app = null) {
- parent::__construct($app);
- $this->model = new \app\common\model\Article();
- }
- public function queryArticleList(){
- $page=input("page/d",1);
- $size=input("size/d",10);
- $roleId=input("roleId");
- $token=input("token");
- $ret=$this->model->lists($page,$size,$this->orgId,$roleId,$token);
- HelpHander::success($ret);
- }
- public function queryArticleDetail(){
- $token=input('token');
- $data=getSite().'/h5/Recorddata/record?token='.$token;
- if($data){
- HelpHander::success($data);
- }else{
- HelpHander::error('暂无记录');
- }
- }
- }
|