package com.everyday.word.config;
|
|
/**
|
* @author hxh
|
* @title: CosFilePathEnum
|
* @description: 腾讯云cos路径
|
* @date 2025/2/13 10:21
|
*/
|
public enum CosFilePathEnum {
|
// 用户相关
|
userPortrait("/user/img/portrait/", "用户头像");
|
private final String path;
|
private final String desc;
|
|
private CosFilePathEnum(String path, String desc) {
|
this.path = path;
|
this.desc = desc;
|
}
|
|
public String getDesc() {
|
return desc;
|
}
|
|
public String getPath() {
|
return path;
|
}
|
|
public String getWholePath(String subPath) {
|
return path + subPath;
|
}
|
|
}
|