mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-01-01 04:06:37 +08:00
feat: sql解析器替换、工单统一由‘我的流程’发起、流程定义支持自定义条件触发审批、资源隐藏编号、model支持物理删除等
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
"mayfly-go/internal/common/consts"
|
||||
"mayfly-go/internal/common/utils"
|
||||
"mayfly-go/internal/redis/api/form"
|
||||
"mayfly-go/internal/redis/api/vo"
|
||||
"mayfly-go/internal/redis/application"
|
||||
@@ -74,14 +75,21 @@ func (r *Redis) Save(rc *req.Ctx) {
|
||||
redisParam := &dto.SaveRedis{
|
||||
Redis: redis,
|
||||
TagCodePaths: form.TagCodePaths,
|
||||
AuthCert: &tagentity.ResourceAuthCert{
|
||||
Name: fmt.Sprintf("redis_%s_ac", redis.Code),
|
||||
Username: form.Username,
|
||||
Ciphertext: form.Password,
|
||||
CiphertextType: tagentity.AuthCertCiphertextTypePassword,
|
||||
Type: tagentity.AuthCertTypePrivate,
|
||||
},
|
||||
}
|
||||
authCert := &tagentity.ResourceAuthCert{
|
||||
Username: form.Username,
|
||||
Ciphertext: form.Password,
|
||||
CiphertextType: tagentity.AuthCertCiphertextTypePassword,
|
||||
Type: tagentity.AuthCertTypePrivate,
|
||||
}
|
||||
|
||||
if form.Mode == string(rdm.SentinelMode) {
|
||||
encPwd, err := utils.PwdAesEncrypt(form.RedisNodePassword)
|
||||
biz.ErrIsNil(err)
|
||||
authCert.SetExtraValue("redisNodePassword", encPwd)
|
||||
}
|
||||
|
||||
redisParam.AuthCert = authCert
|
||||
|
||||
// 密码脱敏记录日志
|
||||
form.Password = "****"
|
||||
|
||||
Reference in New Issue
Block a user