示例#1
0
文件: team.py 项目: ahangchen/WeMeet
def info(request):
    """获取团队信息"""
    tid = request.GET['tid']
    team_dict = team.info(tid)
    if team_dict is not None:
        return HttpResponse(json_helper.dumps_err(0, team_dict))
    else:
        return HttpResponse(json_helper.dump_err_msg(ERR_STH_NO_MATCH, MSG_ACC_NOT_FOUND))
示例#2
0
文件: topic.py 项目: ahangchen/WeMeet
def new(request):
    tid = request.POST['tid']
    title = request.POST['title']
    content = request.POST['content']
    return HttpResponse(json_helper.dumps_err(SUCCEED, topic.new(tid, title, content)))
示例#3
0
文件: topic.py 项目: ahangchen/WeMeet
def info(request):
    tpid = request.GET['topic']
    return HttpResponse(json_helper.dumps_err(SUCCEED, topic.get(tpid)))
示例#4
0
文件: topic.py 项目: ahangchen/WeMeet
def remove(request):
    tpid = request.POST['topic']
    topic.remove(tpid)
    return HttpResponse(json_helper.dumps_err(SUCCEED, '删除成功'))
示例#5
0
文件: topic.py 项目: ahangchen/WeMeet
def update(request):
    tpid = request.POST['topic']
    title = request.POST['title']
    content = request.POST['content']
    topic.update(tpid, title, content)
    return HttpResponse(json_helper.dumps_err(SUCCEED, '修改成功'))
示例#6
0
def newest_topic(request):
    return HttpResponse(json_helper.dumps_err(SUCCEED, topic.newest()))
示例#7
0
def newest_teams(request):
    team_type = request.GET['b_type']
    return HttpResponse(
        json_helper.dumps_err(SUCCEED, team.newest_teams(team_type)))
示例#8
0
def newest(request):
    return HttpResponse(
        json_helper.dumps_err(SUCCEED, team.new_team_project_job()))
示例#9
0
文件: team.py 项目: ahangchen/WeMeet
def name2mail(request):
    name = request.GET['name']
    mails = team.name2mail(name)
    return HttpResponse(json_helper.dumps_err(SUCCEED, mails))