Activity.php 865 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace app\admin\controller;
  3. use think\admin\Controller;
  4. use think\admin\extend\DataExtend;
  5. use think\admin\service\AdminService;
  6. use think\admin\service\MenuService;
  7. use think\admin\service\NodeService;
  8. /**
  9. * 活动管理
  10. * Class Menu
  11. * @package app\admin\controller
  12. */
  13. class Activity extends Controller
  14. {
  15. /**
  16. * 当前操作数据库
  17. * @var string
  18. */
  19. private $table = 'activity';
  20. /**
  21. * 奖品订单管理
  22. * @auth true
  23. * @menu true
  24. * @throws \think\db\exception\DataNotFoundException
  25. * @throws \think\db\exception\DbException
  26. * @throws \think\db\exception\ModelNotFoundException
  27. */
  28. public function index()
  29. {
  30. $this->title = '活动管理';
  31. $this->type = input('type', 'index');
  32. $this->_query($this->table)->order('id desc')->page(false, true);
  33. }
  34. }