def get_group_all(): '''查询所有权限组''' group_list = GroupModel.get_all() if not group_list: raise NotFound(msg='不存在任何权限组') return Success(group_list)
def get_all_group(): '''查询所有权限组''' group_list = Group.get_all() return Success({'items': group_list})