| 12345678910111213141516171819202122232425262728293031323334 |
- <?php
- declare(strict_types=1);
- /**
- * This file is part of Hyperf.
- *
- * @link https://www.hyperf.io
- * @document https://hyperf.wiki
- * @contact group@hyperf.io
- * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
- *
- */
- namespace App\Controller\Api;
- use App\Model\User;
- use App\Controller\Resource\ApiResource;
- use Hyperf\HttpServer\Annotation\AutoController;
- /**
- * Class LotteryController
- * @package App\Controller\Api
- */
- class LotteryController extends BaseController
- {
- /**
- *
- * @return array
- */
- public function test(){
- $user = User::where(['id'=> 1])->first();
- return ApiResource::success(1008, $user);
- }
- }
|