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.
30 lines
856 B
30 lines
856 B
|
1 month ago
|
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 org.springframework.beans.factory.annotation.Autowired;
|
||
|
|
import org.springframework.web.bind.annotation.*;
|
||
|
|
|
||
|
|
@RestController
|
||
|
|
@RequestMapping("/api/interaction")
|
||
|
|
public class InteractionController {
|
||
|
|
|
||
|
|
@Autowired
|
||
|
|
private AlgorithmApplicationService algorithmApplicationService;
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 手动触发同步接口
|
||
|
|
* 强刷:/sync/all?force=true
|
||
|
|
*/
|
||
|
|
@PostMapping("/saveCluster")
|
||
|
|
public Result<String> saveCluster(ClusterCallbackDTO dto) throws Exception{
|
||
|
|
algorithmApplicationService.saveCluster(dto.getTaskId(), dto.getClusters());
|
||
|
|
return Result.success("保存成功");
|
||
|
|
}
|
||
|
|
}
|