增加通用工具返回路径
continuous-integration/drone/push Build is passing Details

Test_HIR_Net8
hang 2025-09-08 15:38:30 +08:00
parent 79d39125ff
commit 076d99c6ba
1 changed files with 3 additions and 3 deletions

View File

@ -20,13 +20,13 @@ namespace IRaCIS.Core.Application.Service
IMapper _mapper, IUserInfo _userInfo, IStringLocalizer _localizer, IWebHostEnvironment _hostEnvironment) : BaseService, ICommonDocumentService
{
public async Task<CommonDocumentView> GetCommonDocument(string code)
[HttpGet]
public async Task<CommonDocument> GetCommonDocument(string code)
{
var first = await _commonDocumentRepository.Where(t => t.Code == code)
.ProjectTo<CommonDocumentView>(_mapper.ConfigurationProvider, new { token = _userInfo.UserToken, userId = _userInfo.UserRoleId })
.FirstNotNullAsync();
return first;
}