using BaseService.BaseData.DataDictionaryManagement; using BaseService.BaseData.DataDictionaryManagement.Dto; using BaseService.Controllers; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Threading.Tasks; using Volo.Abp.Application.Dtos; namespace BaseService.BaseData { [Area("base")] [Route("api/base/dictDetails")] public class DataDictionaryDetailController : BaseServiceController, IDictionaryDetailAppService { private readonly IDictionaryDetailAppService _dictionaryDetailAppService; public DataDictionaryDetailController(IDictionaryDetailAppService dictionaryDetailAppService) { _dictionaryDetailAppService = dictionaryDetailAppService; } [HttpPost] public Task Create(CreateOrUpdateDictionaryDetailDto input) { return _dictionaryDetailAppService.Create(input); } [HttpPost] [Route("delete")] public Task Delete(List ids) { return _dictionaryDetailAppService.Delete(ids); } [HttpGet] [Route("{id}")] public Task Get(Guid id) { return _dictionaryDetailAppService.Get(id); } [HttpGet] [Route("all")] public Task> GetAll(GetDictionaryDetailInputDto input) { return _dictionaryDetailAppService.GetAll(input); } [HttpGet] [Route("list")] public Task> GetAllByDictionaryName(string name) { return _dictionaryDetailAppService.GetAllByDictionaryName(name); } [HttpPut] [Route("{id}")] public Task Update(Guid id, CreateOrUpdateDictionaryDetailDto input) { return _dictionaryDetailAppService.Update(id, input); } } }