liusheng
2024-06-19 e52b0e34fc06372aab64c30b526ec289b99c9af7
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
35
36
37
38
package com.ruoyi.web.controller.smartor;
 
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.smartor.domain.ServiceThirdData;
import com.smartor.service.IServiceThirdDataService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import java.util.List;
 
/**
 * 题目Controller
 *
 * @author ruoyi
 * @date 2023-06-26
 */
@Api(description = "testController")
@RestController
@RequestMapping("/tc")
public class TestLsController extends BaseController {
    @Autowired
    private IServiceThirdDataService iServiceThirdDataService;
 
    /**
     * 查询题目列表
     */
    @PostMapping("/list")
    public TableDataInfo list(@RequestBody ServiceThirdData serviceThirdData) {
        List<ServiceThirdData> list = iServiceThirdDataService.queryList(serviceThirdData);
        return getDataTable(list);
    }
 
}