Skip to content

Commit

Permalink
Fix: 修复无需验证也可查看api文档 (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
People-Sea authored Sep 11, 2024
1 parent 18f22e0 commit 8d4450c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/ApiDocController.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
use Hyperf\HttpServer\Annotation\GetMapping;
use Hyperf\HttpServer\Annotation\PostMapping;
use Mine\Annotation\Api\MApiCollector;
use Mine\Annotation\Auth;
use Mine\Helper\MineCode;
use Mine\MineApi;
use Psr\Container\ContainerExceptionInterface;
Expand Down Expand Up @@ -73,7 +74,7 @@ public function login(): ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
#[GetMapping('getAppAndInterfaceList/{id}')]
#[GetMapping('getAppAndInterfaceList/{id}'), Auth]
public function getAppAndInterfaceList(string $id): ResponseInterface
{
$appAndInterfaceList = $this->systemAppService->getAppAndInterfaceList($id);
Expand All @@ -91,7 +92,7 @@ public function getAppAndInterfaceList(string $id): ResponseInterface
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
#[GetMapping('getColumnList/{id}')]
#[GetMapping('getColumnList/{id}'), Auth]
public function getColumnList(string $id): ResponseInterface
{
// 如果api注解收集器里有,直接返回信息
Expand Down

0 comments on commit 8d4450c

Please sign in to comment.