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.
|
|
package com.bw.translate.controller;
import javax.annotation.Resource;
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.bw.translate.service.TaskReceiveService;
import lombok.extern.slf4j.Slf4j;
/** * 任务接收控制层 * @author jian.mao * @date 2025年1月14日 * @description */@Controller@RequestMapping("/task")@Slf4jpublic class TaskReceiveController { @Resource private TaskReceiveService taskReceiveService; @PostMapping("/put") @ResponseBody public String put(@RequestBody String param){ String response = taskReceiveService.put(param); return response; } @RequestMapping(value = "/hello", method = RequestMethod.GET) @ResponseBody public String hello(String param, String token) { return "123"; }}
|