feat 获取额外信息

This commit is contained in:
2024-05-31 16:04:05 +08:00
parent 7f14b1fdc5
commit fc0da62986
5 changed files with 62 additions and 5 deletions

View File

@@ -1,4 +1,6 @@
using Dlhis.Basic.Organization.Request;
using System.ComponentModel.DataAnnotations;
using Dlhis.Basic.Organization.Request;
using Dlhis.Basic.Organization.Response;
using Dlhis.Basic.Organization.Services;
using Kurisu.AspNetCore.DataAccess.SqlSugar.Aop;
using Microsoft.AspNetCore.Authorization;
@@ -31,7 +33,7 @@ public class GainfoOutsourceController : ControllerBase
{
await _gainfoOutSourceService.SaveAsync(request);
}
/// <summary>
/// 编辑
/// </summary>
@@ -42,4 +44,15 @@ public class GainfoOutsourceController : ControllerBase
{
await _gainfoOutSourceService.SaveAsync(request);
}
/// <summary>
/// 获取外包人员额外信息
/// </summary>
/// <param name="userNo"></param>
/// <returns></returns>
[HttpGet("info")]
public async Task<GainfoOutSourceExternalInfoResponse> GetExternalInfoAsync([Required] string userNo)
{
return await _gainfoOutSourceService.GetExternalInfoAsync(userNo);
}
}