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.
36 lines
1.2 KiB
36 lines
1.2 KiB
package com.project.interaction.controller;
|
|
|
|
|
|
|
|
import com.project.base.domain.result.Result;
|
|
import com.project.interaction.application.AlgorithmApplicationService;
|
|
import com.project.interaction.domain.dto.ClusterCallbackDTO;
|
|
import com.project.interaction.domain.dto.QuestionCallBackDTO;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
@RestController
|
|
@RequestMapping("/api/interaction")
|
|
public class InteractionController {
|
|
|
|
@Autowired
|
|
private AlgorithmApplicationService algorithmApplicationService;
|
|
|
|
|
|
// @PostMapping("/saveCluster")
|
|
// public Result<String> saveCluster(ClusterCallbackDTO dto) throws Exception{
|
|
// algorithmApplicationService.saveCluster(dto.getTaskId(), dto.getClusters());
|
|
// return Result.success("保存成功");
|
|
// }
|
|
|
|
@PostMapping("/saveCluster")
|
|
public Result<String> saveCluster(ClusterCallbackDTO dto) throws Exception{
|
|
algorithmApplicationService.saveClusterByInformationId(dto.getTaskId(), dto.getClusters());
|
|
return Result.success("保存成功");
|
|
}
|
|
|
|
@PostMapping("/saveQuestion")
|
|
public Result<String> saveQuestion(QuestionCallBackDTO dto) throws Exception {
|
|
return null;
|
|
}
|
|
}
|
|
|