use of io.github.ihongs.action.anno.Preset in project HongsCORE by ihongs.
the class SearchAction method assort.
@Action("assort")
@Preset(conf = "", form = "")
@Select(conf = "", form = "")
public void assort(ActionHelper helper) throws HongsException {
SearchEntity sr = (SearchEntity) getEntity(helper);
StatisHelper sh = new StatisHelper(sr);
Map rd = helper.getRequestData();
rd = getReqMap(helper, sr, "assort", rd);
// 检查参数
acheck(sr, rd, 3);
int rn = Synt.declare(rd.get(Cnst.RN_KEY), 0);
int pn = Synt.declare(rd.get(Cnst.PN_KEY), 1);
Map sd = sh.assort(rd, rn, pn);
sd = getRspMap(helper, sr, "assort", sd);
helper.reply(sd);
}
use of io.github.ihongs.action.anno.Preset in project HongsCORE by ihongs.
the class JAction method delete.
@Override
@Action("delete")
@Preset(conf = "", form = "", defs = { ":defence" })
@CommitSuccess
public void delete(ActionHelper helper) throws HongsException {
IEntity sr = getEntity(helper);
Map rd = helper.getRequestData();
rd = getReqMap(helper, sr, "delete", rd);
int sn = sr.delete(rd);
String ss = getRspMsg(helper, sr, "delete", sn);
helper.reply(ss, sn);
}
use of io.github.ihongs.action.anno.Preset in project HongsCORE by ihongs.
the class JAction method update.
@Override
@Action("update")
@Preset(conf = "", form = "", defs = { ":defence" })
@Verify(conf = "", form = "")
@CommitSuccess
public void update(ActionHelper helper) throws HongsException {
IEntity sr = getEntity(helper);
Map rd = helper.getRequestData();
rd = getReqMap(helper, sr, "update", rd);
int sn = sr.update(rd);
String ss = getRspMsg(helper, sr, "update", sn);
helper.reply(ss, sn);
}
use of io.github.ihongs.action.anno.Preset in project HongsCORE by ihongs.
the class JAction method create.
@Override
@Action("create")
@Preset(conf = "", form = "", defs = { ":initial" })
@Verify(conf = "", form = "")
@CommitSuccess
public void create(ActionHelper helper) throws HongsException {
IEntity sr = getEntity(helper);
Map rd = helper.getRequestData();
rd = getReqMap(helper, sr, "create", rd);
String sn = sr.create(rd);
String ss = getRspMsg(helper, sr, "create", 1);
helper.reply(ss, sn);
}
use of io.github.ihongs.action.anno.Preset in project HongsCORE by ihongs.
the class JAction method search.
@Override
@Action("search")
@Preset(conf = "", form = "")
@Select(conf = "", form = "")
public void search(ActionHelper helper) throws HongsException {
IEntity sr = getEntity(helper);
Map rd = helper.getRequestData();
rd = getReqMap(helper, sr, "search", rd);
Map sd = sr.search(rd);
sd = getRspMap(helper, sr, "search", sd);
helper.reply(sd);
}
Aggregations