from Utils.ObjUtil import SpecObject from Utils.ValidateUtil import ValidateAttr, Validate class UntrustworthyObj(SpecObject): """失信人""" cid = ValidateAttr(field='cid', type=str, length=8) case_number = ValidateAttr(field='case_number', type=str) court = ValidateAttr(field='court', type=str, default=None) execute_number = ValidateAttr(field='execute_number', type=str, default=None) amount = ValidateAttr(field='amount', type=str, default=None) performance = ValidateAttr(field='performance', type=str, default=None) conduct = ValidateAttr(field='conduct', type=str, default=None) filling_date = ValidateAttr(field='filling_date', func=Validate.date_format) publish_date = ValidateAttr(field='publish_date', func=Validate.date_format) update_time = ValidateAttr(field='update_time', func=Validate.time_format) fields_map = { "cid": "企业ID", "case_number": "案号", "court": "执行法院", "execute_number": "执行依据文号", "amount": "涉案金额(元)", "performance": "履行情况", "conduct": "失信行为", "filling_date": "立案日期", "publish_date": "发布日期", "update_time": "更新时间" }