根据场景id获取总指挥的行为树的原数据

This commit is contained in:
MHW
2026-04-15 09:38:15 +08:00
parent 3ae6a693e1
commit f9eb10c783
6 changed files with 93 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ import javax.servlet.http.HttpServletResponse;
import com.solution.web.core.BehaviortreeProcessor;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.checkerframework.checker.units.qual.A;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
@@ -147,5 +148,14 @@ public class BehaviortreeController extends BaseController
return success(behaviortreeService.getUnderling(treeId));
}
/**
* 根据场景id获取总指挥的行为树的原数据
* @return
*/
@ApiOperation("根据场景id获取总指挥的行为树的原数据")
@GetMapping("/commander/{scenarioId}")
public AjaxResult getCommander(@PathVariable Integer scenarioId){
return success(behaviortreeService.getCommander(scenarioId));
}
}