package com.dsh.course.controller; import com.dsh.course.entity.TCoursePackageType; import com.dsh.course.service.TCoursePackageTypeService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.RestController; import java.util.List; /** * @author zhibing.pu * @Date 2023/8/1 12:05 */ @RestController @RequestMapping("") public class CoursePackageTypeController { @Autowired private TCoursePackageTypeService coursePackageTypeService; /** * 获取课包所有类型 * @return */ @ResponseBody @PostMapping("/coursePackageType/queryAllCoursePackageType") public List queryAllCoursePackageType(){ return coursePackageTypeService.list(); } }