修改平台关联的行为树id
This commit is contained in:
@@ -9,14 +9,7 @@ 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;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.solution.common.annotation.Log;
|
||||
import com.solution.common.core.controller.BaseController;
|
||||
import com.solution.common.core.domain.AjaxResult;
|
||||
@@ -158,4 +151,15 @@ public class BehaviortreeController extends BaseController
|
||||
return success(behaviortreeService.getCommander(scenarioId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改平台关联的行为树id
|
||||
* @param behaviortreeId
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation("修改平台关联的行为树id")
|
||||
@PutMapping("/{behaviortreeId}")
|
||||
public AjaxResult updateBehaviortreeId(@PathVariable Integer behaviortreeId,
|
||||
@RequestParam(required = false) Integer id){
|
||||
return toAjax(behaviortreeService.updateBehaviortreeId(behaviortreeId,id));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user