urls.py 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # -*- coding: utf-8 -*-
  2. # !/usr/bin/env python
  3. import os
  4. from django.conf.urls import patterns, url
  5. from apps.common.utils import get_test_point
  6. from apps.web.common.views import *
  7. urlpatterns = patterns('', *[
  8. # 公共文件上传接口
  9. url(r'^upload$', uploadFile, name='uploadFile'),
  10. # 查询地区信息
  11. url(r'^loadDistrictData$', loadDistrictData, name='loadDistrictData'),
  12. # 上传前端日志
  13. url(r'^logFrontend$', logFrontend, name='logFrontend'),
  14. url(r'^getFAQ$', getFAQ, name='getFAQ'),
  15. url(r'^getAddressType$', getAddressType, name='getAddressType'),
  16. # 获取展示通告
  17. url(r'^getNotifications$', getNotifications, name='getNotifications'),
  18. url(r'^getVersion$', getVersion, name='getVersion'),
  19. url(r'^generateNewAppKeyPair$', generateNewAppKeyPair, name='generateNewAppKeyPair'),
  20. url(r'^verifyAppKeyPairs$', verifyAppKeyPairs, name='verifyAppKeyPairs'),
  21. url(r'^apps/edit_wechat_fund$', editWechatFundApp, name='editWechatFundApp'),
  22. url(r'^apps/edit_ali$', editAliApp, name='editAliApp'),
  23. url(r'^apps/list_wechat_fund$', getWechatAppList, name='getWechatAppList'),
  24. url(r'^apps/list_ali$', getAliAppList, name='getAliAppList'),
  25. url(r'^uploadFaultPartPic$', uploadFaultPartPic, name='uploadFaultPartPic'),
  26. url(r'^queryExpressInfo$', queryExpressInfo, name='queryExpressInfo'),
  27. url(r'^ali/notify$', aliNotify, name='aliNotify'),
  28. url(r'^getReceipt$', getReceipt, name="getReceipt"),
  29. url(r'^getPowerGraph$', getPowerGraphByDevice, name="getPowerGraphByDevice"),
  30. url(r'^withdraw/bank/list$', supportedWithdrawBanks, name="supportedWithdrawBanks"),
  31. url(r'^withdraw/bank/byAccount$', getWithdrawBankByAccount, name= "getWithdrawBankByAccount"),
  32. url(r'^withdraw/area/list', loadWithdrawArea, name='loadWithdrawArea'),
  33. url(r'^withdraw/branchBank/list', withdrawBranchBankList, name='withdrawBranchBankList'),
  34. url(r'^withdraw/bankCard/list', getWithdrawBankCards, name='getWithdrawBankCards'),
  35. url(r'^withdraw/bankCard/save', saveWithdrawBankCard, name='saveWithdrawBankCard'),
  36. url(r'^withdraw/bankCard/unbind', unbindWithdrawBankCard, name='unbindWithdrawBankCard'),
  37. url(r'^withdraw/alipay/save', saveAlipayWithdrawInfo, name= 'saveAlipayWithdrawAccount'),
  38. url(r'^withdraw/wechat/save', saveWechatWithdrawInfo, name= 'saveWechatWithdrawInfo')
  39. ])