feat: 网元SGWC-CDR数据功能接口

This commit is contained in:
TsMask
2024-12-19 11:08:18 +08:00
parent 1621ec8511
commit 1756c2126c
5 changed files with 507 additions and 0 deletions

View File

@@ -277,4 +277,23 @@ func Setup(router *gin.Engine) {
controller.NewMME.NbInfoList,
)
}
// 网元SGWC
sgwcGroup := neDataGroup.Group("/sgwc")
{
sgwcGroup.GET("/cdr/list",
middleware.PreAuthorize(nil),
controller.NewSGWC.CDRList,
)
sgwcGroup.DELETE("/cdr/:cdrIds",
middleware.PreAuthorize(nil),
collectlogs.OperateLog(collectlogs.OptionNew("log.operate.title.sgwcCDR", collectlogs.BUSINESS_TYPE_DELETE)),
controller.NewSGWC.CDRRemove,
)
sgwcGroup.POST("/cdr/export",
middleware.PreAuthorize(nil),
collectlogs.OperateLog(collectlogs.OptionNew("log.operate.title.sgwcCDR", collectlogs.BUSINESS_TYPE_EXPORT)),
controller.NewSGWC.CDRExport,
)
}
}