fix(system/user): 修复新增用户时日志记录获取 description 为空的问题

Closes #121
This commit is contained in:
2025-01-02 20:38:21 +08:00
parent 4f39854b62
commit 91924acaa1

View File

@@ -66,6 +66,7 @@ import java.io.IOException;
public class UserController extends BaseController<UserService, UserResp, UserDetailResp, UserQuery, UserReq> {
@Override
@Operation(summary = "新增数据", description = "新增数据")
public BaseIdResp<Long> add(@Validated(CrudValidationGroup.Add.class) @RequestBody UserReq req) {
String rawPassword = ExceptionUtils.exToNull(() -> SecureUtils.decryptByRsaPrivateKey(req.getPassword()));
ValidationUtils.throwIfNull(rawPassword, "密码解密失败");