feat 档案表固定字段下拉列表及数据

This commit is contained in:
cheche
2024-01-09 09:47:55 +08:00
parent bd20152422
commit 25bdd1edf8
5 changed files with 85 additions and 2 deletions

View File

@@ -78,5 +78,26 @@ public class GainfosController : ControllerBase
{
await _gainfoService.OnboardingAsync(request);
}
/// <summary>
/// 获取档案下拉表的所有字段
/// </summary>
/// <returns></returns>
[HttpGet("GetAllFields")]
public List<string> GetAllFields()
{
return _gainfoService.GetAllFields();
}
/// <summary>
/// 获取档案下拉表的固定字段的数据
/// </summary>
/// <param name="fieldName"></param>
/// <returns></returns>
[HttpGet("GetAllFieldData")]
public List<string> GetColumnData(string fieldName)
{
return _gainfoService.GetColumnData(fieldName);
}
}