# 优化类命名
This commit is contained in:
parent
b5c359279d
commit
20961f442d
|
@ -1,3 +1,5 @@
|
||||||
|
from django.utils import timezone
|
||||||
|
from django.db.models import Sum
|
||||||
from rest_framework import serializers
|
from rest_framework import serializers
|
||||||
from counter.models import DeviceCount, DeviceInfo
|
from counter.models import DeviceCount, DeviceInfo
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
from django.urls import path
|
from django.urls import path
|
||||||
from .views import DeviceLogsListAPIView, DeviceInfoListAPIView
|
from .views import DeviceLogListAPIView, DeviceInfoListAPIView
|
||||||
|
|
||||||
|
|
||||||
app_name = 'counter-api'
|
app_name = 'counter-api'
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('logs/', DeviceLogsListAPIView.as_view(), name='logs'),
|
path('logs/', DeviceLogListAPIView.as_view(), name='logs'),
|
||||||
path('device/', DeviceInfoListAPIView.as_view(), name='device'),
|
path('device/', DeviceInfoListAPIView.as_view(), name='device'),
|
||||||
]
|
]
|
Loading…
Reference in New Issue