SysDictTypeAppService.cs 694 B

12345678910111213141516171819202122232425262728
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 字典类型
  5. /// </summary>
  6. [ApiDescriptionSettings(Name = "sys-dict-type")]
  7. [Route("sys/dict/type")]
  8. public class SysDictTypeAppService : IDynamicApiController
  9. {
  10. private readonly ISysDictTypeService _dictTypeService;
  11. public SysDictTypeAppService(ISysDictTypeService dictTypeService)
  12. {
  13. _dictTypeService = dictTypeService;
  14. }
  15. /// <summary>
  16. /// 获取所有字典类型列表
  17. /// </summary>
  18. /// <returns></returns>
  19. [AllowAnonymous]
  20. [DisableOpLog]
  21. public async Task<List<SysDictTypeOutput>> GetAllList()
  22. {
  23. return await _dictTypeService.GetAllList();
  24. }
  25. }