use of com.ngtesting.platform.vo.CaseExeStatusVo in project ngtesting-platform by aaronchen2k.
the class CaseExeStatusAction method save.
@AuthPassport(validate = true)
@RequestMapping(value = "save", method = RequestMethod.POST)
@ResponseBody
public Map<String, Object> save(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 orgId = userVo.getDefaultOrgId();
CaseExeStatusVo vo = json.getObject("model", CaseExeStatusVo.class);
TestCaseExeStatus po = caseExeStatusService.save(vo, orgId);
CaseExeStatusVo projectVo = caseExeStatusService.genVo(po);
ret.put("data", projectVo);
ret.put("code", Constant.RespCode.SUCCESS.getCode());
return ret;
}
use of com.ngtesting.platform.vo.CaseExeStatusVo in project ngtesting-platform by aaronchen2k.
the class CaseExeStatusServiceImpl method listVos.
@Override
public List<CaseExeStatusVo> listVos(Long orgId) {
List ls = list(orgId);
List<CaseExeStatusVo> vos = genVos(ls);
return vos;
}
Aggregations