ApproveMaintainUserLog.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkAdmin
  4. // +----------------------------------------------------------------------
  5. // | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
  6. // +----------------------------------------------------------------------
  7. // | 官方网站: http://demo.thinkadmin.top
  8. // +----------------------------------------------------------------------
  9. // | 开源协议 ( https://mit-license.org )
  10. // +----------------------------------------------------------------------
  11. // | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
  12. // | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
  13. // +----------------------------------------------------------------------
  14. namespace app\approve\controller;
  15. use app\common\model\ApproveMaintainUserLog as model;
  16. use library\Controller;
  17. /**
  18. * 评价记录
  19. */
  20. class ApproveMaintainUserLog extends Controller
  21. {
  22. /**
  23. * 绑定数据表
  24. * @var string
  25. */
  26. protected $table = 'ApproveMaintainUserLog';
  27. /**
  28. * 控制器初始化
  29. */
  30. protected function initialize()
  31. {
  32. }
  33. /**
  34. * 列表
  35. * @auth true
  36. * @menu true
  37. * @throws \think\Exception
  38. * @throws \think\db\exception\DataNotFoundException
  39. * @throws \think\db\exception\ModelNotFoundException
  40. * @throws \think\exception\DbException
  41. */
  42. public function index()
  43. {
  44. $this->user_id = $user_id = input('user_id') ?: 0;
  45. $this->title = '评价记录';
  46. $data = model::where('user_id', $user_id)
  47. ->order('id desc');
  48. self::_init($data);
  49. }
  50. }