AlipayCommerceEducateParttimejobInfoCreateModel.py 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayCommerceEducateParttimejobInfoCreateModel(object):
  6. def __init__(self):
  7. self._city_code = None
  8. self._clearing_form = None
  9. self._company_logo = None
  10. self._company_name = None
  11. self._educational_requirements = None
  12. self._features = None
  13. self._gender_requirement = None
  14. self._heat = None
  15. self._height_limit = None
  16. self._industry_attributes = None
  17. self._is_famous = None
  18. self._job_address = None
  19. self._job_category = None
  20. self._job_frequency = None
  21. self._job_id = None
  22. self._job_name = None
  23. self._job_remark = None
  24. self._job_welfare = None
  25. self._need_health = None
  26. self._salary = None
  27. self._skip_url = None
  28. self._status = None
  29. self._working_date = None
  30. @property
  31. def city_code(self):
  32. return self._city_code
  33. @city_code.setter
  34. def city_code(self, value):
  35. self._city_code = value
  36. @property
  37. def clearing_form(self):
  38. return self._clearing_form
  39. @clearing_form.setter
  40. def clearing_form(self, value):
  41. self._clearing_form = value
  42. @property
  43. def company_logo(self):
  44. return self._company_logo
  45. @company_logo.setter
  46. def company_logo(self, value):
  47. self._company_logo = value
  48. @property
  49. def company_name(self):
  50. return self._company_name
  51. @company_name.setter
  52. def company_name(self, value):
  53. self._company_name = value
  54. @property
  55. def educational_requirements(self):
  56. return self._educational_requirements
  57. @educational_requirements.setter
  58. def educational_requirements(self, value):
  59. self._educational_requirements = value
  60. @property
  61. def features(self):
  62. return self._features
  63. @features.setter
  64. def features(self, value):
  65. self._features = value
  66. @property
  67. def gender_requirement(self):
  68. return self._gender_requirement
  69. @gender_requirement.setter
  70. def gender_requirement(self, value):
  71. self._gender_requirement = value
  72. @property
  73. def heat(self):
  74. return self._heat
  75. @heat.setter
  76. def heat(self, value):
  77. self._heat = value
  78. @property
  79. def height_limit(self):
  80. return self._height_limit
  81. @height_limit.setter
  82. def height_limit(self, value):
  83. self._height_limit = value
  84. @property
  85. def industry_attributes(self):
  86. return self._industry_attributes
  87. @industry_attributes.setter
  88. def industry_attributes(self, value):
  89. self._industry_attributes = value
  90. @property
  91. def is_famous(self):
  92. return self._is_famous
  93. @is_famous.setter
  94. def is_famous(self, value):
  95. self._is_famous = value
  96. @property
  97. def job_address(self):
  98. return self._job_address
  99. @job_address.setter
  100. def job_address(self, value):
  101. self._job_address = value
  102. @property
  103. def job_category(self):
  104. return self._job_category
  105. @job_category.setter
  106. def job_category(self, value):
  107. self._job_category = value
  108. @property
  109. def job_frequency(self):
  110. return self._job_frequency
  111. @job_frequency.setter
  112. def job_frequency(self, value):
  113. self._job_frequency = value
  114. @property
  115. def job_id(self):
  116. return self._job_id
  117. @job_id.setter
  118. def job_id(self, value):
  119. self._job_id = value
  120. @property
  121. def job_name(self):
  122. return self._job_name
  123. @job_name.setter
  124. def job_name(self, value):
  125. self._job_name = value
  126. @property
  127. def job_remark(self):
  128. return self._job_remark
  129. @job_remark.setter
  130. def job_remark(self, value):
  131. self._job_remark = value
  132. @property
  133. def job_welfare(self):
  134. return self._job_welfare
  135. @job_welfare.setter
  136. def job_welfare(self, value):
  137. self._job_welfare = value
  138. @property
  139. def need_health(self):
  140. return self._need_health
  141. @need_health.setter
  142. def need_health(self, value):
  143. self._need_health = value
  144. @property
  145. def salary(self):
  146. return self._salary
  147. @salary.setter
  148. def salary(self, value):
  149. self._salary = value
  150. @property
  151. def skip_url(self):
  152. return self._skip_url
  153. @skip_url.setter
  154. def skip_url(self, value):
  155. self._skip_url = value
  156. @property
  157. def status(self):
  158. return self._status
  159. @status.setter
  160. def status(self, value):
  161. self._status = value
  162. @property
  163. def working_date(self):
  164. return self._working_date
  165. @working_date.setter
  166. def working_date(self, value):
  167. self._working_date = value
  168. def to_alipay_dict(self):
  169. params = dict()
  170. if self.city_code:
  171. if hasattr(self.city_code, 'to_alipay_dict'):
  172. params['city_code'] = self.city_code.to_alipay_dict()
  173. else:
  174. params['city_code'] = self.city_code
  175. if self.clearing_form:
  176. if hasattr(self.clearing_form, 'to_alipay_dict'):
  177. params['clearing_form'] = self.clearing_form.to_alipay_dict()
  178. else:
  179. params['clearing_form'] = self.clearing_form
  180. if self.company_logo:
  181. if hasattr(self.company_logo, 'to_alipay_dict'):
  182. params['company_logo'] = self.company_logo.to_alipay_dict()
  183. else:
  184. params['company_logo'] = self.company_logo
  185. if self.company_name:
  186. if hasattr(self.company_name, 'to_alipay_dict'):
  187. params['company_name'] = self.company_name.to_alipay_dict()
  188. else:
  189. params['company_name'] = self.company_name
  190. if self.educational_requirements:
  191. if hasattr(self.educational_requirements, 'to_alipay_dict'):
  192. params['educational_requirements'] = self.educational_requirements.to_alipay_dict()
  193. else:
  194. params['educational_requirements'] = self.educational_requirements
  195. if self.features:
  196. if hasattr(self.features, 'to_alipay_dict'):
  197. params['features'] = self.features.to_alipay_dict()
  198. else:
  199. params['features'] = self.features
  200. if self.gender_requirement:
  201. if hasattr(self.gender_requirement, 'to_alipay_dict'):
  202. params['gender_requirement'] = self.gender_requirement.to_alipay_dict()
  203. else:
  204. params['gender_requirement'] = self.gender_requirement
  205. if self.heat:
  206. if hasattr(self.heat, 'to_alipay_dict'):
  207. params['heat'] = self.heat.to_alipay_dict()
  208. else:
  209. params['heat'] = self.heat
  210. if self.height_limit:
  211. if hasattr(self.height_limit, 'to_alipay_dict'):
  212. params['height_limit'] = self.height_limit.to_alipay_dict()
  213. else:
  214. params['height_limit'] = self.height_limit
  215. if self.industry_attributes:
  216. if hasattr(self.industry_attributes, 'to_alipay_dict'):
  217. params['industry_attributes'] = self.industry_attributes.to_alipay_dict()
  218. else:
  219. params['industry_attributes'] = self.industry_attributes
  220. if self.is_famous:
  221. if hasattr(self.is_famous, 'to_alipay_dict'):
  222. params['is_famous'] = self.is_famous.to_alipay_dict()
  223. else:
  224. params['is_famous'] = self.is_famous
  225. if self.job_address:
  226. if hasattr(self.job_address, 'to_alipay_dict'):
  227. params['job_address'] = self.job_address.to_alipay_dict()
  228. else:
  229. params['job_address'] = self.job_address
  230. if self.job_category:
  231. if hasattr(self.job_category, 'to_alipay_dict'):
  232. params['job_category'] = self.job_category.to_alipay_dict()
  233. else:
  234. params['job_category'] = self.job_category
  235. if self.job_frequency:
  236. if hasattr(self.job_frequency, 'to_alipay_dict'):
  237. params['job_frequency'] = self.job_frequency.to_alipay_dict()
  238. else:
  239. params['job_frequency'] = self.job_frequency
  240. if self.job_id:
  241. if hasattr(self.job_id, 'to_alipay_dict'):
  242. params['job_id'] = self.job_id.to_alipay_dict()
  243. else:
  244. params['job_id'] = self.job_id
  245. if self.job_name:
  246. if hasattr(self.job_name, 'to_alipay_dict'):
  247. params['job_name'] = self.job_name.to_alipay_dict()
  248. else:
  249. params['job_name'] = self.job_name
  250. if self.job_remark:
  251. if hasattr(self.job_remark, 'to_alipay_dict'):
  252. params['job_remark'] = self.job_remark.to_alipay_dict()
  253. else:
  254. params['job_remark'] = self.job_remark
  255. if self.job_welfare:
  256. if hasattr(self.job_welfare, 'to_alipay_dict'):
  257. params['job_welfare'] = self.job_welfare.to_alipay_dict()
  258. else:
  259. params['job_welfare'] = self.job_welfare
  260. if self.need_health:
  261. if hasattr(self.need_health, 'to_alipay_dict'):
  262. params['need_health'] = self.need_health.to_alipay_dict()
  263. else:
  264. params['need_health'] = self.need_health
  265. if self.salary:
  266. if hasattr(self.salary, 'to_alipay_dict'):
  267. params['salary'] = self.salary.to_alipay_dict()
  268. else:
  269. params['salary'] = self.salary
  270. if self.skip_url:
  271. if hasattr(self.skip_url, 'to_alipay_dict'):
  272. params['skip_url'] = self.skip_url.to_alipay_dict()
  273. else:
  274. params['skip_url'] = self.skip_url
  275. if self.status:
  276. if hasattr(self.status, 'to_alipay_dict'):
  277. params['status'] = self.status.to_alipay_dict()
  278. else:
  279. params['status'] = self.status
  280. if self.working_date:
  281. if hasattr(self.working_date, 'to_alipay_dict'):
  282. params['working_date'] = self.working_date.to_alipay_dict()
  283. else:
  284. params['working_date'] = self.working_date
  285. return params
  286. @staticmethod
  287. def from_alipay_dict(d):
  288. if not d:
  289. return None
  290. o = AlipayCommerceEducateParttimejobInfoCreateModel()
  291. if 'city_code' in d:
  292. o.city_code = d['city_code']
  293. if 'clearing_form' in d:
  294. o.clearing_form = d['clearing_form']
  295. if 'company_logo' in d:
  296. o.company_logo = d['company_logo']
  297. if 'company_name' in d:
  298. o.company_name = d['company_name']
  299. if 'educational_requirements' in d:
  300. o.educational_requirements = d['educational_requirements']
  301. if 'features' in d:
  302. o.features = d['features']
  303. if 'gender_requirement' in d:
  304. o.gender_requirement = d['gender_requirement']
  305. if 'heat' in d:
  306. o.heat = d['heat']
  307. if 'height_limit' in d:
  308. o.height_limit = d['height_limit']
  309. if 'industry_attributes' in d:
  310. o.industry_attributes = d['industry_attributes']
  311. if 'is_famous' in d:
  312. o.is_famous = d['is_famous']
  313. if 'job_address' in d:
  314. o.job_address = d['job_address']
  315. if 'job_category' in d:
  316. o.job_category = d['job_category']
  317. if 'job_frequency' in d:
  318. o.job_frequency = d['job_frequency']
  319. if 'job_id' in d:
  320. o.job_id = d['job_id']
  321. if 'job_name' in d:
  322. o.job_name = d['job_name']
  323. if 'job_remark' in d:
  324. o.job_remark = d['job_remark']
  325. if 'job_welfare' in d:
  326. o.job_welfare = d['job_welfare']
  327. if 'need_health' in d:
  328. o.need_health = d['need_health']
  329. if 'salary' in d:
  330. o.salary = d['salary']
  331. if 'skip_url' in d:
  332. o.skip_url = d['skip_url']
  333. if 'status' in d:
  334. o.status = d['status']
  335. if 'working_date' in d:
  336. o.working_date = d['working_date']
  337. return o