AntfortuneContentCommunityOpenSecuaiQueryModel.py 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AntfortuneContentCommunityOpenSecuaiQueryModel(object):
  6. def __init__(self):
  7. self._biz_request = None
  8. self._biz_type = None
  9. self._tenant_id = None
  10. @property
  11. def biz_request(self):
  12. return self._biz_request
  13. @biz_request.setter
  14. def biz_request(self, value):
  15. self._biz_request = value
  16. @property
  17. def biz_type(self):
  18. return self._biz_type
  19. @biz_type.setter
  20. def biz_type(self, value):
  21. self._biz_type = value
  22. @property
  23. def tenant_id(self):
  24. return self._tenant_id
  25. @tenant_id.setter
  26. def tenant_id(self, value):
  27. self._tenant_id = value
  28. def to_alipay_dict(self):
  29. params = dict()
  30. if self.biz_request:
  31. if hasattr(self.biz_request, 'to_alipay_dict'):
  32. params['biz_request'] = self.biz_request.to_alipay_dict()
  33. else:
  34. params['biz_request'] = self.biz_request
  35. if self.biz_type:
  36. if hasattr(self.biz_type, 'to_alipay_dict'):
  37. params['biz_type'] = self.biz_type.to_alipay_dict()
  38. else:
  39. params['biz_type'] = self.biz_type
  40. if self.tenant_id:
  41. if hasattr(self.tenant_id, 'to_alipay_dict'):
  42. params['tenant_id'] = self.tenant_id.to_alipay_dict()
  43. else:
  44. params['tenant_id'] = self.tenant_id
  45. return params
  46. @staticmethod
  47. def from_alipay_dict(d):
  48. if not d:
  49. return None
  50. o = AntfortuneContentCommunityOpenSecuaiQueryModel()
  51. if 'biz_request' in d:
  52. o.biz_request = d['biz_request']
  53. if 'biz_type' in d:
  54. o.biz_type = d['biz_type']
  55. if 'tenant_id' in d:
  56. o.tenant_id = d['tenant_id']
  57. return o