mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-10-10 01:35:14 +08:00
/file/list; /file/object/list 修改为POST提交;完善上传文件部分代码;清理多余import;修正一些代码Bug
This commit is contained in:
@@ -1,18 +1,20 @@
|
||||
package plus.bookshelf.Common.Enum;
|
||||
|
||||
public enum FileStorageMediumEnum {
|
||||
LOCAL (10000, "本地"),
|
||||
BAIDU_NETDISK (20001, "百度网盘"),
|
||||
ALIYUN_DRIVE (20002, "阿里网盘");
|
||||
LOCAL("LOCAL", "本地"),
|
||||
QCLOUD_COS("QCLOUD_COS", "腾讯云对象存储"),
|
||||
BAIDU_NETDISK("BAIDU_NETDISK", "百度网盘"),
|
||||
ALIYUN_DRIVE("ALIYUN_DRIVE", "阿里网盘");
|
||||
|
||||
private FileStorageMediumEnum(int storageMediumIndex, String storageMediumDisplayName) {
|
||||
private FileStorageMediumEnum(String storageMediumIndex, String storageMediumDisplayName) {
|
||||
this.storageMediumIndex = storageMediumIndex;
|
||||
this.storageMediumDisplayName = storageMediumDisplayName;
|
||||
}
|
||||
private Integer storageMediumIndex;
|
||||
|
||||
private String storageMediumIndex;
|
||||
private String storageMediumDisplayName;
|
||||
|
||||
public Integer getStorageMediumIndex() {
|
||||
public String getStorageMediumName() {
|
||||
return storageMediumIndex;
|
||||
}
|
||||
|
||||
|
@@ -1,6 +1,5 @@
|
||||
package plus.bookshelf.Common.FileManager;
|
||||
|
||||
import com.aventrix.jnanoid.jnanoid.NanoIdUtils;
|
||||
import com.qcloud.cos.COSClient;
|
||||
import com.qcloud.cos.ClientConfig;
|
||||
import com.qcloud.cos.auth.BasicCOSCredentials;
|
||||
|
@@ -2,7 +2,6 @@ package plus.bookshelf.Common.SessionManager;
|
||||
|
||||
import org.springframework.data.redis.core.RedisTemplate;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
public class RedisSessionManager implements SessionManager {
|
||||
|
Reference in New Issue
Block a user