using Attribute; using Dto; using Vo; using Model; using Model.Base; using Repository; using Service; using Microsoft.AspNetCore.Mvc; namespace Services.Client { /// /// 资源文件更新信息Service业务层处理 /// [AppService(ServiceType = typeof(IFileUpdateInfoService), ServiceLifetime = LifeTime.Transient)] public class FileUpdateInfoService : BaseService, IFileUpdateInfoService { /// /// APP-静态资源 /// /// 请求参数 /// APP静态资源 public PagedInfo StaticFiles([FromQuery] AppStaticFilesDto parm) { PagerInfo page = new PagerInfo(); page.pageSize = 100000; //开始拼装查询条件 var predicate = Expressionable.Create(); predicate = predicate.And(m => m.appVersion == parm.appVersion); predicate = predicate.AndIF(!string.IsNullOrEmpty(parm.kind), m => m.kind.Contains(parm.kind)); var response = Queryable() .Where(predicate.ToExpression()) .OrderByDescending(m => m.id) .ToPage(page); return response; } } }