using OAuth2Study.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OAuth2Study.IBll { public interface UserIBll { /// /// 添加用户 /// /// 用户 /// ValueTuple (bool result, User user) AddUser(User user); /// /// 更新用户 /// (bool result, User user) UpdateUser(User user); /// /// 删除用户 /// bool RemoveUser(User user); /// /// 删除用户 /// bool RemoveUser(int userId); /// /// 获取所有用户 /// IQueryable GetUsers(); /// /// 查询用户 /// IQueryable GetUsers(Func predicate); /// /// 按Id查询用户 /// User GetUser(int userId); /// /// 用户名是否存在 /// bool ExitsByName(string userName); } }