Package com.alibaba.cloud.ai.controller
Class SemanticModelController
java.lang.Object
com.alibaba.cloud.ai.controller.SemanticModelController
@Controller
@RequestMapping("/api/semantic-model")
@CrossOrigin(origins="*")
public class SemanticModelController
extends Object
语义模型配置控制器
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<SemanticModel>create(SemanticModel model) org.springframework.http.ResponseEntity<Void>org.springframework.http.ResponseEntity<SemanticModel>org.springframework.http.ResponseEntity<List<SemanticModel>>org.springframework.http.ResponseEntity<SemanticModel>update(Long id, SemanticModel model)
-
Constructor Details
-
SemanticModelController
-
-
Method Details
-
list
@GetMapping @ResponseBody public org.springframework.http.ResponseEntity<List<SemanticModel>> list(@RequestParam(required=false) String keyword, @RequestParam(required=false) Long agentId) -
get
@GetMapping("/{id}") @ResponseBody public org.springframework.http.ResponseEntity<SemanticModel> get(@PathVariable Long id) -
create
@PostMapping @ResponseBody public org.springframework.http.ResponseEntity<SemanticModel> create(@RequestBody SemanticModel model) -
update
@PutMapping("/{id}") @ResponseBody public org.springframework.http.ResponseEntity<SemanticModel> update(@PathVariable Long id, @RequestBody SemanticModel model) -
delete
-