using LiveForum.Code.Base;
using LiveForum.IService.Others;
using LiveForum.Model.Dto.Others;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace LiveForum.WebApi.Controllers
{
///
/// 反馈建议相关接口
///
///
[Route("api/[controller]/[action]")]
[ApiController]
public class FeedbackController(IFeedbackService feedback) : ControllerBase
{
///
/// 提交反馈建议
///
/// 请求参数
///
[HttpPost]
[Authorize]
public Task> SubmitFeedback([FromBody] FeedbackReq request) => feedback.SubmitFeedback(request);
}
}