def getAbstract(self): return { 'club_id': self.clubId, 'club_name': self.name, 'owner': dict(self.owner), 'room_type': utility.getRoomParams(dict(self.roomType)), }
def getDetailInfo(self): return { 'club_id': self.clubId, 'club_name': self.name, 'club_notice': self.notice, 'member_num': len(self.members), 'room_type': utility.getRoomParams(dict(self.roomType)), 'owner': dict(self.owner), 'table_info_list': self.table_mgr.getTableListInfo(), }
def getAbstract(self, uid): return { 'club_id': self.clubId, 'club_name': self.name, 'owner': dict(self.owner), 'room_type': utility.getRoomParams(dict(self.roomType)), 'dismiss_apply_list': list(self.dismiss_apply.values()) if self.owner['userId'] == uid else [] }
def getDetailInfo(self, uid): return { 'club_id': self.clubId, 'club_name': self.name, 'club_notice': self.notice, 'member_num': len(self.members), 'room_type': utility.getRoomParams(dict(self.roomType)), 'owner': dict(self.owner), 'table_info_list': self.table_mgr.getTableListInfo(), 'dismiss_apply_list': list(self.dismiss_apply.values()) if self.owner['userId'] == uid else [] }