use of com.ngtesting.platform.entity.TestCaseInRun in project ngtesting-platform by aaronchen2k.
the class CaseInRunAction method delete.
@AuthPassport(validate = true)
@RequestMapping(value = "delete", method = RequestMethod.POST)
@ResponseBody
public Map<String, Object> delete(HttpServletRequest request, @RequestBody JSONObject json) {
Map<String, Object> ret = new HashMap<String, Object>();
UserVo userVo = (UserVo) request.getSession().getAttribute(Constant.HTTP_SESSION_USER_KEY);
Long entityId = json.getLong("entityId");
TestCaseInRun caseInRun = caseInRunService.deleteCaseFromRunPers(entityId, userVo);
caseService.updateParentIfNeededPers(caseInRun.getpId());
ret.put("code", Constant.RespCode.SUCCESS.getCode());
return ret;
}
Aggregations