예제 #1
0
 /**
  * 获取申请信息
  *
  * @param characterId
  * @param pageSize
  * @param page
  * @return
  */
 public List<Map<String, Object>> getFriendList(int characterId, int pageSize, int page) {
   Map<String, Object> param = new HashMap<String, Object>();
   param.put("characterId", characterId);
   param.put("pageSize", pageSize);
   param.put("page", page);
   return friendMapper.getFriendList(param);
 }
예제 #2
0
 /**
  * 获取申请信息数量
  *
  * @param characterId
  * @return
  */
 public int getFriendListAmount(int characterId) {
   return friendMapper.getFriendListAmount(characterId);
 }
예제 #3
0
 /**
  * 通过申请人Id和被申请人Id查询申请列表,用于判断是否已经申请过
  *
  * @param param
  * @return
  */
 public Map<String, Integer> getFriendListByApplyId(Map<String, Object> param) {
   return friendMapper.getFriendListByApplyId(param);
 }
예제 #4
0
 /**
  * 删除申请信息
  *
  * @param id
  */
 public void deleteFriendList(int id, int characterId) {
   Map<String, Object> param = new HashMap<String, Object>();
   param.put("id", id);
   param.put("characterId", characterId);
   friendMapper.deleteFriendList(param);
 }
예제 #5
0
 /**
  * 向申请表插入申请信息
  *
  * @param param
  */
 public void insertFriendList(Map<String, Object> param) {
   friendMapper.insertFriendList(param);
 }
예제 #6
0
 /**
  * 获取具体好友或仇人
  *
  * @param param
  * @return
  */
 public FriendInfo selectUserFriend(Map<String, Object> param) {
   return friendMapper.selectUserFriend(param);
 }
예제 #7
0
 /**
  * 通过Id获取具体申请信息
  *
  * @param id
  * @return
  */
 public Map<String, Integer> getFriendListById(int id) {
   return friendMapper.getFriendListById(id);
 }
예제 #8
0
 /**
  * 世界地图显示全部仇人
  *
  * @param characterId
  * @return
  */
 public List<Map<String, Object>> getEnemyLocation(int characterId) {
   return friendMapper.getEnemyLocation(characterId);
 }
예제 #9
0
 /**
  * 获取好友信息
  *
  * @param param
  * @return
  */
 public List<FriendInfo> getUserFriends(Map<String, Object> param) {
   return friendMapper.getUserFriends(param);
 }
예제 #10
0
 /**
  * 获取好友或仇人位置
  *
  * @param param
  * @return
  */
 public Integer getFriendLocation(Map<String, Object> param) {
   return friendMapper.getFriendLocation(param);
 }
예제 #11
0
 /**
  * 删除好友或仇人
  *
  * @param friendId
  * @param characterId
  */
 public void deleteUserFriendByFriendId(int friendId, int characterId) {
   Map<String, Object> param = new HashMap<String, Object>();
   param.put("friendId", friendId);
   param.put("characterId", characterId);
   friendMapper.deleteUserFriendByFriendId(param);
 }
예제 #12
0
 /**
  * 获取好友信息,判断是否存在该好友
  *
  * @param param
  * @return
  */
 public Map<String, Integer> getUserFriendByFriendId(Map<String, Object> param) {
   return friendMapper.getUserFriendByFriendId(param);
 }
예제 #13
0
 /**
  * 通过id获取具体好友信息
  *
  * @param id
  * @return
  */
 public Map<String, Integer> getUserFriendById(int id) {
   return friendMapper.getUserFriendById(id);
 }
예제 #14
0
 /**
  * 获取好友数量
  *
  * @param characterId
  * @return
  */
 public int getFriendAmount(Map<String, Object> param) {
   return friendMapper.getFriendAmount(param);
 }