|
|
|
@ -8,6 +8,7 @@ import com.jianshui.common.utils.StringUtils; |
|
|
|
|
import com.jianshui.storage.domain.StorageUrlDTO; |
|
|
|
|
import com.jianshui.storage.factory.StorageFactory; |
|
|
|
|
import com.jianshui.storage.service.IStorageService; |
|
|
|
|
import com.jianshui.system.service.ISysConfigService; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
@ -25,6 +26,8 @@ public class FileController { |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private StorageFactory storageFactory; |
|
|
|
|
@Autowired |
|
|
|
|
private ISysConfigService iSysConfigService; |
|
|
|
|
|
|
|
|
|
@GetMapping("/query/{dto}") |
|
|
|
|
public void queryFile(HttpServletResponse response, @PathVariable("dto") String dto) throws IOException { |
|
|
|
@ -70,4 +73,11 @@ public class FileController { |
|
|
|
|
response.sendRedirect((String) queryResult.get("data")); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/cleanRedisConfig/{redisSysconfig}") |
|
|
|
|
public void cleanRedisConfig(@PathVariable("redisSysconfig") String redisSysconfig) throws IOException { |
|
|
|
|
iSysConfigService.cleanRedisConfig(redisSysconfig); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|