Commit 3c8e3eff by 86857

"投稿管理/信箱管理/留言管理/投票管理--修改页面的问题列表" 新增删除功能

parent 54fc5b17
......@@ -442,4 +442,15 @@ public class ResearchQuestionController {
}
questionVo.setQuestionOptions(questionOptions);
}
@GetMapping("/delete")
@ApiOperation(value = "删除投票中问题")
public Response<Map<String,Object>> deleteByResearchIdAndQueId(@RequestParam("questionId") Long questionId, @RequestParam("researchId") Long researchId){
try {
return Response.ok(researchQuestionClient.deleteByResearchIdAndQueId(questionId, researchId));
} catch (Exception e) {
LOGGER.error("", e);
return Response.fail(ReturnCode.SERVICE_UNAVAILABLE.getCode(),ReturnCode.SERVICE_UNAVAILABLE.getMsg());
}
}
}
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