首页>代码>Java 模拟WebQQ3.0>/WebQQ/src/com/etoak/dao/UserDaoIf.java
package com.etoak.dao;

import java.util.List;


import com.etoak.bean.Friend;
import com.etoak.bean.Friendtype;
import com.etoak.bean.Msg;
import com.etoak.bean.User;

public interface UserDaoIf {
	//注册
	public boolean register(User user);
	//登录
	public boolean login(User user);
	//通过用户名查找用户
	public User getUserByUsername(String username);
	//发送添加好友请求
	public String sendMessageForFriend(User messageFrom,User messageTo, String message);
	//删除好友
	public boolean deleteUserById(int id);
	//通过分组名得到好友分组
	public Friendtype getfriendTypeByTypeName(String typeName);
	//得到用户的全部好友
	public List<Friend> getAllFriends(User user);
	//得到申请好友的发起方
	public List<Msg> getAllMsgByFromUser(User user);
	//得到申请好友的接收方
	
	//处理好友请求<Msg>
	public  int updateForFriendRequest(User user);
	//获得好友请求信息
	public List<Msg> getAllFriendRequest(User user);
	
	//处理好友关系
	public boolean updateForFriend(Msg msg);
}
最近下载更多
luoluyan  LV1 2021年7月20日
zm8080  LV1 2021年6月29日
zaq123zaq  LV10 2020年12月21日
guaixia163  LV13 2020年7月13日
ybhybh  LV1 2020年6月8日
skk__99  LV2 2019年12月25日
卷风小白龙  LV2 2019年12月23日
lingjiawei1997  LV1 2019年11月29日
lilingzhi  LV1 2019年10月10日
edwin98666  LV2 2019年8月6日
最近浏览更多
jinling2024  LV3 2月4日
ClydeSon  LV5 2023年12月28日
hxy19991216  LV4 2023年12月20日
EFWAGGFAWGR 2023年10月19日
暂无贡献等级
漫步的海星  LV4 2023年8月28日
1WQAQW1  LV2 2023年6月12日
不止是六位数  LV7 2023年3月20日
wuziayng1232  LV10 2023年2月20日
总有人间一两风  LV8 2022年12月10日
heqian  LV16 2022年12月2日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友