Class SemanticModelController

java.lang.Object
com.alibaba.cloud.ai.controller.SemanticModelController

@Controller @RequestMapping("/api/semantic-model") @CrossOrigin(origins="*") public class SemanticModelController extends Object
语义模型配置控制器
  • Constructor Details

    • SemanticModelController

      public SemanticModelController(SemanticModelService semanticModelService)
  • 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

      @DeleteMapping("/{id}") @ResponseBody public org.springframework.http.ResponseEntity<Void> delete(@PathVariable Long id)