using Attribute; using Dto; using Vo; using Model; using Model.Base; using Repository; using Service; using Microsoft.AspNetCore.Mvc; namespace Services.Client { /// /// app底部导航Service业务层处理 /// [AppService(ServiceType = typeof(IAppBottomNavsService), ServiceLifetime = LifeTime.Transient)] public class AppBottomNavsService : BaseService, IAppBottomNavsService { /// /// APP-底部导航列表 /// /// 请求参数 /// APP底部导航列表 public PagedInfo AppBottomNavs([FromQuery] AppAppBottomNavsDto parm) { //开始拼装查询条件 var predicate = Expressionable.Create(); predicate = predicate.AndIF(!string.IsNullOrEmpty(parm.kind), m => m.kind.Contains(parm.kind)); var response = Queryable() .Where(predicate.ToExpression()) .OrderBy(m => m.id) .ToPage(new PagerInfo()); return response; } } }