def rcmd_users(request): '''推荐用户接口''' users = logics.rcmd(request.uid) # rcmd_data = [user.to_dict() for user in users] rcmd_data = [] for user in users: d = user.to_dict() d['describe'] = user.profile.describe rcmd_data.append(d) return render_json(rcmd_data)
def rcmd_users(request): '''获取推荐用户''' users = logics.rcmd(request.uid) # 获取推荐用户的id users_data = [user.to_dict() for user in users] # 遍历推荐用户的信息列表 return render_json(users_data)
def rcmd_users(request): '''获取推荐用户列表''' users = logics.rcmd(request.user) user_info = [user.to_dict() for user in users] return render_json(user_info)
def rcmd_users(request): # 拿到过滤用户列表 users = logics.rcmd(request.user) result = [user.to_dict() for user in users] return render_json(result)
def rcmd_user(request): """推荐用户接口""" users = logics.rcmd(request.uid) user_data = [user.to_dict() for user in users] return render_json(data=user_data)
def rcmd_users(request): '''推荐用户''' users = logics.rcmd(request.uid) result = [user.to_dict() for user in users] return render_json(result)
def rcmd_users(request): '''获取推荐用户''' users = logics.rcmd(request.uid) users_data = [user.to_dict(exclude=['phonenum']) for user in users] return render_json(users_data)
def rcmd_users(request): '''推荐用户接口''' users = logics.rcmd(request.uid) rcmd_data = [user.to_dict() for user in users] return render_json(rcmd_data)
def get_rcmd_users(request): '''获取推荐用户''' users = logics.rcmd(request.user) result = [user.to_dict('vip_id', 'vip_expired') for user in users] return render_json(result)
def ger_rcmd_users(request): '''获取推荐用户''' users = logics.rcmd(request.user) result = [user.to_dict() for user in users] return render_json(data=result)
def rcmd_users(request): #获取推荐列表 users=logics.rcmd(request.user) data=[user.to_dict() for user in users] return render_json(data)