from Utils.ObjUtil import SpecObject from Utils.ValidateUtil import ValidateAttr, Validate class MortgageMovableoObj(SpecObject): """动产抵押""" cid = ValidateAttr(field='cid', type=str, length=8) registration_number = ValidateAttr(field='registration_number', type=str, default=None) registration_organ = ValidateAttr(field='registration_organ', type=str, default=None) registration_date = ValidateAttr(field='registration_date', func=Validate.date_format) mortgagor = ValidateAttr(field='mortgagor', type=str, default=None) mortgagee = ValidateAttr(field='mortgagee', type=str, default=None) secured_claim_type = ValidateAttr(field='secured_claim_type', type=str, default=None) secured_claim_amount = ValidateAttr(field='secured_claim_amount', type=[str, int, float], default=None) debt_duration = ValidateAttr(field='debt_duration', type=str, default=None) collateral_info = ValidateAttr(field='collateral_info', type=list, default=None) status = ValidateAttr(field='status', type=str, default=None) update_time = ValidateAttr(field='update_time', func=Validate.time_format) fields_map = { "cid": "企业ID", "registration_number": "登记编号", "registration_organ": "登记机关", "registration_date": "登记日期", "mortgagor": "抵押人", "mortgagee": "抵押权人", "secured_claim_type": "被担保债权类型", "secured_claim_amount": "被担保债权数额", "debt_duration": "债务期限", "collateral_info": "抵押物信息", "status": "状态", "update_time": "更新时间" }