You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
747 B
Java

package com.supervision.controller;
import com.supervision.service.AskService;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.checkerframework.checker.units.qual.C;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@RestController
@RequestMapping("ask")
@RequiredArgsConstructor
public class AskController {
private final AskService askService;
@ApiOperation("开启一个文化")
@GetMapping("ask")
public void ask(String sessionId,String question){
askService.ask(sessionId, question);
}
}