opt:1.Param中@NotBlank和@NotNull国际化。2.音量设置接口。
This commit is contained in:
@@ -42,7 +42,11 @@ public enum SettingCodeEnum {
|
||||
/**
|
||||
* 显示屏密码
|
||||
*/
|
||||
SCREEN_PASSWORD("7", "password", "显示屏密码");
|
||||
SCREEN_PASSWORD("7", "password", "显示屏密码"),
|
||||
|
||||
MODE("8","mode","模式切换"),
|
||||
|
||||
VOLUME("9","volume","音量");
|
||||
|
||||
private String code;
|
||||
private String name;
|
||||
|
||||
@@ -13,7 +13,7 @@ public class UpdateSettingParam {
|
||||
/**
|
||||
* 设置编码
|
||||
*/
|
||||
@NotBlank(message = "设置编码不能为空")
|
||||
@NotBlank(message = "{setting_code_empty}")
|
||||
private String setting_code;
|
||||
|
||||
/**
|
||||
|
||||
@@ -2,7 +2,6 @@ package org.nl.setting.modular.service.impl;
|
||||
|
||||
import cn.dev33.satoken.secure.SaSecureUtil;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.hutool.http.HttpResponse;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
@@ -130,6 +129,10 @@ public class SettingServiceImpl extends ServiceImpl<SettingMapper, Setting> impl
|
||||
String newPassword = RsaUtils.decryptByPrivateKey(RsaUtils.privateKey,setting_value);
|
||||
setting_value = SaSecureUtil.md5BySalt(newPassword,"salt");
|
||||
break;
|
||||
case VOLUME:
|
||||
log.info("修改音量");
|
||||
scheduleSettingAPI.settingVolume(Integer.valueOf(setting_value),updateSettingParam.getUpdate_by());
|
||||
break;
|
||||
}
|
||||
|
||||
settingMapper.update(new LambdaUpdateWrapper<>(Setting.class)
|
||||
|
||||
Reference in New Issue
Block a user