You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
489 B

import json
from datetime import datetime
from fastapi import APIRouter
from conf import setting
from helper import respond_to
from helper.utils import timezone_now
from models import Drug, DrugUseLog, DrugStateEnum, DrugUseStateEnum, Terminal
from helper.cabinet import calculate_today_data
router = APIRouter(prefix='/today')
@router.get('')
async def index():
"""
今日数据
:return:
"""
data = await calculate_today_data("")
return respond_to(data=data)