123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298 |
- from django.contrib import admin
- from django.urls import include
- from django.urls import re_path
- from AdminController import UserManageController, RoleController, MenuController, TestServeController, \
- ServeManagementController, LogManagementController, DeviceManagementController, VersionManagementController, \
- AiServeController, SurveysManageController, SerialManageController
- from Controller import FeedBack, EquipmentOTA, EquipmentInfo, AdminManage, AppInfo, \
- Test, MealManage, DeviceManage, EquipmentStatus, SysManage, DeviceLog, LogAccess, \
- AppColophon, DateController, \
- EquipmentManager, LogManager, PermissionManager, OTAEquipment, shareUserPermission, UidSetController, \
- UserManger, CheckUserData, \
- UserController, CloudVod, OrderContrller, VodBucket, DetectController, DeviceShare, UserBrandController, \
- StsOssController, UIDPreview, OssCrd, SysMsg, UidUser, EquipmentManagerV2, EquipmentManagerV3, PushDeploy, \
- AppSetController, \
- ApplicationController, UserExController, CloudStorage, TestApi, UserBrandControllerV2, \
- StatisticsController, Alexa, FAQController, AppLogController, EquipmentVersionLimit, VoicePromptController, \
- CDKController, \
- DeviceTypeController, CloudTransfer, Cloudsum, IotCoreController, OperatingLogs, ProcessInfo, \
- RegionCountryController, \
- VerifyCodeController, FileController, UIDController, LogController, SalesController, \
- OrderTaskController, HistoryUIDController, UIDManageUserController, SerialNumberController, CompanyController, \
- RegionController, VPGController, LanguageController, TestController, DeviceConfirmRegion, S3GetStsController, \
- DetectControllerV2, PcInfo, PctestController, DeviceDebug, PaymentCycle, \
- DeviceLogController, CouponController, AiController, ShadowController, SuperPasswordTool
- from Controller.Cron import CronTaskController
- from Controller.MessagePush import EquipmentMessagePush
- from Controller.SensorGateway import SensorGatewayController, EquipmentFamilyController
- from Controller.Surveys import CloudStorageController
- from Controller.UserDevice import UserDeviceShareController
- urlpatterns = [
- re_path('testApi/(?P<operation>.*)', TestApi.testView.as_view()),
- re_path('account/authcode', UserController.authCodeView.as_view()),
- re_path('v3/account/generatepictureCodeView/', UserController.generatePictureCodeView.as_view()),
- re_path('v3/account/imageCodeRegister/', UserController.Image_Code_RegisterView.as_view()),
- re_path('account/register', UserController.registerView.as_view()),
- re_path('account/login', UserController.v2LoginView.as_view()),
- re_path('account/logout', UserController.LogoutView.as_view()),
- re_path('account/noPasslogin', UserController.noPasslogin.as_view()),
- re_path('account/changePwd', UserController.ChangePwdView.as_view()),
- re_path('account/forget', UserController.ForgetPwdView.as_view()),
- re_path('account/email-re-pwd', UserController.EmailResetPwdView.as_view()),
- re_path('account/refreshTk', UserController.refreshTokenView.as_view()),
- re_path('v3/account/refreshTk', UserController.refreshTokenViewV3.as_view()),
- re_path('v3/account/deleteUser', UserController.DeleteUser.as_view()),
- re_path('favicon.ico', UserManger.success, name=u'favicon.ico'),
- re_path('account/showUserMore', UserManger.showUserMoreView.as_view()),
- re_path('account/perfectUserInfo', UserManger.perfectUserInfoView.as_view()),
- re_path('account/getAvatar/(?P<filePath>.*)', UserManger.getAvatarView.as_view()),
- re_path('account/delUser', UserManger.delUserInterface),
- re_path('account/setUserValid', UserManger.setUserValidView.as_view()),
- re_path('account/showAllUser', UserManger.showAllUserInterface),
- re_path('account/help', LogManager.HelpView.as_view()),
- re_path('account/searchUser', shareUserPermission.searchUserView.as_view()),
- re_path('accounts', AdminManage.search_user_by_content),
- re_path('account/shareUserEquipment', shareUserPermission.shareUserEquipmentView.as_view()),
- re_path('account/unsharedUserEquipment', shareUserPermission.unsharedUserEquipmentView.as_view()),
- re_path('response/success', UserManger.success),
- re_path('equipment/queryUserEquipment', EquipmentManager.queryUserEquipmentInterface),
- re_path('equipment/addNewUserEquipment', EquipmentManager.addNewUserEquipmentInterface),
- re_path('equipment/delUserEquipment', EquipmentManager.delUserEquipmentInterface),
- re_path('equipment/modifyUserEquipment', EquipmentManager.modifyUserEquipmentInterface),
- re_path('equipment/showAllUserEquipment', EquipmentManager.showAllUserEquipmentInterface),
- re_path('equipment/findEquipmentInfo', EquipmentManager.findEquipmentInfoInterface),
- re_path('equipment/delete', EquipmentManager.deleteInterface),
- re_path('equipment/batchDelete', EquipmentManager.batchDeleteInterface),
- re_path('equipment/add', EquipmentManager.addInterface),
- re_path('equipment/admin_add', EquipmentManager.admin_addInterface),
- re_path('equipment/admin_modify', EquipmentManager.admin_modifyInterface),
- re_path('equipment/query', EquipmentManager.queryInterface),
- re_path('equipment/flow', EquipmentManager.uid_status),
- re_path('OTA/uploads', OTAEquipment.getUploadFiletoDirView.as_view()),
- re_path('OTA/download$', OTAEquipment.downloadUpdataFileUrl),
- re_path('OTA/downloads/(\w+)/(\w+[\w+]*.+[^_w]*.\w+)', OTAEquipment.downloadUpdataFileUrlInterface),
- re_path('OTA/getEquipmentVersion', OTAEquipment.getEquipmentVersionInterface),
- re_path('OTA/getUpdataFileUrl', OTAEquipment.getUpdataFileUrlInterface),
- re_path('OTA/addNewEquipmentVersion', OTAEquipment.addNewEquipmentVersionInterface),
- re_path('roles/addNewRole', PermissionManager.addNewRoleView.as_view()),
- re_path('roles/queryRole', PermissionManager.queryRoleView.as_view()),
- re_path('roles/delRole', PermissionManager.delRoleView.as_view()),
- re_path('roles/modifyRole', PermissionManager.modifyRoleView.as_view()),
- re_path('perms/addNewPerms', PermissionManager.addNewPermsView.as_view()),
- re_path('perms/delPerms', PermissionManager.delPermsView.as_view()),
- re_path('perms/queryPerms', PermissionManager.queryPermsView.as_view()),
- re_path('perms/modifyPerms', PermissionManager.modifyPermsView.as_view()),
- re_path('permsManager/queryRolePerms', PermissionManager.queryRolePermsView.as_view()),
- re_path('uploads/upgrade', OTAEquipment.getUploadFiletoDirView.as_view()),
- re_path('upgrade/download/(\w+.[^_w]*\w+.\w+)', CheckUserData.download_file),
- re_path('downloads/upgrade/(\w+)/(\w+.[^_w]*\w+.\w+)', OTAEquipment.downloadUpdataFileUrlInterface),
- re_path('getOTAurl/getUpdataFileUrl', OTAEquipment.getUpdataFileUrlInterface),
- re_path('equipment/info', EquipmentInfo.EquipmentInfo.as_view()),
- re_path('adminManage/manage', AdminManage.AdminManage.as_view()),
- re_path('equipment/OTA', EquipmentOTA.EquipmentOTA.as_view()),
- re_path('userbrandinfo/(?P<operation>.*)', UserBrandController.UserBrandInfo.as_view()),
- re_path('uidset/(?P<operation>.*)', UidSetController.UidSetView.as_view()),
- re_path('appInfo', AppInfo.AppInfo.as_view()),
- re_path('meal/manage', MealManage.MealManage.as_view()),
- re_path('device/manage', DeviceManage.DeviceManage.as_view()),
- re_path('device/online', EquipmentStatus.EquipmentOnline),
- re_path('device/offline', EquipmentStatus.EquipmentOffline),
- re_path('device/updateIP', EquipmentStatus.updateIP),
- re_path('sys/updateLog', SysManage.updateLog),
- re_path('devices/(\w+)/logs', DeviceLog.DeviceLog),
- re_path('devices/(\w+)', DeviceManage.Devices),
- re_path('LogAccess', LogAccess.LogAccess),
- re_path('HelpCHM/upload', LogManager.upload_help_chm),
- re_path('admin/userIDs', AdminManage.getUserIds),
- re_path('eq/delById', EquipmentInfo.deleteExpireEquipmentInfoById),
- re_path('OTA/getNewVer', OTAEquipment.getNewVerInterface),
- re_path('OTA/uploadsPack', OTAEquipment.uploadOTAInterfaceView.as_view()),
- re_path('OTA/downloadsPack/(?P<fullPath>[0-9\w/.\-]+)', OTAEquipment.downloadOTAInterface),
- re_path('dlotapack/(?P<fullPath>[0-9\w/.\-]+)', OTAEquipment.downloadOTAInterfaceV2),
- re_path('OTA/getDownLoadOTApackUrl ', OTAEquipment.getDownLoadOTApackUrl),
- re_path('OTA/checkMaxVersion', OTAEquipment.checkMaxVersion),
- re_path('v2/account/authcode', UserController.v2authCodeView.as_view()),
- re_path('v2/account/register', UserController.v2registerView.as_view()),
- re_path('v2/account/forgetCode', UserController.v2forgetPwdCodeView.as_view()),
- re_path('v2/account/resetPwdByCode', UserController.v2resetPwdByCodeView.as_view()),
- re_path('v2/authcode/verify', UserController.verifyAuthcode.as_view()),
- re_path('v2/account/logout', UserController.V2LogoutView.as_view()),
- re_path('v2/account/login', UserController.v3LoginView.as_view()),
- re_path('v3/account/login$', UserController.v3LoginView.as_view()),
- re_path('account/oneClickLogin', UserController.oneClickLoginView.as_view()),
- re_path('account/createPwd', UserController.createPwd.as_view()),
- re_path('account/delete', UserController.deleteAccount),
- re_path('user/confirmRegion', UserController.confirmRegion),
- re_path('account/loginCode', UserController.loginCodeView.as_view()),
- re_path('v3/account/loginByCode', UserController.v3LoginByCodeView.as_view()),
- re_path('v3/account/loginByFingerprint', UserController.v3LoginByFingerprintView.as_view()),
- re_path('v3/account/setFingerprint', UserController.v3SetFingerprintView.as_view()),
- re_path('detect/(?P<operation>.*)', DetectController.DetectControllerView.as_view()),
- re_path('detectV2/(?P<operation>.*)', DetectControllerV2.DetectControllerViewV2.as_view()),
- re_path('cloudVod/(?P<operation>.*)', CloudVod.CloudVodView.as_view()),
- re_path('meal/(?P<operation>.*)', MealManage.MealView.as_view()),
- re_path('order/(?P<operation>.*)', OrderContrller.OrderView.as_view()),
- re_path('appCol/(?P<operation>.*)', AppColophon.AppColView.as_view()),
- re_path('vodBucket/(?P<operation>.*)', VodBucket.VodBucketView.as_view()),
- re_path('UIDBucket/(?P<operation>.*)', VodBucket.UidBucketView.as_view()),
- re_path('EquipmentVersion/(?P<operation>.*)', EquipmentOTA.EquipmentVersionView.as_view()),
- re_path('deviceShare/(?P<operation>.*)', DeviceShare.DeviceShareView.as_view()),
- re_path('appVer/views', AppInfo.AppVersionView.as_view()),
- re_path('user/initInfo', UserController.InitInfoView.as_view()),
- re_path('user/information/(?P<operation>.*)', UserController.InitUserInformationView.as_view()),
- re_path('getTZ ', EquipmentStatus.getTZ),
- re_path('stsOss/(?P<operation>.*)', StsOssController.StsOssView.as_view()),
- re_path('feedback/(?P<operation>.*)', FeedBack.FeedBackView.as_view()),
- re_path('uidpreview/(?P<operation>.*)', UIDPreview.UIDPreview.as_view()),
- re_path('sysmsg/(?P<operation>.*)', SysMsg.SysMsgView.as_view()),
- re_path('sysfile/(?P<filePath>.*)', SysManage.getStatView.as_view()),
- re_path('equipment/flowUpdate', EquipmentManager.update_uid_set),
- re_path('log/getUploadUrl', EquipmentStatus.getUploadLogUrl),
- re_path('app/getIdData', AppInfo.AppIdDataView.as_view()),
- re_path('wechat/authsign', UserController.wxAuthSignView.as_view()),
- re_path('wechat/perfect', UserController.wxPerfectView.as_view()),
- re_path('Test', Test.Test.as_view()),
- re_path('oauth/authcode', UserController.OauthAuthCodeView.as_view()),
- re_path('oauth/perfect', UserController.OauthPerfectView.as_view()),
- re_path('oauth/unbunding', UserController.UnbundingWXView.as_view()),
- re_path('equipment/judge', EquipmentManager.judgeInterface),
- re_path('uiduser/add', UidUser.addInterface),
- re_path('uiduser/query', UidUser.queryInterface),
- re_path('uiduser/update', UidUser.updateInterface),
- re_path('uiduser/delete', UidUser.deleteInterface),
- re_path('uid_user/(?P<operation>.*) ', UidUser.UidUserView.as_view()),
- re_path('v2/equipment/(?P<operation>.*) ', EquipmentManagerV2.EquipmentManagerV2.as_view()),
- re_path('msg/init', SysManage.initMsgFunc),
- re_path('oss_crd/(?P<operation>.*) ', OssCrd.OssCrdView.as_view()),
- re_path('push_deploy/(?P<operation>.*) ', PushDeploy.PushDeployView.as_view()),
- re_path('oalexa/auth', UserController.alexaAuthView.as_view()),
- re_path('oalexa/discoveryuid', UserController.alexaUidView.as_view()),
- re_path('appset/(?P<operation>.*)', AppSetController.AppSetView.as_view()),
- re_path('application/(?P<operation>.*) ', ApplicationController.ApplicationView.as_view()),
- re_path('login/oauth/(?P<operation>.*) ', ApplicationController.AuthView.as_view()),
- re_path('grant/code/(?P<operation>.*) ', ApplicationController.GrantCodeView.as_view()),
- re_path('user/ex/(?P<operation>.*) ', UserExController.UserExView.as_view()),
- re_path('v3/equipment/(?P<operation>.*) ', EquipmentManagerV3.EquipmentManagerV3.as_view()),
- re_path('cloudstorage/(?P<operation>.*) ', CloudStorage.CloudStorageView.as_view()),
- re_path('payCycle/(?P<operation>.*) ', PaymentCycle.PaypalCycleNotify.as_view()),
- re_path('paypalCycleNotify/(?P<operation>.*) ', PaymentCycle.PaypalCycleNotify.as_view()),
- re_path('paymentCycle/(?P<operation>.*) ', PaymentCycle.payCycle.as_view()),
- re_path('AiService/(?P<operation>.*) ', AiController.AiView.as_view()),
- re_path('app/setting/notification/(?P<operation>.*) ', EquipmentMessagePush.EquipmentMessagePushView.as_view()),
- re_path('v3/account/changePwd ', UserController.v3ChangePwdView.as_view()),
- re_path('v3/account/resetPwdByCode ', UserController.v3resetPwdByCodeView.as_view()),
- re_path('v3/account/register ', UserController.v3registerView.as_view()),
- re_path('v3/uiduser/add', UidUser.v3addInterface),
- re_path('v3/uiduser/query', UidUser.v3queryInterface),
- re_path('date/(?P<operation>.*) ', DateController.DateConView.as_view()),
- re_path('equipment/flow_test ', EquipmentManager.uid_status_test),
- re_path('account/appFrequency/(?P<operation>.*) ', UserController.UserAppFrequencyView.as_view()),
- re_path('v2/userbrand/(?P<operation>.*) ', UserBrandControllerV2.UserBrandV2.as_view()),
- re_path('statistcs/appFrequencyMonth ', StatisticsController.statistcsAppFrequency),
- re_path('statistcs/appFrequencyYear ', StatisticsController.statistcsAppFrequencyYear),
- re_path('statistcs/pushDay ', StatisticsController.statistcsPushDay),
- re_path('statistcs/pushMonth ', StatisticsController.statistcsPushMonth),
- re_path('alexa/(?P<operation>.*) ', Alexa.AlexaConnectNum.as_view()),
- re_path('faq/upload', FAQController.FAQUploadView.as_view()),
- re_path('faq/image/(?P<filePath>.*) ', FAQController.getFAQImage.as_view()),
- re_path('faq/(?P<operation>.*) ', FAQController.FAQView.as_view()),
- re_path('ios/authsign', UserController.AppleAuthLogin.as_view()),
- re_path('appLog/(?P<operation>.*) ', AppLogController.AppLogView.as_view()),
- re_path('deviceLog/(?P<operation>.*) ', DeviceLogController.DeviceLogView.as_view()),
- re_path('local/(?P<operation>.*) ', UserController.LocalUserView.as_view()),
- re_path('account/updateUserCountry', UserController.updateUserCountry),
- re_path('equipmentVersionLimit/(?P<operation>.*) ', EquipmentVersionLimit.EquipmentVersionLimitView.as_view()),
- re_path('account/subscribe ', UserController.SubscribeEmailView.as_view()),
- re_path('account/subscribe/download ', UserController.SubscribeEmailView.as_view()),
- re_path('voicePrompt/(?P<operation>.*) ', VoicePromptController.VoicePromptView.as_view()),
- re_path('deviceType/(?P<operation>.*) ', DeviceTypeController.DeviceTypeView.as_view()),
- re_path('cdk/(?P<operation>.*) ', CDKController.CDKView.as_view()),
- re_path('cloudTransfer/(?P<operation>.*) ', CloudTransfer.cloudTestView.as_view()),
- re_path('coupon/(?P<operation>.*) ', CouponController.CouponView.as_view()),
- re_path('Cloudsum/(?P<operation>.*) ', Cloudsum.Cloudsum.as_view()),
- re_path('device/StatisticsIpRegion ', DeviceConfirmRegion.StatisticsIpRegion.as_view()),
- re_path('iot/(?P<operation>.*)', IotCoreController.IotCoreView.as_view()),
- re_path('s3_getsts/(?P<operation>.*) ', S3GetStsController.S3GetStsView.as_view()),
- re_path('admin/', admin.site.urls),
- re_path('user/(?P<operation>.*)', UIDManageUserController.UserView.as_view()),
- re_path('uid/(?P<operation>.*)', UIDController.UIDView.as_view()),
- re_path('history/(?P<operation>.*)', HistoryUIDController.HistoryUIDView.as_view()),
- re_path('^log/(?P<operation>.*)', LogController.LogView.as_view()),
- re_path('orderTask/(?P<operation>.*)', OrderTaskController.OrderTaskView.as_view()),
- re_path('upload', FileController.UploadUIDFileView.as_view()),
- re_path('download', FileController.DownloadUIDFileView.as_view()),
- re_path('sales', SalesController.SalesView.as_view()),
- re_path('device/online', SalesController.DeviceOnlineView.as_view()),
- re_path('serialNumber/(?P<operation>.*)', SerialNumberController.SerialNumberView.as_view()),
- re_path('deviceShadow/update', ShadowController.update_device_shadow),
- re_path('company/(?P<operation>.*)', CompanyController.CompanyView.as_view()),
- re_path('region/(?P<operation>.*)', RegionController.RegionView.as_view()),
- re_path('vpg/(?P<operation>.*)', VPGController.VPGView.as_view()),
- re_path('vpgUid/uid', VPGController.do_upload_uid),
- re_path('language/(?P<operation>.*)', LanguageController.LanguageView.as_view()),
- re_path('test/(?P<operation>.*)', TestController.TestView.as_view()),
- re_path('OperatingLogs/(?P<operation>.*)', OperatingLogs.OperatingLogsView.as_view()),
- re_path('ProcessInfo/(?P<operation>.*)', ProcessInfo.ProcessInfoView.as_view()),
- re_path('Cloudsum/(?P<operation>.*)', Cloudsum.Cloudsum.as_view()),
- re_path('regionCountry/(?P<operation>.*)', RegionCountryController.RegionCountryView.as_view()),
- re_path('verifyCode/(?P<operation>.*)', VerifyCodeController.VerifyCodeView.as_view()),
- re_path('device/confirmRegion', DeviceConfirmRegion.ConfirmRegion.as_view()),
- re_path('device/confirmRegionV2', DeviceConfirmRegion.ConfirmRegionV2.as_view()),
- re_path('device/confirmCountry', DeviceConfirmRegion.confirm_country_with_ip),
- re_path('pcInfo/(?P<operation>.*)', PcInfo.PcInfo.as_view()),
- re_path('pcTest/(?P<operation>.*)', PctestController.PcTest.as_view()),
- re_path('deviceDebug/(?P<operation>.*)', DeviceDebug.DeviceDebug.as_view()),
- re_path('api/surveys/(?P<operation>.*)', CloudStorageController.CloudStorageView.as_view()),
- re_path('api/device/share/(?P<operation>.*)', UserDeviceShareController.UserDeviceShareView.as_view()),
- re_path('app/sensor/gateway/(?P<operation>.*)', EquipmentFamilyController.EquipmentFamilyView.as_view()),
- re_path('loocam/', include("Ansjer.server_urls.loocam_url")),
- re_path('unicom/', include("Ansjer.server_urls.unicom_url")),
- re_path('algorithm-shop/', include("Ansjer.server_urls.algorithm_shop_url")),
- re_path('kvs/', include("Ansjer.server_urls.kvs_url")),
- re_path('appAccout/(?P<operation>.*)', SuperPasswordTool.SuperPasswordView.as_view()),
- re_path('sensorGateway/(?P<operation>.*)', SensorGatewayController.SensorGateway.as_view()),
- # 后台界面接口-------------------------------------------------------------------------------------------------------
- # 用户登录信息等
- re_path('login', UserManageController.LoginView.as_view()),
- re_path('noPasslogin', UserManageController.LoginView.as_view()),
- re_path('userInfo', UserManageController.GetPermissions.as_view()),
- re_path('router/getList', UserManageController.GetList.as_view()),
- # 角色管理
- re_path('roleManagement/(?P<operation>.*)', RoleController.RoleView.as_view()),
- # 菜单管理
- re_path('menuManagement/(?P<operation>.*)', MenuController.MenuView.as_view()),
- # 用户管理
- re_path('userManagement/(?P<operation>.*)', UserManageController.UserManagement.as_view()),
- # 设备管理
- re_path('deviceManagement/(?P<operation>.*)', DeviceManagementController.DeviceManagement.as_view()),
- # 版本管理
- re_path('versionManagement/(?P<operation>.*)', VersionManagementController.VersionManagement.as_view()),
- # 服务管理
- re_path('serveManagement/(?P<operation>.*)', ServeManagementController.serveManagement.as_view()),
- # 测试服务
- re_path('testServe/(?P<operation>.*)', TestServeController.TestServeView.as_view()),
- # 日志管理
- re_path('logManagement/(?P<operation>.*)', LogManagementController.LogManagementView.as_view()),
- # AI服务
- re_path('aiServe/(?P<operation>.*)', AiServeController.AiServeView.as_view()),
- # 问卷调查管理
- re_path(r'surveys/(?P<operation>.*)', SurveysManageController.SurveysView.as_view()),
- # 序列号管理
- re_path(r'serial/(?P<operation>.*)', SerialManageController.SerialView.as_view()),
- # 数据系统模块
- re_path(r'^dataManagement/', include("Ansjer.server_urls.datasystem_url")),
- # 后台界面接口-------------------------------------------------------------------------------------------------------
- # 定时删除任务接口
- re_path(r'^cron/del/(?P<operation>.*)', CronTaskController.CronDelDataView.as_view()),
- # 定时更新任务接口
- re_path(r'^cron/update/(?P<operation>.*)', CronTaskController.CronUpdateDataView.as_view()),
- # 定时收集数据任务接口
- re_path(r'^cron/collect/(?P<operation>.*)', CronTaskController.CronCollectDataView.as_view()),
- re_path('(?P<path>.*)', LogManager.errorPath),
- ]
|