Zhu Zhonghua
2025-04-07 33145e9276a73d59367f731d44cd21702a0c5cea
aps-modules/aps-core/src/main/java/com/aps/core/controller/CoreController.java
copy from aps-modules/aps-file/src/main/java/com/aps/file/controller/SysFileController.java copy to aps-modules/aps-core/src/main/java/com/aps/core/controller/CoreController.java
Îļþ´Ó aps-modules/aps-file/src/main/java/com/aps/file/controller/SysFileController.java ¸´ÖÆ
@@ -1,5 +1,6 @@
package com.aps.file.controller;
package com.aps.core.controller;
import com.aps.core.service.ICoreService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
@@ -8,7 +9,6 @@
import org.springframework.web.multipart.MultipartFile;
import com.aps.common.core.domain.R;
import com.aps.common.core.utils.file.FileUtils;
import com.aps.file.service.ISysFileService;
import com.aps.system.api.domain.SysFile;
/**
@@ -17,12 +17,12 @@
 * @author ruoyi
 */
@RestController
public class SysFileController
public class CoreController
{
    private static final Logger log = LoggerFactory.getLogger(SysFileController.class);
    private static final Logger log = LoggerFactory.getLogger(CoreController.class);
    @Autowired
    private ISysFileService sysFileService;
    private ICoreService coreService;
    /**
     * æ–‡ä»¶ä¸Šä¼ è¯·æ±‚
@@ -33,7 +33,7 @@
        try
        {
            // ä¸Šä¼ å¹¶è¿”回访问地址
            String url = sysFileService.uploadFile(file);
            String url = coreService.uploadFile(file);
            SysFile sysFile = new SysFile();
            sysFile.setName(FileUtils.getName(url));
            sysFile.setUrl(url);