using Microsoft.AspNetCore.Mvc; using Swashbuckle.AspNetCore.Annotations; using SPMS.Application.DTOs.Faq; using SPMS.Application.Interfaces; using SPMS.Domain.Common; namespace SPMS.API.Controllers; [ApiController] [Route("v1/in/public/faq")] [ApiExplorerSettings(GroupName = "public")] public class FaqController : ControllerBase { private readonly IFaqService _faqService; public FaqController(IFaqService faqService) { _faqService = faqService; } [HttpPost("list")] [SwaggerOperation(Summary = "FAQ 목록", Description = "활성화된 FAQ 목록을 조회합니다. category로 필터링 가능.")] public async Task GetListAsync([FromBody] FaqListRequestDto request) { var result = await _faqService.GetListAsync(request); return Ok(ApiResponse.Success(result)); } }