Customer.php 693 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. declare (strict_types = 1);
  3. namespace app\admin\controller\shop;
  4. use app\common\controller\Backend;
  5. use think\annotation\route\Group;
  6. use think\annotation\route\Route;
  7. use app\admin\traits\Actions;
  8. use app\common\model\Customer as CustomerModel;
  9. #[Group("shop/customer")]
  10. class Customer extends Backend
  11. {
  12. use Actions;
  13. protected function _initialize()
  14. {
  15. parent::_initialize();
  16. $this->model = new CustomerModel();
  17. }
  18. //导入
  19. #[Route("GET","import")]
  20. public function import()
  21. {
  22. return "导入";
  23. }
  24. //下载
  25. #[Route("GET","download")]
  26. public function download()
  27. {
  28. return "下载";
  29. }
  30. }