You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
IESExtension/src/main/java/cn/teammodel/controller/EvaluationController.java

31 lines
990 B

package cn.teammodel.controller;
import cn.teammodel.common.R;
import cn.teammodel.model.dto.GetEvaluateTreeDto;
import cn.teammodel.model.entity.EvaluationTreeNode;
import cn.teammodel.service.EvaluationService;
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 javax.annotation.Resource;
import java.util.List;
/**
* @author winter
* @create 2023-11-22 15:10
*/
@RestController
@RequestMapping("/public/evaluate")
public class EvaluationController {
@Resource
private EvaluationService evaluationService;
@PostMapping("getTrees")
public R<List<EvaluationTreeNode>> getEvaluateTree(@RequestBody GetEvaluateTreeDto getEvaluateTreeDto) {
List<EvaluationTreeNode> tree = evaluationService.getTree(getEvaluateTreeDto);
return R.success(tree);
}
}