123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- namespace app\admin\controller;
- use app\admin\attr\Permission;
- use think\annotation\route\Get;
- use think\annotation\route\Group;
- #[Group('stock')]
- #[Permission('stock')]
- class Stock extends BaseAuthorized
- {
- public function page()
- {
- return $this->StockService()->page();
- }
- public function allByRepo()
- {
- return $this->StockService()->allByRepo();
- }
- public function info()
- {
- return $this->StockService()->info();
- }
- #[Get('get/good-repo')]
- public function getByGoodAndRepo()
- {
- return $this->StockService()->getByGoodAndRepo();
- }
- public function export()
- {
- return $this->StockService()->export();
- }
- }
|