loocam_url.py 1.3 KB

12345678910111213141516171819202122232425
  1. # -*- encoding: utf-8 -*-
  2. """
  3. @File : loocam_url.py
  4. @Time : 2022/5/20 11:44
  5. @Author : stephen
  6. @Email : zhangdongming@asj6.wecom.work
  7. @Software: PyCharm
  8. """
  9. from django.urls import re_path
  10. from Controller.SensorGateway import GatewayFamilyRoomController, SubDeviceController, GatewayFamilyMemberController, \
  11. EquipmentFamilyController, GatewayDeviceController, SmartSceneController, SmartSocketController, \
  12. SmartSwitchController
  13. urlpatterns = [
  14. re_path(r'^sensor/gateway/(?P<operation>.*)$', EquipmentFamilyController.EquipmentFamilyView.as_view()),
  15. re_path(r'^gateway/family/room/(?P<operation>.*)$', GatewayFamilyRoomController.GatewayFamilyRoomView.as_view()),
  16. re_path(r'^gateway/family/member/(?P<operation>.*)$',
  17. GatewayFamilyMemberController.GatewayFamilyMemberView.as_view()),
  18. re_path(r'^gateway/subdevice/(?P<operation>.*)$', SubDeviceController.GatewaySubDeviceView.as_view()),
  19. re_path(r'^gateway/device/info/(?P<operation>.*)$', GatewayDeviceController.GatewayDeviceView.as_view()),
  20. re_path(r'^smartscene/(?P<operation>.*)$', SmartSceneController.SmartSceneView.as_view()),
  21. re_path(r'^open/socket/(?P<operation>.*)$', SmartSocketController.SmartSocketView.as_view()),
  22. re_path(r'^smartswitch/(?P<operation>.*)$', SmartSwitchController.SmartSwitchView.as_view()),
  23. ]