mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-10-26 20:57:11 +08:00
chore: 优化部分配置及注释
This commit is contained in:
@@ -71,6 +71,7 @@ public class CommonController {
|
|||||||
@Operation(summary = "上传文件", description = "上传文件")
|
@Operation(summary = "上传文件", description = "上传文件")
|
||||||
@PostMapping("/file")
|
@PostMapping("/file")
|
||||||
public FileUploadResp upload(@NotNull(message = "文件不能为空") MultipartFile file) {
|
public FileUploadResp upload(@NotNull(message = "文件不能为空") MultipartFile file) {
|
||||||
|
// TODO 实际开发时请删除本条校验
|
||||||
ValidationUtils.throwIf(projectProperties.isProduction(), "演示环境不支持上传文件");
|
ValidationUtils.throwIf(projectProperties.isProduction(), "演示环境不支持上传文件");
|
||||||
ValidationUtils.throwIf(file::isEmpty, "文件不能为空");
|
ValidationUtils.throwIf(file::isEmpty, "文件不能为空");
|
||||||
FileInfo fileInfo = fileService.upload(file);
|
FileInfo fileInfo = fileService.upload(file);
|
||||||
|
|||||||
@@ -185,7 +185,7 @@ continew-starter.web.cors:
|
|||||||
## 接口文档增强配置
|
## 接口文档增强配置
|
||||||
knife4j:
|
knife4j:
|
||||||
# 开启生产环境屏蔽
|
# 开启生产环境屏蔽
|
||||||
production: true
|
production: ${project.production}
|
||||||
|
|
||||||
--- ### WebSocket 配置
|
--- ### WebSocket 配置
|
||||||
continew-starter.messaging.websocket:
|
continew-starter.messaging.websocket:
|
||||||
|
|||||||
@@ -193,7 +193,7 @@ cosid:
|
|||||||
friendly: true
|
friendly: true
|
||||||
provider:
|
provider:
|
||||||
safe-js:
|
safe-js:
|
||||||
machine-bit: 3
|
machine-bit: 7
|
||||||
sequence-bit: 9
|
sequence-bit: 9
|
||||||
|
|
||||||
--- ### 认证配置
|
--- ### 认证配置
|
||||||
|
|||||||
Reference in New Issue
Block a user