| | |
| | | using FlexJobApi.Core; |
| | | using Furion.DynamicApiController; |
| | | using MediatR; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | //using FlexJobApi.Core; |
| | | //using Furion.DynamicApiController; |
| | | //using MediatR; |
| | | //using Microsoft.AspNetCore.Mvc; |
| | | |
| | | namespace FlexJobApi.Application |
| | | { |
| | | /// <summary> |
| | | /// 资源 |
| | | /// </summary> |
| | | [Route("api/main/[controller]")] |
| | | public class DictionaryAppService(IMediator mediator) : IDynamicApiController |
| | | { |
| | | private readonly IMediator mediator = mediator; |
| | | //namespace FlexJobApi.Application |
| | | //{ |
| | | // /// <summary> |
| | | // /// 数据字典 |
| | | // /// </summary> |
| | | // [Route("api/main/[controller]")] |
| | | // public class DictionaryAppService(IMediator mediator) : IDynamicApiController |
| | | // { |
| | | // private readonly IMediator mediator = mediator; |
| | | |
| | | /// <summary> |
| | | /// 获取字典数据分页列表 |
| | | /// </summary> |
| | | /// <param name="query"></param> |
| | | /// <returns></returns> |
| | | public Task<GetDictionaryDatasQueryResult> GetDictionaryDatas([FromQuery] GetDictionaryDatasQuery query) |
| | | { |
| | | return mediator.Send(query); |
| | | } |
| | | } |
| | | } |
| | | // /// <summary> |
| | | // /// 获取字典数据分页列表 |
| | | // /// </summary> |
| | | // /// <param name="query"></param> |
| | | // /// <returns></returns> |
| | | // [HttpPost] |
| | | // public Task<PagedListQueryResult<GetDictionaryDatasQueryResultItem>> GetDictionaryDatas([FromBody] GetDictionaryDatasQuery query) |
| | | // { |
| | | // return mediator.Send(query); |
| | | // } |
| | | // } |
| | | //} |