Esempio n. 1
0
 def getAbstract(self):
     return {
         'club_id': self.clubId,
         'club_name': self.name,
         'owner': dict(self.owner),
         'room_type': utility.getRoomParams(dict(self.roomType)),
     }
Esempio n. 2
0
 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(),
     }
Esempio n. 3
0
 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 []
     }
Esempio n. 4
0
 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 []
     }