package com.wzy.serviceedu.controller;
import com.wzy.serviceedu.entity.EduTeacher;
import com.wzy.serviceedu.service.EduTeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* <p>
* 讲师 前端控制器
* </p>
*
* @author wzy
* @since 2021-09-10
*/
@RestController
@RequestMapping("/serviceedu/teacher")
public class EduTeacherController {
@Autowired
private EduTeacherService eduTeacherService;
/*
* @Description: 逻辑删除讲师的方法
* @Author: WangZiYao
* @Date: 2021/9/10 13:50
*/
@DeleteMapping(value = "/{id}")
public boolean removeTeacher(@PathVariable("id") String id){
boolean flag = eduTeacherService.removeById(id);
return flag;
}
}