字典类型查询

This commit is contained in:
chenchun
2022-09-10 14:02:41 +08:00
parent eebafda9e5
commit 1db8bb4d13
4 changed files with 19 additions and 12 deletions

View File

@@ -9,6 +9,7 @@ using Yi.Framework.Common.Models;
using Yi.Framework.Interface;
using Yi.Framework.Model.Models;
using Yi.Framework.Repository;
using Yi.Framework.Service;
using Yi.Framework.WebCore;
using Yi.Framework.WebCore.AttributeExtend;
using Yi.Framework.WebCore.AuthorizationPolicy;
@@ -32,6 +33,12 @@ namespace Yi.Framework.ApiMicroservice.Controllers
return Result.Success().SetData(await _iDictionaryService.SelctPageList(dic, page));
}
[HttpPost]
public async Task<Result> Add(DictionaryEntity dic)
{
return Result.Success().SetData(await _iDictionaryService._repository.InsertReturnSnowflakeIdAsync(dic));
}
[HttpGet]
[Route("{type}")]
public async Task<Result> GetListByType([FromRoute] string type)