mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-05-01 00:25:25 +08:00
refactor: 操作日志信息完善等
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package entity
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"mayfly-go/internal/common/utils"
|
||||
"mayfly-go/pkg/model"
|
||||
)
|
||||
@@ -39,3 +40,8 @@ func (m *Machine) PwdDecrypt() {
|
||||
// 密码替换为解密后的密码
|
||||
m.Password = utils.PwdAesDecrypt(m.Password)
|
||||
}
|
||||
|
||||
// 获取记录日志的描述
|
||||
func (m *Machine) GetLogDesc() string {
|
||||
return fmt.Sprintf("Machine[id=%d, tag=%s, name=%s, ip=%s:%d]", m.Id, m.TagPath, m.Name, m.Ip, m.Port)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user