You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
529 B

5 years ago
5 years ago
  1. <?php
  2. namespace App\Controller\v3;
  3. use App\Controller\BaseController;
  4. use App\Service\v3\Interfaces\StoreLoginServiceInterface;
  5. use Hyperf\Di\Annotation\Inject;
  6. class StoreLoginController extends BaseController
  7. {
  8. /**
  9. * @Inject
  10. * @var StoreLoginServiceInterface
  11. */
  12. protected $storeLoginServicce;
  13. public function login()
  14. {
  15. $params = $this->request->all();
  16. $res = $this->storeLoginServicce->do($params['account'],$params['password']);
  17. return $this->success($res);
  18. }
  19. }