from Utils.ObjUtil import SpecObject from Utils.ValidateUtil import ValidateAttr, Validate class ConsumptionObj(SpecObject): """限制消费令""" cid = ValidateAttr(field='cid', type=str, length=8) filling_date = ValidateAttr(field='filling_date', func=Validate.date_format) case_number = ValidateAttr(field='case_number', type=str, default=None) applicant = ValidateAttr(field='applicant', type=str, default=None) publish_date = ValidateAttr(field='publish_date', func=Validate.date_format, default=None) update_time = ValidateAttr(field='update_time', func=Validate.time_format) fields_map = { "cid": "企业ID", "filling_date": "立案日期", "case_number": "案号", "applicant": "申请人信息", "publish_date": "发布日期", "update_time": "更新时间" }