using System.Threading.Tasks; using GxPress.Common.Page; using GxPress.Entity; using GxPress.Repository.Interface; using GxPress.Request.Slide; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace GxPress.Api.AppControllers { /// /// 审批轮播 /// [Route("api/app/slide")] [ApiController] [Authorize] public class SlideController : ControllerBase { private readonly ISlideRepository _slideRepository; public SlideController(ISlideRepository slideRepository) { _slideRepository = slideRepository; } /// /// App列表 /// /// [HttpGet("list")] public async Task> GetList() { var request = new SlideSearchRequest(); request.TypeId = 1; var result = await _slideRepository.GetListAsync(request); return result; } } }