/** * 添加监控接收者 * * @param po */ public boolean addLoginUserPo(LoginUserPo po) { boolean result = dao.addLoginUserPo(po); if (result) { UserService.get().register(UserService.get().createUserDefine(po)); } return result; }
/** * 删除一个用户 * * @param id * @return */ public boolean deleteLoginUserPo(Integer id) { boolean result = dao.deleteLoginUserPo(id); if (result) { UserDefine define = new UserDefine(); define.setUserId(id); UserService.get().register(define); } return result; }
/** * @param name * @param pwd * @return */ public LoginUserPo getLoginUserPo(String name, String pwd) { return dao.getLoginUserPo(name, pwd); }
/** * 获取应用对于key的接收的额外配置 * * @param userId * @return */ public List<ExtraUserAppKeyDefine> getExtraUserAppKeyDefine(int userId) { return dao.getExtraUserAppKeyDefine(userId); }
/** * 通过邮件地址获取信息 * * @param mail * @return */ public LoginUserPo getUserByMail(String mail) { return dao.getUserByMail(mail); }
/** @return */ public List<LoginUserPo> findAllUser() { return dao.findAllUser(); }
/** * 根据id 获取用户 * * @param id * @return */ public LoginUserPo getLoginUserPo(Integer id) { return dao.getLoginUserPo(id); }
/** * 根据用户名获取账号 * * @param name * @return */ public LoginUserPo getLoginUserPo(String name) { return dao.getLoginUserPo(name); }