Exemplo n.º 1
0
 def is_exist(self, club_name):
     if str(club_name) == "" or len(str(club_name)) == 0:
         return "클럽명 규칙에 어긋납니다."
     else:
         bm = service.ClubService()
         club_find_name = bm.is_exist(club_name)
         return club_find_name
Exemplo n.º 2
0
 def delete_controller(self, manager_email):
     if str(manager_email) == "" or len(str(manager_email)) == 0:
         return "클럽 생성 규칙에 어긋납니다."
     else:
         bm = service.ClubService()
         message = bm.entity_remove(manager_email)
         return message
Exemplo n.º 3
0
 def join_club(self, club_entity):
     if club_entity.club_name == "" or len(club_entity.club_name) == 0:
         return "클럽 생성 규칙에 어긋납니다."
     else:
         bm = service.ClubService()
         message = bm.join_club_member(club_entity)
         #view select
         return message
Exemplo n.º 4
0
    def update_controller(self, club_entity):
        if club_entity.prod_num == "" or len(club_entity.prod_num) == 0:

            return "클럽 생성 규칙에 어긋납니다."
        else:

            bm = service.ClubService()
            message = bm.entity_update(club_entity)
            #view select
            return message
Exemplo n.º 5
0
 def get_entity_controller(self, club_name):
     if str(club_name) == "" or len(str(club_name)) == 0:
         return "클럽 생성 규칙이 잘못되었습니다."
     else:
         bm = service.ClubService()
         entity = bm.get_all_entity(club_name)  # 클럽별 멤버십 = entity
         if entity != None:
             return entity
         else:
             return "존재하지 않습니다."
Exemplo n.º 6
0
 def get_clubinfo(self, club_info):
     selected = []
     if str(club_info) == "" or len(str(club_info)) == 0:
         selected.append("--null--")
     elif bool(str(club_info)):
         bm = service.ClubService()
         entity = bm.get_by_info(club_info)
         if entity != None:
             selected.append(entity)  # 여기까지 클럽 info로 클럽 명을 가지고 옴
         else:
             selected.append("추천 클럽이 존재하지 않습니다.")
     return selected
Exemplo n.º 7
0
 def search_club(self, club_name):
     selected = []
     # ★수정하기
     bm = service.ClubService()
     club_show = bm.get_all_club()
     for club in club_show:
         if club['club_name'] == club_name:
             selected.append(club["club_info"])
             continue
         else:
             selected.append("--null--")
     return selected
Exemplo n.º 8
0
 def get_all_entity_club(self):
     bm = service.ClubService()
     listed = bm.get_all_club()
     return listed
Exemplo n.º 9
0
def register_check(key, table_name):

    bm = service.ClubService()
    result_entity = bm.is_exist(key, table_name)

    return result_entity