文档服务地址:http://47.92.0.57:3000/ 周报索引地址:http://47.92.0.57:3000/s/NruNXRYmV

Commit 1fccb91f by 李景熙

删除添加文件

parent 89f5380c
# 审核时候打分的接口,前端传送打分的具体信息(文件id,分片id,标注者id,打分详情),后端在标注关系表中查找对应的标注,并将分数存储下来,之后修改审核状态即flag2 = True,代表已审核
@task.route("/gradePiece", methods=["GET"])
def grade():
print("grade")
data_id = request.args['fileId']
userId = request.args['userId']
score = request.args['scoreForm']
ret = Relation.set_grade(userId, data_id, score)
res = {
'code': ret.code,
'message': ret.message,
'data': ret.data
}
return json.dumps(res)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment