feat:下载PDF文件添加水印

This commit is contained in:
2023-05-06 16:35:14 +08:00
parent 98eda3b071
commit 09a74e6365
5 changed files with 183 additions and 13 deletions
@@ -77,6 +77,15 @@ public class ConfigServiceImpl extends ServiceImpl<ConfigDao, ConfigEntity>
return Result.error("配置项Key不存在");
}
@Override
public String findConfigValueByKey(String key) {
if (isKeyValid(key)) {
ConfigEntity configEntity = query().eq("config_key", key).one();
return configEntity.getConfigValue();
}
return "";
}
/**
* 判断传入的key是否是后端预设好的key
*
@@ -36,4 +36,12 @@ public interface IConfigService extends IService<ConfigEntity> {
* @return
*/
ResponseMessage findConfig(String key);
/**
* 返回一个配置项
*
* @param key
* @return
*/
String findConfigValueByKey(String key);
}