use of com.jfinal.kit.Ret in project my_curd by qinyou.
the class BaseController method renderFail.
/**
* 失败操作
*
* @param data
*/
protected void renderFail(List<Object> data) {
Ret ret = Ret.create().setFail().setIfNotNull("data", data);
render(new JsonRender(ret).forIE());
}
use of com.jfinal.kit.Ret in project my_curd by qinyou.
the class IdsRequired method handleError.
@Override
protected void handleError(Controller c) {
Ret ret = Ret.create().setFail().set("msg", "ids 参数为空");
c.renderJson(ret);
}
Aggregations