Commit 041bd8ab by zhouhaibao

[+]路径调整

1 parent 87fa2217
......@@ -20,18 +20,14 @@ import org.springframework.web.bind.annotation.RestController;
@Slf4j
@Tag(name = "scancode开放接口")
@RestController
@RequestMapping(value = "/api/scanCodes")
@RequestMapping(value = "/api")
@ResponseResultBody
public class ScanCodeController {
@Operation(summary = "打印code", description = "打印code")
@GetMapping("/{code}")
public Result<String> printCode(
@Parameter(name = "code", description = "code", required = true)
@PathVariable("code") String code) {
@GetMapping("/scanCodes/{code}")
public Result<String> printCode(@PathVariable("code") String code) {
log.info("ScanCode 码:{}", code);
return Result.success("success");
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!