提交 4bd03404 作者: 方治民

chore: 更新文档相关

上级 16b144c0
...@@ -17,7 +17,7 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -17,7 +17,7 @@ import org.springframework.web.bind.annotation.RestController;
@Slf4j @Slf4j
@Validated @Validated
@Api(tags = "Hello World") @Api(tags = "Hello")
@RequestMapping("/hello/") @RequestMapping("/hello/")
@RestController @RestController
public class HelloController { public class HelloController {
......
server: server:
port: 8181 port: 8181
servlet: servlet:
context-path: /api context-path: /basic-api
spring: spring:
application: application:
......
...@@ -27,7 +27,7 @@ import org.springframework.web.multipart.MultipartFile; ...@@ -27,7 +27,7 @@ import org.springframework.web.multipart.MultipartFile;
@Slf4j @Slf4j
@Validated @Validated
@Api(tags = "Minio S3") @Api(tags = "Minio")
@RestController @RestController
@RequestMapping("/common/minio/") @RequestMapping("/common/minio/")
public class MinioController { public class MinioController {
...@@ -38,9 +38,9 @@ public class MinioController { ...@@ -38,9 +38,9 @@ public class MinioController {
/** /**
* minio 上传文件,成功返回文件 url * minio 上传文件,成功返回文件 url
*/ */
@ApiOperation(value = "文件上传") @ApiOperation(value = "文件上传", tags = "upload")
@PostMapping(value = "upload", headers = "Content-Type=Multipart/Form-Data") @PostMapping(value = "upload", headers = "Content-Type=Multipart/Form-Data")
public Result<String> minio(@ApiParam(value = "文件", required = true) @RequestPart("file") MultipartFile file) { public Result<String> upload(@ApiParam(value = "文件", required = true) @RequestPart("file") MultipartFile file) {
try { try {
Snowflake snowflake = IdUtil.getSnowflake(1, 1); Snowflake snowflake = IdUtil.getSnowflake(1, 1);
long uuid = snowflake.nextId(); long uuid = snowflake.nextId();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论