base_controller.py 319 B

12345678910
  1. # -*- coding:utf-8 -*-
  2. from fastapi import APIRouter
  3. from fastapi.responses import JSONResponse
  4. router = APIRouter(prefix="/base", tags=['base'])
  5. @router.get("/check", name="服务状态校验", tags=['BASE'])
  6. async def listener():
  7. return JSONResponse({"message": "success", "statusCode": 200}, status_code=200)