namespace SimpleAdmin.Web.Core; /// /// 提供入职字段与材料要求配置相关 HTTP 接口。 /// [ApiDescriptionSettings("Application", Tag = "入职填写与材料配置")] [Route("biz/onboarding/entry-config")] [RolePermission] public class OnboardingEntryConfigController { private readonly IOnboardingEntryConfigService _service; public OnboardingEntryConfigController(IOnboardingEntryConfigService service) { _service = service; } /// /// 查询动态入职字段。 /// [HttpGet("form-field/list")] public async Task ListFormFields() { return await _service.ListFormFields(); } /// /// 保存动态入职字段。 /// [HttpPost("form-field/save")] public async Task SaveFormField([FromBody] OnboardingFormFieldSaveInput input) { await _service.SaveFormField(input); } /// /// 删除动态入职字段。 /// [HttpPost("form-field/delete")] public async Task DeleteFormFields([FromBody] BaseIdListInput input) { await _service.DeleteFormFields(input); } /// /// 查询入职材料类型。 /// [HttpGet("material-type/list")] public async Task ListMaterialTypes() { return await _service.ListMaterialTypes(); } /// /// 保存入职材料类型。 /// [HttpPost("material-type/save")] public async Task SaveMaterialType([FromBody] OnboardingMaterialTypeSaveInput input) { await _service.SaveMaterialType(input); } /// /// 删除入职材料类型。 /// [HttpPost("material-type/delete")] public async Task DeleteMaterialTypes([FromBody] BaseIdListInput input) { await _service.DeleteMaterialTypes(input); } /// /// 查询公司岗位动态字段要求。 /// [HttpGet("form-requirement/list")] public async Task ListFormRequirements([FromQuery] long companyId) { return await _service.ListFormRequirements(companyId); } /// /// 保存公司岗位动态字段要求。 /// [HttpPost("form-requirement/save")] public async Task SaveFormRequirement([FromBody] OnboardingFormRequirementSaveInput input) { await _service.SaveFormRequirement(input); } /// /// 删除动态字段要求。 /// [HttpPost("form-requirement/delete")] public async Task DeleteFormRequirements([FromBody] BaseIdListInput input) { await _service.DeleteFormRequirements(input); } /// /// 查询公司岗位材料要求。 /// [HttpGet("material-requirement/list")] public async Task ListMaterialRequirements([FromQuery] long companyId) { return await _service.ListMaterialRequirements(companyId); } /// /// 保存公司岗位材料要求。 /// [HttpPost("material-requirement/save")] public async Task SaveMaterialRequirement([FromBody] OnboardingMaterialRequirementSaveInput input) { await _service.SaveMaterialRequirement(input); } /// /// 删除材料要求。 /// [HttpPost("material-requirement/delete")] public async Task DeleteMaterialRequirements([FromBody] BaseIdListInput input) { await _service.DeleteMaterialRequirements(input); } }