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.

19 lines
331 B

  1. <?php
  2. namespace App\Service;
  3. interface ParamsTokenServiceInterface
  4. {
  5. /**
  6. * 生成并存储token
  7. * @param $params
  8. * @return mixed
  9. */
  10. public function generate($params);
  11. /**
  12. * 通过token解析返回参数
  13. * @param $token
  14. * @return mixed
  15. */
  16. public function analyze($token);
  17. }