Commit 041bd8ab by zhouhaibao

[+]路径调整

1 parent 87fa2217
...@@ -20,18 +20,14 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -20,18 +20,14 @@ import org.springframework.web.bind.annotation.RestController;
@Slf4j @Slf4j
@Tag(name = "scancode开放接口") @Tag(name = "scancode开放接口")
@RestController @RestController
@RequestMapping(value = "/api/scanCodes") @RequestMapping(value = "/api")
@ResponseResultBody @ResponseResultBody
public class ScanCodeController { public class ScanCodeController {
@Operation(summary = "打印code", description = "打印code") @Operation(summary = "打印code", description = "打印code")
@GetMapping("/{code}") @GetMapping("/scanCodes/{code}")
public Result<String> printCode( public Result<String> printCode(@PathVariable("code") String code) {
@Parameter(name = "code", description = "code", required = true)
@PathVariable("code") String code) {
log.info("ScanCode 码:{}", code); log.info("ScanCode 码:{}", code);
return Result.success("success"); 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!