use of io.github.ihongs.action.anno.CommitSuccess in project HongsCORE by ihongs.
the class DBAction method delete.
@Override
@Action("delete")
@Preset(conf = "", form = "", defs = { ":defence" })
@CommitSuccess
public void delete(ActionHelper helper) throws HongsException {
Model ett = getEntity(helper);
Map req = helper.getRequestData();
req = getReqMap(helper, ett, "delete", req);
int num = ett.delete(req);
String msg = getRspMsg(helper, ett, "delete", num);
helper.reply(msg, num);
}
use of io.github.ihongs.action.anno.CommitSuccess in project HongsCORE by ihongs.
the class DBAction method create.
@Override
@Action("create")
@Preset(conf = "", form = "", defs = { ":initial" })
@Verify(conf = "", form = "")
@CommitSuccess
public void create(ActionHelper helper) throws HongsException {
Model ett = getEntity(helper);
Map req = helper.getRequestData();
req = getReqMap(helper, ett, "create", req);
String nid = ett.create(req);
String msg = getRspMsg(helper, ett, "create", 1);
helper.reply(msg, nid);
}
Aggregations