Stock.php 710 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace app\admin\controller;
  3. use app\admin\attr\Permission;
  4. use think\annotation\route\Get;
  5. use think\annotation\route\Group;
  6. #[Group('stock')]
  7. #[Permission('stock')]
  8. class Stock extends BaseAuthorized
  9. {
  10. public function page()
  11. {
  12. return $this->StockService()->page();
  13. }
  14. public function allByRepo()
  15. {
  16. return $this->StockService()->allByRepo();
  17. }
  18. public function info()
  19. {
  20. return $this->StockService()->info();
  21. }
  22. #[Get('get/good-repo')]
  23. public function getByGoodAndRepo()
  24. {
  25. return $this->StockService()->getByGoodAndRepo();
  26. }
  27. public function export()
  28. {
  29. return $this->StockService()->export();
  30. }
  31. }