update
This commit is contained in:
1 parent
0690285147
commit
5618cd2738
154 files changed
+5021
-3161
No files matched your search
@@ -84,8 +84,8 @@ func SeedData(db *gorm.DB) {
|
||||
}`,
|
||||
FlowConfig: `[{"name":"直接主管","approver_role":"team_lead","step_type":"audit"},{"name":"运维负责人","approver_role":"ops_manager","step_type":"audit"},{"name":"运维执行","approver_role":"ops_manager","step_type":"execute"}]`,
|
||||
Enabled: true,
|
||||
},
|
||||
{
|
||||
},
|
||||
{
|
||||
Name: "应用部署申请",
|
||||
Code: "app_deploy",
|
||||
Description: "申请新应用部署,包含 Git 地址、端口、Nacos 等配置信息",
|
||||
@@ -108,7 +108,7 @@ func SeedData(db *gorm.DB) {
|
||||
}`,
|
||||
FlowConfig: `[{"name":"技术负责人","approver_role":"tech_lead","step_type":"audit"},{"name":"运维负责人","approver_role":"ops_manager","step_type":"audit"},{"name":"部署执行","approver_role":"ops_manager","step_type":"execute"}]`,
|
||||
Enabled: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "权限申请",
|
||||
Code: "permission_request",
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package seed
|
||||
|
||||
import (
|
||||
snmppkg "ezops/pkg/snmp"
|
||||
"ezops/model"
|
||||
snmppkg "ezops/pkg/snmp"
|
||||
|
||||
"go.uber.org/zap"
|
||||
"gorm.io/gorm"
|
||||
@@ -20,7 +20,7 @@ func SeedSNMPTemplates(db *gorm.DB) {
|
||||
Name: bt.Name, Description: bt.Description,
|
||||
DeviceType: bt.DeviceType, Vendor: bt.Vendor,
|
||||
IsDefault: bt.Vendor == "H3C" && bt.DeviceType == "switch",
|
||||
IsSystem: true, Status: 1,
|
||||
IsSystem: true, Status: 1,
|
||||
}
|
||||
if err := db.Create(&tpl).Error; err != nil {
|
||||
zap.L().Warn("seed snmp template failed", zap.String("name", bt.Name), zap.Error(err))
|
||||
@@ -39,4 +39,4 @@ func SeedSNMPTemplates(db *gorm.DB) {
|
||||
}
|
||||
zap.L().Info("seeded snmp template", zap.String("name", bt.Name), zap.Int("oids", len(bt.OIDs)))
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user