1234567891011121314151617181920212223242526272829303132333435363738394041 |
- 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
- {
- /// <summary>
- /// 审批轮播
- /// </summary>
- [Route("api/app/slide")]
- [ApiController]
- [Authorize]
- public class SlideController : ControllerBase
- {
- private readonly ISlideRepository _slideRepository;
- public SlideController(ISlideRepository slideRepository)
- {
- _slideRepository = slideRepository;
- }
-
- /// <summary>
- /// App列表
- /// </summary>
- /// <returns></returns>
- [HttpPost("list")]
- public async Task<PagedList<Slide>> GetList(SlideSearchRequest request)
- {
- request.TypeId=1;
- var result = await _slideRepository.GetListAsync(request);
- return result;
- }
- }
- }
|