12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace app\api\controller\worker;
- use app\common\controller\Apiw;
- use think\Db;
- /**
- * 消息
- */
- class Messagesys extends Apiw
- {
- protected $noNeedLogin = [];
- protected $noNeedRight = ['*'];
- //消息页信息
- public function index(){
- $list = Db::name('message_sys')->field('content',true)
- ->where('company_id',$this->auth->company_id)
- ->autopage()->order('id desc')->select();
- $this->success("获取成功!",$list);
- }
- //消息页信息
- public function info(){
- $id = input('id',0);
- $info = Db::name('message_sys')->where('id',$id)->find();
- $this->success("获取成功!",$info);
- }
- }
|