using System.Collections.Generic; using System.Threading.Tasks; using GxPress.Entity; using GxPress.Repository.Interface; using GxPress.Request.Thesaurus; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace GxPress.Api.AppControllers { /// /// 冷热词库 /// [Route("api/app/thesaurus")] [ApiController] [Authorize] public class ThesaurusController : ControllerBase { private readonly IThesaurusRepository _thesaurusRepository; public ThesaurusController( IThesaurusRepository thesaurusRepository) { _thesaurusRepository = thesaurusRepository; } /// /// app获取热词冷词 /// /// /// [HttpPost("get-thesaurus")] public async Task> GetAppVersion(ThesaurusSearchRequest request) { return await _thesaurusRepository.GetTopListAsync(request); } } }