From 5a8e4da5a325a9db5fa4475db16aa3b64a008f07 Mon Sep 17 00:00:00 2001 From: oyo Date: Mon, 1 Sep 2025 16:02:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20template/TOCO.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/TOCO.md | 1 + 1 file changed, 1 insertion(+) diff --git a/template/TOCO.md b/template/TOCO.md index 51ba4ea..569f680 100644 --- a/template/TOCO.md +++ b/template/TOCO.md @@ -2,6 +2,7 @@ - 如果需求中存在文件上传下载功能,且用户未指定实现方式,则默认使用OSS。如果项目中已有相关功能,则不要重复实现。 - 服务端需要提供接口用于提供oss的accessKeyId、policy等信息(注意接口分析时不要漏掉) - 前端先调用服务端接口获取accessKeyId、policy等信息,然后直接调用OSS来上传文件,随后将OSS返回的地址传给服务端做存储 + - 服务端的接口不要直接接收MultipartFile,应该直接接收文件url - 服务端OSS相关的基础工具代码写在项目代码的common/中。 - oss配置默认如下,需要写在entrance/web/src/main/resources目录下的application.properties中: - aliyun.oss.endpoint=oss-cn-hangzhou.aliyuncs.com