use of com.duangframework.mvc.render.JsonRender in project duangframework by tcrct.
the class BaseController method returnJson.
public void returnJson(int ret, String msg, Object obj) {
ReturnDto<Object> dto = new ReturnDto<>();
HeadDto head = ToolsKit.getThreadLocalDto();
head.setRet(ret);
head.setMsg(msg);
head.setUri(request.getRequestURI());
dto.setHead(head);
dto.setData(obj);
render = new JsonRender(dto);
}
Aggregations