示例#1
0
文件: apis.py 项目: ai-Iverson/Swiper
def rcmd_user(request):
    '''获取推荐列表'''
    users = logics.rcmd_users(request.uid)
    result = [user.to_dict() for user in users]
    return render_json(result)
示例#2
0
文件: api.py 项目: melodyww/swiper-1
def get_rcmd_users(request):
    users = logics.rcmd_users(request.user)
    data = [user.to_dict() for user in users]  # 封装要返回的数据
    return render_json(data)