| | |
| | | import com.sandu.common.file.FileUploadDto; |
| | | import com.sandu.common.file.IFileUpload; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | |
| | | @Component |
| | | public class AliOssFileServiceImpl implements IFileUpload { |
| | | |
| | | private final String endPoint = "oss-cn-shanghai.aliyuncs.com"; |
| | | private final String keyId = "LTAI5tPdpt5wvJyLipRijFSP"; |
| | | private final String keySecret = "1ahYfCKd0yTddsUnuDLQzI23MLh4VQ"; |
| | | private final String bucketName = "ximonsmart"; |
| | | @Value("${oss-conf.end-point}") |
| | | private String endPoint; |
| | | @Value("${oss-conf.key-id}") |
| | | private String keyId; |
| | | @Value("${oss-conf.key-secret}") |
| | | private String keySecret; |
| | | @Value("${oss-conf.bucket-name}") |
| | | private String bucketName; |
| | | |
| | | private String host; |
| | | |
| | | @Override |