| 1234567891011121314151617181920 |
- <?php
- /**
- * 相应接口.
- *
- * @author nj <nj@gmail.com>
- * @date 2019-11-03 13:48:34
- */
- namespace App\Contracts;
- interface Responsable
- {
- /**
- * Create an HTTP response that represents the object.
- *
- * @param \Hyperf\HttpServer\Contract\RequestInterface|mixed $request
- * @return mixed
- */
- public function toResponse($request = null);
- }
|