You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
534 B

class PassengerPresenter:
def __init__(self, data, aid_data=None):
self.data = data
self.aid_data = aid_data
def as_dict(self):
return {
"id": self.data.id,
"account": self.data.account,
"name": self.data.name,
"idCardNo": self.data.id_card_no,
"mobileNo": self.data.mobile_no,
"bankCardNo": self.data.bank_card_no,
"state": self.data.state,
"memberType": self.data.member_type
} | self.aid_data