def get(self, token, psetid): """ 获取题库整体排名 """ return ProblemsetDAO.getranklistbypsetid(token, psetid, request)
def get(self, token, psetname): """ 根据题库名称获取编号 """ return ProblemsetDAO.getpsetidbypsetname(token, psetname, request)
def get(self, token): """ 所有题库 """ return ProblemsetDAO.getproblemsets(token, request)
def get(self, token, problemtitle, answertime): """ 设置答题时间 """ return ProblemsetDAO.setanswertime(token, problemtitle, answertime, request)
def get(self, token, problemsetname): """ 检查题库是否存在 """ return ProblemsetDAO.checkexist(token, problemsetname, request)
def get(self, token, problemtitle, problemdesp): """ 添加题库 """ return ProblemsetDAO.addproblemset(token, problemtitle, problemdesp, request)
def get(self, token): """ 获取用户错题列表 """ return ProblemsetDAO.getwrongproblemidlist(token, request)
def get(self, token): """ 打开错题本 """ return ProblemsetDAO.togglenotebookopen(token, request)
def get(self, token, problemid): """ 获取题目带答案 """ return ProblemsetDAO.getproblemwithanswerbyid(token, problemid, request)
def get(self, token, problemid): """ 获取易错题带答案 """ return ProblemsetDAO.getsummarywithanswerbyid(token, problemid, request)
def get(self, token, problemid): """ 获取题目 """ return ProblemsetDAO.getproblembyid(token, problemid, request)
def get(self, token): """ 获取用户错题本开闭状态 """ return ProblemsetDAO.getnotebooktoggle(token, request)
def get(self, token, problemtitle): """ 初始化答题 """ return ProblemsetDAO.initproblems(token, problemtitle, request)
def get(self, token, psetname, newname): """ 复制题库 """ return ProblemsetDAO.copyproblemset(token, psetname, newname, request)
def get(self, token, scoreid, right, wrong, md5str, timestamp): """ 更新积分 """ return ProblemsetDAO.addscore(token, scoreid, right, wrong, md5str, timestamp, request)
def get(self, token, summary_psetname, summary_pwrongpercent): """ 获取易错题列表 """ return ProblemsetDAO.getsummarylist(token, summary_psetname, summary_pwrongpercent, request)
def get(self, token, scoreid): """ 记录结束时间戳 """ return ProblemsetDAO.addfinishedtime(token, scoreid, request)
def get(self, token): """ 关闭错题本 """ return ProblemsetDAO.togglenotebookclose(token, request)
def get(self, token, problemsetid, problemid): """ 添加错题 """ return ProblemsetDAO.addwrongproblem(token, problemsetid, problemid, request)
def post(self, token): """ 上传题库文件 """ fileobj = request.files["file"] return ProblemsetDAO.uploadfile(token, fileobj, request)
def get(self, token, notebookid): """ 移除错题 """ return ProblemsetDAO.removewrongproblem(token, notebookid, request)
def get(self, token, problemtitle): """ 追加题库 """ return ProblemsetDAO.addproblemset(token, problemtitle, "", request)
def get(self, token): """ 用户获取积分榜 """ return ProblemsetDAO.getscores(token, request)
def get(self, token, problemtitle): """ 删除题库 """ return ProblemsetDAO.removeproblemsets(token, problemtitle, request)
def get(self, token, problemtitle, answercount): """ 设置答题数目 """ return ProblemsetDAO.setanswercount(token, problemtitle, answercount, request)