using SafeCampus.Application.Services.Business.ClassTeacherService;
namespace SafeCampus.Web.Core.Controllers.Application.Business;
///
/// 班主任管理接口
///
[ApiDescriptionSettings(ApiGroupConsts.SYSTEM_Business, Order = 89, Tag = "班主任管理")]
[Route("/business/classTeacher")]
[RolePermission]
public class ClassTeacherController
{
private readonly IClassTeacherService _classTeacherService;
public ClassTeacherController(IClassTeacherService classTeacherService)
{
_classTeacherService = classTeacherService;
}
///
/// 添加班主任
///
/// 添加参数
///
public async Task Add(ClassTeacherInput input)
{
return await _classTeacherService.Add(input);
}
///
/// 修改班主任
///
/// 添加参数
///
public async Task Update(ClassTeacherUpdateInput input)
{
return await _classTeacherService.Update(input);
}
///
/// 删除班主任
///
/// id
///
public async Task Delete(long id)
{
return await _classTeacherService.Delete(id);
}
///
/// 根据班级id获取班主任信息
///
///
public async Task GetInfo(string personSetId)
{
return await _classTeacherService.GetInfo(personSetId);
}
///
/// 获取列表
///
///
public async Task> GetNoPageList()
{
return await _classTeacherService.GetNoPageList();
}
}