def to_dict(self): return { 'id': self.id, 'name': self.name, 'amount': float(self.amount), 'max_count': self.max_count, 'expiretime': get_formattime(self.expiretime), 'add_time': get_formattime(self.add_time) }
def to_dict(self): return { 'id': self.id, 'transfertype': self.transfertype, 'amount': float(self.amount), 'transfer_account': self.transfer_account, 'status': self.status, 'add_time': get_formattime(self.add_time), 'audit_time': get_formattime(self.audit_time), 'remark': self.remark }
def to_dict(self): return { 'id': self.id, 'shopname': self.shopname, 'shopkeepername': self.shopkeepername, 'platform': self.platform, 'add_time': get_formattime(self.add_time) }
def to_dict(self, customer_name): return { 'id': self.id, 'customer_id': self.customer_id, 'customer_name': customer_name, 'mobile': self.mobile, 'content': self.content, 'add_time': get_formattime(self.add_time) }
def to_dict(self): return { 'id': self.id, 'title': self.title, 'billtype': self.billtype, 'amount': self.amount, 'paytype': self.paytype, 'balance': self.balance, 'add_time': get_formattime(self.add_time) }
def to_dict(self): return { 'id': self.id, 'shop_id': self.shop.id, 'shop_name': self.shop.shopname, 'name': self.name, 'price1': self.price1, 'pgoods_id': self.pgoods_id, 'platform': self.platform, 'add_time': get_formattime(self.add_time) }
def to_dict(self, *args): return { 'id': self.id, 'task_id': self.task_id, 'task_name': args[0], 'customer_id': self.customer_id, 'customer_name': args[1], 'wechat': self.wechat, 'alipay': self.alipay, 'orderno': self.orderno, 'amount': self.amount, 'status': CASHBACK_STATUS[self.status], 'add_time': get_formattime(self.add_time) }