using System.Threading.Tasks; using Furion.DynamicApiController; using Microsoft.AspNetCore.Mvc; using SqlSugar; using ZTICInterface.Application; using ZTICInterface.Core.Entity; using ZTICInterface.Core.Extend; namespace ZTICInterface.Application.App; /// /// 行业政策 /// public class IndustryPolicyApp:IDynamicApiController { private readonly Repository _industryPolicyService; public IndustryPolicyApp(Repository industryPolicyService) { _industryPolicyService = industryPolicyService; } /// /// 获取分页 /// /// /// /// public async Task> GetPages([FromQuery] int pageIndex, [FromQuery] int pageSize) { return await _industryPolicyService.GetPagesAsync(pageIndex, pageSize,null,a=>a.PublishDate,OrderByType.Desc); } }