public String reqEmpower() { Map session = ActionContext.getContext().getSession(); Account act = (Account) session.get("account"); if (act.getLevel() == 0 || (act.getLevel() == null)) { msgService.sendMsg(act.getId(), 14, "请求授权"); } load(); return "success"; }
public void loadSendMsgs() { Map session = ActionContext.getContext().getSession(); Account act = (Account) session.get("account"); sendMsgs = msgService.getSendMsg(act.getId()); }
public String delMsg() { msgService.removeMsg(msgId); return "success"; }