feat 查询档案人员所在的人员分组

This commit is contained in:
2024-08-16 15:58:11 +08:00
parent 8ae685cafb
commit 13beca328d
3 changed files with 37 additions and 1 deletions

View File

@@ -56,6 +56,17 @@ public class GainfoGroupsController : ControllerBase
return await _gainfoGroupService.GetGainfosByGroupAsync(code);
}
/// <summary>
/// 根据userCode获取分配的分组
/// </summary>
/// <param name="userCode"></param>
/// <returns></returns>
[HttpGet("groups")]
public async Task<List<GainfoGroupTreeResponse>> GetGainfoGroupsByUserCodeAsync(string userCode)
{
return await _gainfoGroupService.GetGainfoGroupsByUserCodeAsync(userCode);
}
/// <summary>
/// 分配人员
/// </summary>
@@ -69,4 +80,4 @@ public class GainfoGroupsController : ControllerBase
{
await _gainfoGroupService.AssignGainfosAsync(request);
}
}
}