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

47 lines
1.2 KiB

package com.bfd.qanda.controller;
import javax.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import com.bfd.qanda.service.QandaService;
/**
* @author jian.mao
* @date 2023年11月8日
* @description
*/
@Controller
@RequestMapping("/qanda")
@Slf4j
public class QandaController {
@Resource
private QandaService qandaService;
@PostMapping("/putQuestion")
@ResponseBody
public String putQuestion(@RequestBody String dataJson){
String response = qandaService.putQuestion(dataJson);
return response;
}
@PostMapping("/videoGeneration")
@ResponseBody
public String videoGeneration(@RequestBody String dataJson){
String response = qandaService.videoGeneration(dataJson);
return response;
}
@RequestMapping(value = "/hello", method = RequestMethod.GET)
@ResponseBody
public String hello(String param, String token) {
return "123";
}
}