33 lines
957 B
Java
33 lines
957 B
Java
package data.test.controller;
|
|
|
|
import com.muyu.common.core.domain.Result;
|
|
import com.muyu.ruleEngine.model.DataModel;
|
|
import data.test.service.TestService;
|
|
import java.util.List;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
/**
|
|
* 测试控制层
|
|
*
|
|
* @author HuFangMing
|
|
* @ClassName: TestController
|
|
* @createTime: 2024/5/14 11:37
|
|
*/
|
|
|
|
@RestController
|
|
@RequestMapping("/test")
|
|
public class TestController {
|
|
@Autowired
|
|
private TestService testService;
|
|
|
|
@GetMapping("/getDataModelList/{id}")
|
|
public Result<List<List<DataModel>>> getDataModelList(@PathVariable("id")Long id){
|
|
List<List<DataModel>> dataModelList=testService.getDataModelList(id);
|
|
return Result.success(dataModelList);
|
|
}
|
|
}
|