1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
- // +----------------------------------------------------------------------
- // | ThinkAdmin
- // +----------------------------------------------------------------------
- // | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
- // +----------------------------------------------------------------------
- // | 官方网站: http://demo.thinkadmin.top
- // +----------------------------------------------------------------------
- // | 开源协议 ( https://mit-license.org )
- // +----------------------------------------------------------------------
- // | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
- // | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
- // +----------------------------------------------------------------------
- namespace app\approve\controller;
- use app\common\model\ApproveMaintainUserLog as model;
- use library\Controller;
- /**
- * 评价记录
- */
- class ApproveMaintainUserLog extends Controller
- {
- /**
- * 绑定数据表
- * @var string
- */
- protected $table = 'ApproveMaintainUserLog';
- /**
- * 控制器初始化
- */
- protected function initialize()
- {
- }
- /**
- * 列表
- * @auth true
- * @menu true
- * @throws \think\Exception
- * @throws \think\db\exception\DataNotFoundException
- * @throws \think\db\exception\ModelNotFoundException
- * @throws \think\exception\DbException
- */
- public function index()
- {
- $this->user_id = $user_id = input('user_id') ?: 0;
- $this->title = '评价记录';
- $data = model::where('user_id', $user_id)
- ->order('id desc');
- self::_init($data);
- }
- }
|