puzhibing
2023-08-04 624c9eec90d59297800f03276f8518daa1bd9f94
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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<TCoursePackageType> queryAllCoursePackageType(){
        return coursePackageTypeService.list();
    }
}