public BaseItemRes <bool> ExistUser([FromQuery] ExistUserReq req) { var exist = this.userBLL.ExistUser(req); return(BaseItemRes <bool> .Ok(exist)); }
/// <summary> /// 检查用户是否存在 /// </summary> /// <param name="req">条件</param> /// <returns>true:已存在;false:不存在</returns> public bool ExistUser(ExistUserReq req) { return(this.userDAL.ExistUser(req.LoginName)); }