/// <summary> /// 分页获取用户的砍价记录 /// </summary> /// <param name="pageIndex"></param> /// <param name="pageSize"></param> /// <param name="userId"></param> /// <returns></returns> public async Task <OperationResult <PagedModel <BargainHistoryModel> > > SelectBargainHistoryAsync(int pageIndex, int pageSize, Guid userId) { if (pageIndex < 1 || pageSize < 1 || userId == Guid.Empty) { return(OperationResult.FromError <PagedModel <BargainHistoryModel> >(ErrorCode.ParameterError, "参数不正确")); } var result = await BargainManager.SelectBargainHistory(pageIndex, pageSize, userId); return(OperationResult.FromResult(result)); }