package com.storlead.system.service.impl;

import com.storlead.framework.common.util.DateUtils;
import com.storlead.framework.common.util.OssBootUtil;
import com.storlead.system.service.IOSSFileService;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

@Service("ossFileService")
public class OSSFileServiceImpl implements IOSSFileService {

	@Override
	public String upload(MultipartFile multipartFile) {
		return OssBootUtil.upload(multipartFile, DateUtils.getUploadDir());
	}

}
