57 lines
1.7 KiB
C#
57 lines
1.7 KiB
C#
using Infrastructure;
|
|
using Infrastructure.Attribute;
|
|
using Infrastructure.Enums;
|
|
using Infrastructure.Model;
|
|
using Mapster;
|
|
using Microsoft.AspNetCore.Http;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using ARW.Admin.WebApi.Extensions;
|
|
using ARW.Admin.WebApi.Filters;
|
|
using ARW.Common;
|
|
using ARW.Admin.WebApi.Controllers;
|
|
using ARW.Model.Dto.Api.EmotionManage.EmoticonDatas;
|
|
using ARW.Service.Api.IBusinessService.EmotionManage.EmoticonDatas;
|
|
using ARW.Model.Models.Business.EmotionManage.EmoticonDatas;
|
|
using ARW.Model.Vo.Api.EmotionManage.EmoticonDatas;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Geocoding;
|
|
|
|
namespace ARW.WebApi.Controllers.Api.EmotionManage.EmoticonDatas
|
|
{
|
|
/// <summary>
|
|
/// 表情包控制器Api
|
|
///
|
|
/// @author lwh
|
|
/// @date 2023-10-29
|
|
/// </summary>
|
|
//[Verify]
|
|
[Route("api/[controller]")]
|
|
public class EmoticonDataApiController : BaseController
|
|
{
|
|
private readonly IEmoticonDataServiceApi _EmoticonDataServiceApi;
|
|
|
|
/// <summary>
|
|
/// 依赖注入
|
|
/// </summary>
|
|
/// <param name="EmoticonDataServiceApi">表情包表情包Api服务</param>
|
|
public EmoticonDataApiController(IEmoticonDataServiceApi EmoticonDataServiceApi)
|
|
{
|
|
_EmoticonDataServiceApi = EmoticonDataServiceApi;
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 获取表情包列表(Api)
|
|
/// </summary>
|
|
/// <param name="parm">查询参数</param>
|
|
/// <returns></returns>
|
|
[HttpGet("getEmoticonDataList")]
|
|
public async Task<IActionResult> GetEmoticonDataListApi([FromQuery] EmoticonDataQueryDtoApi parm)
|
|
{
|
|
var res = await _EmoticonDataServiceApi.GetEmoticonDataListApi(parm);
|
|
return SUCCESS(res);
|
|
}
|
|
|
|
}
|
|
}
|