123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace App\Http\Controllers\Api\V1;
- use Illuminate\Http\Request;
- use App\Services\Base\ErrorCode;
- class HomeController extends Controller
- {
- /**
- * @api {get} /api/home/index 首页(home)
- * @apiSuccessExample {json} Success-Response:
- * HTTP/1.1 200 OK
- * {
- * "state": true,
- * "code": 0,
- * "message": "",
- * "data": {
- * "verify_code": "1234"//该值调试时使用,sms调通后取消
- * }
- * }
- * @apiErrorExample {json} Error-Response:
- * HTTP/1.1 400 Bad Request
- * {
- * "state": false,
- * "code": 1000,
- * "message": "传入参数不正确",
- * "data": null or []
- * }
- * 可能出现的错误代码:
- * 1000 CLIENT_WRONG_PARAMS 传入参数不正确
- */
- public function index()
- {
- //获取轮播图
- return $this->error(ErrorCode::SERVICE_CODE_FAILED);
- }
- }
|