__init__.py 723 B

12345678910111213141516171819202122232425
  1. # -*- coding: utf-8 -*-
  2. #!/usr/bin/env python
  3. # from voluptuous import Schema, Coerce, ALLOW_EXTRA
  4. # deviceStatusSchema = Schema(
  5. # {
  6. # 'status': int,
  7. # 'password': basestring,
  8. # 'nickname': basestring,
  9. #
  10. # 'annualTrafficCost': Coerce(RMB),
  11. #
  12. # # 'user': dict,
  13. # # 'dealer': dict,
  14. #
  15. # # 'aliPayApp': dict,
  16. # # 'wechatPayApp': dict,
  17. # # 'customizedDealerGzhAllowable': bool,
  18. # # 'customizedWechatCashflowAllowable': bool,
  19. # # 'customizedUserGzhAllowable': bool,
  20. # # 'customizedAlipayCashflowAllowable': bool,
  21. # }, extra = ALLOW_EXTRA)
  22. from signal_callback import post_operate_device_callback