file controller added
This commit is contained in:
parent
b955ff9533
commit
bdbc20a9de
|
@ -1,7 +1,7 @@
|
||||||
package com.totopia.server.commons.controller;
|
package com.totopia.server.commons.controller;
|
||||||
|
|
||||||
import com.totopia.server.commons.data.payload.FileUploadResponse;
|
import com.totopia.server.commons.data.payload.FileUploadResponse;
|
||||||
import com.totopia.server.commons.data.service.FileUploadDownloadService;
|
import com.totopia.server.commons.service.FileUploadDownloadService;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.core.io.Resource;
|
import org.springframework.core.io.Resource;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package com.totopia.server.commons.data.exception;
|
package com.totopia.server.commons.exception;
|
||||||
|
|
||||||
public class FileDownloadException extends RuntimeException {
|
public class FileDownloadException extends RuntimeException {
|
||||||
public FileDownloadException(String message) {
|
public FileDownloadException(String message) {
|
|
@ -1,4 +1,4 @@
|
||||||
package com.totopia.server.commons.data.exception;
|
package com.totopia.server.commons.exception;
|
||||||
|
|
||||||
public class FileUploadException extends RuntimeException {
|
public class FileUploadException extends RuntimeException {
|
||||||
public FileUploadException(String message) {
|
public FileUploadException(String message) {
|
|
@ -1,7 +1,7 @@
|
||||||
package com.totopia.server.commons.data.service;
|
package com.totopia.server.commons.service;
|
||||||
|
|
||||||
import com.totopia.server.commons.data.exception.FileDownloadException;
|
import com.totopia.server.commons.exception.FileDownloadException;
|
||||||
import com.totopia.server.commons.data.exception.FileUploadException;
|
import com.totopia.server.commons.exception.FileUploadException;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.core.io.Resource;
|
import org.springframework.core.io.Resource;
|
||||||
import org.springframework.core.io.UrlResource;
|
import org.springframework.core.io.UrlResource;
|
Loading…
Reference in New Issue
Block a user