摘要: def orm_serialize(item) -> dict: if item: try: return {c.name: getattr(item, c.name) for c in item.__table__.columns} except: return {} else: return { 阅读全文
posted @ 2024-04-07 15:42 bitterteaer 阅读(5) 评论(0) 推荐(0) 编辑