style: 格式化 recordClientInstances 字段对齐并移除未使用的 fmt 导入

This commit is contained in:
2026-05-07 21:16:20 +08:00
parent 1382c7a9f6
commit 1d2d1ab83e
+8 -7
View File
@@ -1,6 +1,7 @@
package handler package handler
import ( import (
"fmt"
"kenaito-conf/server/internal/dao" "kenaito-conf/server/internal/dao"
"kenaito-conf/server/internal/logger" "kenaito-conf/server/internal/logger"
"kenaito-conf/server/internal/model" "kenaito-conf/server/internal/model"
@@ -228,13 +229,13 @@ func (h *ConfigApiHandler) recordClientInstances(ip string, configIds []int, app
} }
} else { } else {
instance := model.ClientInstance{ instance := model.ClientInstance{
AppConfigId: configId, AppConfigId: configId,
AppName: appName, AppName: appName,
Env: env, Env: env,
Ip: ip, Ip: ip,
LastPingAt: &now, LastPingAt: &now,
CreatedAt: &now, CreatedAt: &now,
UpdatedAt: &now, UpdatedAt: &now,
} }
if fetchType != "" { if fetchType != "" {
instance.LastFetchAt = &now instance.LastFetchAt = &now