feat: 导出udm-auth未加密数据

This commit is contained in:
TsMask
2025-09-28 18:14:05 +08:00
parent bc55dfb9d5
commit f4fdde0cf3
4 changed files with 94 additions and 0 deletions

View File

@@ -194,6 +194,10 @@ func Setup(router *gin.Engine) {
middleware.PreAuthorize(nil),
controller.NewAMF.NbStateList,
)
amfGroup.GET("/log/audit",
middleware.PreAuthorize(nil),
controller.NewAMF.AuditLog,
)
}
// 网元UPF
@@ -257,6 +261,11 @@ func Setup(router *gin.Engine) {
collectlogs.OperateLog(collectlogs.OptionNew("log.operate.title.udmAuth", collectlogs.BUSINESS_TYPE_IMPORT)),
controller.NewUDMAuth.Import,
)
udmAuthGroup.GET("/export-dec",
middleware.PreAuthorize(map[string][]string{"hasPerms": {"neUser:auth:export-dec"}}),
collectlogs.OperateLog(collectlogs.OptionNew("log.operate.title.udmAuth", collectlogs.BUSINESS_TYPE_EXPORT)),
controller.NewUDMAuth.ExportDec,
)
}
// 备份数据