From a89806619b62e7c0cb7ba971816c23a4b59c45f9 Mon Sep 17 00:00:00 2001 From: zhangran Date: Wed, 4 Aug 2021 19:53:59 +0800 Subject: [PATCH] =?UTF-8?q?fix-=E5=88=9D=E5=A7=8B=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=EF=BC=8C=E7=AB=AF=E5=8F=A3=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/sql/ddl/oss_data_init.sql | 8 ++++---- .../java/cn/axzo/oss/http/api/ServerFileServiceApi.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/sql/ddl/oss_data_init.sql b/doc/sql/ddl/oss_data_init.sql index 6886e1b..ae4f212 100644 --- a/doc/sql/ddl/oss_data_init.sql +++ b/doc/sql/ddl/oss_data_init.sql @@ -1,14 +1,14 @@ INSERT INTO `app_channel_bucket`( `app_channel_bucket_no`, `app_code`, `channel_code`, `bucket_name`, `access_control`, `remark`, `extension`, `create_at`, `update_at`, `create_by`, `update_by`, `is_delete`) -VALUES ( 'test:aliyun:test', 'test', 'aliyun', 'axzo_public', '', NULL, NULL, now(), now(), '', '', 0); +VALUES ( 'zeus:aliyun:zeus', 'zeus', 'aliyun', 'axzo_public', '', NULL, NULL, now(), now(), '', '', 0); INSERT INTO `file_app`(`app_code`, `app_name`, `status`, `remark`, `extension`, `create_at`, `update_at`, `create_by`, `update_by`, `is_delete`) -VALUES ('test', '测试', 1, '测试', NULL, now(), now(), '', '', 0); +VALUES ('zeus', 'zeus', 1, 'zeus', NULL, now(), now(), '', '', 0); INSERT INTO `file_business_scene`(`app_channel_bucket_no`, `app_code`, `channel_code`, `bucket_name`, `business_scene`, `directory`, `create_at`, `update_at`, `create_by`, `update_by`, `is_delete`) -VALUES ('test:aliyun:test', 'test', 'aliyun', 'axzo_public', '1', 'oss-test', now(), now(), NULL, NULL, 0); +VALUES ('zeus:aliyun:zeus', 'zeus', 'aliyun', 'axzo_public', 'xlsx', 'oss-test/zeus', now(), now(), NULL, NULL, 0); INSERT INTO `file_channel`(`channel_code`, `channel_name`, `status`, `remark`, `extension`, `priority`, `create_at`, `update_at`, `create_by`, `update_by`, `is_delete`) VALUES ('aliyun', '阿里云', 1, NULL, NULL, 1, now(), now(), NULL, NULL, 0); INSERT INTO `file_upload_config`(`app_channel_bucket_no`, `app_code`, `channel_code`, `bucket_name`, `directory`, `storage_unit`, `storage_size`, `file_format`, `create_at`, `update_at`, `create_by`, `update_by`, `is_delete`) -VALUES ('test:aliyun:test', 'test', 'aliyun', 'axzo-public', 'oss-test', 'MB', 1, 'jpg', now(), now(), NULL, NULL, 0); \ No newline at end of file +VALUES ('zeus:aliyun:zeus', 'zeus', 'aliyun', 'axzo-public', 'oss-test/zeus', 'MB', 5, 'jpg', now(), now(), NULL, NULL, 0); \ No newline at end of file diff --git a/oss-http-api/src/main/java/cn/axzo/oss/http/api/ServerFileServiceApi.java b/oss-http-api/src/main/java/cn/axzo/oss/http/api/ServerFileServiceApi.java index 133b504..ec590f9 100644 --- a/oss-http-api/src/main/java/cn/axzo/oss/http/api/ServerFileServiceApi.java +++ b/oss-http-api/src/main/java/cn/axzo/oss/http/api/ServerFileServiceApi.java @@ -17,7 +17,7 @@ import org.springframework.web.bind.annotation.RequestMethod; */ @FeignClient( name = "oss", - url = "http://oss" + url = "http://oss:9123" ) @RequestMapping(value = "/api/v1/server") public interface ServerFileServiceApi {