| 12345678910111213141516171819202122232425262728293031 |
- <?php
- namespace app\controller\common;
- use app\extra\basic\Base;
- use LinFly\Annotation\Route\Controller;
- use LinFly\Annotation\Route\Middleware;
- use LinFly\Annotation\Route\Route;
- use support\Response;
- /**
- *
- */
- #[Controller(prefix: "/api/service")]
- class Common extends Base
- {
- /**
- *
- */
- #[Route(path: "data",methods: "get")]
- public function getServiceData(): Response
- {
- try {
- return successTrans("success",[]);
- } catch (\Throwable $throwable) {
- return error($throwable->getMessage());
- }
- }
- }
|