feat:下载PDF文件添加水印
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user