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