|
|
@@ -9,25 +9,23 @@ import java.util.Map;
|
|
|
*/
|
|
|
public enum UploadChannel {
|
|
|
// 网盘上传
|
|
|
- disk(1, "file/", ""),
|
|
|
+ disk(1, "file/"),
|
|
|
// 视频上传
|
|
|
- video(2, "video/playback/", ".mp4"),
|
|
|
+ video(2, "video/playback/"),
|
|
|
// 视频封面上传
|
|
|
- cover(3, "image/cover/", ".jpeg"),
|
|
|
+ cover(3, "image/cover/"),
|
|
|
// 用户头像上传
|
|
|
- avatar(4, "image/avatar/", ".jpeg"),
|
|
|
+ avatar(4, "image/avatar/"),
|
|
|
// 用户状态照片上传
|
|
|
- photo(5, "image/photo/", ".jpeg"),
|
|
|
+ photo(5, "image/photo/"),
|
|
|
// 音频上传
|
|
|
- audio(6, "audio/playback/", ".m4a");
|
|
|
+ audio(6, "audio/playback/");
|
|
|
|
|
|
private final int code;
|
|
|
private final String prefix;
|
|
|
- private final String suffix;
|
|
|
- UploadChannel(int code, String prefix, String suffix) {
|
|
|
+ UploadChannel(int code, String prefix) {
|
|
|
this.code = code;
|
|
|
this.prefix = prefix;
|
|
|
- this.suffix = suffix;
|
|
|
}
|
|
|
|
|
|
private static Map<Integer, UploadChannel> map = new HashMap<>();
|
|
|
@@ -54,8 +52,4 @@ public enum UploadChannel {
|
|
|
public String getPrefix() {
|
|
|
return prefix;
|
|
|
}
|
|
|
-
|
|
|
- public String getSuffix() {
|
|
|
- return suffix;
|
|
|
- }
|
|
|
}
|