From ed9aa17bc357be6f7eac097a9b10ad0fc6ad6051 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Thu, 23 Jan 2025 15:07:22 +0800 Subject: [PATCH 01/11] =?UTF-8?q?feat:=20swagger=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E6=9B=B4=E6=96=B01.0.8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- restagent/restagent.go | 101 +- src/modules/chart/controller/chart_graph.go | 18 +- src/modules/common/controller/account.go | 36 + src/modules/common/controller/captcha.go | 9 + src/modules/common/controller/common.go | 10 +- src/modules/common/controller/file.go | 43 + src/modules/common/controller/index.go | 2 +- src/modules/monitor/controller/monitor.go | 9 + src/modules/monitor/controller/sys_cache.go | 9 + .../monitor/controller/sys_user_online.go | 9 + src/modules/monitor/controller/system_info.go | 9 + .../network_data/controller/all_kpi.go | 24 + src/modules/network_data/controller/amf.go | 55 + src/modules/network_data/controller/ims.go | 57 + src/modules/network_data/controller/mme.go | 85 + src/modules/network_data/controller/sgwc.go | 37 +- src/modules/network_data/controller/smf.go | 58 + src/modules/network_data/controller/smsc.go | 35 + .../network_data/controller/udm_auth.go | 106 + .../network_data/controller/udm_sub.go | 107 + src/modules/network_data/controller/upf.go | 13 +- .../network_element/controller/action.go | 49 +- .../network_element/controller/ne_config.go | 55 + .../network_element/controller/ne_host.go | 40 + .../network_element/controller/ne_info.go | 81 + .../network_element/controller/ne_license.go | 60 +- .../network_element/controller/ne_software.go | 21 + .../network_element/controller/ne_version.go | 10 + src/modules/system/controller/sys_config.go | 12 + src/modules/system/controller/sys_dept.go | 13 + .../system/controller/sys_dict_data.go | 12 + .../system/controller/sys_dict_type.go | 12 + .../system/controller/sys_log_login.go | 12 + .../system/controller/sys_log_operate.go | 12 + src/modules/system/controller/sys_menu.go | 11 + src/modules/system/controller/sys_post.go | 12 + src/modules/system/controller/sys_profile.go | 39 + src/modules/system/controller/sys_role.go | 12 + src/modules/system/controller/sys_user.go | 12 + src/modules/tool/controller/iperf.go | 36 + src/modules/tool/controller/ping.go | 45 + src/modules/trace/controller/tcpdump.go | 41 +- src/modules/ws/controller/ws.go | 9 + src/modules/ws/controller/ws_view.go | 13 + swagger2docs/docs.go | 5550 ++++++++++++++++- swagger2docs/swagger.json | 5550 ++++++++++++++++- swagger2docs/swagger.yaml | 3601 ++++++++++- 47 files changed, 16033 insertions(+), 119 deletions(-) diff --git a/restagent/restagent.go b/restagent/restagent.go index 49b6fc49..9cff388f 100644 --- a/restagent/restagent.go +++ b/restagent/restagent.go @@ -37,25 +37,103 @@ import ( var wg sync.WaitGroup // @title OMC Swagger API -// @version 1.0.5 -// @description OMC Service Interface Info +// @version 1.0.8 +// @description OMC Service Interface Information - Internal Use Only // // @tag.name chart // @tag.description chart interface +// // @tag.name common // @tag.description common interface +// @tag.name common/authorization +// @tag.description common authorization Interface +// @tag.name common/file +// @tag.description common file Interface +// // @tag.name monitor // @tag.description monitor interface +// @tag.name monitor/cache +// @tag.description monitor cache interface +// @tag.name monitor/online +// @tag.description monitor system user online interface +// // @tag.name network_data // @tag.description network data interface +// @tag.name network_data/kpi +// @tag.description network data kpi interface +// @tag.name network_data/amf +// @tag.description network data amf interface +// @tag.name network_data/ims +// @tag.description network data ims interface +// @tag.name network_data/mme +// @tag.description network data mme interface +// @tag.name network_data/sgwc +// @tag.description network data sgwc interface +// @tag.name network_data/smf +// @tag.description network data smf interface +// @tag.name network_data/smsc +// @tag.description network data smsc interface +// @tag.name network_data/udm/auth +// @tag.description network data udm authentication interface +// @tag.name network_data/udm/sub +// @tag.description network data udm subscriber interface +// @tag.name network_data/upf +// @tag.description network data upf interface +// // @tag.name network_element // @tag.description network element interface +// @tag.name network_element/action +// @tag.description network element operating interface +// @tag.name network_element/info +// @tag.description network element information interface +// @tag.name network_element/host +// @tag.description network element host interface +// @tag.name network_element/license +// @tag.description network element license interface +// @tag.name network_element/software +// @tag.description network element software interface +// @tag.name network_element/version +// @tag.description network element version interface +// @tag.name network_element/config +// @tag.description network element config interface +// // @tag.name system // @tag.description system interface +// @tag.name system/config +// @tag.description system config interface +// @tag.name system/dept +// @tag.description system dept interface +// @tag.name system/dict/data +// @tag.description system dict data interface +// @tag.name system/dict/type +// @tag.description system dict type interface +// @tag.name system/log/login +// @tag.description system log login interface +// @tag.name system/log/operate +// @tag.description system log operate interface +// @tag.name system/menu +// @tag.description system menu interface +// @tag.name system/post +// @tag.description system post interface +// @tag.name system/role +// @tag.description system role interface +// @tag.name system/user +// @tag.description system user interface +// @tag.name system/user/profile +// @tag.description system user profile interface +// // @tag.name tool // @tag.description tool interface +// @tag.name tool/ping +// @tag.description tool ping interface +// @tag.name tool/iperf +// @tag.description tool iperf interface +// // @tag.name trace // @tag.description trace interface +// @tag.name trace/tcpdump +// @tag.description trace tcpdump interface +// // @tag.name ws // @tag.description ws interface // @@ -66,18 +144,15 @@ var wg sync.WaitGroup // @securityDefinitions.apikey ApiKeyAuth // @in header // @name Authorization -// @description Get the key through the login interface, fill in e.g. Bearer +// @description Get the key through the common/authorization System Login, fill in content "Bearer " func main() { - // 初始配置加载 src.ConfigurationInit() - // 程序注册 + app := src.AppEngine() - // Swagger 接口文档 - app.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler)) loadFeatures(app) - loadPprof(app) + loadDev(app) loadServer(app) @@ -150,8 +225,14 @@ func loadFeatures(app *gin.Engine) { features.InitServiceEngine(app) } -// loadPprof 性能分析监控 -func loadPprof(app *gin.Engine) { +// loadDev 开发环境调试 +func loadDev(app *gin.Engine) { + // Swagger 接口文档 + if config.Env() == "local" { + app.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler)) + } + + //性能分析监控 Prometheus pprofEnabled := config.Get("pprof.enabled") if pprofEnabled != nil && pprofEnabled.(bool) { app.Use(ginprom.PromMiddleware(nil)) diff --git a/src/modules/chart/controller/chart_graph.go b/src/modules/chart/controller/chart_graph.go index f89840b4..983bb5f1 100644 --- a/src/modules/chart/controller/chart_graph.go +++ b/src/modules/chart/controller/chart_graph.go @@ -29,7 +29,7 @@ type ChartGraphController struct { // @Tags chart // @Accept json // @Produce json -// @Success 200 {object} map[string]any "data" +// @Success 200 {object} object "Response Results" // @Security ApiKeyAuth // @Summary Get relationship graph group name // @Description Get relationship graph group name @@ -46,9 +46,9 @@ func (s *ChartGraphController) GroupNames(c *gin.Context) { // @Tags chart // @Accept json // @Produce json -// @Param group query string true "Group" -// @Param type query string true "Type oneof=node edge combo" Enums(node, edge, combo) -// @Success 200 {object} map[string]any "data" +// @Param group query string true "Group" +// @Param type query string true "Type" Enums(node, edge, combo) +// @Success 200 {object} object "Response Results" // @Security ApiKeyAuth // @Summary Getting Relationship Map Data // @Description Getting Relationship Map Data @@ -75,8 +75,8 @@ func (s *ChartGraphController) Load(c *gin.Context) { // @Tags chart // @Accept json // @Produce json -// @Param data body map[string]any true "{group:'',data:{nodes:[],edges:[],combos:[]}}" -// @Success 200 {object} map[string]any "data" +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" // @Security ApiKeyAuth // @Summary Saving Relationship Diagram Data // @Description Saving Relationship Diagram Data @@ -117,12 +117,12 @@ func (s *ChartGraphController) Save(c *gin.Context) { // @Tags chart // @Accept json // @Produce json -// @Param group path string true "Group" -// @Success 200 {object} map[string]any "data" +// @Param group path string true "Group" +// @Success 200 {object} object "Response Results" // @Security ApiKeyAuth // @Summary Deleting Relationship Diagram Data // @Description Deleting Relationship Diagram Data -// @Router /chart/graph/:group [delete] +// @Router /chart/graph/{group} [delete] func (s *ChartGraphController) Delete(c *gin.Context) { language := ctx.AcceptLanguage(c) group := c.Param("group") diff --git a/src/modules/common/controller/account.go b/src/modules/common/controller/account.go index f41d38d6..995aaa28 100644 --- a/src/modules/common/controller/account.go +++ b/src/modules/common/controller/account.go @@ -33,6 +33,15 @@ type AccountController struct { // 系统登录 // // POST /login +// +// @Tags common/authorization +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Summary System Login +// @Description System Login +// @Router /login [post] func (s *AccountController) Login(c *gin.Context) { language := ctx.AcceptLanguage(c) var loginBody commonModel.LoginBody @@ -89,6 +98,15 @@ func (s *AccountController) Login(c *gin.Context) { // 登录用户信息 // // GET /getInfo +// +// @Tags common/authorization +// @Accept json +// @Produce json +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Login User Information +// @Description Login User Information +// @Router /getInfo [get] func (s *AccountController) Info(c *gin.Context) { language := ctx.AcceptLanguage(c) loginUser, err := ctx.LoginUser(c) @@ -117,6 +135,15 @@ func (s *AccountController) Info(c *gin.Context) { // 登录用户路由信息 // // GET /getRouters +// +// @Tags common/authorization +// @Accept json +// @Produce json +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Login User Routing Information +// @Description Login User Routing Information +// @Router /getRouters [get] func (s *AccountController) Router(c *gin.Context) { userID := ctx.LoginUserToUserID(c) @@ -143,6 +170,15 @@ func (s *AccountController) Router(c *gin.Context) { // 系统登出 // // POST /logout +// +// @Tags common/authorization +// @Accept json +// @Produce json +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary System Logout +// @Description System Logout +// @Router /logout [post] func (s *AccountController) Logout(c *gin.Context) { language := ctx.AcceptLanguage(c) tokenStr := ctx.Authorization(c) diff --git a/src/modules/common/controller/captcha.go b/src/modules/common/controller/captcha.go index 50bf5638..c8180943 100644 --- a/src/modules/common/controller/captcha.go +++ b/src/modules/common/controller/captcha.go @@ -32,6 +32,15 @@ type CaptchaController struct { // 获取验证码 // // GET /captchaImage +// +// @Tags common +// @Accept json +// @Produce json +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Get CAPTCHA +// @Description Get CAPTCHA +// @Router /captchaImage [get] func (s *CaptchaController) Image(c *gin.Context) { // 从数据库配置获取验证码开关 true开启,false关闭 captchaEnabledStr := s.sysConfigService.SelectConfigValueByKey("sys.account.captchaEnabled") diff --git a/src/modules/common/controller/common.go b/src/modules/common/controller/common.go index 7a871dfa..5d899152 100644 --- a/src/modules/common/controller/common.go +++ b/src/modules/common/controller/common.go @@ -46,9 +46,17 @@ func (s *CommontController) I18n(c *gin.Context) { }) } -// 系统可暴露的配置信息 +// 系统的配置信息 // // GET /sys-conf +// +// @Tags common +// @Accept json +// @Produce json +// @Success 200 {object} object "Response Results" +// @Summary Configuration information for the system +// @Description Configuration information for the system +// @Router /sys-conf [get] func (s *CommontController) SysConfig(c *gin.Context) { data := s.commontService.SystemConfigInfo() diff --git a/src/modules/common/controller/file.go b/src/modules/common/controller/file.go index 0b1391b3..bc1a14d4 100644 --- a/src/modules/common/controller/file.go +++ b/src/modules/common/controller/file.go @@ -71,6 +71,17 @@ func (s *FileController) Download(c *gin.Context) { // 上传文件 // // POST /upload +// +// @Tags common/file +// @Accept multipart/form-data +// @Produce json +// @Param file formData file true "The file to upload." +// @Param subPath formData string true "subpath, eg: default or common" Enums(default, common) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Upload a file +// @Description Upload a file +// @Router /file/upload [post] func (s *FileController) Upload(c *gin.Context) { language := ctx.AcceptLanguage(c) // 上传的文件 @@ -105,6 +116,16 @@ func (s *FileController) Upload(c *gin.Context) { // 切片文件检查 // // POST /chunkCheck +// +// @Tags common/file +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Slice file checking +// @Description Slice file checking +// @Router /file/chunkCheck [post] func (s *FileController) ChunkCheck(c *gin.Context) { language := ctx.AcceptLanguage(c) var body struct { @@ -131,6 +152,16 @@ func (s *FileController) ChunkCheck(c *gin.Context) { // 切片文件合并 // // POST /chunkMerge +// +// @Tags common/file +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Slice file merge +// @Description Slice file merge +// @Router /file/chunkMerge [post] func (s *FileController) ChunkMerge(c *gin.Context) { language := ctx.AcceptLanguage(c) var body struct { @@ -170,6 +201,18 @@ func (s *FileController) ChunkMerge(c *gin.Context) { // 切片文件上传 // // POST /chunkUpload +// +// @Tags common/file +// @Accept multipart/form-data +// @Produce json +// @Param file formData file true "The file to upload." +// @Param identifier formData string true "Slice Marker" +// @Param index formData string true "Slice No." +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Sliced file upload +// @Description Sliced file upload +// @Router /file/chunkUpload [post] func (s *FileController) ChunkUpload(c *gin.Context) { language := ctx.AcceptLanguage(c) // 切片编号 diff --git a/src/modules/common/controller/index.go b/src/modules/common/controller/index.go index 61dde7f0..226dc7bb 100644 --- a/src/modules/common/controller/index.go +++ b/src/modules/common/controller/index.go @@ -24,7 +24,7 @@ type IndexController struct{} // @Tags common // @Accept json // @Produce json -// @Success 200 {object} map[string]any "data" +// @Success 200 {object} object "Response Results" // @Summary Root Route // @Description Root Route // @Router / [get] diff --git a/src/modules/monitor/controller/monitor.go b/src/modules/monitor/controller/monitor.go index 17f44dd5..35802d12 100644 --- a/src/modules/monitor/controller/monitor.go +++ b/src/modules/monitor/controller/monitor.go @@ -24,6 +24,15 @@ type MonitorController struct { // 资源监控信息加载 // // GET /load +// +// @Tags monitor +// @Accept json +// @Produce json +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Resource monitoring information loading +// @Description Resource monitoring information loading +// @Router /monitor/load [get] func (s *MonitorController) Load(c *gin.Context) { language := ctx.AcceptLanguage(c) var querys struct { diff --git a/src/modules/monitor/controller/sys_cache.go b/src/modules/monitor/controller/sys_cache.go index 4baa442b..20ae2b7a 100644 --- a/src/modules/monitor/controller/sys_cache.go +++ b/src/modules/monitor/controller/sys_cache.go @@ -22,6 +22,15 @@ type SysCacheController struct{} // Redis信息 // // GET / +// +// @Tags monitor/cache +// @Accept json +// @Produce json +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Cache Service Information +// @Description Cache Service Information +// @Router /monitor/cache [get] func (s *SysCacheController) Info(c *gin.Context) { c.JSON(200, result.OkData(map[string]any{ "info": redis.Info(""), diff --git a/src/modules/monitor/controller/sys_user_online.go b/src/modules/monitor/controller/sys_user_online.go index 072cad32..3add90c9 100644 --- a/src/modules/monitor/controller/sys_user_online.go +++ b/src/modules/monitor/controller/sys_user_online.go @@ -32,6 +32,15 @@ type SysUserOnlineController struct { // 在线用户列表 // // GET /list +// +// @Tags monitor/online +// @Accept json +// @Produce json +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary System Online User List +// @Description System Online User List +// @Router /monitor/online/list [get] func (s *SysUserOnlineController) List(c *gin.Context) { language := ctx.AcceptLanguage(c) ipaddr := c.Query("ipaddr") diff --git a/src/modules/monitor/controller/system_info.go b/src/modules/monitor/controller/system_info.go index 14437dda..78a9ffe6 100644 --- a/src/modules/monitor/controller/system_info.go +++ b/src/modules/monitor/controller/system_info.go @@ -22,6 +22,15 @@ type SystemInfoController struct { // 服务器信息 // // GET / +// +// @Tags monitor +// @Accept json +// @Produce json +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Server Information +// @Description Server Information +// @Router /monitor/system-info [get] func (s *SystemInfoController) Info(c *gin.Context) { data := map[string]any{ "cpu": s.systemInfogService.CPUInfo(), diff --git a/src/modules/network_data/controller/all_kpi.go b/src/modules/network_data/controller/all_kpi.go index e3dbc720..cad3e913 100644 --- a/src/modules/network_data/controller/all_kpi.go +++ b/src/modules/network_data/controller/all_kpi.go @@ -27,6 +27,20 @@ type PerfKPIController struct { // 获取统计数据 // // GET /data +// +// @Tags network_data/kpi +// @Accept json +// @Produce json +// @Param neType query string true "NE Type" Enums(IMS,AMF,AUSF,UDM,SMF,PCF,NSSF,NRF,UPF,MME,CBC,OMC,SGWC) +// @Param neId query string true "NE ID" default(001) +// @Param startTime query number true "Start time (timestamped milliseconds)" default(1737453599059) +// @Param endTime query number true "End time (timestamped milliseconds)" default(1737453599059) +// @Param interval query number true "interval" Enums(5,10,15,30,60,300,600,900,1800,3600) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Access to statistical data +// @Description Access to statistical data +// @Router /neData/kpi/data [get] func (s *PerfKPIController) GoldKPI(c *gin.Context) { language := ctx.AcceptLanguage(c) var querys model.GoldKPIQuery @@ -55,6 +69,16 @@ func (s *PerfKPIController) GoldKPI(c *gin.Context) { // 获取统计标题 // // GET /title +// +// @Tags network_data/kpi +// @Accept json +// @Produce json +// @Param neType query string true "NE Type" Enums(IMS,AMF,AUSF,UDM,SMF,PCF,NSSF,NRF,UPF,MME,CBC,OMC,SGWC) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Get Statistical Headings +// @Description Get Statistical Headings +// @Router /neData/kpi/title [get] func (s *PerfKPIController) Title(c *gin.Context) { language := ctx.AcceptLanguage(c) neType := c.Query("neType") diff --git a/src/modules/network_data/controller/amf.go b/src/modules/network_data/controller/amf.go index cdbe1434..eb7b229c 100644 --- a/src/modules/network_data/controller/amf.go +++ b/src/modules/network_data/controller/amf.go @@ -34,6 +34,20 @@ type AMFController struct { // UE会话列表 // // GET /ue/list +// +// @Tags network_data/amf +// @Accept json +// @Produce json +// @Param neType query string true "NE Type only AMF" Enums(AMF) +// @Param neId query string true "NE ID" default(001) +// @Param imsi query string false "imsi" +// @Param pageNum query number true "pageNum" default(1) +// @Param pageSize query number true "pageSize" default(10) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary UE Session List +// @Description UE Session List +// @Router /neData/amf/ue/list [get] func (s *AMFController) UEList(c *gin.Context) { language := ctx.AcceptLanguage(c) var querys model.UEEventAMFQuery @@ -58,6 +72,16 @@ func (s *AMFController) UEList(c *gin.Context) { // UE会话删除 // // DELETE /ue/:ueIds +// +// @Tags network_data/amf +// @Accept json +// @Produce json +// @Param ueIds path string true "list data id, multiple separated by a , sign" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary UE Session Deletion +// @Description UE Session Deletion +// @Router /neData/amf/ue/{ueIds} [delete] func (s *AMFController) UERemove(c *gin.Context) { language := ctx.AcceptLanguage(c) ueIds := c.Param("ueIds") @@ -84,6 +108,16 @@ func (s *AMFController) UERemove(c *gin.Context) { // UE会话列表导出 // // POST /ue/export +// +// @Tags network_data/amf +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary UE Session List Export +// @Description UE Session List Export +// @Router /neData/amf/ue/export [post] func (s *AMFController) UEExport(c *gin.Context) { language := ctx.AcceptLanguage(c) // 查询结果,根据查询条件结果,单页最大值限制 @@ -125,6 +159,17 @@ func (s *AMFController) UEExport(c *gin.Context) { // 接入基站信息列表 // // GET /nb/list +// +// @Tags network_data/amf +// @Accept json +// @Produce json +// @Param neId query string true "NE ID" default(001) +// @Param id query string false "Base Station ID" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Access Base Station Information List +// @Description Access Base Station Information List +// @Router /neData/amf/nb/list [get] func (s *AMFController) NbInfoList(c *gin.Context) { language := ctx.AcceptLanguage(c) var query struct { @@ -158,6 +203,16 @@ func (s *AMFController) NbInfoList(c *gin.Context) { // 接入基站状态信息列表 // // GET /nb/list-cfg +// +// @Tags network_data/amf +// @Accept json +// @Produce json +// @Param neId query string true "NE ID" default(001) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Access to the base station status information list +// @Description Access to the base station status information list +// @Router /neData/amf/nb/list-cfg [get] func (s *AMFController) NbStateList(c *gin.Context) { language := ctx.AcceptLanguage(c) var query struct { diff --git a/src/modules/network_data/controller/ims.go b/src/modules/network_data/controller/ims.go index 3b4aaa9f..f65060a1 100644 --- a/src/modules/network_data/controller/ims.go +++ b/src/modules/network_data/controller/ims.go @@ -34,6 +34,21 @@ type IMSController struct { // CDR会话列表 // // GET /cdr/list +// +// @Tags network_data/ims +// @Accept json +// @Produce json +// @Param neType query string true "NE Type only IMS" Enums(IMS) +// @Param neId query string true "NE ID" default(001) +// @Param callerParty query string false "callerParty" +// @Param calledParty query string false "calledParty" +// @Param pageNum query number true "pageNum" default(1) +// @Param pageSize query number true "pageSize" default(10) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary CDR Session List +// @Description CDR Session List +// @Router /neData/ims/cdr/list [get] func (s *IMSController) CDRList(c *gin.Context) { language := ctx.AcceptLanguage(c) var querys model.CDREventIMSQuery @@ -58,6 +73,16 @@ func (s *IMSController) CDRList(c *gin.Context) { // CDR会话删除 // // DELETE /cdr/:cdrIds +// +// @Tags network_data/ims +// @Accept json +// @Produce json +// @Param cdrIds path string true "list data id, multiple separated by a , sign" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary CDR Session Delete +// @Description CDR Session Delete +// @Router /neData/ims/cdr/{cdrIds} [delete] func (s *IMSController) CDRRemove(c *gin.Context) { language := ctx.AcceptLanguage(c) cdrIds := c.Param("cdrIds") @@ -84,6 +109,16 @@ func (s *IMSController) CDRRemove(c *gin.Context) { // CDR会话列表导出 // // POST /cdr/export +// +// @Tags network_data/ims +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary CDR Session List Export +// @Description CDR Session List Export +// @Router /neData/ims/cdr/export [post] func (s *IMSController) CDRExport(c *gin.Context) { language := ctx.AcceptLanguage(c) // 查询结果,根据查询条件结果,单页最大值限制 @@ -125,6 +160,16 @@ func (s *IMSController) CDRExport(c *gin.Context) { // 在线会话用户数量 // // GET /session/num +// +// @Tags network_data/ims +// @Accept json +// @Produce json +// @Param neId query string true "NE ID" default(001) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Number of online session users +// @Description Number of online session users +// @Router /neData/ims/session/num [get] func (s *IMSController) UeSessionNum(c *gin.Context) { language := ctx.AcceptLanguage(c) var query struct { @@ -155,6 +200,18 @@ func (s *IMSController) UeSessionNum(c *gin.Context) { // 在线会话用户列表信息 // // GET /session/list +// +// @Tags network_data/ims +// @Accept json +// @Produce json +// @Param neId query string true "NE ID" default(001) +// @Param imsi query string false "imsi" +// @Param msisdn query string false "msisdn" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Online session user list information +// @Description Online session user list information +// @Router /neData/ims/session/list [get] func (s *IMSController) UeSessionList(c *gin.Context) { language := ctx.AcceptLanguage(c) var query struct { diff --git a/src/modules/network_data/controller/mme.go b/src/modules/network_data/controller/mme.go index a6f49339..944cf4f4 100644 --- a/src/modules/network_data/controller/mme.go +++ b/src/modules/network_data/controller/mme.go @@ -34,6 +34,20 @@ type MMEController struct { // UE会话列表 // // GET /ue/list +// +// @Tags network_data/mme +// @Accept json +// @Produce json +// @Param neType query string true "NE Type only MME" Enums(MME) +// @Param neId query string true "NE ID" default(001) +// @Param imsi query string false "imsi" +// @Param pageNum query number true "pageNum" default(1) +// @Param pageSize query number true "pageSize" default(10) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary UE Session List +// @Description UE Session List +// @Router /neData/mme/ue/list [get] func (s *MMEController) UEList(c *gin.Context) { language := ctx.AcceptLanguage(c) var querys model.UEEventMMEQuery @@ -58,6 +72,16 @@ func (s *MMEController) UEList(c *gin.Context) { // UE会话删除 // // DELETE /ue/:ueIds +// +// @Tags network_data/mme +// @Accept json +// @Produce json +// @Param ueIds path string true "list data id, multiple separated by a , sign" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary UE Session Deletion +// @Description UE Session Deletion +// @Router /neData/mme/ue/{ueIds} [delete] func (s *MMEController) UERemove(c *gin.Context) { language := ctx.AcceptLanguage(c) ueIds := c.Param("ueIds") @@ -84,6 +108,16 @@ func (s *MMEController) UERemove(c *gin.Context) { // UE会话列表导出 // // POST /ue/export +// +// @Tags network_data/mme +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary UE Session List Export +// @Description UE Session List Export +// @Router /neData/mme/ue/export [post] func (s *MMEController) UEExport(c *gin.Context) { language := ctx.AcceptLanguage(c) // 查询结果,根据查询条件结果,单页最大值限制 @@ -125,6 +159,17 @@ func (s *MMEController) UEExport(c *gin.Context) { // 接入基站信息列表 // // GET /nb/list +// +// @Tags network_data/mme +// @Accept json +// @Produce json +// @Param neId query string true "NE ID" default(001) +// @Param id query string false "Base Station ID" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Access Base Station Information List +// @Description Access Base Station Information List +// @Router /neData/mme/nb/list [get] func (s *MMEController) NbInfoList(c *gin.Context) { language := ctx.AcceptLanguage(c) var query struct { @@ -154,3 +199,43 @@ func (s *MMEController) NbInfoList(c *gin.Context) { c.JSON(200, result.OkData(data)) } + +// 接入基站状态信息列表 +// +// GET /nb/list-cfg +// +// @Tags network_data/mme +// @Accept json +// @Produce json +// @Param neId query string true "NE ID" default(001) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Access to the base station status information list +// @Description Access to the base station status information list +// @Router /neData/mme/nb/list-cfg [get] +func (s *MMEController) NbStateList(c *gin.Context) { + language := ctx.AcceptLanguage(c) + var query struct { + NeId string `form:"neId" binding:"required"` + } + if err := c.ShouldBindQuery(&query); err != nil { + c.JSON(400, result.CodeMsg(400, i18n.TKey(language, "app.common.err400"))) + return + } + + // 查询网元信息 + neInfo := s.neInfoService.SelectNeInfoByNeTypeAndNeID("MME", query.NeId) + if neInfo.NeId != query.NeId || neInfo.IP == "" { + c.JSON(200, result.ErrMsg(i18n.TKey(language, "app.common.noNEInfo"))) + return + } + + // 网元直连 + data, err := neFetchlink.MMEEnbStateList(neInfo) + if err != nil { + c.JSON(200, result.ErrMsg(err.Error())) + return + } + + c.JSON(200, result.OkData(data)) +} diff --git a/src/modules/network_data/controller/sgwc.go b/src/modules/network_data/controller/sgwc.go index f528c412..8943574c 100644 --- a/src/modules/network_data/controller/sgwc.go +++ b/src/modules/network_data/controller/sgwc.go @@ -24,7 +24,7 @@ var NewSGWC = &SGWCController{ // 网元SGWC // -// PATH /SGWC +// PATH /sgwc type SGWCController struct { neInfoService *neService.NeInfo // 网元信息服务 cdrEventService *neDataService.CDREventSGWC // CDR会话事件服务 @@ -34,6 +34,21 @@ type SGWCController struct { // CDR会话列表 // // GET /cdr/list +// +// @Tags network_data/sgwc +// @Accept json +// @Produce json +// @Param neType query string true "NE Type only SGWC" Enums(SGWC) +// @Param neId query string true "NE ID" default(001) +// @Param imsi query string false "imsi" +// @Param msisdn query string false "msisdn" +// @Param pageNum query number true "pageNum" default(1) +// @Param pageSize query number true "pageSize" default(10) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary CDR Session List +// @Description CDR Session List +// @Router /neData/sgwc/cdr/list [get] func (s *SGWCController) CDRList(c *gin.Context) { language := ctx.AcceptLanguage(c) var querys model.CDREventSGWCQuery @@ -58,6 +73,16 @@ func (s *SGWCController) CDRList(c *gin.Context) { // CDR会话删除 // // DELETE /cdr/:cdrIds +// +// @Tags network_data/sgwc +// @Accept json +// @Produce json +// @Param cdrIds path string true "list data id, multiple separated by a , sign" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary CDR Session Delete +// @Description CDR Session Delete +// @Router /neData/sgwc/cdr/{cdrIds} [delete] func (s *SGWCController) CDRRemove(c *gin.Context) { language := ctx.AcceptLanguage(c) cdrIds := c.Param("cdrIds") @@ -84,6 +109,16 @@ func (s *SGWCController) CDRRemove(c *gin.Context) { // CDR会话列表导出 // // POST /cdr/export +// +// @Tags network_data/sgwc +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary CDR Session List Export +// @Description CDR Session List Export +// @Router /neData/sgwc/cdr/export [post] func (s *SGWCController) CDRExport(c *gin.Context) { language := ctx.AcceptLanguage(c) // 查询结果,根据查询条件结果,单页最大值限制 diff --git a/src/modules/network_data/controller/smf.go b/src/modules/network_data/controller/smf.go index fb293525..ffaeae4d 100644 --- a/src/modules/network_data/controller/smf.go +++ b/src/modules/network_data/controller/smf.go @@ -36,6 +36,20 @@ type SMFController struct { // CDR会话列表 // // GET /cdr/list +// +// @Tags network_data/smf +// @Accept json +// @Produce json +// @Param neType query string true "NE Type only SMF" Enums(SMF) +// @Param neId query string true "NE ID" default(001) +// @Param subscriberID query string false "subscriberID is IMSI" +// @Param pageNum query number true "pageNum" default(1) +// @Param pageSize query number true "pageSize" default(10) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary CDR Session List +// @Description CDR Session List +// @Router /neData/smf/cdr/list [get] func (s *SMFController) CDRList(c *gin.Context) { language := ctx.AcceptLanguage(c) var querys model.CDREventSMFQuery @@ -60,6 +74,16 @@ func (s *SMFController) CDRList(c *gin.Context) { // CDR会话删除 // // DELETE /cdr/:cdrIds +// +// @Tags network_data/smf +// @Accept json +// @Produce json +// @Param cdrIds path string true "list data id, multiple separated by a , sign" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary CDR Session Delete +// @Description CDR Session Delete +// @Router /neData/smf/cdr/{cdrIds} [delete] func (s *SMFController) CDRRemove(c *gin.Context) { language := ctx.AcceptLanguage(c) cdrIds := c.Param("cdrIds") @@ -86,6 +110,16 @@ func (s *SMFController) CDRRemove(c *gin.Context) { // CDR会话列表导出 // // POST /cdr/export +// +// @Tags network_data/smf +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary CDR Session List Export +// @Description CDR Session List Export +// @Router /neData/smf/cdr/export [post] func (s *SMFController) CDRExport(c *gin.Context) { language := ctx.AcceptLanguage(c) // 查询结果,根据查询条件结果,单页最大值限制 @@ -127,6 +161,16 @@ func (s *SMFController) CDRExport(c *gin.Context) { // 在线订阅用户数量 // // GET /sub/num +// +// @Tags network_data/smf +// @Accept json +// @Produce json +// @Param neId query string true "NE ID" default(001) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Number of online session users +// @Description Number of online session users +// @Router /neData/smf/sub/num [get] func (s *SMFController) SubUserNum(c *gin.Context) { language := ctx.AcceptLanguage(c) var query struct { @@ -157,6 +201,20 @@ func (s *SMFController) SubUserNum(c *gin.Context) { // 在线订阅用户列表信息 // // GET /sub/list +// +// @Tags network_data/smf +// @Accept json +// @Produce json +// @Param neId query string true "NE ID" default(001) +// @Param imsi query string false "imsi" +// @Param msisdn query string false "msisdn" +// @Param upstate query string false "upstate" +// @Param pageNum query string true "pageNum" default(50) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Online session user list information +// @Description Online session user list information +// @Router /neData/smf/session/list [get] func (s *SMFController) SubUserList(c *gin.Context) { language := ctx.AcceptLanguage(c) var query struct { diff --git a/src/modules/network_data/controller/smsc.go b/src/modules/network_data/controller/smsc.go index 929b0b9c..421f1aff 100644 --- a/src/modules/network_data/controller/smsc.go +++ b/src/modules/network_data/controller/smsc.go @@ -33,6 +33,21 @@ type SMSCController struct { // CDR会话列表 // // GET /cdr/list +// +// @Tags network_data/smsc +// @Accept json +// @Produce json +// @Param neType query string true "NE Type only SMSC" Enums(SMSC) +// @Param neId query string true "NE ID" default(001) +// @Param callerParty query string false "callerParty" +// @Param calledParty query string false "calledParty" +// @Param pageNum query number true "pageNum" default(1) +// @Param pageSize query number true "pageSize" default(10) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary CDR Session List +// @Description CDR Session List +// @Router /neData/smsc/cdr/list [get] func (s *SMSCController) CDRList(c *gin.Context) { language := ctx.AcceptLanguage(c) var querys model.CDREventSMSCQuery @@ -57,6 +72,16 @@ func (s *SMSCController) CDRList(c *gin.Context) { // CDR会话删除 // // DELETE /cdr/:cdrIds +// +// @Tags network_data/smsc +// @Accept json +// @Produce json +// @Param cdrIds path string true "list data id, multiple separated by a , sign" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary CDR Session Delete +// @Description CDR Session Delete +// @Router /neData/smsc/cdr/{cdrIds} [delete] func (s *SMSCController) CDRRemove(c *gin.Context) { language := ctx.AcceptLanguage(c) cdrIds := c.Param("cdrIds") @@ -83,6 +108,16 @@ func (s *SMSCController) CDRRemove(c *gin.Context) { // CDR会话列表导出 // // POST /cdr/export +// +// @Tags network_data/smsc +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary CDR Session List Export +// @Description CDR Session List Export +// @Router /neData/smsc/cdr/export [post] func (s *SMSCController) CDRExport(c *gin.Context) { language := ctx.AcceptLanguage(c) // 查询结果,根据查询条件结果,单页最大值限制 diff --git a/src/modules/network_data/controller/udm_auth.go b/src/modules/network_data/controller/udm_auth.go index 90ee8769..36a335ca 100644 --- a/src/modules/network_data/controller/udm_auth.go +++ b/src/modules/network_data/controller/udm_auth.go @@ -38,6 +38,16 @@ type UDMAuthController struct { // UDM鉴权用户重载数据 // // POST /resetData/:neId +// +// @Tags network_data/udm/auth +// @Accept json +// @Produce json +// @Param neId path string true "NE ID" default(001) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary UDM Authentication User Reload Data +// @Description UDM Authentication User Reload Data +// @Router /neData/udm/auth/resetData/{neId} [post] func (s *UDMAuthController) ResetData(c *gin.Context) { language := ctx.AcceptLanguage(c) neId := c.Param("neId") @@ -53,6 +63,15 @@ func (s *UDMAuthController) ResetData(c *gin.Context) { // UDM鉴权用户列表 // // GET /list +// +// @Tags network_data/udm/auth +// @Accept json +// @Produce json +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary UDM Authentication User List +// @Description UDM Authentication User List +// @Router /neData/udm/auth/list [get] func (s *UDMAuthController) List(c *gin.Context) { querys := ctx.QueryMap(c) total, rows := s.udmAuthService.SelectPage(querys) @@ -62,6 +81,17 @@ func (s *UDMAuthController) List(c *gin.Context) { // UDM鉴权用户信息 // // GET /:neId/:imsi +// +// @Tags network_data/udm/auth +// @Accept json +// @Produce json +// @Param neId path string true "NE ID" default(001) +// @Param value path string true "User data imsi" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary UDM Authentication User Information +// @Description UDM Authentication User Information +// @Router /neData/udm/auth/{neId}/{value} [get] func (s *UDMAuthController) Info(c *gin.Context) { language := ctx.AcceptLanguage(c) neId := c.Param("neId") @@ -107,6 +137,17 @@ func (s *UDMAuthController) Info(c *gin.Context) { // UDM鉴权用户新增 // // POST /:neId +// +// @Tags network_data/udm/auth +// @Accept json +// @Produce json +// @Param neId path string true "NE ID" default(001) +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary UDM Authentication User Added +// @Description UDM Authentication User Added +// @Router /neData/udm/auth/{neId} [post] func (s *UDMAuthController) Add(c *gin.Context) { language := ctx.AcceptLanguage(c) neId := c.Param("neId") @@ -155,6 +196,18 @@ func (s *UDMAuthController) Add(c *gin.Context) { // UDM鉴权用户批量新增 // // POST /:neId/:num +// +// @Tags network_data/udm/auth +// @Accept json +// @Produce json +// @Param neId path string true "NE ID" default(001) +// @Param value path number true "Incremental number" +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary UDM Authentication User Batch Add +// @Description UDM Authentication User Batch Add +// @Router /neData/udm/auth/{neId}/{value} [post] func (s *UDMAuthController) Adds(c *gin.Context) { language := ctx.AcceptLanguage(c) neId := c.Param("neId") @@ -204,6 +257,17 @@ func (s *UDMAuthController) Adds(c *gin.Context) { // UDM鉴权用户修改 // // PUT /:neId +// +// @Tags network_data/udm/auth +// @Accept json +// @Produce json +// @Param neId path string true "NE ID" default(001) +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary UDM Authenticated User Modification +// @Description UDM Authenticated User Modification +// @Router /neData/udm/auth/{neId} [put] func (s *UDMAuthController) Edit(c *gin.Context) { language := ctx.AcceptLanguage(c) neId := c.Param("neId") @@ -252,6 +316,17 @@ func (s *UDMAuthController) Edit(c *gin.Context) { // UDM鉴权用户删除 // // DELETE /:neId/:imsi +// +// @Tags network_data/udm/auth +// @Accept json +// @Produce json +// @Param neId path string true "NE ID" default(001) +// @Param value path string true "User data imsi, multiple separated by a , sign" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary UDM Authenticated User Deletion +// @Description UDM Authenticated User Deletion +// @Router /neData/udm/auth/{neId}/{value} [delete] func (s *UDMAuthController) Remove(c *gin.Context) { language := ctx.AcceptLanguage(c) neId := c.Param("neId") @@ -305,6 +380,18 @@ func (s *UDMAuthController) Remove(c *gin.Context) { // UDM鉴权用户批量删除 // // DELETE /:neId/:imsi/:num +// +// @Tags network_data/udm/auth +// @Accept json +// @Produce json +// @Param neId path string true "NE ID" default(001) +// @Param imsi path string true "User data imsi" +// @Param num path number true "Incremental number" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary UDM Authentication User Batch Deletion +// @Description UDM Authentication User Batch Deletion +// @Router /neData/udm/auth/{neId}/{imsi}/{num} [delete] func (s *UDMAuthController) Removes(c *gin.Context) { language := ctx.AcceptLanguage(c) neId := c.Param("neId") @@ -347,6 +434,15 @@ func (s *UDMAuthController) Removes(c *gin.Context) { // UDM鉴权用户导出 // // POST /export +// +// @Tags network_data/udm/auth +// @Accept json +// @Produce json +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary UDM Authenticated User Export +// @Description UDM Authenticated User Export +// @Router /neData/udm/auth/export [post] func (s *UDMAuthController) Export(c *gin.Context) { language := ctx.AcceptLanguage(c) // 查询结果,根据查询条件结果,单页最大值限制 @@ -425,6 +521,16 @@ func (s *UDMAuthController) Export(c *gin.Context) { // UDM鉴权用户导入 // // POST /import +// +// @Tags network_data/udm/auth +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary UDM Authenticated User Import +// @Description UDM Authenticated User Import +// @Router /neData/udm/auth/import [post] func (s *UDMAuthController) Import(c *gin.Context) { language := ctx.AcceptLanguage(c) var body struct { diff --git a/src/modules/network_data/controller/udm_sub.go b/src/modules/network_data/controller/udm_sub.go index 02ae5dc2..65ff00d6 100644 --- a/src/modules/network_data/controller/udm_sub.go +++ b/src/modules/network_data/controller/udm_sub.go @@ -37,6 +37,16 @@ type UDMSubController struct { // UDM签约用户重载数据 // // POST /resetData/:neId +// +// @Tags network_data/udm/sub +// @Accept json +// @Produce json +// @Param neId path string true "NE ID" default(001) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary UDM Subscriber User Reload Data +// @Description UDM Subscriber User Reload Data +// @Router /neData/udm/sub/resetData/{neId} [post] func (s *UDMSubController) ResetData(c *gin.Context) { language := ctx.AcceptLanguage(c) neId := c.Param("neId") @@ -52,6 +62,15 @@ func (s *UDMSubController) ResetData(c *gin.Context) { // UDM签约用户列表 // // GET /list +// +// @Tags network_data/udm/sub +// @Accept json +// @Produce json +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary UDM Subscriber User List +// @Description UDM Subscriber User List +// @Router /neData/udm/sub/list [get] func (s *UDMSubController) List(c *gin.Context) { querys := ctx.QueryMap(c) total, rows := s.udmSubService.SelectPage(querys) @@ -61,6 +80,17 @@ func (s *UDMSubController) List(c *gin.Context) { // UDM签约用户信息 // // GET /:neId/:imsi +// +// @Tags network_data/udm/sub +// @Accept json +// @Produce json +// @Param neId path string true "NE ID" default(001) +// @Param value path string true "User data imsi" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary UDM Subscriber User Information +// @Description UDM Subscriber User Information +// @Router /neData/udm/sub/{neId}/{value} [get] func (s *UDMSubController) Info(c *gin.Context) { language := ctx.AcceptLanguage(c) neId := c.Param("neId") @@ -106,6 +136,17 @@ func (s *UDMSubController) Info(c *gin.Context) { // UDM签约用户新增 // // POST /:neId +// +// @Tags network_data/udm/sub +// @Accept json +// @Produce json +// @Param neId path string true "NE ID" default(001) +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary UDM Subscriber User Added +// @Description UDM Subscriber User Added +// @Router /neData/udm/sub/{neId} [post] func (s *UDMSubController) Add(c *gin.Context) { language := ctx.AcceptLanguage(c) neId := c.Param("neId") @@ -155,6 +196,18 @@ func (s *UDMSubController) Add(c *gin.Context) { // UDM签约用户批量新增 // // POST /:neId/:num +// +// @Tags network_data/udm/sub +// @Accept json +// @Produce json +// @Param neId path string true "NE ID" default(001) +// @Param value path number true "Incremental number" default(1) +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary UDM Subscriber User Batch Add +// @Description UDM Subscriber User Batch Add +// @Router /neData/udm/sub/{neId}/{value} [post] func (s *UDMSubController) Adds(c *gin.Context) { language := ctx.AcceptLanguage(c) neId := c.Param("neId") @@ -207,6 +260,17 @@ func (s *UDMSubController) Adds(c *gin.Context) { // UDM签约用户修改 // // PUT /:neId +// +// @Tags network_data/udm/sub +// @Accept json +// @Produce json +// @Param neId path string true "NE ID" default(001) +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary UDM Subscriber User Modification +// @Description UDM Subscriber User Modification +// @Router /neData/udm/sub/{neId} [put] func (s *UDMSubController) Edit(c *gin.Context) { language := ctx.AcceptLanguage(c) neId := c.Param("neId") @@ -256,6 +320,17 @@ func (s *UDMSubController) Edit(c *gin.Context) { // UDM签约用户删除 // // DELETE /:neId/:imsi +// +// @Tags network_data/udm/sub +// @Accept json +// @Produce json +// @Param neId path string true "NE ID" default(001) +// @Param value path string true "User data imsi, multiple separated by a , sign" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary UDM Subscriber User Deletion +// @Description UDM Subscriber User Deletion +// @Router /neData/udm/sub/{neId}/{value} [delete] func (s *UDMSubController) Remove(c *gin.Context) { language := ctx.AcceptLanguage(c) neId := c.Param("neId") @@ -309,6 +384,18 @@ func (s *UDMSubController) Remove(c *gin.Context) { // UDM签约用户批量删除 // // DELETE /:neId/:imsi/:num +// +// @Tags network_data/udm/sub +// @Accept json +// @Produce json +// @Param neId path string true "NE ID" default(001) +// @Param imsi path string true "User data imsi" +// @Param num path number true "Incremental number" default(1) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary UDM Subscriber User Batch Deletion +// @Description UDM Subscriber User Batch Deletion +// @Router /neData/udm/sub/{neId}/{imsi}/{num} [delete] func (s *UDMSubController) Removes(c *gin.Context) { language := ctx.AcceptLanguage(c) neId := c.Param("neId") @@ -351,6 +438,16 @@ func (s *UDMSubController) Removes(c *gin.Context) { // UDM签约用户导出 // // POST /export +// +// @Tags network_data/udm/sub +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary UDM Subscriber User Export +// @Description UDM Subscriber User Export +// @Router /neData/udm/sub/export [post] func (s *UDMSubController) Export(c *gin.Context) { language := ctx.AcceptLanguage(c) // 查询结果,根据查询条件结果,单页最大值限制 @@ -421,6 +518,16 @@ func (s *UDMSubController) Export(c *gin.Context) { // UDM签约用户导入 // // POST /import +// +// @Tags network_data/udm/sub +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary UDM Subscriber User Import +// @Description UDM Subscriber User Import +// @Router /neData/udm/sub/import [post] func (s *UDMSubController) Import(c *gin.Context) { language := ctx.AcceptLanguage(c) var body struct { diff --git a/src/modules/network_data/controller/upf.go b/src/modules/network_data/controller/upf.go index 0d0acd5e..c76f050b 100644 --- a/src/modules/network_data/controller/upf.go +++ b/src/modules/network_data/controller/upf.go @@ -27,11 +27,22 @@ type UPFController struct { // 单位 比特(bit) // // GET /totalFlow +// +// @Tags network_data/upf +// @Accept json +// @Produce json +// @Param neId query string true "NE ID" default(001) +// @Param day query number true "Statistical time a few days before" Enums(0, 7, 30) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Total number of flows N3 upstream N6 downstream +// @Description Total number of flows N3 upstream N6 downstream +// @Router /neData/upf/totalFlow [get] func (s *UPFController) TotalFlow(c *gin.Context) { language := ctx.AcceptLanguage(c) var querys struct { NeID string `form:"neId" binding:"required"` - Day int `form:"day" binding:"required"` + Day int `form:"day"` } if err := c.ShouldBindQuery(&querys); querys.Day < 0 || err != nil { c.JSON(400, result.CodeMsg(400, i18n.TKey(language, "app.common.err400"))) diff --git a/src/modules/network_element/controller/action.go b/src/modules/network_element/controller/action.go index 3dc51d63..30a67119 100644 --- a/src/modules/network_element/controller/action.go +++ b/src/modules/network_element/controller/action.go @@ -35,10 +35,10 @@ type NeActionController struct { // // POST /pushFile // -// @Tags network_element +// @Tags network_element/action // @Accept json // @Produce json -// @Success 200 {object} map[string]any{} "data" +// @Success 200 {object} object "Response Results" // @Security ApiKeyAuth // @Summary Sending files from local to network elements // @Description Sending files from local to network elements @@ -100,6 +100,15 @@ func (s *NeActionController) PushFile(c *gin.Context) { // 从网元到本地获取文件 // // GET /pullFile +// +// @Tags network_element/action +// @Accept json +// @Produce json +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Getting files from the network element to the local +// @Description Getting files from the network element to the local +// @Router /ne/action/pullFile [get] func (s *NeActionController) PullFile(c *gin.Context) { language := ctx.AcceptLanguage(c) var querys struct { @@ -159,6 +168,15 @@ func (s *NeActionController) PullFile(c *gin.Context) { // 从网元到本地获取目录压缩为ZIP // // GET /pullDirZip +// +// @Tags network_element/action +// @Accept json +// @Produce json +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Get directories compressed to ZIP from the network element to the local area +// @Description Get directories compressed to ZIP from the network element to the local area +// @Router /ne/action/pullDirZip [get] func (s *NeActionController) PullDirZip(c *gin.Context) { language := ctx.AcceptLanguage(c) var querys struct { @@ -226,6 +244,15 @@ func (s *NeActionController) PullDirZip(c *gin.Context) { // 查看网元端文件内容 // // GET /viewFile +// +// @Tags network_element/action +// @Accept json +// @Produce json +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Viewing the contents of a file on the network element side +// @Description Viewing the contents of a file on the network element side +// @Router /ne/action/viewFile [get] func (s *NeActionController) ViewFile(c *gin.Context) { language := ctx.AcceptLanguage(c) var querys struct { @@ -269,6 +296,15 @@ func (s *NeActionController) ViewFile(c *gin.Context) { // 网元端文件列表 // // GET /files +// +// @Tags network_element/action +// @Accept json +// @Produce json +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary List of files on the network element side +// @Description List of files on the network element side +// @Router /ne/action/files [get] func (s *NeActionController) Files(c *gin.Context) { language := ctx.AcceptLanguage(c) var querys struct { @@ -333,6 +369,15 @@ func (s *NeActionController) Files(c *gin.Context) { // 网元服务操作 // // PUT /service +// +// @Tags network_element/action +// @Accept json +// @Produce json +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Network element service operation +// @Description Network element service operation +// @Router /ne/action/service [put] func (s *NeActionController) Service(c *gin.Context) { language := ctx.AcceptLanguage(c) var body struct { diff --git a/src/modules/network_element/controller/ne_config.go b/src/modules/network_element/controller/ne_config.go index bba6724d..41742676 100644 --- a/src/modules/network_element/controller/ne_config.go +++ b/src/modules/network_element/controller/ne_config.go @@ -157,6 +157,16 @@ func (s *NeConfigController) Remove(c *gin.Context) { // 网元参数配置可用属性值列表指定网元类型全部无分页 // // GET /list/:neType +// +// @Tags network_element/config +// @Accept json +// @Produce json +// @Param neType path string true "NE Type" Enums(IMS,AMF,AUSF,UDM,SMF,PCF,NSSF,NRF,UPF,MME,CBC,OMC,SGWC) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Network Element Parameter Configuration Available Attribute Values List Specify Network Element Type All Unpaged +// @Description Network Element Parameter Configuration Available Attribute Values List Specify Network Element Type All Unpaged +// @Router /ne/config/list/{neType} [get] func (s *NeConfigController) ListByNeType(c *gin.Context) { language := ctx.AcceptLanguage(c) neType := c.Param("neType") @@ -171,6 +181,18 @@ func (s *NeConfigController) ListByNeType(c *gin.Context) { // 网元参数配置数据信息 // // GET /data +// +// @Tags network_element/config +// @Accept json +// @Produce json +// @Param neType query string true "NE Type" Enums(IMS,AMF,AUSF,UDM,SMF,PCF,NSSF,NRF,UPF,MME,CBC,OMC,SGWC) +// @Param neId query string true "NE ID" default(001) +// @Param paramName query string true "Available attributes, based on querying the list of attributes" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Network Element Parameter Configuration Data Information +// @Description Network Element Parameter Configuration Data Information +// @Router /ne/config/data [get] func (s *NeConfigController) DataInfo(c *gin.Context) { language := ctx.AcceptLanguage(c) var query struct { @@ -213,6 +235,16 @@ func (s *NeConfigController) DataInfo(c *gin.Context) { // 网元参数配置数据修改 // // PUT /data +// +// @Tags network_element/config +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Network element parameter configuration data modification +// @Description Network element parameter configuration data modification +// @Router /ne/config/data [put] func (s *NeConfigController) DataEdit(c *gin.Context) { language := ctx.AcceptLanguage(c) var body struct { @@ -255,6 +287,16 @@ func (s *NeConfigController) DataEdit(c *gin.Context) { // 网元参数配置数据新增(array) // // POST /data +// +// @Tags network_element/config +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Network element parameter configuration data added (array) +// @Description Network element parameter configuration data added (array) +// @Router /ne/config/data [post] func (s *NeConfigController) DataAdd(c *gin.Context) { language := ctx.AcceptLanguage(c) var body struct { @@ -300,6 +342,19 @@ func (s *NeConfigController) DataAdd(c *gin.Context) { // 网元参数配置数据删除(array) // // DELETE /data +// +// @Tags network_element/config +// @Accept json +// @Produce json +// @Param neType query string true "NE Type" Enums(IMS,AMF,AUSF,UDM,SMF,PCF,NSSF,NRF,UPF,MME,CBC,OMC,SGWC) +// @Param neId query string true "NE ID" default(001) +// @Param paramName query string true "Available attributes, based on querying the list of attributes" +// @Param loc query string true "Array index" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Network element parameter configuration data deletion (array) +// @Description Network element parameter configuration data deletion (array) +// @Router /ne/config/data [delete] func (s *NeConfigController) DataRemove(c *gin.Context) { language := ctx.AcceptLanguage(c) var query struct { diff --git a/src/modules/network_element/controller/ne_host.go b/src/modules/network_element/controller/ne_host.go index e4719bc2..4777574c 100644 --- a/src/modules/network_element/controller/ne_host.go +++ b/src/modules/network_element/controller/ne_host.go @@ -171,6 +171,16 @@ func (s *NeHostController) Remove(c *gin.Context) { // 网元主机测试连接 // // POST /test +// +// @Tags network_element/host +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Network element host test connection +// @Description Network element host test connection +// @Router /ne/host/test [post] func (s *NeHostController) Test(c *gin.Context) { language := ctx.AcceptLanguage(c) var body model.NeHost @@ -239,6 +249,16 @@ func (s *NeHostController) Test(c *gin.Context) { // 网元主机发送命令 // // POST /cmd +// +// @Tags network_element/host +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary The network element host sends the command +// @Description The network element host sends the command +// @Router /ne/host/cmd [post] func (s *NeHostController) Cmd(c *gin.Context) { language := ctx.AcceptLanguage(c) var body struct { @@ -311,6 +331,16 @@ func (s *NeHostController) Cmd(c *gin.Context) { // 网元主机SSH方式检查服务器环境 // // POST /checkBySSH +// +// @Tags network_element/host +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Checking the server environment by SSH method of Net Element Hosting +// @Description Checking the server environment by SSH method of Net Element Hosting +// @Router /ne/host/checkBySSH [post] func (s *NeHostController) CheckBySSH(c *gin.Context) { language := ctx.AcceptLanguage(c) var body model.NeHost @@ -402,6 +432,16 @@ func (s *NeHostController) CheckBySSH(c *gin.Context) { // 网元主机SSH方式授权免密发送 // // POST /authorizedBySSH +// +// @Tags network_element/host +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Network element host SSH method of authorization for password-free sending +// @Description Network element host SSH method of authorization for password-free sending +// @Router /ne/host/authorizedBySSH [post] func (s *NeHostController) AuthorizedBySSH(c *gin.Context) { language := ctx.AcceptLanguage(c) var body model.NeHost diff --git a/src/modules/network_element/controller/ne_info.go b/src/modules/network_element/controller/ne_info.go index f814eb1c..76900d89 100644 --- a/src/modules/network_element/controller/ne_info.go +++ b/src/modules/network_element/controller/ne_info.go @@ -39,6 +39,17 @@ var mutex sync.Mutex // 网元信息状态 // // GET /state +// +// @Tags network_element/info +// @Accept json +// @Produce json +// @Param neType query string true "NE Type" Enums(IMS,AMF,AUSF,UDM,SMF,PCF,NSSF,NRF,UPF,MME,CBC,OMC,SGWC) +// @Param neId query string true "NE ID" default(001) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Network element information state +// @Description Network element information state +// @Router /ne/info/state [get] func (s *NeInfoController) State(c *gin.Context) { language := ctx.AcceptLanguage(c) var querys struct { @@ -91,6 +102,17 @@ func (s *NeInfoController) State(c *gin.Context) { // 网元neType和neID查询 // // GET /byTypeAndID +// +// @Tags network_element/info +// @Accept json +// @Produce json +// @Param neType query string true "NE Type" Enums(IMS,AMF,AUSF,UDM,SMF,PCF,NSSF,NRF,UPF,MME,CBC,OMC,SGWC) +// @Param neId query string true "NE ID" default(001) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Network element neType and neID queries +// @Description Network element neType and neID queries +// @Router /ne/info/byTypeAndID [get] func (s *NeInfoController) NeTypeAndID(c *gin.Context) { language := ctx.AcceptLanguage(c) var querys struct { @@ -113,6 +135,15 @@ func (s *NeInfoController) NeTypeAndID(c *gin.Context) { // 网元信息列表全部无分页 // // GET /listAll +// +// @Tags network_element/info +// @Accept json +// @Produce json +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary The list of network element information is all unpaginated +// @Description The list of network element information is all unpaginated +// @Router /ne/info/listAll [get] func (s *NeInfoController) ListAll(c *gin.Context) { language := ctx.AcceptLanguage(c) var querys struct { @@ -232,6 +263,16 @@ func (s *NeInfoController) OAMFileWrite(c *gin.Context) { // 网元信息列表 // // GET /list +// +// @Tags network_element/info +// @Accept json +// @Produce json +// @Param bandStatus query boolean false "The result carries the state of the network element" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Network element information list +// @Description Network element information list +// @Router /ne/info/list [get] func (s *NeInfoController) List(c *gin.Context) { query := ctx.QueryMapString(c) bandStatus := false @@ -245,6 +286,16 @@ func (s *NeInfoController) List(c *gin.Context) { // 网元信息 // // GET /:infoId +// +// @Tags network_element/info +// @Accept json +// @Produce json +// @Param infoId path string true "list data id" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Network element information +// @Description Network element information +// @Router /ne/info/{infoId} [get] func (s *NeInfoController) Info(c *gin.Context) { language := ctx.AcceptLanguage(c) infoId := c.Param("infoId") @@ -266,6 +317,16 @@ func (s *NeInfoController) Info(c *gin.Context) { // 网元信息新增 // // POST / +// +// @Tags network_element/info +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Network element information addition +// @Description Network element information addition +// @Router /ne/info [post] func (s *NeInfoController) Add(c *gin.Context) { language := ctx.AcceptLanguage(c) var body model.NeInfo @@ -344,6 +405,16 @@ func (s *NeInfoController) Add(c *gin.Context) { // 网元信息修改 // // PUT / +// +// @Tags network_element/info +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Network element information modification +// @Description Network element information modification +// @Router /ne/info [put] func (s *NeInfoController) Edit(c *gin.Context) { language := ctx.AcceptLanguage(c) var body model.NeInfo @@ -442,6 +513,16 @@ func (s *NeInfoController) Edit(c *gin.Context) { // 网元信息删除 // // DELETE /:infoIds +// +// @Tags network_element/info +// @Accept json +// @Produce json +// @Param infoIds path string true "list data id, multiple separated by a , sign" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Network element information deletion +// @Description Network element information deletion +// @Router /ne/{infoIds} [delete] func (s *NeInfoController) Remove(c *gin.Context) { language := ctx.AcceptLanguage(c) infoIds := c.Param("infoIds") diff --git a/src/modules/network_element/controller/ne_license.go b/src/modules/network_element/controller/ne_license.go index 4ddf1ed5..05635b5d 100644 --- a/src/modules/network_element/controller/ne_license.go +++ b/src/modules/network_element/controller/ne_license.go @@ -3,14 +3,14 @@ package controller import ( "fmt" + "github.com/gin-gonic/gin" + "be.ems/src/framework/i18n" "be.ems/src/framework/utils/ctx" "be.ems/src/framework/vo/result" neFetchlink "be.ems/src/modules/network_element/fetch_link" "be.ems/src/modules/network_element/model" neService "be.ems/src/modules/network_element/service" - "github.com/gin-gonic/gin" - "github.com/gin-gonic/gin/binding" ) // 实例化控制层 NeLicenseController 结构体 @@ -30,6 +30,17 @@ type NeLicenseController struct { // 网元授权激活列表 // // GET /list +// +// @Tags network_element/license +// @Accept json +// @Produce json +// @Param neType query string true "NE Type" Enums(IMS,AMF,AUSF,UDM,SMF,PCF,NSSF,NRF,UPF,MME,CBC,OMC,SGWC) +// @Param neId query string true "NE ID" default(001) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Net Element License Activation List +// @Description Net Element License Activation List +// @Router /ne/license/list [get] func (s *NeLicenseController) List(c *gin.Context) { querys := ctx.QueryMap(c) data := s.neLicenseService.SelectPage(querys) @@ -69,6 +80,17 @@ func (s *NeLicenseController) Info(c *gin.Context) { // 网元neType和neID查询 // // GET /byTypeAndID +// +// @Tags network_element/license +// @Accept json +// @Produce json +// @Param neType query string true "NE Type" Enums(IMS,AMF,AUSF,UDM,SMF,PCF,NSSF,NRF,UPF,MME,CBC,OMC,SGWC) +// @Param neId query string true "NE ID" default(001) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Network element neType and neID queries +// @Description Network element neType and neID queries +// @Router /ne/license/byTypeAndID [get] func (s *NeLicenseController) NeTypeAndID(c *gin.Context) { language := ctx.AcceptLanguage(c) var querys struct { @@ -93,6 +115,17 @@ func (s *NeLicenseController) NeTypeAndID(c *gin.Context) { // 网元授权激活授权申请码 // // GET /code +// +// @Tags network_element/license +// @Accept json +// @Produce json +// @Param neType query string true "NE Type" Enums(IMS,AMF,AUSF,UDM,SMF,PCF,NSSF,NRF,UPF,MME,CBC,OMC,SGWC) +// @Param neId query string true "NE ID" default(001) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Network Element License Activation License Application Code +// @Description Network Element License Activation License Application Code +// @Router /ne/license/code [get] func (s *NeLicenseController) Code(c *gin.Context) { language := ctx.AcceptLanguage(c) var querys struct { @@ -131,10 +164,20 @@ func (s *NeLicenseController) Code(c *gin.Context) { // 网元授权激活授权文件替换 // // POST /change +// +// @Tags network_element/license +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Network element authorization activation status +// @Description Network element authorization activation status +// @Router /ne/license/change [post] func (s *NeLicenseController) Change(c *gin.Context) { language := ctx.AcceptLanguage(c) var body model.NeLicense - err := c.ShouldBindBodyWith(&body, binding.JSON) + err := c.ShouldBindBodyWithJSON(&body) if err != nil || body.LicensePath == "" { c.JSON(400, result.CodeMsg(400, i18n.TKey(language, "app.common.err400"))) return @@ -172,6 +215,17 @@ func (s *NeLicenseController) Change(c *gin.Context) { // 网元授权激活状态 // // GET /state +// +// @Tags network_element/license +// @Accept json +// @Produce json +// @Param neType query string true "NE Type" Enums(IMS,AMF,AUSF,UDM,SMF,PCF,NSSF,NRF,UPF,MME,CBC,OMC,SGWC) +// @Param neId query string true "NE ID" default(001) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Network element authorization activation status +// @Description Network element authorization activation status +// @Router /ne/license/state [get] func (s *NeLicenseController) State(c *gin.Context) { language := ctx.AcceptLanguage(c) var querys struct { diff --git a/src/modules/network_element/controller/ne_software.go b/src/modules/network_element/controller/ne_software.go index 25c05803..cfbd3999 100644 --- a/src/modules/network_element/controller/ne_software.go +++ b/src/modules/network_element/controller/ne_software.go @@ -28,6 +28,17 @@ type NeSoftwareController struct { // 网元软件包列表 // // GET /list +// +// @Tags network_element/software +// @Accept json +// @Produce json +// @Param neType query string true "NE Type" Enums(IMS,AMF,AUSF,UDM,SMF,PCF,NSSF,NRF,UPF,MME,CBC,OMC,SGWC) +// @Param neId query string true "NE ID" default(001) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary List of Network Element Software Packages +// @Description List of Network Element Software Packages +// @Router /ne/software/list [get] func (s *NeSoftwareController) List(c *gin.Context) { querys := ctx.QueryMap(c) data := s.neSoftwareService.SelectPage(querys) @@ -164,6 +175,16 @@ func (s *NeSoftwareController) Remove(c *gin.Context) { // 网元软件包设为网元新版本 // // POST /newNeVersion +// +// @Tags network_element/software +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Net Element package set to Net Element new version +// @Description Net Element package set to Net Element new version +// @Router /ne/software/newNeVersion [post] func (s *NeSoftwareController) NewNeVersion(c *gin.Context) { language := ctx.AcceptLanguage(c) var body model.NeSoftware diff --git a/src/modules/network_element/controller/ne_version.go b/src/modules/network_element/controller/ne_version.go index 366c9891..8f73ed69 100644 --- a/src/modules/network_element/controller/ne_version.go +++ b/src/modules/network_element/controller/ne_version.go @@ -55,6 +55,16 @@ func (s *NeVersionController) Info(c *gin.Context) { // 网元版本操作 // // POST /operate +// +// @Tags network_element/version +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Network element version operation +// @Description Network element version operation +// @Router /ne/version/operate [post] func (s *NeVersionController) Operate(c *gin.Context) { language := ctx.AcceptLanguage(c) var body struct { diff --git a/src/modules/system/controller/sys_config.go b/src/modules/system/controller/sys_config.go index 5809dca6..b1b8c0db 100644 --- a/src/modules/system/controller/sys_config.go +++ b/src/modules/system/controller/sys_config.go @@ -34,6 +34,18 @@ type SysConfigController struct { // 参数配置列表 // // GET /list +// +// @Tags system/config +// @Accept json +// @Produce json +// @Param configName query string false "configName" +// @Param pageNum query number true "pageNum" default(1) +// @Param pageSize query number true "pageSize" default(10) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Config Information List +// @Description Config Information List +// @Router /system/config/list [get] func (s *SysConfigController) List(c *gin.Context) { language := ctx.AcceptLanguage(c) querys := ctx.QueryMap(c) diff --git a/src/modules/system/controller/sys_dept.go b/src/modules/system/controller/sys_dept.go index 4ddfc18f..97fc26b6 100644 --- a/src/modules/system/controller/sys_dept.go +++ b/src/modules/system/controller/sys_dept.go @@ -31,6 +31,19 @@ type SysDeptController struct { // 部门列表 // // GET /list +// +// @Tags system/dept +// @Accept json +// @Produce json +// @Param deptId query string false "deptId" +// @Param parentId query string false "parentId" +// @Param deptName query string false "deptName" +// @Param status query string false "status" Enums(0, 1) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Dept Information List +// @Description Dept Information List +// @Router /system/dept/list [get] func (s *SysDeptController) List(c *gin.Context) { language := ctx.AcceptLanguage(c) var querys struct { diff --git a/src/modules/system/controller/sys_dict_data.go b/src/modules/system/controller/sys_dict_data.go index c3eec5f3..b454cecf 100644 --- a/src/modules/system/controller/sys_dict_data.go +++ b/src/modules/system/controller/sys_dict_data.go @@ -35,6 +35,18 @@ type SysDictDataController struct { // 字典数据列表 // // GET /list +// +// @Tags system/dict/data +// @Accept json +// @Produce json +// @Param dictLabel query string false "dictLabel" +// @Param pageNum query number true "pageNum" default(1) +// @Param pageSize query number true "pageSize" default(10) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Dictionary Data List +// @Description Dictionary Data List +// @Router /system/dict/data/list [get] func (s *SysDictDataController) List(c *gin.Context) { language := ctx.AcceptLanguage(c) querys := ctx.QueryMap(c) diff --git a/src/modules/system/controller/sys_dict_type.go b/src/modules/system/controller/sys_dict_type.go index 939cd3e3..7fbad7c1 100644 --- a/src/modules/system/controller/sys_dict_type.go +++ b/src/modules/system/controller/sys_dict_type.go @@ -34,6 +34,18 @@ type SysDictTypeController struct { // 字典类型列表 // // GET /list +// +// @Tags system/dict/type +// @Accept json +// @Produce json +// @Param dictName query string false "dictName" +// @Param pageNum query number true "pageNum" default(1) +// @Param pageSize query number true "pageSize" default(10) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Dictionary Type List +// @Description Dictionary Type List +// @Router /system/dict/type/list [get] func (s *SysDictTypeController) List(c *gin.Context) { language := ctx.AcceptLanguage(c) querys := ctx.QueryMap(c) diff --git a/src/modules/system/controller/sys_log_login.go b/src/modules/system/controller/sys_log_login.go index 0444d327..ea42d1eb 100644 --- a/src/modules/system/controller/sys_log_login.go +++ b/src/modules/system/controller/sys_log_login.go @@ -37,6 +37,18 @@ type SysLogLoginController struct { // 系统登录日志列表 // // GET /list +// +// @Tags system/log/login +// @Accept json +// @Produce json +// @Param userName query string false "userName" +// @Param pageNum query number true "pageNum" default(1) +// @Param pageSize query number true "pageSize" default(10) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary System Login Log List +// @Description System Login Log List +// @Router /system/log/login/list [get] func (s *SysLogLoginController) List(c *gin.Context) { querys := ctx.QueryMap(c) dataScopeSQL := ctx.LoginUserToDataScopeSQL(c, "d", "u") diff --git a/src/modules/system/controller/sys_log_operate.go b/src/modules/system/controller/sys_log_operate.go index e5cc4a3e..4755dbf9 100644 --- a/src/modules/system/controller/sys_log_operate.go +++ b/src/modules/system/controller/sys_log_operate.go @@ -34,6 +34,18 @@ type SysLogOperateController struct { // 操作日志列表 // // GET /list +// +// @Tags system/log/operate +// @Accept json +// @Produce json +// @Param title query string false "title" +// @Param pageNum query number true "pageNum" default(1) +// @Param pageSize query number true "pageSize" default(10) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary System Operation Log List +// @Description System Operation Log List +// @Router /system/log/operate/list [get] func (s *SysLogOperateController) List(c *gin.Context) { language := ctx.AcceptLanguage(c) querys := ctx.QueryMap(c) diff --git a/src/modules/system/controller/sys_menu.go b/src/modules/system/controller/sys_menu.go index 8454e7d4..0644b8a2 100644 --- a/src/modules/system/controller/sys_menu.go +++ b/src/modules/system/controller/sys_menu.go @@ -32,6 +32,17 @@ type SysMenuController struct { // 菜单列表 // // GET /list +// +// @Tags system/menu +// @Accept json +// @Produce json +// @Param menuName query string false "menuName" +// @Param status query string false "status" Enums(0, 1) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Menu Information List +// @Description Menu Information List +// @Router /system/menu/list [get] func (s *SysMenuController) List(c *gin.Context) { language := ctx.AcceptLanguage(c) query := model.SysMenu{} diff --git a/src/modules/system/controller/sys_post.go b/src/modules/system/controller/sys_post.go index 26a2822d..8a75bfac 100644 --- a/src/modules/system/controller/sys_post.go +++ b/src/modules/system/controller/sys_post.go @@ -35,6 +35,18 @@ type SysPostController struct { // 岗位列表 // // GET /list +// +// @Tags system/post +// @Accept json +// @Produce json +// @Param postName query string false "postName" +// @Param pageNum query number true "pageNum" default(1) +// @Param pageSize query number true "pageSize" default(10) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Post Information List +// @Description Post Information List +// @Router /system/post/list [get] func (s *SysPostController) List(c *gin.Context) { language := ctx.AcceptLanguage(c) querys := ctx.QueryMap(c) diff --git a/src/modules/system/controller/sys_profile.go b/src/modules/system/controller/sys_profile.go index 34626a2c..8465f050 100644 --- a/src/modules/system/controller/sys_profile.go +++ b/src/modules/system/controller/sys_profile.go @@ -44,6 +44,15 @@ type SysProfileController struct { // 个人信息 // // GET / +// +// @Tags system/user/profile +// @Accept json +// @Produce json +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Personal Information +// @Description Personal Information +// @Router /system/user/profile [get] func (s *SysProfileController) Info(c *gin.Context) { language := ctx.AcceptLanguage(c) loginUser, err := ctx.LoginUser(c) @@ -86,6 +95,16 @@ func (s *SysProfileController) Info(c *gin.Context) { // 个人信息修改 // // PUT / +// +// @Tags system/user/profile +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Personal Information Modification +// @Description Personal Information Modification +// @Router /system/user/profile [put] func (s *SysProfileController) UpdateProfile(c *gin.Context) { language := ctx.AcceptLanguage(c) var body struct { @@ -183,6 +202,16 @@ func (s *SysProfileController) UpdateProfile(c *gin.Context) { // 个人重置密码 // // PUT /updatePwd +// +// @Tags system/user/profile +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Personal Reset Password +// @Description Personal Reset Password +// @Router /system/user/profile/updatePwd [put] func (s *SysProfileController) UpdatePwd(c *gin.Context) { language := ctx.AcceptLanguage(c) var body struct { @@ -249,6 +278,16 @@ func (s *SysProfileController) UpdatePwd(c *gin.Context) { // 个人头像上传 // // POST /avatar +// +// @Tags system/user/profile +// @Accept multipart/form-data +// @Produce json +// @Param file formData file true "The file to upload." +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Personal avatar upload +// @Description Personal avatar upload +// @Router /system/user/profile/avatar [post] func (s *SysProfileController) Avatar(c *gin.Context) { language := ctx.AcceptLanguage(c) formFile, err := c.FormFile("file") diff --git a/src/modules/system/controller/sys_role.go b/src/modules/system/controller/sys_role.go index c291c3fe..0c285c14 100644 --- a/src/modules/system/controller/sys_role.go +++ b/src/modules/system/controller/sys_role.go @@ -41,6 +41,18 @@ type SysRoleController struct { // 角色列表 // // GET /list +// +// @Tags system/role +// @Accept json +// @Produce json +// @Param roleName query string false "roleName" +// @Param pageNum query number true "pageNum" default(1) +// @Param pageSize query number true "pageSize" default(10) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Role Information List +// @Description Role Information List +// @Router /system/role/list [get] func (s *SysRoleController) List(c *gin.Context) { language := ctx.AcceptLanguage(c) querys := ctx.QueryMap(c) diff --git a/src/modules/system/controller/sys_user.go b/src/modules/system/controller/sys_user.go index 34f6834a..0a0aeee5 100644 --- a/src/modules/system/controller/sys_user.go +++ b/src/modules/system/controller/sys_user.go @@ -50,6 +50,18 @@ type SysUserController struct { // 用户信息列表 // // GET /list +// +// @Tags system/user +// @Accept json +// @Produce json +// @Param userName query string false "userName" +// @Param pageNum query number true "pageNum" default(1) +// @Param pageSize query number true "pageSize" default(10) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary User Information List +// @Description User Information List +// @Router /system/user/list [get] func (s *SysUserController) List(c *gin.Context) { querys := ctx.QueryMap(c) dataScopeSQL := ctx.LoginUserToDataScopeSQL(c, "d", "u") diff --git a/src/modules/tool/controller/iperf.go b/src/modules/tool/controller/iperf.go index c6849748..f21f4912 100644 --- a/src/modules/tool/controller/iperf.go +++ b/src/modules/tool/controller/iperf.go @@ -34,6 +34,18 @@ type IPerfController struct { // iperf 版本信息 // // GET /v +// +// @Tags tool/iperf +// @Accept json +// @Produce json +// @Param neType query string true "NE Type" Enums(IMS,AMF,AUSF,UDM,SMF,PCF,NSSF,NRF,UPF,MME,CBC,OMC,SGWC) +// @Param neId query string true "NE ID" default(001) +// @Param version query string true "Version" Enums(V2, V3) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary iperf version information +// @Description iperf version information +// @Router /tool/iperf/v [get] func (s *IPerfController) Version(c *gin.Context) { language := ctx.AcceptLanguage(c) var query struct { @@ -58,6 +70,16 @@ func (s *IPerfController) Version(c *gin.Context) { // iperf 软件安装 // // POST /i +// +// @Tags tool/iperf +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary iperf software installation +// @Description iperf software installation +// @Router /tool/iperf/i [post] func (s *IPerfController) Install(c *gin.Context) { language := ctx.AcceptLanguage(c) var body struct { @@ -80,6 +102,20 @@ func (s *IPerfController) Install(c *gin.Context) { // iperf 软件运行 // // GET /run +// +// @Tags tool/iperf +// @Accept json +// @Produce json +// @Param neType query string true "NE Type" Enums(IMS,AMF,AUSF,UDM,SMF,PCF,NSSF,NRF,UPF,MME,CBC,OMC,SGWC) +// @Param neId query string true "NE ID" default(001) +// @Param cols query number false "Terminal line characters" default(120) +// @Param rows query number false "Terminal display lines" default(40) +// @Param access_token query string true "Authorization" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary (ws://) iperf software running +// @Description (ws://) iperf software running +// @Router /tool/iperf/run [get] func (s *IPerfController) Run(c *gin.Context) { language := ctx.AcceptLanguage(c) var query struct { diff --git a/src/modules/tool/controller/ping.go b/src/modules/tool/controller/ping.go index aa70e036..17bf57a2 100644 --- a/src/modules/tool/controller/ping.go +++ b/src/modules/tool/controller/ping.go @@ -34,6 +34,16 @@ type PingController struct { // ping 基本信息运行 // // POST / +// +// @Tags tool/ping +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Ping for Basic Information Running +// @Description Ping for Basic Information Running +// @Router /tool/ping [post] func (s *PingController) Statistics(c *gin.Context) { language := ctx.AcceptLanguage(c) var body model.Ping @@ -53,6 +63,16 @@ func (s *PingController) Statistics(c *gin.Context) { // ping 传统UNIX运行 // // GET / +// +// @Tags tool/ping +// @Accept json +// @Produce json +// @Param access_token query string true "Authorization" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary (ws://) Ping for Local UNIX running +// @Description (ws://) Ping for Local UNIX running +// @Router /tool/ping [get] func (s *PingController) StatisticsOn(c *gin.Context) { language := ctx.AcceptLanguage(c) // 登录用户信息 @@ -84,6 +104,17 @@ func (s *PingController) StatisticsOn(c *gin.Context) { // ping 网元端版本信息 // // GET /v +// +// @Tags tool/ping +// @Accept json +// @Produce json +// @Param neType query string true "NE Type" Enums(IMS,AMF,AUSF,UDM,SMF,PCF,NSSF,NRF,UPF,MME,CBC,OMC,SGWC) +// @Param neId query string true "NE ID" default(001) +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Ping for version information on the network element side +// @Description Ping for version information on the network element side +// @Router /tool/ping/v [get] func (s *PingController) Version(c *gin.Context) { language := ctx.AcceptLanguage(c) var query struct { @@ -106,6 +137,20 @@ func (s *PingController) Version(c *gin.Context) { // ping 网元端UNIX运行 // // GET /run +// +// @Tags tool/ping +// @Accept json +// @Produce json +// @Param neType query string true "NE Type" Enums(IMS,AMF,AUSF,UDM,SMF,PCF,NSSF,NRF,UPF,MME,CBC,OMC,SGWC) +// @Param neId query string true "NE ID" default(001) +// @Param cols query number false "Terminal line characters" default(120) +// @Param rows query number false "Terminal display lines" default(40) +// @Param access_token query string true "Authorization" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary (ws://) Ping for UNIX runs on the network element side +// @Description (ws://) Ping for UNIX runs on the network element side +// @Router /tool/ping/run [get] func (s *PingController) Run(c *gin.Context) { language := ctx.AcceptLanguage(c) var query struct { diff --git a/src/modules/trace/controller/tcpdump.go b/src/modules/trace/controller/tcpdump.go index 0133f067..0700e249 100644 --- a/src/modules/trace/controller/tcpdump.go +++ b/src/modules/trace/controller/tcpdump.go @@ -4,16 +4,14 @@ import ( "be.ems/src/framework/i18n" "be.ems/src/framework/utils/ctx" "be.ems/src/framework/vo/result" - neService "be.ems/src/modules/network_element/service" traceService "be.ems/src/modules/trace/service" + "github.com/gin-gonic/gin" - "github.com/gin-gonic/gin/binding" ) // 实例化控制层 TCPdumpController 结构体 var NewTCPdump = &TCPdumpController{ tcpdumpService: traceService.NewTCPdump, - neInfoService: neService.NewNeInfo, } // 信令抓包 @@ -21,12 +19,21 @@ var NewTCPdump = &TCPdumpController{ // PATH /tcpdump type TCPdumpController struct { tcpdumpService *traceService.TCPdump // 信令抓包服务 - neInfoService *neService.NeInfo // 网元信息服务 } // 网元抓包PACP 开始 // // POST /start +// +// @Tags trace/tcpdump +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Network Element Capture Packet PACP Start +// @Description Network Element Capture Packet PACP Start +// @Router /trace/tcpdump/start [post] func (s *TCPdumpController) DumpStart(c *gin.Context) { language := ctx.AcceptLanguage(c) var body struct { @@ -34,7 +41,7 @@ func (s *TCPdumpController) DumpStart(c *gin.Context) { NeId string `json:"neId" binding:"required"` // 网元ID Cmd string `json:"cmd" binding:"required"` // 命令 "-n -s 0 -v" } - err := c.ShouldBindBodyWith(&body, binding.JSON) + err := c.ShouldBindBodyWithJSON(&body) if err != nil { c.JSON(400, result.CodeMsg(400, i18n.TKey(language, "app.common.err400"))) return @@ -51,6 +58,16 @@ func (s *TCPdumpController) DumpStart(c *gin.Context) { // 网元抓包PACP 结束 // // POST /stop +// +// @Tags trace/tcpdump +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary Network Element Capture Packet PACP Stop +// @Description Network Element Capture Packet PACP Stop +// @Router /trace/tcpdump/stop [post] func (s *TCPdumpController) DumpStop(c *gin.Context) { language := ctx.AcceptLanguage(c) var body struct { @@ -58,7 +75,7 @@ func (s *TCPdumpController) DumpStop(c *gin.Context) { NeId string `json:"neId" binding:"required"` // 网元ID TaskCode string `json:"taskCode" binding:"required"` // 任务码,停止任务并查看日志信息 } - err := c.ShouldBindBodyWith(&body, binding.JSON) + err := c.ShouldBindBodyWithJSON(&body) if err != nil { c.JSON(400, result.CodeMsg(400, i18n.TKey(language, "app.common.err400"))) return @@ -75,6 +92,16 @@ func (s *TCPdumpController) DumpStop(c *gin.Context) { // UPF标准版内部抓包 // // POST /upf +// +// @Tags trace/tcpdump +// @Accept json +// @Produce json +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" +// @Security ApiKeyAuth +// @Summary UPF Standard Edition Internal Grab Bag +// @Description UPF Standard Edition Internal Grab Bag +// @Router /trace/tcpdump/upf [post] func (s *TCPdumpController) UPFTrace(c *gin.Context) { language := ctx.AcceptLanguage(c) var body struct { @@ -82,7 +109,7 @@ func (s *TCPdumpController) UPFTrace(c *gin.Context) { NeId string `json:"neId" binding:"required"` // 网元ID Cmd string `json:"cmd" binding:"required"` // 命令 } - err := c.ShouldBindBodyWith(&body, binding.JSON) + err := c.ShouldBindBodyWithJSON(&body) if err != nil { c.JSON(400, result.CodeMsg(400, i18n.TKey(language, "app.common.err400"))) return diff --git a/src/modules/ws/controller/ws.go b/src/modules/ws/controller/ws.go index b0aece83..ece900d7 100644 --- a/src/modules/ws/controller/ws.go +++ b/src/modules/ws/controller/ws.go @@ -32,6 +32,15 @@ type WSController struct { // WS 通用 // // GET /?subGroupIDs=0 +// +// @Tags ws +// @Accept json +// @Produce json +// @Param subGroupID query string false "Subscribe to message groups, multiple separated by commas" +// @Success 200 {object} object "Response Results" +// @Summary (ws://) Generic +// @Description (ws://) Generic +// @Router /ws [get] func (s *WSController) WS(c *gin.Context) { language := ctx.AcceptLanguage(c) diff --git a/src/modules/ws/controller/ws_view.go b/src/modules/ws/controller/ws_view.go index 2b2594d2..e910b130 100644 --- a/src/modules/ws/controller/ws_view.go +++ b/src/modules/ws/controller/ws_view.go @@ -17,6 +17,19 @@ import ( // ShellView 终端交互式文件内容查看 // // GET /view +// +// @Tags ws +// @Accept json +// @Produce json +// @Param neType query string true "NE Type" Enums(IMS,AMF,AUSF,UDM,SMF,PCF,NSSF,NRF,UPF,MME,CBC,OMC,SGWC) +// @Param neId query string true "NE ID" default(001) +// @Param cols query number false "Terminal line characters" default(120) +// @Param rows query number false "Terminal display lines" default(40) +// @Param access_token query string true "Authorization" +// @Success 200 {object} object "Response Results" +// @Summary (ws://) Terminal Interactive File Content Viewing +// @Description (ws://) Terminal Interactive File Content Viewing +// @Router /ws/view [get] func (s *WSController) ShellView(c *gin.Context) { language := ctx.AcceptLanguage(c) var query struct { diff --git a/swagger2docs/docs.go b/swagger2docs/docs.go index 1a54e629..dab55c16 100644 --- a/swagger2docs/docs.go +++ b/swagger2docs/docs.go @@ -30,10 +30,37 @@ const docTemplate = `{ "summary": "Root Route", "responses": { "200": { - "description": "data", + "description": "Response Results", "schema": { - "type": "object", - "additionalProperties": true + "type": "object" + } + } + } + } + }, + "/captchaImage": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Get CAPTCHA", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "common" + ], + "summary": "Get CAPTCHA", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" } } } @@ -72,7 +99,7 @@ const docTemplate = `{ "combo" ], "type": "string", - "description": "Type oneof=node edge combo", + "description": "Type", "name": "type", "in": "query", "required": true @@ -80,10 +107,9 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "data", + "description": "Response Results", "schema": { - "type": "object", - "additionalProperties": true + "type": "object" } } } @@ -109,28 +135,54 @@ const docTemplate = `{ "summary": "Saving Relationship Diagram Data", "parameters": [ { - "description": "{group:'',data:{nodes:[],edges:[],combos:[]}}", + "description": "Request Param", "name": "data", "in": "body", "required": true, "schema": { - "type": "object", - "additionalProperties": true + "type": "object" } } ], "responses": { "200": { - "description": "data", + "description": "Response Results", "schema": { - "type": "object", - "additionalProperties": true + "type": "object" } } } } }, - "/chart/graph/:group": { + "/chart/graph/groups": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Get relationship graph group name", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "chart" + ], + "summary": "Get relationship graph group name", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/chart/graph/{group}": { "delete": { "security": [ { @@ -159,23 +211,22 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "data", + "description": "Response Results", "schema": { - "type": "object", - "additionalProperties": true + "type": "object" } } } } }, - "/chart/graph/groups": { - "get": { + "/file/chunkCheck": { + "post": { "security": [ { "ApiKeyAuth": [] } ], - "description": "Get relationship graph group name", + "description": "Slice file checking", "consumes": [ "application/json" ], @@ -183,15 +234,477 @@ const docTemplate = `{ "application/json" ], "tags": [ - "chart" + "common/file" + ], + "summary": "Slice file checking", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } ], - "summary": "Get relationship graph group name", "responses": { "200": { - "description": "data", + "description": "Response Results", "schema": { - "type": "object", - "additionalProperties": true + "type": "object" + } + } + } + } + }, + "/file/chunkMerge": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Slice file merge", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "common/file" + ], + "summary": "Slice file merge", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/file/chunkUpload": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Sliced file upload", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "common/file" + ], + "summary": "Sliced file upload", + "parameters": [ + { + "type": "file", + "description": "The file to upload.", + "name": "file", + "in": "formData", + "required": true + }, + { + "type": "string", + "description": "Slice Marker", + "name": "identifier", + "in": "formData", + "required": true + }, + { + "type": "string", + "description": "Slice No.", + "name": "index", + "in": "formData", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/file/upload": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Upload a file", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "common/file" + ], + "summary": "Upload a file", + "parameters": [ + { + "type": "file", + "description": "The file to upload.", + "name": "file", + "in": "formData", + "required": true + }, + { + "enum": [ + "default", + "common" + ], + "type": "string", + "description": "subpath, eg: default or common", + "name": "subPath", + "in": "formData", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/getInfo": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Login User Information", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "common/authorization" + ], + "summary": "Login User Information", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/getRouters": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Login User Routing Information", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "common/authorization" + ], + "summary": "Login User Routing Information", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/login": { + "post": { + "description": "System Login", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "common/authorization" + ], + "summary": "System Login", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/logout": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "System Logout", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "common/authorization" + ], + "summary": "System Logout", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/monitor/cache": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Cache Service Information", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "monitor/cache" + ], + "summary": "Cache Service Information", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/monitor/load": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Resource monitoring information loading", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "monitor" + ], + "summary": "Resource monitoring information loading", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/monitor/online/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "System Online User List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "monitor/online" + ], + "summary": "System Online User List", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/monitor/system-info": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Server Information", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "monitor" + ], + "summary": "Server Information", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/action/files": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "List of files on the network element side", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/action" + ], + "summary": "List of files on the network element side", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/action/pullDirZip": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Get directories compressed to ZIP from the network element to the local area", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/action" + ], + "summary": "Get directories compressed to ZIP from the network element to the local area", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/action/pullFile": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Getting files from the network element to the local", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/action" + ], + "summary": "Getting files from the network element to the local", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" } } } @@ -212,15 +725,4848 @@ const docTemplate = `{ "application/json" ], "tags": [ - "network_element" + "network_element/action" ], "summary": "Sending files from local to network elements", "responses": { "200": { - "description": "data", + "description": "Response Results", "schema": { - "type": "object", - "additionalProperties": {} + "type": "object" + } + } + } + } + }, + "/ne/action/service": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element service operation", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/action" + ], + "summary": "Network element service operation", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/action/viewFile": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Viewing the contents of a file on the network element side", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/action" + ], + "summary": "Viewing the contents of a file on the network element side", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/config/data": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network Element Parameter Configuration Data Information", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/config" + ], + "summary": "Network Element Parameter Configuration Data Information", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Available attributes, based on querying the list of attributes", + "name": "paramName", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + }, + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element parameter configuration data modification", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/config" + ], + "summary": "Network element parameter configuration data modification", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + }, + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element parameter configuration data added (array)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/config" + ], + "summary": "Network element parameter configuration data added (array)", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + }, + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element parameter configuration data deletion (array)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/config" + ], + "summary": "Network element parameter configuration data deletion (array)", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Available attributes, based on querying the list of attributes", + "name": "paramName", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Array index", + "name": "loc", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/config/list/{neType}": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network Element Parameter Configuration Available Attribute Values List Specify Network Element Type All Unpaged", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/config" + ], + "summary": "Network Element Parameter Configuration Available Attribute Values List Specify Network Element Type All Unpaged", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/host/authorizedBySSH": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element host SSH method of authorization for password-free sending", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/host" + ], + "summary": "Network element host SSH method of authorization for password-free sending", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/host/checkBySSH": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Checking the server environment by SSH method of Net Element Hosting", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/host" + ], + "summary": "Checking the server environment by SSH method of Net Element Hosting", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/host/cmd": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "The network element host sends the command", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/host" + ], + "summary": "The network element host sends the command", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/host/test": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element host test connection", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/host" + ], + "summary": "Network element host test connection", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/info": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element information modification", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/info" + ], + "summary": "Network element information modification", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + }, + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element information addition", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/info" + ], + "summary": "Network element information addition", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/info/byTypeAndID": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element neType and neID queries", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/info" + ], + "summary": "Network element neType and neID queries", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/info/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element information list", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/info" + ], + "summary": "Network element information list", + "parameters": [ + { + "type": "boolean", + "description": "The result carries the state of the network element", + "name": "bandStatus", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/info/listAll": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "The list of network element information is all unpaginated", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/info" + ], + "summary": "The list of network element information is all unpaginated", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/info/state": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element information state", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/info" + ], + "summary": "Network element information state", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/info/{infoId}": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element information", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/info" + ], + "summary": "Network element information", + "parameters": [ + { + "type": "string", + "description": "list data id", + "name": "infoId", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/license/byTypeAndID": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element neType and neID queries", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/license" + ], + "summary": "Network element neType and neID queries", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/license/change": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element authorization activation status", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/license" + ], + "summary": "Network element authorization activation status", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/license/code": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network Element License Activation License Application Code", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/license" + ], + "summary": "Network Element License Activation License Application Code", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/license/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Net Element License Activation List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/license" + ], + "summary": "Net Element License Activation List", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/license/state": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element authorization activation status", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/license" + ], + "summary": "Network element authorization activation status", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/software/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "List of Network Element Software Packages", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/software" + ], + "summary": "List of Network Element Software Packages", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/software/newNeVersion": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Net Element package set to Net Element new version", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/software" + ], + "summary": "Net Element package set to Net Element new version", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/version/operate": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element version operation", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/version" + ], + "summary": "Network element version operation", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/{infoIds}": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element information deletion", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/info" + ], + "summary": "Network element information deletion", + "parameters": [ + { + "type": "string", + "description": "list data id, multiple separated by a , sign", + "name": "infoIds", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/amf/nb/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Access Base Station Information List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/amf" + ], + "summary": "Access Base Station Information List", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Base Station ID", + "name": "id", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/amf/nb/list-cfg": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Access to the base station status information list", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/amf" + ], + "summary": "Access to the base station status information list", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/amf/ue/export": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UE Session List Export", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/amf" + ], + "summary": "UE Session List Export", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/amf/ue/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UE Session List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/amf" + ], + "summary": "UE Session List", + "parameters": [ + { + "enum": [ + "AMF" + ], + "type": "string", + "description": "NE Type only AMF", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "imsi", + "name": "imsi", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/amf/ue/{ueIds}": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UE Session Deletion", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/amf" + ], + "summary": "UE Session Deletion", + "parameters": [ + { + "type": "string", + "description": "list data id, multiple separated by a , sign", + "name": "ueIds", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/ims/cdr/export": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "CDR Session List Export", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/ims" + ], + "summary": "CDR Session List Export", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/ims/cdr/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "CDR Session List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/ims" + ], + "summary": "CDR Session List", + "parameters": [ + { + "enum": [ + "IMS" + ], + "type": "string", + "description": "NE Type only IMS", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "callerParty", + "name": "callerParty", + "in": "query" + }, + { + "type": "string", + "description": "calledParty", + "name": "calledParty", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/ims/cdr/{cdrIds}": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "CDR Session Delete", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/ims" + ], + "summary": "CDR Session Delete", + "parameters": [ + { + "type": "string", + "description": "list data id, multiple separated by a , sign", + "name": "cdrIds", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/ims/session/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Online session user list information", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/ims" + ], + "summary": "Online session user list information", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "imsi", + "name": "imsi", + "in": "query" + }, + { + "type": "string", + "description": "msisdn", + "name": "msisdn", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/ims/session/num": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Number of online session users", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/ims" + ], + "summary": "Number of online session users", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/kpi/data": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Access to statistical data", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/kpi" + ], + "summary": "Access to statistical data", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 1737453599059, + "description": "Start time (timestamped milliseconds)", + "name": "startTime", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 1737453599059, + "description": "End time (timestamped milliseconds)", + "name": "endTime", + "in": "query", + "required": true + }, + { + "enum": [ + 5, + 10, + 15, + 30, + 60, + 300, + 600, + 900, + 1800, + 3600 + ], + "type": "number", + "description": "interval", + "name": "interval", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/kpi/title": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Get Statistical Headings", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/kpi" + ], + "summary": "Get Statistical Headings", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/mme/nb/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Access Base Station Information List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/mme" + ], + "summary": "Access Base Station Information List", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Base Station ID", + "name": "id", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/mme/nb/list-cfg": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Access to the base station status information list", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/mme" + ], + "summary": "Access to the base station status information list", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/mme/ue/export": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UE Session List Export", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/mme" + ], + "summary": "UE Session List Export", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/mme/ue/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UE Session List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/mme" + ], + "summary": "UE Session List", + "parameters": [ + { + "enum": [ + "MME" + ], + "type": "string", + "description": "NE Type only MME", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "imsi", + "name": "imsi", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/mme/ue/{ueIds}": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UE Session Deletion", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/mme" + ], + "summary": "UE Session Deletion", + "parameters": [ + { + "type": "string", + "description": "list data id, multiple separated by a , sign", + "name": "ueIds", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/sgwc/cdr/export": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "CDR Session List Export", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/sgwc" + ], + "summary": "CDR Session List Export", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/sgwc/cdr/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "CDR Session List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/sgwc" + ], + "summary": "CDR Session List", + "parameters": [ + { + "enum": [ + "SGWC" + ], + "type": "string", + "description": "NE Type only SGWC", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "imsi", + "name": "imsi", + "in": "query" + }, + { + "type": "string", + "description": "msisdn", + "name": "msisdn", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/sgwc/cdr/{cdrIds}": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "CDR Session Delete", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/sgwc" + ], + "summary": "CDR Session Delete", + "parameters": [ + { + "type": "string", + "description": "list data id, multiple separated by a , sign", + "name": "cdrIds", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/smf/cdr/export": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "CDR Session List Export", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/smf" + ], + "summary": "CDR Session List Export", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/smf/cdr/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "CDR Session List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/smf" + ], + "summary": "CDR Session List", + "parameters": [ + { + "enum": [ + "SMF" + ], + "type": "string", + "description": "NE Type only SMF", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "subscriberID is IMSI", + "name": "subscriberID", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/smf/cdr/{cdrIds}": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "CDR Session Delete", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/smf" + ], + "summary": "CDR Session Delete", + "parameters": [ + { + "type": "string", + "description": "list data id, multiple separated by a , sign", + "name": "cdrIds", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/smf/session/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Online session user list information", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/smf" + ], + "summary": "Online session user list information", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "imsi", + "name": "imsi", + "in": "query" + }, + { + "type": "string", + "description": "msisdn", + "name": "msisdn", + "in": "query" + }, + { + "type": "string", + "description": "upstate", + "name": "upstate", + "in": "query" + }, + { + "type": "string", + "default": "50", + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/smf/sub/num": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Number of online session users", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/smf" + ], + "summary": "Number of online session users", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/smsc/cdr/export": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "CDR Session List Export", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/smsc" + ], + "summary": "CDR Session List Export", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/smsc/cdr/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "CDR Session List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/smsc" + ], + "summary": "CDR Session List", + "parameters": [ + { + "enum": [ + "SMSC" + ], + "type": "string", + "description": "NE Type only SMSC", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "callerParty", + "name": "callerParty", + "in": "query" + }, + { + "type": "string", + "description": "calledParty", + "name": "calledParty", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/smsc/cdr/{cdrIds}": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "CDR Session Delete", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/smsc" + ], + "summary": "CDR Session Delete", + "parameters": [ + { + "type": "string", + "description": "list data id, multiple separated by a , sign", + "name": "cdrIds", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/udm/auth/export": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Authenticated User Export", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/auth" + ], + "summary": "UDM Authenticated User Export", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/udm/auth/import": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Authenticated User Import", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/auth" + ], + "summary": "UDM Authenticated User Import", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/udm/auth/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Authentication User List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/auth" + ], + "summary": "UDM Authentication User List", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/udm/auth/resetData/{neId}": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Authentication User Reload Data", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/auth" + ], + "summary": "UDM Authentication User Reload Data", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/udm/auth/{neId}": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Authenticated User Modification", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/auth" + ], + "summary": "UDM Authenticated User Modification", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "path", + "required": true + }, + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + }, + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Authentication User Added", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/auth" + ], + "summary": "UDM Authentication User Added", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "path", + "required": true + }, + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/udm/auth/{neId}/{imsi}/{num}": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Authentication User Batch Deletion", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/auth" + ], + "summary": "UDM Authentication User Batch Deletion", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "User data imsi", + "name": "imsi", + "in": "path", + "required": true + }, + { + "type": "number", + "description": "Incremental number", + "name": "num", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/udm/auth/{neId}/{value}": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Authentication User Information", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/auth" + ], + "summary": "UDM Authentication User Information", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "User data imsi", + "name": "value", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + }, + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Authentication User Batch Add", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/auth" + ], + "summary": "UDM Authentication User Batch Add", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "path", + "required": true + }, + { + "type": "number", + "description": "Incremental number", + "name": "value", + "in": "path", + "required": true + }, + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + }, + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Authenticated User Deletion", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/auth" + ], + "summary": "UDM Authenticated User Deletion", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "User data imsi, multiple separated by a , sign", + "name": "value", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/udm/sub/export": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Subscriber User Export", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/sub" + ], + "summary": "UDM Subscriber User Export", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/udm/sub/import": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Subscriber User Import", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/sub" + ], + "summary": "UDM Subscriber User Import", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/udm/sub/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Subscriber User List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/sub" + ], + "summary": "UDM Subscriber User List", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/udm/sub/resetData/{neId}": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Subscriber User Reload Data", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/sub" + ], + "summary": "UDM Subscriber User Reload Data", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/udm/sub/{neId}": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Subscriber User Modification", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/sub" + ], + "summary": "UDM Subscriber User Modification", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "path", + "required": true + }, + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + }, + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Subscriber User Added", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/sub" + ], + "summary": "UDM Subscriber User Added", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "path", + "required": true + }, + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/udm/sub/{neId}/{imsi}/{num}": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Subscriber User Batch Deletion", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/sub" + ], + "summary": "UDM Subscriber User Batch Deletion", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "User data imsi", + "name": "imsi", + "in": "path", + "required": true + }, + { + "type": "number", + "default": 1, + "description": "Incremental number", + "name": "num", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/udm/sub/{neId}/{value}": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Subscriber User Information", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/sub" + ], + "summary": "UDM Subscriber User Information", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "User data imsi", + "name": "value", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + }, + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Subscriber User Batch Add", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/sub" + ], + "summary": "UDM Subscriber User Batch Add", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "path", + "required": true + }, + { + "type": "number", + "default": 1, + "description": "Incremental number", + "name": "value", + "in": "path", + "required": true + }, + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + }, + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Subscriber User Deletion", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/sub" + ], + "summary": "UDM Subscriber User Deletion", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "User data imsi, multiple separated by a , sign", + "name": "value", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/upf/totalFlow": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Total number of flows N3 upstream N6 downstream", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/upf" + ], + "summary": "Total number of flows N3 upstream N6 downstream", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "enum": [ + 0, + 7, + 30 + ], + "type": "number", + "description": "Statistical time a few days before", + "name": "day", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/sys-conf": { + "get": { + "description": "Configuration information for the system", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "common" + ], + "summary": "Configuration information for the system", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/system/config/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Config Information List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "system/config" + ], + "summary": "Config Information List", + "parameters": [ + { + "type": "string", + "description": "configName", + "name": "configName", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/system/dept/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Dept Information List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "system/dept" + ], + "summary": "Dept Information List", + "parameters": [ + { + "type": "string", + "description": "deptId", + "name": "deptId", + "in": "query" + }, + { + "type": "string", + "description": "parentId", + "name": "parentId", + "in": "query" + }, + { + "type": "string", + "description": "deptName", + "name": "deptName", + "in": "query" + }, + { + "enum": [ + "0", + "1" + ], + "type": "string", + "description": "status", + "name": "status", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/system/dict/data/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Dictionary Data List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "system/dict/data" + ], + "summary": "Dictionary Data List", + "parameters": [ + { + "type": "string", + "description": "dictLabel", + "name": "dictLabel", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/system/dict/type/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Dictionary Type List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "system/dict/type" + ], + "summary": "Dictionary Type List", + "parameters": [ + { + "type": "string", + "description": "dictName", + "name": "dictName", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/system/log/login/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "System Login Log List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "system/log/login" + ], + "summary": "System Login Log List", + "parameters": [ + { + "type": "string", + "description": "userName", + "name": "userName", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/system/log/operate/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "System Operation Log List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "system/log/operate" + ], + "summary": "System Operation Log List", + "parameters": [ + { + "type": "string", + "description": "title", + "name": "title", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/system/menu/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Menu Information List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "system/menu" + ], + "summary": "Menu Information List", + "parameters": [ + { + "type": "string", + "description": "menuName", + "name": "menuName", + "in": "query" + }, + { + "enum": [ + "0", + "1" + ], + "type": "string", + "description": "status", + "name": "status", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/system/post/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Post Information List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "system/post" + ], + "summary": "Post Information List", + "parameters": [ + { + "type": "string", + "description": "postName", + "name": "postName", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/system/role/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Role Information List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "system/role" + ], + "summary": "Role Information List", + "parameters": [ + { + "type": "string", + "description": "roleName", + "name": "roleName", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/system/user/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "User Information List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "system/user" + ], + "summary": "User Information List", + "parameters": [ + { + "type": "string", + "description": "userName", + "name": "userName", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/system/user/profile": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Personal Information", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "system/user/profile" + ], + "summary": "Personal Information", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + }, + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Personal Information Modification", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "system/user/profile" + ], + "summary": "Personal Information Modification", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/system/user/profile/avatar": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Personal avatar upload", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "system/user/profile" + ], + "summary": "Personal avatar upload", + "parameters": [ + { + "type": "file", + "description": "The file to upload.", + "name": "file", + "in": "formData", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/system/user/profile/updatePwd": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Personal Reset Password", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "system/user/profile" + ], + "summary": "Personal Reset Password", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/tool/iperf/i": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "iperf software installation", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "tool/iperf" + ], + "summary": "iperf software installation", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/tool/iperf/run": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "(ws://) iperf software running", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "tool/iperf" + ], + "summary": "(ws://) iperf software running", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 120, + "description": "Terminal line characters", + "name": "cols", + "in": "query" + }, + { + "type": "number", + "default": 40, + "description": "Terminal display lines", + "name": "rows", + "in": "query" + }, + { + "type": "string", + "description": "Authorization", + "name": "access_token", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/tool/iperf/v": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "iperf version information", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "tool/iperf" + ], + "summary": "iperf version information", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "enum": [ + "V2", + "V3" + ], + "type": "string", + "description": "Version", + "name": "version", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/tool/ping": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "(ws://) Ping for Local UNIX running", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "tool/ping" + ], + "summary": "(ws://) Ping for Local UNIX running", + "parameters": [ + { + "type": "string", + "description": "Authorization", + "name": "access_token", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + }, + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Ping for Basic Information Running", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "tool/ping" + ], + "summary": "Ping for Basic Information Running", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/tool/ping/run": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "(ws://) Ping for UNIX runs on the network element side", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "tool/ping" + ], + "summary": "(ws://) Ping for UNIX runs on the network element side", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 120, + "description": "Terminal line characters", + "name": "cols", + "in": "query" + }, + { + "type": "number", + "default": 40, + "description": "Terminal display lines", + "name": "rows", + "in": "query" + }, + { + "type": "string", + "description": "Authorization", + "name": "access_token", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/tool/ping/v": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Ping for version information on the network element side", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "tool/ping" + ], + "summary": "Ping for version information on the network element side", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/trace/tcpdump/start": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network Element Capture Packet PACP Start", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "trace/tcpdump" + ], + "summary": "Network Element Capture Packet PACP Start", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/trace/tcpdump/stop": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network Element Capture Packet PACP Stop", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "trace/tcpdump" + ], + "summary": "Network Element Capture Packet PACP Stop", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/trace/tcpdump/upf": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UPF Standard Edition Internal Grab Bag", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "trace/tcpdump" + ], + "summary": "UPF Standard Edition Internal Grab Bag", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ws": { + "get": { + "description": "(ws://) Generic", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "ws" + ], + "summary": "(ws://) Generic", + "parameters": [ + { + "type": "string", + "description": "Subscribe to message groups, multiple separated by commas", + "name": "subGroupID", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ws/view": { + "get": { + "description": "(ws://) Terminal Interactive File Content Viewing", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "ws" + ], + "summary": "(ws://) Terminal Interactive File Content Viewing", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 120, + "description": "Terminal line characters", + "name": "cols", + "in": "query" + }, + { + "type": "number", + "default": 40, + "description": "Terminal display lines", + "name": "rows", + "in": "query" + }, + { + "type": "string", + "description": "Authorization", + "name": "access_token", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" } } } @@ -229,7 +5575,7 @@ const docTemplate = `{ }, "securityDefinitions": { "ApiKeyAuth": { - "description": "Get the key through the login interface, fill in e.g. Bearer \u003caccess_token\u003e", + "description": "Get the key through the common/authorization System Login, fill in content \"Bearer \u003caccess_token\u003e\"", "type": "apiKey", "name": "Authorization", "in": "header" @@ -244,30 +5590,170 @@ const docTemplate = `{ "description": "common interface", "name": "common" }, + { + "description": "common authorization Interface", + "name": "common/authorization" + }, + { + "description": "common file Interface", + "name": "common/file" + }, { "description": "monitor interface", "name": "monitor" }, + { + "description": "monitor cache interface", + "name": "monitor/cache" + }, + { + "description": "monitor system user online interface", + "name": "monitor/online" + }, { "description": "network data interface", "name": "network_data" }, + { + "description": "network data kpi interface", + "name": "network_data/kpi" + }, + { + "description": "network data amf interface", + "name": "network_data/amf" + }, + { + "description": "network data ims interface", + "name": "network_data/ims" + }, + { + "description": "network data mme interface", + "name": "network_data/mme" + }, + { + "description": "network data sgwc interface", + "name": "network_data/sgwc" + }, + { + "description": "network data smf interface", + "name": "network_data/smf" + }, + { + "description": "network data smsc interface", + "name": "network_data/smsc" + }, + { + "description": "network data udm authentication interface", + "name": "network_data/udm/auth" + }, + { + "description": "network data udm subscriber interface", + "name": "network_data/udm/sub" + }, + { + "description": "network data upf interface", + "name": "network_data/upf" + }, { "description": "network element interface", "name": "network_element" }, + { + "description": "network element operating interface", + "name": "network_element/action" + }, + { + "description": "network element information interface", + "name": "network_element/info" + }, + { + "description": "network element host interface", + "name": "network_element/host" + }, + { + "description": "network element license interface", + "name": "network_element/license" + }, + { + "description": "network element software interface", + "name": "network_element/software" + }, + { + "description": "network element version interface", + "name": "network_element/version" + }, + { + "description": "network element config interface", + "name": "network_element/config" + }, { "description": "system interface", "name": "system" }, + { + "description": "system config interface", + "name": "system/config" + }, + { + "description": "system dept interface", + "name": "system/dept" + }, + { + "description": "system dict data interface", + "name": "system/dict/data" + }, + { + "description": "system dict type interface", + "name": "system/dict/type" + }, + { + "description": "system log login interface", + "name": "system/log/login" + }, + { + "description": "system log operate interface", + "name": "system/log/operate" + }, + { + "description": "system menu interface", + "name": "system/menu" + }, + { + "description": "system post interface", + "name": "system/post" + }, + { + "description": "system role interface", + "name": "system/role" + }, + { + "description": "system user interface", + "name": "system/user" + }, + { + "description": "system user profile interface", + "name": "system/user/profile" + }, { "description": "tool interface", "name": "tool" }, + { + "description": "tool ping interface", + "name": "tool/ping" + }, + { + "description": "tool iperf interface", + "name": "tool/iperf" + }, { "description": "trace interface", "name": "trace" }, + { + "description": "trace tcpdump interface", + "name": "trace/tcpdump" + }, { "description": "ws interface", "name": "ws" @@ -277,12 +5763,12 @@ const docTemplate = `{ // SwaggerInfo holds exported Swagger Info so clients can modify it var SwaggerInfo = &swag.Spec{ - Version: "1.0.5", + Version: "1.0.8", Host: "127.0.0.1:33040", BasePath: "/", Schemes: []string{"http", "https"}, Title: "OMC Swagger API", - Description: "OMC Service Interface Info", + Description: "OMC Service Interface Information - Internal Use Only", InfoInstanceName: "swagger", SwaggerTemplate: docTemplate, LeftDelim: "{{", diff --git a/swagger2docs/swagger.json b/swagger2docs/swagger.json index 6b45b9ea..3c220958 100644 --- a/swagger2docs/swagger.json +++ b/swagger2docs/swagger.json @@ -5,10 +5,10 @@ ], "swagger": "2.0", "info": { - "description": "OMC Service Interface Info", + "description": "OMC Service Interface Information - Internal Use Only", "title": "OMC Swagger API", "contact": {}, - "version": "1.0.5" + "version": "1.0.8" }, "host": "127.0.0.1:33040", "basePath": "/", @@ -28,10 +28,37 @@ "summary": "Root Route", "responses": { "200": { - "description": "data", + "description": "Response Results", "schema": { - "type": "object", - "additionalProperties": true + "type": "object" + } + } + } + } + }, + "/captchaImage": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Get CAPTCHA", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "common" + ], + "summary": "Get CAPTCHA", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" } } } @@ -70,7 +97,7 @@ "combo" ], "type": "string", - "description": "Type oneof=node edge combo", + "description": "Type", "name": "type", "in": "query", "required": true @@ -78,10 +105,9 @@ ], "responses": { "200": { - "description": "data", + "description": "Response Results", "schema": { - "type": "object", - "additionalProperties": true + "type": "object" } } } @@ -107,28 +133,54 @@ "summary": "Saving Relationship Diagram Data", "parameters": [ { - "description": "{group:'',data:{nodes:[],edges:[],combos:[]}}", + "description": "Request Param", "name": "data", "in": "body", "required": true, "schema": { - "type": "object", - "additionalProperties": true + "type": "object" } } ], "responses": { "200": { - "description": "data", + "description": "Response Results", "schema": { - "type": "object", - "additionalProperties": true + "type": "object" } } } } }, - "/chart/graph/:group": { + "/chart/graph/groups": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Get relationship graph group name", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "chart" + ], + "summary": "Get relationship graph group name", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/chart/graph/{group}": { "delete": { "security": [ { @@ -157,23 +209,22 @@ ], "responses": { "200": { - "description": "data", + "description": "Response Results", "schema": { - "type": "object", - "additionalProperties": true + "type": "object" } } } } }, - "/chart/graph/groups": { - "get": { + "/file/chunkCheck": { + "post": { "security": [ { "ApiKeyAuth": [] } ], - "description": "Get relationship graph group name", + "description": "Slice file checking", "consumes": [ "application/json" ], @@ -181,15 +232,477 @@ "application/json" ], "tags": [ - "chart" + "common/file" + ], + "summary": "Slice file checking", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } ], - "summary": "Get relationship graph group name", "responses": { "200": { - "description": "data", + "description": "Response Results", "schema": { - "type": "object", - "additionalProperties": true + "type": "object" + } + } + } + } + }, + "/file/chunkMerge": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Slice file merge", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "common/file" + ], + "summary": "Slice file merge", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/file/chunkUpload": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Sliced file upload", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "common/file" + ], + "summary": "Sliced file upload", + "parameters": [ + { + "type": "file", + "description": "The file to upload.", + "name": "file", + "in": "formData", + "required": true + }, + { + "type": "string", + "description": "Slice Marker", + "name": "identifier", + "in": "formData", + "required": true + }, + { + "type": "string", + "description": "Slice No.", + "name": "index", + "in": "formData", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/file/upload": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Upload a file", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "common/file" + ], + "summary": "Upload a file", + "parameters": [ + { + "type": "file", + "description": "The file to upload.", + "name": "file", + "in": "formData", + "required": true + }, + { + "enum": [ + "default", + "common" + ], + "type": "string", + "description": "subpath, eg: default or common", + "name": "subPath", + "in": "formData", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/getInfo": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Login User Information", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "common/authorization" + ], + "summary": "Login User Information", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/getRouters": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Login User Routing Information", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "common/authorization" + ], + "summary": "Login User Routing Information", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/login": { + "post": { + "description": "System Login", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "common/authorization" + ], + "summary": "System Login", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/logout": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "System Logout", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "common/authorization" + ], + "summary": "System Logout", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/monitor/cache": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Cache Service Information", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "monitor/cache" + ], + "summary": "Cache Service Information", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/monitor/load": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Resource monitoring information loading", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "monitor" + ], + "summary": "Resource monitoring information loading", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/monitor/online/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "System Online User List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "monitor/online" + ], + "summary": "System Online User List", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/monitor/system-info": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Server Information", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "monitor" + ], + "summary": "Server Information", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/action/files": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "List of files on the network element side", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/action" + ], + "summary": "List of files on the network element side", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/action/pullDirZip": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Get directories compressed to ZIP from the network element to the local area", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/action" + ], + "summary": "Get directories compressed to ZIP from the network element to the local area", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/action/pullFile": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Getting files from the network element to the local", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/action" + ], + "summary": "Getting files from the network element to the local", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" } } } @@ -210,15 +723,4848 @@ "application/json" ], "tags": [ - "network_element" + "network_element/action" ], "summary": "Sending files from local to network elements", "responses": { "200": { - "description": "data", + "description": "Response Results", "schema": { - "type": "object", - "additionalProperties": {} + "type": "object" + } + } + } + } + }, + "/ne/action/service": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element service operation", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/action" + ], + "summary": "Network element service operation", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/action/viewFile": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Viewing the contents of a file on the network element side", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/action" + ], + "summary": "Viewing the contents of a file on the network element side", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/config/data": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network Element Parameter Configuration Data Information", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/config" + ], + "summary": "Network Element Parameter Configuration Data Information", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Available attributes, based on querying the list of attributes", + "name": "paramName", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + }, + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element parameter configuration data modification", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/config" + ], + "summary": "Network element parameter configuration data modification", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + }, + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element parameter configuration data added (array)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/config" + ], + "summary": "Network element parameter configuration data added (array)", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + }, + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element parameter configuration data deletion (array)", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/config" + ], + "summary": "Network element parameter configuration data deletion (array)", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Available attributes, based on querying the list of attributes", + "name": "paramName", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Array index", + "name": "loc", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/config/list/{neType}": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network Element Parameter Configuration Available Attribute Values List Specify Network Element Type All Unpaged", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/config" + ], + "summary": "Network Element Parameter Configuration Available Attribute Values List Specify Network Element Type All Unpaged", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/host/authorizedBySSH": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element host SSH method of authorization for password-free sending", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/host" + ], + "summary": "Network element host SSH method of authorization for password-free sending", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/host/checkBySSH": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Checking the server environment by SSH method of Net Element Hosting", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/host" + ], + "summary": "Checking the server environment by SSH method of Net Element Hosting", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/host/cmd": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "The network element host sends the command", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/host" + ], + "summary": "The network element host sends the command", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/host/test": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element host test connection", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/host" + ], + "summary": "Network element host test connection", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/info": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element information modification", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/info" + ], + "summary": "Network element information modification", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + }, + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element information addition", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/info" + ], + "summary": "Network element information addition", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/info/byTypeAndID": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element neType and neID queries", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/info" + ], + "summary": "Network element neType and neID queries", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/info/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element information list", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/info" + ], + "summary": "Network element information list", + "parameters": [ + { + "type": "boolean", + "description": "The result carries the state of the network element", + "name": "bandStatus", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/info/listAll": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "The list of network element information is all unpaginated", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/info" + ], + "summary": "The list of network element information is all unpaginated", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/info/state": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element information state", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/info" + ], + "summary": "Network element information state", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/info/{infoId}": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element information", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/info" + ], + "summary": "Network element information", + "parameters": [ + { + "type": "string", + "description": "list data id", + "name": "infoId", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/license/byTypeAndID": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element neType and neID queries", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/license" + ], + "summary": "Network element neType and neID queries", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/license/change": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element authorization activation status", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/license" + ], + "summary": "Network element authorization activation status", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/license/code": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network Element License Activation License Application Code", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/license" + ], + "summary": "Network Element License Activation License Application Code", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/license/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Net Element License Activation List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/license" + ], + "summary": "Net Element License Activation List", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/license/state": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element authorization activation status", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/license" + ], + "summary": "Network element authorization activation status", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/software/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "List of Network Element Software Packages", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/software" + ], + "summary": "List of Network Element Software Packages", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/software/newNeVersion": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Net Element package set to Net Element new version", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/software" + ], + "summary": "Net Element package set to Net Element new version", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/version/operate": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element version operation", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/version" + ], + "summary": "Network element version operation", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ne/{infoIds}": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network element information deletion", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/info" + ], + "summary": "Network element information deletion", + "parameters": [ + { + "type": "string", + "description": "list data id, multiple separated by a , sign", + "name": "infoIds", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/amf/nb/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Access Base Station Information List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/amf" + ], + "summary": "Access Base Station Information List", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Base Station ID", + "name": "id", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/amf/nb/list-cfg": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Access to the base station status information list", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/amf" + ], + "summary": "Access to the base station status information list", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/amf/ue/export": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UE Session List Export", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/amf" + ], + "summary": "UE Session List Export", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/amf/ue/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UE Session List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/amf" + ], + "summary": "UE Session List", + "parameters": [ + { + "enum": [ + "AMF" + ], + "type": "string", + "description": "NE Type only AMF", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "imsi", + "name": "imsi", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/amf/ue/{ueIds}": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UE Session Deletion", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/amf" + ], + "summary": "UE Session Deletion", + "parameters": [ + { + "type": "string", + "description": "list data id, multiple separated by a , sign", + "name": "ueIds", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/ims/cdr/export": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "CDR Session List Export", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/ims" + ], + "summary": "CDR Session List Export", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/ims/cdr/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "CDR Session List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/ims" + ], + "summary": "CDR Session List", + "parameters": [ + { + "enum": [ + "IMS" + ], + "type": "string", + "description": "NE Type only IMS", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "callerParty", + "name": "callerParty", + "in": "query" + }, + { + "type": "string", + "description": "calledParty", + "name": "calledParty", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/ims/cdr/{cdrIds}": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "CDR Session Delete", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/ims" + ], + "summary": "CDR Session Delete", + "parameters": [ + { + "type": "string", + "description": "list data id, multiple separated by a , sign", + "name": "cdrIds", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/ims/session/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Online session user list information", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/ims" + ], + "summary": "Online session user list information", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "imsi", + "name": "imsi", + "in": "query" + }, + { + "type": "string", + "description": "msisdn", + "name": "msisdn", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/ims/session/num": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Number of online session users", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/ims" + ], + "summary": "Number of online session users", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/kpi/data": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Access to statistical data", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/kpi" + ], + "summary": "Access to statistical data", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 1737453599059, + "description": "Start time (timestamped milliseconds)", + "name": "startTime", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 1737453599059, + "description": "End time (timestamped milliseconds)", + "name": "endTime", + "in": "query", + "required": true + }, + { + "enum": [ + 5, + 10, + 15, + 30, + 60, + 300, + 600, + 900, + 1800, + 3600 + ], + "type": "number", + "description": "interval", + "name": "interval", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/kpi/title": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Get Statistical Headings", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/kpi" + ], + "summary": "Get Statistical Headings", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/mme/nb/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Access Base Station Information List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/mme" + ], + "summary": "Access Base Station Information List", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "Base Station ID", + "name": "id", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/mme/nb/list-cfg": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Access to the base station status information list", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/mme" + ], + "summary": "Access to the base station status information list", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/mme/ue/export": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UE Session List Export", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/mme" + ], + "summary": "UE Session List Export", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/mme/ue/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UE Session List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/mme" + ], + "summary": "UE Session List", + "parameters": [ + { + "enum": [ + "MME" + ], + "type": "string", + "description": "NE Type only MME", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "imsi", + "name": "imsi", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/mme/ue/{ueIds}": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UE Session Deletion", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/mme" + ], + "summary": "UE Session Deletion", + "parameters": [ + { + "type": "string", + "description": "list data id, multiple separated by a , sign", + "name": "ueIds", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/sgwc/cdr/export": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "CDR Session List Export", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/sgwc" + ], + "summary": "CDR Session List Export", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/sgwc/cdr/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "CDR Session List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/sgwc" + ], + "summary": "CDR Session List", + "parameters": [ + { + "enum": [ + "SGWC" + ], + "type": "string", + "description": "NE Type only SGWC", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "imsi", + "name": "imsi", + "in": "query" + }, + { + "type": "string", + "description": "msisdn", + "name": "msisdn", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/sgwc/cdr/{cdrIds}": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "CDR Session Delete", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/sgwc" + ], + "summary": "CDR Session Delete", + "parameters": [ + { + "type": "string", + "description": "list data id, multiple separated by a , sign", + "name": "cdrIds", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/smf/cdr/export": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "CDR Session List Export", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/smf" + ], + "summary": "CDR Session List Export", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/smf/cdr/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "CDR Session List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/smf" + ], + "summary": "CDR Session List", + "parameters": [ + { + "enum": [ + "SMF" + ], + "type": "string", + "description": "NE Type only SMF", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "subscriberID is IMSI", + "name": "subscriberID", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/smf/cdr/{cdrIds}": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "CDR Session Delete", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/smf" + ], + "summary": "CDR Session Delete", + "parameters": [ + { + "type": "string", + "description": "list data id, multiple separated by a , sign", + "name": "cdrIds", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/smf/session/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Online session user list information", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/smf" + ], + "summary": "Online session user list information", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "imsi", + "name": "imsi", + "in": "query" + }, + { + "type": "string", + "description": "msisdn", + "name": "msisdn", + "in": "query" + }, + { + "type": "string", + "description": "upstate", + "name": "upstate", + "in": "query" + }, + { + "type": "string", + "default": "50", + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/smf/sub/num": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Number of online session users", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/smf" + ], + "summary": "Number of online session users", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/smsc/cdr/export": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "CDR Session List Export", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/smsc" + ], + "summary": "CDR Session List Export", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/smsc/cdr/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "CDR Session List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/smsc" + ], + "summary": "CDR Session List", + "parameters": [ + { + "enum": [ + "SMSC" + ], + "type": "string", + "description": "NE Type only SMSC", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "callerParty", + "name": "callerParty", + "in": "query" + }, + { + "type": "string", + "description": "calledParty", + "name": "calledParty", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/smsc/cdr/{cdrIds}": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "CDR Session Delete", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/smsc" + ], + "summary": "CDR Session Delete", + "parameters": [ + { + "type": "string", + "description": "list data id, multiple separated by a , sign", + "name": "cdrIds", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/udm/auth/export": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Authenticated User Export", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/auth" + ], + "summary": "UDM Authenticated User Export", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/udm/auth/import": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Authenticated User Import", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/auth" + ], + "summary": "UDM Authenticated User Import", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/udm/auth/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Authentication User List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/auth" + ], + "summary": "UDM Authentication User List", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/udm/auth/resetData/{neId}": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Authentication User Reload Data", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/auth" + ], + "summary": "UDM Authentication User Reload Data", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/udm/auth/{neId}": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Authenticated User Modification", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/auth" + ], + "summary": "UDM Authenticated User Modification", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "path", + "required": true + }, + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + }, + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Authentication User Added", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/auth" + ], + "summary": "UDM Authentication User Added", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "path", + "required": true + }, + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/udm/auth/{neId}/{imsi}/{num}": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Authentication User Batch Deletion", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/auth" + ], + "summary": "UDM Authentication User Batch Deletion", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "User data imsi", + "name": "imsi", + "in": "path", + "required": true + }, + { + "type": "number", + "description": "Incremental number", + "name": "num", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/udm/auth/{neId}/{value}": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Authentication User Information", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/auth" + ], + "summary": "UDM Authentication User Information", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "User data imsi", + "name": "value", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + }, + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Authentication User Batch Add", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/auth" + ], + "summary": "UDM Authentication User Batch Add", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "path", + "required": true + }, + { + "type": "number", + "description": "Incremental number", + "name": "value", + "in": "path", + "required": true + }, + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + }, + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Authenticated User Deletion", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/auth" + ], + "summary": "UDM Authenticated User Deletion", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "User data imsi, multiple separated by a , sign", + "name": "value", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/udm/sub/export": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Subscriber User Export", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/sub" + ], + "summary": "UDM Subscriber User Export", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/udm/sub/import": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Subscriber User Import", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/sub" + ], + "summary": "UDM Subscriber User Import", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/udm/sub/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Subscriber User List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/sub" + ], + "summary": "UDM Subscriber User List", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/udm/sub/resetData/{neId}": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Subscriber User Reload Data", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/sub" + ], + "summary": "UDM Subscriber User Reload Data", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/udm/sub/{neId}": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Subscriber User Modification", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/sub" + ], + "summary": "UDM Subscriber User Modification", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "path", + "required": true + }, + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + }, + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Subscriber User Added", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/sub" + ], + "summary": "UDM Subscriber User Added", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "path", + "required": true + }, + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/udm/sub/{neId}/{imsi}/{num}": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Subscriber User Batch Deletion", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/sub" + ], + "summary": "UDM Subscriber User Batch Deletion", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "User data imsi", + "name": "imsi", + "in": "path", + "required": true + }, + { + "type": "number", + "default": 1, + "description": "Incremental number", + "name": "num", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/udm/sub/{neId}/{value}": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Subscriber User Information", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/sub" + ], + "summary": "UDM Subscriber User Information", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "User data imsi", + "name": "value", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + }, + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Subscriber User Batch Add", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/sub" + ], + "summary": "UDM Subscriber User Batch Add", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "path", + "required": true + }, + { + "type": "number", + "default": 1, + "description": "Incremental number", + "name": "value", + "in": "path", + "required": true + }, + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + }, + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UDM Subscriber User Deletion", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/udm/sub" + ], + "summary": "UDM Subscriber User Deletion", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "User data imsi, multiple separated by a , sign", + "name": "value", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/neData/upf/totalFlow": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Total number of flows N3 upstream N6 downstream", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_data/upf" + ], + "summary": "Total number of flows N3 upstream N6 downstream", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "enum": [ + 0, + 7, + 30 + ], + "type": "number", + "description": "Statistical time a few days before", + "name": "day", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/sys-conf": { + "get": { + "description": "Configuration information for the system", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "common" + ], + "summary": "Configuration information for the system", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/system/config/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Config Information List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "system/config" + ], + "summary": "Config Information List", + "parameters": [ + { + "type": "string", + "description": "configName", + "name": "configName", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/system/dept/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Dept Information List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "system/dept" + ], + "summary": "Dept Information List", + "parameters": [ + { + "type": "string", + "description": "deptId", + "name": "deptId", + "in": "query" + }, + { + "type": "string", + "description": "parentId", + "name": "parentId", + "in": "query" + }, + { + "type": "string", + "description": "deptName", + "name": "deptName", + "in": "query" + }, + { + "enum": [ + "0", + "1" + ], + "type": "string", + "description": "status", + "name": "status", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/system/dict/data/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Dictionary Data List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "system/dict/data" + ], + "summary": "Dictionary Data List", + "parameters": [ + { + "type": "string", + "description": "dictLabel", + "name": "dictLabel", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/system/dict/type/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Dictionary Type List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "system/dict/type" + ], + "summary": "Dictionary Type List", + "parameters": [ + { + "type": "string", + "description": "dictName", + "name": "dictName", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/system/log/login/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "System Login Log List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "system/log/login" + ], + "summary": "System Login Log List", + "parameters": [ + { + "type": "string", + "description": "userName", + "name": "userName", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/system/log/operate/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "System Operation Log List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "system/log/operate" + ], + "summary": "System Operation Log List", + "parameters": [ + { + "type": "string", + "description": "title", + "name": "title", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/system/menu/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Menu Information List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "system/menu" + ], + "summary": "Menu Information List", + "parameters": [ + { + "type": "string", + "description": "menuName", + "name": "menuName", + "in": "query" + }, + { + "enum": [ + "0", + "1" + ], + "type": "string", + "description": "status", + "name": "status", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/system/post/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Post Information List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "system/post" + ], + "summary": "Post Information List", + "parameters": [ + { + "type": "string", + "description": "postName", + "name": "postName", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/system/role/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Role Information List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "system/role" + ], + "summary": "Role Information List", + "parameters": [ + { + "type": "string", + "description": "roleName", + "name": "roleName", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/system/user/list": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "User Information List", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "system/user" + ], + "summary": "User Information List", + "parameters": [ + { + "type": "string", + "description": "userName", + "name": "userName", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/system/user/profile": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Personal Information", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "system/user/profile" + ], + "summary": "Personal Information", + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + }, + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Personal Information Modification", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "system/user/profile" + ], + "summary": "Personal Information Modification", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/system/user/profile/avatar": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Personal avatar upload", + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "application/json" + ], + "tags": [ + "system/user/profile" + ], + "summary": "Personal avatar upload", + "parameters": [ + { + "type": "file", + "description": "The file to upload.", + "name": "file", + "in": "formData", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/system/user/profile/updatePwd": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Personal Reset Password", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "system/user/profile" + ], + "summary": "Personal Reset Password", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/tool/iperf/i": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "iperf software installation", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "tool/iperf" + ], + "summary": "iperf software installation", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/tool/iperf/run": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "(ws://) iperf software running", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "tool/iperf" + ], + "summary": "(ws://) iperf software running", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 120, + "description": "Terminal line characters", + "name": "cols", + "in": "query" + }, + { + "type": "number", + "default": 40, + "description": "Terminal display lines", + "name": "rows", + "in": "query" + }, + { + "type": "string", + "description": "Authorization", + "name": "access_token", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/tool/iperf/v": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "iperf version information", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "tool/iperf" + ], + "summary": "iperf version information", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "enum": [ + "V2", + "V3" + ], + "type": "string", + "description": "Version", + "name": "version", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/tool/ping": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "(ws://) Ping for Local UNIX running", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "tool/ping" + ], + "summary": "(ws://) Ping for Local UNIX running", + "parameters": [ + { + "type": "string", + "description": "Authorization", + "name": "access_token", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + }, + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Ping for Basic Information Running", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "tool/ping" + ], + "summary": "Ping for Basic Information Running", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/tool/ping/run": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "(ws://) Ping for UNIX runs on the network element side", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "tool/ping" + ], + "summary": "(ws://) Ping for UNIX runs on the network element side", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 120, + "description": "Terminal line characters", + "name": "cols", + "in": "query" + }, + { + "type": "number", + "default": 40, + "description": "Terminal display lines", + "name": "rows", + "in": "query" + }, + { + "type": "string", + "description": "Authorization", + "name": "access_token", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/tool/ping/v": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Ping for version information on the network element side", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "tool/ping" + ], + "summary": "Ping for version information on the network element side", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/trace/tcpdump/start": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network Element Capture Packet PACP Start", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "trace/tcpdump" + ], + "summary": "Network Element Capture Packet PACP Start", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/trace/tcpdump/stop": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Network Element Capture Packet PACP Stop", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "trace/tcpdump" + ], + "summary": "Network Element Capture Packet PACP Stop", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/trace/tcpdump/upf": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "UPF Standard Edition Internal Grab Bag", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "trace/tcpdump" + ], + "summary": "UPF Standard Edition Internal Grab Bag", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ws": { + "get": { + "description": "(ws://) Generic", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "ws" + ], + "summary": "(ws://) Generic", + "parameters": [ + { + "type": "string", + "description": "Subscribe to message groups, multiple separated by commas", + "name": "subGroupID", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + } + }, + "/ws/view": { + "get": { + "description": "(ws://) Terminal Interactive File Content Viewing", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "ws" + ], + "summary": "(ws://) Terminal Interactive File Content Viewing", + "parameters": [ + { + "enum": [ + "IMS", + "AMF", + "AUSF", + "UDM", + "SMF", + "PCF", + "NSSF", + "NRF", + "UPF", + "MME", + "CBC", + "OMC", + "SGWC" + ], + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 120, + "description": "Terminal line characters", + "name": "cols", + "in": "query" + }, + { + "type": "number", + "default": 40, + "description": "Terminal display lines", + "name": "rows", + "in": "query" + }, + { + "type": "string", + "description": "Authorization", + "name": "access_token", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" } } } @@ -227,7 +5573,7 @@ }, "securityDefinitions": { "ApiKeyAuth": { - "description": "Get the key through the login interface, fill in e.g. Bearer \u003caccess_token\u003e", + "description": "Get the key through the common/authorization System Login, fill in content \"Bearer \u003caccess_token\u003e\"", "type": "apiKey", "name": "Authorization", "in": "header" @@ -242,30 +5588,170 @@ "description": "common interface", "name": "common" }, + { + "description": "common authorization Interface", + "name": "common/authorization" + }, + { + "description": "common file Interface", + "name": "common/file" + }, { "description": "monitor interface", "name": "monitor" }, + { + "description": "monitor cache interface", + "name": "monitor/cache" + }, + { + "description": "monitor system user online interface", + "name": "monitor/online" + }, { "description": "network data interface", "name": "network_data" }, + { + "description": "network data kpi interface", + "name": "network_data/kpi" + }, + { + "description": "network data amf interface", + "name": "network_data/amf" + }, + { + "description": "network data ims interface", + "name": "network_data/ims" + }, + { + "description": "network data mme interface", + "name": "network_data/mme" + }, + { + "description": "network data sgwc interface", + "name": "network_data/sgwc" + }, + { + "description": "network data smf interface", + "name": "network_data/smf" + }, + { + "description": "network data smsc interface", + "name": "network_data/smsc" + }, + { + "description": "network data udm authentication interface", + "name": "network_data/udm/auth" + }, + { + "description": "network data udm subscriber interface", + "name": "network_data/udm/sub" + }, + { + "description": "network data upf interface", + "name": "network_data/upf" + }, { "description": "network element interface", "name": "network_element" }, + { + "description": "network element operating interface", + "name": "network_element/action" + }, + { + "description": "network element information interface", + "name": "network_element/info" + }, + { + "description": "network element host interface", + "name": "network_element/host" + }, + { + "description": "network element license interface", + "name": "network_element/license" + }, + { + "description": "network element software interface", + "name": "network_element/software" + }, + { + "description": "network element version interface", + "name": "network_element/version" + }, + { + "description": "network element config interface", + "name": "network_element/config" + }, { "description": "system interface", "name": "system" }, + { + "description": "system config interface", + "name": "system/config" + }, + { + "description": "system dept interface", + "name": "system/dept" + }, + { + "description": "system dict data interface", + "name": "system/dict/data" + }, + { + "description": "system dict type interface", + "name": "system/dict/type" + }, + { + "description": "system log login interface", + "name": "system/log/login" + }, + { + "description": "system log operate interface", + "name": "system/log/operate" + }, + { + "description": "system menu interface", + "name": "system/menu" + }, + { + "description": "system post interface", + "name": "system/post" + }, + { + "description": "system role interface", + "name": "system/role" + }, + { + "description": "system user interface", + "name": "system/user" + }, + { + "description": "system user profile interface", + "name": "system/user/profile" + }, { "description": "tool interface", "name": "tool" }, + { + "description": "tool ping interface", + "name": "tool/ping" + }, + { + "description": "tool iperf interface", + "name": "tool/iperf" + }, { "description": "trace interface", "name": "trace" }, + { + "description": "trace tcpdump interface", + "name": "trace/tcpdump" + }, { "description": "ws interface", "name": "ws" diff --git a/swagger2docs/swagger.yaml b/swagger2docs/swagger.yaml index 4ecc7c67..130981c4 100644 --- a/swagger2docs/swagger.yaml +++ b/swagger2docs/swagger.yaml @@ -2,9 +2,9 @@ basePath: / host: 127.0.0.1:33040 info: contact: {} - description: OMC Service Interface Info + description: OMC Service Interface Information - Internal Use Only title: OMC Swagger API - version: 1.0.5 + version: 1.0.8 paths: /: get: @@ -15,13 +15,29 @@ paths: - application/json responses: "200": - description: data + description: Response Results schema: - additionalProperties: true type: object summary: Root Route tags: - common + /captchaImage: + get: + consumes: + - application/json + description: Get CAPTCHA + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Get CAPTCHA + tags: + - common /chart/graph: get: consumes: @@ -33,7 +49,7 @@ paths: name: group required: true type: string - - description: Type oneof=node edge combo + - description: Type enum: - node - edge @@ -46,9 +62,8 @@ paths: - application/json responses: "200": - description: data + description: Response Results schema: - additionalProperties: true type: object security: - ApiKeyAuth: [] @@ -61,27 +76,25 @@ paths: - application/json description: Saving Relationship Diagram Data parameters: - - description: '{group:'''',data:{nodes:[],edges:[],combos:[]}}' + - description: Request Param in: body name: data required: true schema: - additionalProperties: true type: object produces: - application/json responses: "200": - description: data + description: Response Results schema: - additionalProperties: true type: object security: - ApiKeyAuth: [] summary: Saving Relationship Diagram Data tags: - chart - /chart/graph/:group: + /chart/graph/{group}: delete: consumes: - application/json @@ -96,9 +109,8 @@ paths: - application/json responses: "200": - description: data + description: Response Results schema: - additionalProperties: true type: object security: - ApiKeyAuth: [] @@ -114,15 +126,343 @@ paths: - application/json responses: "200": - description: data + description: Response Results schema: - additionalProperties: true type: object security: - ApiKeyAuth: [] summary: Get relationship graph group name tags: - chart + /file/chunkCheck: + post: + consumes: + - application/json + description: Slice file checking + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Slice file checking + tags: + - common/file + /file/chunkMerge: + post: + consumes: + - application/json + description: Slice file merge + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Slice file merge + tags: + - common/file + /file/chunkUpload: + post: + consumes: + - multipart/form-data + description: Sliced file upload + parameters: + - description: The file to upload. + in: formData + name: file + required: true + type: file + - description: Slice Marker + in: formData + name: identifier + required: true + type: string + - description: Slice No. + in: formData + name: index + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Sliced file upload + tags: + - common/file + /file/upload: + post: + consumes: + - multipart/form-data + description: Upload a file + parameters: + - description: The file to upload. + in: formData + name: file + required: true + type: file + - description: 'subpath, eg: default or common' + enum: + - default + - common + in: formData + name: subPath + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Upload a file + tags: + - common/file + /getInfo: + get: + consumes: + - application/json + description: Login User Information + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Login User Information + tags: + - common/authorization + /getRouters: + get: + consumes: + - application/json + description: Login User Routing Information + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Login User Routing Information + tags: + - common/authorization + /login: + post: + consumes: + - application/json + description: System Login + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + summary: System Login + tags: + - common/authorization + /logout: + post: + consumes: + - application/json + description: System Logout + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: System Logout + tags: + - common/authorization + /monitor/cache: + get: + consumes: + - application/json + description: Cache Service Information + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Cache Service Information + tags: + - monitor/cache + /monitor/load: + get: + consumes: + - application/json + description: Resource monitoring information loading + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Resource monitoring information loading + tags: + - monitor + /monitor/online/list: + get: + consumes: + - application/json + description: System Online User List + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: System Online User List + tags: + - monitor/online + /monitor/system-info: + get: + consumes: + - application/json + description: Server Information + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Server Information + tags: + - monitor + /ne/{infoIds}: + delete: + consumes: + - application/json + description: Network element information deletion + parameters: + - description: list data id, multiple separated by a , sign + in: path + name: infoIds + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Network element information deletion + tags: + - network_element/info + /ne/action/files: + get: + consumes: + - application/json + description: List of files on the network element side + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: List of files on the network element side + tags: + - network_element/action + /ne/action/pullDirZip: + get: + consumes: + - application/json + description: Get directories compressed to ZIP from the network element to the + local area + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Get directories compressed to ZIP from the network element to the local + area + tags: + - network_element/action + /ne/action/pullFile: + get: + consumes: + - application/json + description: Getting files from the network element to the local + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Getting files from the network element to the local + tags: + - network_element/action /ne/action/pushFile: post: consumes: @@ -132,21 +472,3172 @@ paths: - application/json responses: "200": - description: data + description: Response Results schema: - additionalProperties: {} type: object security: - ApiKeyAuth: [] summary: Sending files from local to network elements tags: - - network_element + - network_element/action + /ne/action/service: + put: + consumes: + - application/json + description: Network element service operation + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Network element service operation + tags: + - network_element/action + /ne/action/viewFile: + get: + consumes: + - application/json + description: Viewing the contents of a file on the network element side + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Viewing the contents of a file on the network element side + tags: + - network_element/action + /ne/config/data: + delete: + consumes: + - application/json + description: Network element parameter configuration data deletion (array) + parameters: + - description: NE Type + enum: + - IMS + - AMF + - AUSF + - UDM + - SMF + - PCF + - NSSF + - NRF + - UPF + - MME + - CBC + - OMC + - SGWC + in: query + name: neType + required: true + type: string + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + - description: Available attributes, based on querying the list of attributes + in: query + name: paramName + required: true + type: string + - description: Array index + in: query + name: loc + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Network element parameter configuration data deletion (array) + tags: + - network_element/config + get: + consumes: + - application/json + description: Network Element Parameter Configuration Data Information + parameters: + - description: NE Type + enum: + - IMS + - AMF + - AUSF + - UDM + - SMF + - PCF + - NSSF + - NRF + - UPF + - MME + - CBC + - OMC + - SGWC + in: query + name: neType + required: true + type: string + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + - description: Available attributes, based on querying the list of attributes + in: query + name: paramName + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Network Element Parameter Configuration Data Information + tags: + - network_element/config + post: + consumes: + - application/json + description: Network element parameter configuration data added (array) + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Network element parameter configuration data added (array) + tags: + - network_element/config + put: + consumes: + - application/json + description: Network element parameter configuration data modification + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Network element parameter configuration data modification + tags: + - network_element/config + /ne/config/list/{neType}: + get: + consumes: + - application/json + description: Network Element Parameter Configuration Available Attribute Values + List Specify Network Element Type All Unpaged + parameters: + - description: NE Type + enum: + - IMS + - AMF + - AUSF + - UDM + - SMF + - PCF + - NSSF + - NRF + - UPF + - MME + - CBC + - OMC + - SGWC + in: path + name: neType + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Network Element Parameter Configuration Available Attribute Values + List Specify Network Element Type All Unpaged + tags: + - network_element/config + /ne/host/authorizedBySSH: + post: + consumes: + - application/json + description: Network element host SSH method of authorization for password-free + sending + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Network element host SSH method of authorization for password-free + sending + tags: + - network_element/host + /ne/host/checkBySSH: + post: + consumes: + - application/json + description: Checking the server environment by SSH method of Net Element Hosting + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Checking the server environment by SSH method of Net Element Hosting + tags: + - network_element/host + /ne/host/cmd: + post: + consumes: + - application/json + description: The network element host sends the command + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: The network element host sends the command + tags: + - network_element/host + /ne/host/test: + post: + consumes: + - application/json + description: Network element host test connection + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Network element host test connection + tags: + - network_element/host + /ne/info: + post: + consumes: + - application/json + description: Network element information addition + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Network element information addition + tags: + - network_element/info + put: + consumes: + - application/json + description: Network element information modification + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Network element information modification + tags: + - network_element/info + /ne/info/{infoId}: + get: + consumes: + - application/json + description: Network element information + parameters: + - description: list data id + in: path + name: infoId + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Network element information + tags: + - network_element/info + /ne/info/byTypeAndID: + get: + consumes: + - application/json + description: Network element neType and neID queries + parameters: + - description: NE Type + enum: + - IMS + - AMF + - AUSF + - UDM + - SMF + - PCF + - NSSF + - NRF + - UPF + - MME + - CBC + - OMC + - SGWC + in: query + name: neType + required: true + type: string + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Network element neType and neID queries + tags: + - network_element/info + /ne/info/list: + get: + consumes: + - application/json + description: Network element information list + parameters: + - description: The result carries the state of the network element + in: query + name: bandStatus + type: boolean + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Network element information list + tags: + - network_element/info + /ne/info/listAll: + get: + consumes: + - application/json + description: The list of network element information is all unpaginated + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: The list of network element information is all unpaginated + tags: + - network_element/info + /ne/info/state: + get: + consumes: + - application/json + description: Network element information state + parameters: + - description: NE Type + enum: + - IMS + - AMF + - AUSF + - UDM + - SMF + - PCF + - NSSF + - NRF + - UPF + - MME + - CBC + - OMC + - SGWC + in: query + name: neType + required: true + type: string + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Network element information state + tags: + - network_element/info + /ne/license/byTypeAndID: + get: + consumes: + - application/json + description: Network element neType and neID queries + parameters: + - description: NE Type + enum: + - IMS + - AMF + - AUSF + - UDM + - SMF + - PCF + - NSSF + - NRF + - UPF + - MME + - CBC + - OMC + - SGWC + in: query + name: neType + required: true + type: string + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Network element neType and neID queries + tags: + - network_element/license + /ne/license/change: + post: + consumes: + - application/json + description: Network element authorization activation status + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Network element authorization activation status + tags: + - network_element/license + /ne/license/code: + get: + consumes: + - application/json + description: Network Element License Activation License Application Code + parameters: + - description: NE Type + enum: + - IMS + - AMF + - AUSF + - UDM + - SMF + - PCF + - NSSF + - NRF + - UPF + - MME + - CBC + - OMC + - SGWC + in: query + name: neType + required: true + type: string + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Network Element License Activation License Application Code + tags: + - network_element/license + /ne/license/list: + get: + consumes: + - application/json + description: Net Element License Activation List + parameters: + - description: NE Type + enum: + - IMS + - AMF + - AUSF + - UDM + - SMF + - PCF + - NSSF + - NRF + - UPF + - MME + - CBC + - OMC + - SGWC + in: query + name: neType + required: true + type: string + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Net Element License Activation List + tags: + - network_element/license + /ne/license/state: + get: + consumes: + - application/json + description: Network element authorization activation status + parameters: + - description: NE Type + enum: + - IMS + - AMF + - AUSF + - UDM + - SMF + - PCF + - NSSF + - NRF + - UPF + - MME + - CBC + - OMC + - SGWC + in: query + name: neType + required: true + type: string + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Network element authorization activation status + tags: + - network_element/license + /ne/software/list: + get: + consumes: + - application/json + description: List of Network Element Software Packages + parameters: + - description: NE Type + enum: + - IMS + - AMF + - AUSF + - UDM + - SMF + - PCF + - NSSF + - NRF + - UPF + - MME + - CBC + - OMC + - SGWC + in: query + name: neType + required: true + type: string + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: List of Network Element Software Packages + tags: + - network_element/software + /ne/software/newNeVersion: + post: + consumes: + - application/json + description: Net Element package set to Net Element new version + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Net Element package set to Net Element new version + tags: + - network_element/software + /ne/version/operate: + post: + consumes: + - application/json + description: Network element version operation + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Network element version operation + tags: + - network_element/version + /neData/amf/nb/list: + get: + consumes: + - application/json + description: Access Base Station Information List + parameters: + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + - description: Base Station ID + in: query + name: id + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Access Base Station Information List + tags: + - network_data/amf + /neData/amf/nb/list-cfg: + get: + consumes: + - application/json + description: Access to the base station status information list + parameters: + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Access to the base station status information list + tags: + - network_data/amf + /neData/amf/ue/{ueIds}: + delete: + consumes: + - application/json + description: UE Session Deletion + parameters: + - description: list data id, multiple separated by a , sign + in: path + name: ueIds + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: UE Session Deletion + tags: + - network_data/amf + /neData/amf/ue/export: + post: + consumes: + - application/json + description: UE Session List Export + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: UE Session List Export + tags: + - network_data/amf + /neData/amf/ue/list: + get: + consumes: + - application/json + description: UE Session List + parameters: + - description: NE Type only AMF + enum: + - AMF + in: query + name: neType + required: true + type: string + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + - description: imsi + in: query + name: imsi + type: string + - default: 1 + description: pageNum + in: query + name: pageNum + required: true + type: number + - default: 10 + description: pageSize + in: query + name: pageSize + required: true + type: number + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: UE Session List + tags: + - network_data/amf + /neData/ims/cdr/{cdrIds}: + delete: + consumes: + - application/json + description: CDR Session Delete + parameters: + - description: list data id, multiple separated by a , sign + in: path + name: cdrIds + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: CDR Session Delete + tags: + - network_data/ims + /neData/ims/cdr/export: + post: + consumes: + - application/json + description: CDR Session List Export + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: CDR Session List Export + tags: + - network_data/ims + /neData/ims/cdr/list: + get: + consumes: + - application/json + description: CDR Session List + parameters: + - description: NE Type only IMS + enum: + - IMS + in: query + name: neType + required: true + type: string + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + - description: callerParty + in: query + name: callerParty + type: string + - description: calledParty + in: query + name: calledParty + type: string + - default: 1 + description: pageNum + in: query + name: pageNum + required: true + type: number + - default: 10 + description: pageSize + in: query + name: pageSize + required: true + type: number + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: CDR Session List + tags: + - network_data/ims + /neData/ims/session/list: + get: + consumes: + - application/json + description: Online session user list information + parameters: + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + - description: imsi + in: query + name: imsi + type: string + - description: msisdn + in: query + name: msisdn + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Online session user list information + tags: + - network_data/ims + /neData/ims/session/num: + get: + consumes: + - application/json + description: Number of online session users + parameters: + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Number of online session users + tags: + - network_data/ims + /neData/kpi/data: + get: + consumes: + - application/json + description: Access to statistical data + parameters: + - description: NE Type + enum: + - IMS + - AMF + - AUSF + - UDM + - SMF + - PCF + - NSSF + - NRF + - UPF + - MME + - CBC + - OMC + - SGWC + in: query + name: neType + required: true + type: string + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + - default: 1737453599059 + description: Start time (timestamped milliseconds) + in: query + name: startTime + required: true + type: number + - default: 1737453599059 + description: End time (timestamped milliseconds) + in: query + name: endTime + required: true + type: number + - description: interval + enum: + - 5 + - 10 + - 15 + - 30 + - 60 + - 300 + - 600 + - 900 + - 1800 + - 3600 + in: query + name: interval + required: true + type: number + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Access to statistical data + tags: + - network_data/kpi + /neData/kpi/title: + get: + consumes: + - application/json + description: Get Statistical Headings + parameters: + - description: NE Type + enum: + - IMS + - AMF + - AUSF + - UDM + - SMF + - PCF + - NSSF + - NRF + - UPF + - MME + - CBC + - OMC + - SGWC + in: query + name: neType + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Get Statistical Headings + tags: + - network_data/kpi + /neData/mme/nb/list: + get: + consumes: + - application/json + description: Access Base Station Information List + parameters: + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + - description: Base Station ID + in: query + name: id + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Access Base Station Information List + tags: + - network_data/mme + /neData/mme/nb/list-cfg: + get: + consumes: + - application/json + description: Access to the base station status information list + parameters: + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Access to the base station status information list + tags: + - network_data/mme + /neData/mme/ue/{ueIds}: + delete: + consumes: + - application/json + description: UE Session Deletion + parameters: + - description: list data id, multiple separated by a , sign + in: path + name: ueIds + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: UE Session Deletion + tags: + - network_data/mme + /neData/mme/ue/export: + post: + consumes: + - application/json + description: UE Session List Export + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: UE Session List Export + tags: + - network_data/mme + /neData/mme/ue/list: + get: + consumes: + - application/json + description: UE Session List + parameters: + - description: NE Type only MME + enum: + - MME + in: query + name: neType + required: true + type: string + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + - description: imsi + in: query + name: imsi + type: string + - default: 1 + description: pageNum + in: query + name: pageNum + required: true + type: number + - default: 10 + description: pageSize + in: query + name: pageSize + required: true + type: number + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: UE Session List + tags: + - network_data/mme + /neData/sgwc/cdr/{cdrIds}: + delete: + consumes: + - application/json + description: CDR Session Delete + parameters: + - description: list data id, multiple separated by a , sign + in: path + name: cdrIds + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: CDR Session Delete + tags: + - network_data/sgwc + /neData/sgwc/cdr/export: + post: + consumes: + - application/json + description: CDR Session List Export + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: CDR Session List Export + tags: + - network_data/sgwc + /neData/sgwc/cdr/list: + get: + consumes: + - application/json + description: CDR Session List + parameters: + - description: NE Type only SGWC + enum: + - SGWC + in: query + name: neType + required: true + type: string + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + - description: imsi + in: query + name: imsi + type: string + - description: msisdn + in: query + name: msisdn + type: string + - default: 1 + description: pageNum + in: query + name: pageNum + required: true + type: number + - default: 10 + description: pageSize + in: query + name: pageSize + required: true + type: number + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: CDR Session List + tags: + - network_data/sgwc + /neData/smf/cdr/{cdrIds}: + delete: + consumes: + - application/json + description: CDR Session Delete + parameters: + - description: list data id, multiple separated by a , sign + in: path + name: cdrIds + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: CDR Session Delete + tags: + - network_data/smf + /neData/smf/cdr/export: + post: + consumes: + - application/json + description: CDR Session List Export + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: CDR Session List Export + tags: + - network_data/smf + /neData/smf/cdr/list: + get: + consumes: + - application/json + description: CDR Session List + parameters: + - description: NE Type only SMF + enum: + - SMF + in: query + name: neType + required: true + type: string + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + - description: subscriberID is IMSI + in: query + name: subscriberID + type: string + - default: 1 + description: pageNum + in: query + name: pageNum + required: true + type: number + - default: 10 + description: pageSize + in: query + name: pageSize + required: true + type: number + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: CDR Session List + tags: + - network_data/smf + /neData/smf/session/list: + get: + consumes: + - application/json + description: Online session user list information + parameters: + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + - description: imsi + in: query + name: imsi + type: string + - description: msisdn + in: query + name: msisdn + type: string + - description: upstate + in: query + name: upstate + type: string + - default: "50" + description: pageNum + in: query + name: pageNum + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Online session user list information + tags: + - network_data/smf + /neData/smf/sub/num: + get: + consumes: + - application/json + description: Number of online session users + parameters: + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Number of online session users + tags: + - network_data/smf + /neData/smsc/cdr/{cdrIds}: + delete: + consumes: + - application/json + description: CDR Session Delete + parameters: + - description: list data id, multiple separated by a , sign + in: path + name: cdrIds + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: CDR Session Delete + tags: + - network_data/smsc + /neData/smsc/cdr/export: + post: + consumes: + - application/json + description: CDR Session List Export + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: CDR Session List Export + tags: + - network_data/smsc + /neData/smsc/cdr/list: + get: + consumes: + - application/json + description: CDR Session List + parameters: + - description: NE Type only SMSC + enum: + - SMSC + in: query + name: neType + required: true + type: string + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + - description: callerParty + in: query + name: callerParty + type: string + - description: calledParty + in: query + name: calledParty + type: string + - default: 1 + description: pageNum + in: query + name: pageNum + required: true + type: number + - default: 10 + description: pageSize + in: query + name: pageSize + required: true + type: number + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: CDR Session List + tags: + - network_data/smsc + /neData/udm/auth/{neId}: + post: + consumes: + - application/json + description: UDM Authentication User Added + parameters: + - default: "001" + description: NE ID + in: path + name: neId + required: true + type: string + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: UDM Authentication User Added + tags: + - network_data/udm/auth + put: + consumes: + - application/json + description: UDM Authenticated User Modification + parameters: + - default: "001" + description: NE ID + in: path + name: neId + required: true + type: string + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: UDM Authenticated User Modification + tags: + - network_data/udm/auth + /neData/udm/auth/{neId}/{imsi}/{num}: + delete: + consumes: + - application/json + description: UDM Authentication User Batch Deletion + parameters: + - default: "001" + description: NE ID + in: path + name: neId + required: true + type: string + - description: User data imsi + in: path + name: imsi + required: true + type: string + - description: Incremental number + in: path + name: num + required: true + type: number + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: UDM Authentication User Batch Deletion + tags: + - network_data/udm/auth + /neData/udm/auth/{neId}/{value}: + delete: + consumes: + - application/json + description: UDM Authenticated User Deletion + parameters: + - default: "001" + description: NE ID + in: path + name: neId + required: true + type: string + - description: User data imsi, multiple separated by a , sign + in: path + name: value + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: UDM Authenticated User Deletion + tags: + - network_data/udm/auth + get: + consumes: + - application/json + description: UDM Authentication User Information + parameters: + - default: "001" + description: NE ID + in: path + name: neId + required: true + type: string + - description: User data imsi + in: path + name: value + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: UDM Authentication User Information + tags: + - network_data/udm/auth + post: + consumes: + - application/json + description: UDM Authentication User Batch Add + parameters: + - default: "001" + description: NE ID + in: path + name: neId + required: true + type: string + - description: Incremental number + in: path + name: value + required: true + type: number + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: UDM Authentication User Batch Add + tags: + - network_data/udm/auth + /neData/udm/auth/export: + post: + consumes: + - application/json + description: UDM Authenticated User Export + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: UDM Authenticated User Export + tags: + - network_data/udm/auth + /neData/udm/auth/import: + post: + consumes: + - application/json + description: UDM Authenticated User Import + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: UDM Authenticated User Import + tags: + - network_data/udm/auth + /neData/udm/auth/list: + get: + consumes: + - application/json + description: UDM Authentication User List + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: UDM Authentication User List + tags: + - network_data/udm/auth + /neData/udm/auth/resetData/{neId}: + post: + consumes: + - application/json + description: UDM Authentication User Reload Data + parameters: + - default: "001" + description: NE ID + in: path + name: neId + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: UDM Authentication User Reload Data + tags: + - network_data/udm/auth + /neData/udm/sub/{neId}: + post: + consumes: + - application/json + description: UDM Subscriber User Added + parameters: + - default: "001" + description: NE ID + in: path + name: neId + required: true + type: string + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: UDM Subscriber User Added + tags: + - network_data/udm/sub + put: + consumes: + - application/json + description: UDM Subscriber User Modification + parameters: + - default: "001" + description: NE ID + in: path + name: neId + required: true + type: string + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: UDM Subscriber User Modification + tags: + - network_data/udm/sub + /neData/udm/sub/{neId}/{imsi}/{num}: + delete: + consumes: + - application/json + description: UDM Subscriber User Batch Deletion + parameters: + - default: "001" + description: NE ID + in: path + name: neId + required: true + type: string + - description: User data imsi + in: path + name: imsi + required: true + type: string + - default: 1 + description: Incremental number + in: path + name: num + required: true + type: number + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: UDM Subscriber User Batch Deletion + tags: + - network_data/udm/sub + /neData/udm/sub/{neId}/{value}: + delete: + consumes: + - application/json + description: UDM Subscriber User Deletion + parameters: + - default: "001" + description: NE ID + in: path + name: neId + required: true + type: string + - description: User data imsi, multiple separated by a , sign + in: path + name: value + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: UDM Subscriber User Deletion + tags: + - network_data/udm/sub + get: + consumes: + - application/json + description: UDM Subscriber User Information + parameters: + - default: "001" + description: NE ID + in: path + name: neId + required: true + type: string + - description: User data imsi + in: path + name: value + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: UDM Subscriber User Information + tags: + - network_data/udm/sub + post: + consumes: + - application/json + description: UDM Subscriber User Batch Add + parameters: + - default: "001" + description: NE ID + in: path + name: neId + required: true + type: string + - default: 1 + description: Incremental number + in: path + name: value + required: true + type: number + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: UDM Subscriber User Batch Add + tags: + - network_data/udm/sub + /neData/udm/sub/export: + post: + consumes: + - application/json + description: UDM Subscriber User Export + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: UDM Subscriber User Export + tags: + - network_data/udm/sub + /neData/udm/sub/import: + post: + consumes: + - application/json + description: UDM Subscriber User Import + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: UDM Subscriber User Import + tags: + - network_data/udm/sub + /neData/udm/sub/list: + get: + consumes: + - application/json + description: UDM Subscriber User List + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: UDM Subscriber User List + tags: + - network_data/udm/sub + /neData/udm/sub/resetData/{neId}: + post: + consumes: + - application/json + description: UDM Subscriber User Reload Data + parameters: + - default: "001" + description: NE ID + in: path + name: neId + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: UDM Subscriber User Reload Data + tags: + - network_data/udm/sub + /neData/upf/totalFlow: + get: + consumes: + - application/json + description: Total number of flows N3 upstream N6 downstream + parameters: + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + - description: Statistical time a few days before + enum: + - 0 + - 7 + - 30 + in: query + name: day + required: true + type: number + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Total number of flows N3 upstream N6 downstream + tags: + - network_data/upf + /sys-conf: + get: + consumes: + - application/json + description: Configuration information for the system + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + summary: Configuration information for the system + tags: + - common + /system/config/list: + get: + consumes: + - application/json + description: Config Information List + parameters: + - description: configName + in: query + name: configName + type: string + - default: 1 + description: pageNum + in: query + name: pageNum + required: true + type: number + - default: 10 + description: pageSize + in: query + name: pageSize + required: true + type: number + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Config Information List + tags: + - system/config + /system/dept/list: + get: + consumes: + - application/json + description: Dept Information List + parameters: + - description: deptId + in: query + name: deptId + type: string + - description: parentId + in: query + name: parentId + type: string + - description: deptName + in: query + name: deptName + type: string + - description: status + enum: + - "0" + - "1" + in: query + name: status + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Dept Information List + tags: + - system/dept + /system/dict/data/list: + get: + consumes: + - application/json + description: Dictionary Data List + parameters: + - description: dictLabel + in: query + name: dictLabel + type: string + - default: 1 + description: pageNum + in: query + name: pageNum + required: true + type: number + - default: 10 + description: pageSize + in: query + name: pageSize + required: true + type: number + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Dictionary Data List + tags: + - system/dict/data + /system/dict/type/list: + get: + consumes: + - application/json + description: Dictionary Type List + parameters: + - description: dictName + in: query + name: dictName + type: string + - default: 1 + description: pageNum + in: query + name: pageNum + required: true + type: number + - default: 10 + description: pageSize + in: query + name: pageSize + required: true + type: number + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Dictionary Type List + tags: + - system/dict/type + /system/log/login/list: + get: + consumes: + - application/json + description: System Login Log List + parameters: + - description: userName + in: query + name: userName + type: string + - default: 1 + description: pageNum + in: query + name: pageNum + required: true + type: number + - default: 10 + description: pageSize + in: query + name: pageSize + required: true + type: number + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: System Login Log List + tags: + - system/log/login + /system/log/operate/list: + get: + consumes: + - application/json + description: System Operation Log List + parameters: + - description: title + in: query + name: title + type: string + - default: 1 + description: pageNum + in: query + name: pageNum + required: true + type: number + - default: 10 + description: pageSize + in: query + name: pageSize + required: true + type: number + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: System Operation Log List + tags: + - system/log/operate + /system/menu/list: + get: + consumes: + - application/json + description: Menu Information List + parameters: + - description: menuName + in: query + name: menuName + type: string + - description: status + enum: + - "0" + - "1" + in: query + name: status + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Menu Information List + tags: + - system/menu + /system/post/list: + get: + consumes: + - application/json + description: Post Information List + parameters: + - description: postName + in: query + name: postName + type: string + - default: 1 + description: pageNum + in: query + name: pageNum + required: true + type: number + - default: 10 + description: pageSize + in: query + name: pageSize + required: true + type: number + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Post Information List + tags: + - system/post + /system/role/list: + get: + consumes: + - application/json + description: Role Information List + parameters: + - description: roleName + in: query + name: roleName + type: string + - default: 1 + description: pageNum + in: query + name: pageNum + required: true + type: number + - default: 10 + description: pageSize + in: query + name: pageSize + required: true + type: number + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Role Information List + tags: + - system/role + /system/user/list: + get: + consumes: + - application/json + description: User Information List + parameters: + - description: userName + in: query + name: userName + type: string + - default: 1 + description: pageNum + in: query + name: pageNum + required: true + type: number + - default: 10 + description: pageSize + in: query + name: pageSize + required: true + type: number + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: User Information List + tags: + - system/user + /system/user/profile: + get: + consumes: + - application/json + description: Personal Information + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Personal Information + tags: + - system/user/profile + put: + consumes: + - application/json + description: Personal Information Modification + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Personal Information Modification + tags: + - system/user/profile + /system/user/profile/avatar: + post: + consumes: + - multipart/form-data + description: Personal avatar upload + parameters: + - description: The file to upload. + in: formData + name: file + required: true + type: file + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Personal avatar upload + tags: + - system/user/profile + /system/user/profile/updatePwd: + put: + consumes: + - application/json + description: Personal Reset Password + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Personal Reset Password + tags: + - system/user/profile + /tool/iperf/i: + post: + consumes: + - application/json + description: iperf software installation + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: iperf software installation + tags: + - tool/iperf + /tool/iperf/run: + get: + consumes: + - application/json + description: (ws://) iperf software running + parameters: + - description: NE Type + enum: + - IMS + - AMF + - AUSF + - UDM + - SMF + - PCF + - NSSF + - NRF + - UPF + - MME + - CBC + - OMC + - SGWC + in: query + name: neType + required: true + type: string + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + - default: 120 + description: Terminal line characters + in: query + name: cols + type: number + - default: 40 + description: Terminal display lines + in: query + name: rows + type: number + - description: Authorization + in: query + name: access_token + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: (ws://) iperf software running + tags: + - tool/iperf + /tool/iperf/v: + get: + consumes: + - application/json + description: iperf version information + parameters: + - description: NE Type + enum: + - IMS + - AMF + - AUSF + - UDM + - SMF + - PCF + - NSSF + - NRF + - UPF + - MME + - CBC + - OMC + - SGWC + in: query + name: neType + required: true + type: string + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + - description: Version + enum: + - V2 + - V3 + in: query + name: version + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: iperf version information + tags: + - tool/iperf + /tool/ping: + get: + consumes: + - application/json + description: (ws://) Ping for Local UNIX running + parameters: + - description: Authorization + in: query + name: access_token + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: (ws://) Ping for Local UNIX running + tags: + - tool/ping + post: + consumes: + - application/json + description: Ping for Basic Information Running + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Ping for Basic Information Running + tags: + - tool/ping + /tool/ping/run: + get: + consumes: + - application/json + description: (ws://) Ping for UNIX runs on the network element side + parameters: + - description: NE Type + enum: + - IMS + - AMF + - AUSF + - UDM + - SMF + - PCF + - NSSF + - NRF + - UPF + - MME + - CBC + - OMC + - SGWC + in: query + name: neType + required: true + type: string + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + - default: 120 + description: Terminal line characters + in: query + name: cols + type: number + - default: 40 + description: Terminal display lines + in: query + name: rows + type: number + - description: Authorization + in: query + name: access_token + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: (ws://) Ping for UNIX runs on the network element side + tags: + - tool/ping + /tool/ping/v: + get: + consumes: + - application/json + description: Ping for version information on the network element side + parameters: + - description: NE Type + enum: + - IMS + - AMF + - AUSF + - UDM + - SMF + - PCF + - NSSF + - NRF + - UPF + - MME + - CBC + - OMC + - SGWC + in: query + name: neType + required: true + type: string + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Ping for version information on the network element side + tags: + - tool/ping + /trace/tcpdump/start: + post: + consumes: + - application/json + description: Network Element Capture Packet PACP Start + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Network Element Capture Packet PACP Start + tags: + - trace/tcpdump + /trace/tcpdump/stop: + post: + consumes: + - application/json + description: Network Element Capture Packet PACP Stop + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: Network Element Capture Packet PACP Stop + tags: + - trace/tcpdump + /trace/tcpdump/upf: + post: + consumes: + - application/json + description: UPF Standard Edition Internal Grab Bag + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - ApiKeyAuth: [] + summary: UPF Standard Edition Internal Grab Bag + tags: + - trace/tcpdump + /ws: + get: + consumes: + - application/json + description: (ws://) Generic + parameters: + - description: Subscribe to message groups, multiple separated by commas + in: query + name: subGroupID + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + summary: (ws://) Generic + tags: + - ws + /ws/view: + get: + consumes: + - application/json + description: (ws://) Terminal Interactive File Content Viewing + parameters: + - description: NE Type + enum: + - IMS + - AMF + - AUSF + - UDM + - SMF + - PCF + - NSSF + - NRF + - UPF + - MME + - CBC + - OMC + - SGWC + in: query + name: neType + required: true + type: string + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + - default: 120 + description: Terminal line characters + in: query + name: cols + type: number + - default: 40 + description: Terminal display lines + in: query + name: rows + type: number + - description: Authorization + in: query + name: access_token + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + summary: (ws://) Terminal Interactive File Content Viewing + tags: + - ws schemes: - http - https securityDefinitions: ApiKeyAuth: - description: Get the key through the login interface, fill in e.g. Bearer + description: Get the key through the common/authorization System Login, fill in + content "Bearer " in: header name: Authorization type: apiKey @@ -156,17 +3647,87 @@ tags: name: chart - description: common interface name: common +- description: common authorization Interface + name: common/authorization +- description: common file Interface + name: common/file - description: monitor interface name: monitor +- description: monitor cache interface + name: monitor/cache +- description: monitor system user online interface + name: monitor/online - description: network data interface name: network_data +- description: network data kpi interface + name: network_data/kpi +- description: network data amf interface + name: network_data/amf +- description: network data ims interface + name: network_data/ims +- description: network data mme interface + name: network_data/mme +- description: network data sgwc interface + name: network_data/sgwc +- description: network data smf interface + name: network_data/smf +- description: network data smsc interface + name: network_data/smsc +- description: network data udm authentication interface + name: network_data/udm/auth +- description: network data udm subscriber interface + name: network_data/udm/sub +- description: network data upf interface + name: network_data/upf - description: network element interface name: network_element +- description: network element operating interface + name: network_element/action +- description: network element information interface + name: network_element/info +- description: network element host interface + name: network_element/host +- description: network element license interface + name: network_element/license +- description: network element software interface + name: network_element/software +- description: network element version interface + name: network_element/version +- description: network element config interface + name: network_element/config - description: system interface name: system +- description: system config interface + name: system/config +- description: system dept interface + name: system/dept +- description: system dict data interface + name: system/dict/data +- description: system dict type interface + name: system/dict/type +- description: system log login interface + name: system/log/login +- description: system log operate interface + name: system/log/operate +- description: system menu interface + name: system/menu +- description: system post interface + name: system/post +- description: system role interface + name: system/role +- description: system user interface + name: system/user +- description: system user profile interface + name: system/user/profile - description: tool interface name: tool +- description: tool ping interface + name: tool/ping +- description: tool iperf interface + name: tool/iperf - description: trace interface name: trace +- description: trace tcpdump interface + name: trace/tcpdump - description: ws interface name: ws From 82615e1982e95e2f04a7d063718eb4318cd49e48 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Thu, 23 Jan 2025 15:07:39 +0800 Subject: [PATCH 02/11] =?UTF-8?q?fix:=20=E7=BD=91=E5=85=83=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=9F=A5=E8=AF=A2=E7=BB=93=E6=9E=84=E4=BD=93=E9=99=90?= =?UTF-8?q?=E5=AE=9AneType=E8=8C=83=E5=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/network_data/model/cdr_event_ims.go | 2 +- src/modules/network_data/model/cdr_event_smf.go | 2 +- src/modules/network_data/model/cdr_event_smsc.go | 2 +- src/modules/network_data/model/ue_event_amf.go | 2 +- src/modules/network_data/model/ue_event_mme.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/modules/network_data/model/cdr_event_ims.go b/src/modules/network_data/model/cdr_event_ims.go index c6e463bf..e6f9e77d 100644 --- a/src/modules/network_data/model/cdr_event_ims.go +++ b/src/modules/network_data/model/cdr_event_ims.go @@ -20,7 +20,7 @@ func (*CDREventIMS) TableName() string { // CDREventIMSQuery CDR会话对象IMS查询参数结构体 type CDREventIMSQuery struct { - NeType string `json:"neType" form:"neType" binding:"required"` // 网元类型IMS + NeType string `json:"neType" form:"neType" binding:"required,oneof=IMS"` // 网元类型IMS NeID string `json:"neId" form:"neId" binding:"required"` RmUID string `json:"rmUID" form:"rmUID"` RecordType string `json:"recordType" form:"recordType"` // 记录行为 MOC MTC diff --git a/src/modules/network_data/model/cdr_event_smf.go b/src/modules/network_data/model/cdr_event_smf.go index 3053d53b..b5926b25 100644 --- a/src/modules/network_data/model/cdr_event_smf.go +++ b/src/modules/network_data/model/cdr_event_smf.go @@ -22,7 +22,7 @@ func (*CDREventSMF) TableName() string { // CDREventSMFQuery CDR会话对象SMF查询参数结构体 type CDREventSMFQuery struct { - NeType string `json:"neType" form:"neType" binding:"required"` // SMF + NeType string `json:"neType" form:"neType" binding:"required,oneof=SMF"` // 网元类型, 暂时支持SMF NeID string `json:"neId" form:"neId" binding:"required"` RmUID string `json:"rmUID" form:"rmUID"` RecordType string `json:"recordType" form:"recordType"` // 暂时没用到 diff --git a/src/modules/network_data/model/cdr_event_smsc.go b/src/modules/network_data/model/cdr_event_smsc.go index a851a9b1..a27074f1 100644 --- a/src/modules/network_data/model/cdr_event_smsc.go +++ b/src/modules/network_data/model/cdr_event_smsc.go @@ -20,7 +20,7 @@ func (*CDREventSMSC) TableName() string { // CDREventSMSCQuery CDR会话对象SMSC查询参数结构体 type CDREventSMSCQuery struct { - NeType string `json:"neType" form:"neType" binding:"required"` // 网元类型SMSC + NeType string `json:"neType" form:"neType" binding:"required,oneof=SMSC"` // 网元类型, 暂时支持SMSC NeID string `json:"neId" form:"neId" binding:"required"` RmUID string `json:"rmUID" form:"rmUID"` RecordType string `json:"recordType" form:"recordType"` // 记录行为 MOSM MTSM diff --git a/src/modules/network_data/model/ue_event_amf.go b/src/modules/network_data/model/ue_event_amf.go index a4649267..7ba8944f 100644 --- a/src/modules/network_data/model/ue_event_amf.go +++ b/src/modules/network_data/model/ue_event_amf.go @@ -21,7 +21,7 @@ func (*UEEventAMF) TableName() string { // UEEventAMFQuery UE会话对象AMF查询参数结构体 type UEEventAMFQuery struct { - NeType string `json:"neType" form:"neType" binding:"required"` // 网元类型, 暂时支持AMF + NeType string `json:"neType" form:"neType" binding:"required,oneof=AMF"` // 网元类型, 暂时支持AMF NeID string `json:"neId" form:"neId" binding:"required"` RmUID string `json:"rmUID" form:"rmUID"` EventType string `json:"eventType" form:"eventType"` // 事件类型 auth-result detach cm-state diff --git a/src/modules/network_data/model/ue_event_mme.go b/src/modules/network_data/model/ue_event_mme.go index bff678a7..28100786 100644 --- a/src/modules/network_data/model/ue_event_mme.go +++ b/src/modules/network_data/model/ue_event_mme.go @@ -21,7 +21,7 @@ func (*UEEventMME) TableName() string { // UEEventMMEQuery UE会话对象MME查询参数结构体 type UEEventMMEQuery struct { - NeType string `json:"neType" form:"neType" binding:"required"` // 网元类型, 暂时支持MME + NeType string `json:"neType" form:"neType" binding:"required,oneof=MME"` // 网元类型, 暂时支持MME NeID string `json:"neId" form:"neId" binding:"required"` RmUID string `json:"rmUID" form:"rmUID"` EventType string `json:"eventType" form:"eventType"` // 事件类型 auth-result detach cm-state From a431963e36b3f2610b58f76baf4891b5d9ed0a05 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Thu, 23 Jan 2025 15:09:12 +0800 Subject: [PATCH 03/11] =?UTF-8?q?fix:=20=E7=BD=91=E5=85=83=E7=9B=B4?= =?UTF-8?q?=E8=BF=9ESMF=E4=BC=9A=E8=AF=9DpageNum=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E8=BD=AC=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/network_element/fetch_link/smf.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/network_element/fetch_link/smf.go b/src/modules/network_element/fetch_link/smf.go index 93dc7748..41633cb5 100644 --- a/src/modules/network_element/fetch_link/smf.go +++ b/src/modules/network_element/fetch_link/smf.go @@ -61,7 +61,8 @@ func SMFSubInfoList(neInfo model.NeInfo, data map[string]string) (map[string]any } // 固定页数量50条 if v, ok := data["pageNum"]; ok && v != "" { - query = append(query, fmt.Sprintf("pageNum=%s", v)) + pageNum := parse.Number(v) + query = append(query, fmt.Sprintf("pageNum=%d", pageNum)) } if len(query) > 0 { From bfe898d15f14ff9ba2e48e6cbe70e66632f79c83 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 24 Jan 2025 09:40:28 +0800 Subject: [PATCH 04/11] =?UTF-8?q?feat:=20swagger=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E6=9B=B4=E6=96=B01.0.8=E6=94=B9TokenAuth?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- restagent/restagent.go | 2 +- src/modules/chart/controller/chart_graph.go | 8 +- src/modules/common/controller/account.go | 6 +- src/modules/common/controller/captcha.go | 2 +- src/modules/common/controller/file.go | 8 +- src/modules/monitor/controller/monitor.go | 2 +- src/modules/monitor/controller/sys_cache.go | 2 +- .../monitor/controller/sys_user_online.go | 2 +- src/modules/monitor/controller/system_info.go | 2 +- .../network_data/controller/all_kpi.go | 4 +- src/modules/network_data/controller/amf.go | 10 +- src/modules/network_data/controller/ims.go | 10 +- src/modules/network_data/controller/mme.go | 10 +- src/modules/network_data/controller/sgwc.go | 6 +- src/modules/network_data/controller/smf.go | 10 +- src/modules/network_data/controller/smsc.go | 6 +- .../network_data/controller/udm_auth.go | 20 +- .../network_data/controller/udm_sub.go | 20 +- src/modules/network_data/controller/upf.go | 2 +- .../network_element/controller/action.go | 12 +- .../network_element/controller/ne_config.go | 10 +- .../network_element/controller/ne_host.go | 8 +- .../network_element/controller/ne_info.go | 16 +- .../network_element/controller/ne_license.go | 10 +- .../network_element/controller/ne_software.go | 4 +- .../network_element/controller/ne_version.go | 2 +- src/modules/system/controller/sys_config.go | 2 +- src/modules/system/controller/sys_dept.go | 2 +- .../system/controller/sys_dict_data.go | 2 +- .../system/controller/sys_dict_type.go | 2 +- .../system/controller/sys_log_login.go | 2 +- .../system/controller/sys_log_operate.go | 2 +- src/modules/system/controller/sys_menu.go | 2 +- src/modules/system/controller/sys_post.go | 2 +- src/modules/system/controller/sys_profile.go | 8 +- src/modules/system/controller/sys_role.go | 2 +- src/modules/system/controller/sys_user.go | 2 +- src/modules/tool/controller/iperf.go | 6 +- src/modules/tool/controller/ping.go | 8 +- src/modules/trace/controller/tcpdump.go | 6 +- swagger2docs/docs.go | 246 +++++++++--------- swagger2docs/swagger.json | 246 +++++++++--------- swagger2docs/swagger.yaml | 246 +++++++++--------- 43 files changed, 490 insertions(+), 490 deletions(-) diff --git a/restagent/restagent.go b/restagent/restagent.go index 9cff388f..4a3eaa63 100644 --- a/restagent/restagent.go +++ b/restagent/restagent.go @@ -141,7 +141,7 @@ var wg sync.WaitGroup // @BasePath / // @schemes http https // -// @securityDefinitions.apikey ApiKeyAuth +// @securityDefinitions.apikey TokenAuth // @in header // @name Authorization // @description Get the key through the common/authorization System Login, fill in content "Bearer " diff --git a/src/modules/chart/controller/chart_graph.go b/src/modules/chart/controller/chart_graph.go index 983bb5f1..fbb01084 100644 --- a/src/modules/chart/controller/chart_graph.go +++ b/src/modules/chart/controller/chart_graph.go @@ -30,7 +30,7 @@ type ChartGraphController struct { // @Accept json // @Produce json // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Get relationship graph group name // @Description Get relationship graph group name // @Router /chart/graph/groups [get] @@ -49,7 +49,7 @@ func (s *ChartGraphController) GroupNames(c *gin.Context) { // @Param group query string true "Group" // @Param type query string true "Type" Enums(node, edge, combo) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Getting Relationship Map Data // @Description Getting Relationship Map Data // @Router /chart/graph [get] @@ -77,7 +77,7 @@ func (s *ChartGraphController) Load(c *gin.Context) { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Saving Relationship Diagram Data // @Description Saving Relationship Diagram Data // @Router /chart/graph/ [post] @@ -119,7 +119,7 @@ func (s *ChartGraphController) Save(c *gin.Context) { // @Produce json // @Param group path string true "Group" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Deleting Relationship Diagram Data // @Description Deleting Relationship Diagram Data // @Router /chart/graph/{group} [delete] diff --git a/src/modules/common/controller/account.go b/src/modules/common/controller/account.go index 995aaa28..694132bb 100644 --- a/src/modules/common/controller/account.go +++ b/src/modules/common/controller/account.go @@ -103,7 +103,7 @@ func (s *AccountController) Login(c *gin.Context) { // @Accept json // @Produce json // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Login User Information // @Description Login User Information // @Router /getInfo [get] @@ -140,7 +140,7 @@ func (s *AccountController) Info(c *gin.Context) { // @Accept json // @Produce json // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Login User Routing Information // @Description Login User Routing Information // @Router /getRouters [get] @@ -175,7 +175,7 @@ func (s *AccountController) Router(c *gin.Context) { // @Accept json // @Produce json // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary System Logout // @Description System Logout // @Router /logout [post] diff --git a/src/modules/common/controller/captcha.go b/src/modules/common/controller/captcha.go index c8180943..c39a6430 100644 --- a/src/modules/common/controller/captcha.go +++ b/src/modules/common/controller/captcha.go @@ -37,7 +37,7 @@ type CaptchaController struct { // @Accept json // @Produce json // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Get CAPTCHA // @Description Get CAPTCHA // @Router /captchaImage [get] diff --git a/src/modules/common/controller/file.go b/src/modules/common/controller/file.go index bc1a14d4..173b2d2b 100644 --- a/src/modules/common/controller/file.go +++ b/src/modules/common/controller/file.go @@ -78,7 +78,7 @@ func (s *FileController) Download(c *gin.Context) { // @Param file formData file true "The file to upload." // @Param subPath formData string true "subpath, eg: default or common" Enums(default, common) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Upload a file // @Description Upload a file // @Router /file/upload [post] @@ -122,7 +122,7 @@ func (s *FileController) Upload(c *gin.Context) { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Slice file checking // @Description Slice file checking // @Router /file/chunkCheck [post] @@ -158,7 +158,7 @@ func (s *FileController) ChunkCheck(c *gin.Context) { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Slice file merge // @Description Slice file merge // @Router /file/chunkMerge [post] @@ -209,7 +209,7 @@ func (s *FileController) ChunkMerge(c *gin.Context) { // @Param identifier formData string true "Slice Marker" // @Param index formData string true "Slice No." // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Sliced file upload // @Description Sliced file upload // @Router /file/chunkUpload [post] diff --git a/src/modules/monitor/controller/monitor.go b/src/modules/monitor/controller/monitor.go index 35802d12..b1e90d34 100644 --- a/src/modules/monitor/controller/monitor.go +++ b/src/modules/monitor/controller/monitor.go @@ -29,7 +29,7 @@ type MonitorController struct { // @Accept json // @Produce json // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Resource monitoring information loading // @Description Resource monitoring information loading // @Router /monitor/load [get] diff --git a/src/modules/monitor/controller/sys_cache.go b/src/modules/monitor/controller/sys_cache.go index 20ae2b7a..06c4c897 100644 --- a/src/modules/monitor/controller/sys_cache.go +++ b/src/modules/monitor/controller/sys_cache.go @@ -27,7 +27,7 @@ type SysCacheController struct{} // @Accept json // @Produce json // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Cache Service Information // @Description Cache Service Information // @Router /monitor/cache [get] diff --git a/src/modules/monitor/controller/sys_user_online.go b/src/modules/monitor/controller/sys_user_online.go index 3add90c9..09b0edec 100644 --- a/src/modules/monitor/controller/sys_user_online.go +++ b/src/modules/monitor/controller/sys_user_online.go @@ -37,7 +37,7 @@ type SysUserOnlineController struct { // @Accept json // @Produce json // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary System Online User List // @Description System Online User List // @Router /monitor/online/list [get] diff --git a/src/modules/monitor/controller/system_info.go b/src/modules/monitor/controller/system_info.go index 78a9ffe6..382b8425 100644 --- a/src/modules/monitor/controller/system_info.go +++ b/src/modules/monitor/controller/system_info.go @@ -27,7 +27,7 @@ type SystemInfoController struct { // @Accept json // @Produce json // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Server Information // @Description Server Information // @Router /monitor/system-info [get] diff --git a/src/modules/network_data/controller/all_kpi.go b/src/modules/network_data/controller/all_kpi.go index cad3e913..6877b3a3 100644 --- a/src/modules/network_data/controller/all_kpi.go +++ b/src/modules/network_data/controller/all_kpi.go @@ -37,7 +37,7 @@ type PerfKPIController struct { // @Param endTime query number true "End time (timestamped milliseconds)" default(1737453599059) // @Param interval query number true "interval" Enums(5,10,15,30,60,300,600,900,1800,3600) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Access to statistical data // @Description Access to statistical data // @Router /neData/kpi/data [get] @@ -75,7 +75,7 @@ func (s *PerfKPIController) GoldKPI(c *gin.Context) { // @Produce json // @Param neType query string true "NE Type" Enums(IMS,AMF,AUSF,UDM,SMF,PCF,NSSF,NRF,UPF,MME,CBC,OMC,SGWC) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Get Statistical Headings // @Description Get Statistical Headings // @Router /neData/kpi/title [get] diff --git a/src/modules/network_data/controller/amf.go b/src/modules/network_data/controller/amf.go index eb7b229c..cb7dac1a 100644 --- a/src/modules/network_data/controller/amf.go +++ b/src/modules/network_data/controller/amf.go @@ -44,7 +44,7 @@ type AMFController struct { // @Param pageNum query number true "pageNum" default(1) // @Param pageSize query number true "pageSize" default(10) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary UE Session List // @Description UE Session List // @Router /neData/amf/ue/list [get] @@ -78,7 +78,7 @@ func (s *AMFController) UEList(c *gin.Context) { // @Produce json // @Param ueIds path string true "list data id, multiple separated by a , sign" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary UE Session Deletion // @Description UE Session Deletion // @Router /neData/amf/ue/{ueIds} [delete] @@ -114,7 +114,7 @@ func (s *AMFController) UERemove(c *gin.Context) { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary UE Session List Export // @Description UE Session List Export // @Router /neData/amf/ue/export [post] @@ -166,7 +166,7 @@ func (s *AMFController) UEExport(c *gin.Context) { // @Param neId query string true "NE ID" default(001) // @Param id query string false "Base Station ID" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Access Base Station Information List // @Description Access Base Station Information List // @Router /neData/amf/nb/list [get] @@ -209,7 +209,7 @@ func (s *AMFController) NbInfoList(c *gin.Context) { // @Produce json // @Param neId query string true "NE ID" default(001) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Access to the base station status information list // @Description Access to the base station status information list // @Router /neData/amf/nb/list-cfg [get] diff --git a/src/modules/network_data/controller/ims.go b/src/modules/network_data/controller/ims.go index f65060a1..5952e20b 100644 --- a/src/modules/network_data/controller/ims.go +++ b/src/modules/network_data/controller/ims.go @@ -45,7 +45,7 @@ type IMSController struct { // @Param pageNum query number true "pageNum" default(1) // @Param pageSize query number true "pageSize" default(10) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary CDR Session List // @Description CDR Session List // @Router /neData/ims/cdr/list [get] @@ -79,7 +79,7 @@ func (s *IMSController) CDRList(c *gin.Context) { // @Produce json // @Param cdrIds path string true "list data id, multiple separated by a , sign" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary CDR Session Delete // @Description CDR Session Delete // @Router /neData/ims/cdr/{cdrIds} [delete] @@ -115,7 +115,7 @@ func (s *IMSController) CDRRemove(c *gin.Context) { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary CDR Session List Export // @Description CDR Session List Export // @Router /neData/ims/cdr/export [post] @@ -166,7 +166,7 @@ func (s *IMSController) CDRExport(c *gin.Context) { // @Produce json // @Param neId query string true "NE ID" default(001) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Number of online session users // @Description Number of online session users // @Router /neData/ims/session/num [get] @@ -208,7 +208,7 @@ func (s *IMSController) UeSessionNum(c *gin.Context) { // @Param imsi query string false "imsi" // @Param msisdn query string false "msisdn" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Online session user list information // @Description Online session user list information // @Router /neData/ims/session/list [get] diff --git a/src/modules/network_data/controller/mme.go b/src/modules/network_data/controller/mme.go index 944cf4f4..1e2c4880 100644 --- a/src/modules/network_data/controller/mme.go +++ b/src/modules/network_data/controller/mme.go @@ -44,7 +44,7 @@ type MMEController struct { // @Param pageNum query number true "pageNum" default(1) // @Param pageSize query number true "pageSize" default(10) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary UE Session List // @Description UE Session List // @Router /neData/mme/ue/list [get] @@ -78,7 +78,7 @@ func (s *MMEController) UEList(c *gin.Context) { // @Produce json // @Param ueIds path string true "list data id, multiple separated by a , sign" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary UE Session Deletion // @Description UE Session Deletion // @Router /neData/mme/ue/{ueIds} [delete] @@ -114,7 +114,7 @@ func (s *MMEController) UERemove(c *gin.Context) { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary UE Session List Export // @Description UE Session List Export // @Router /neData/mme/ue/export [post] @@ -166,7 +166,7 @@ func (s *MMEController) UEExport(c *gin.Context) { // @Param neId query string true "NE ID" default(001) // @Param id query string false "Base Station ID" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Access Base Station Information List // @Description Access Base Station Information List // @Router /neData/mme/nb/list [get] @@ -209,7 +209,7 @@ func (s *MMEController) NbInfoList(c *gin.Context) { // @Produce json // @Param neId query string true "NE ID" default(001) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Access to the base station status information list // @Description Access to the base station status information list // @Router /neData/mme/nb/list-cfg [get] diff --git a/src/modules/network_data/controller/sgwc.go b/src/modules/network_data/controller/sgwc.go index 8943574c..e6e3f230 100644 --- a/src/modules/network_data/controller/sgwc.go +++ b/src/modules/network_data/controller/sgwc.go @@ -45,7 +45,7 @@ type SGWCController struct { // @Param pageNum query number true "pageNum" default(1) // @Param pageSize query number true "pageSize" default(10) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary CDR Session List // @Description CDR Session List // @Router /neData/sgwc/cdr/list [get] @@ -79,7 +79,7 @@ func (s *SGWCController) CDRList(c *gin.Context) { // @Produce json // @Param cdrIds path string true "list data id, multiple separated by a , sign" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary CDR Session Delete // @Description CDR Session Delete // @Router /neData/sgwc/cdr/{cdrIds} [delete] @@ -115,7 +115,7 @@ func (s *SGWCController) CDRRemove(c *gin.Context) { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary CDR Session List Export // @Description CDR Session List Export // @Router /neData/sgwc/cdr/export [post] diff --git a/src/modules/network_data/controller/smf.go b/src/modules/network_data/controller/smf.go index ffaeae4d..b943b736 100644 --- a/src/modules/network_data/controller/smf.go +++ b/src/modules/network_data/controller/smf.go @@ -46,7 +46,7 @@ type SMFController struct { // @Param pageNum query number true "pageNum" default(1) // @Param pageSize query number true "pageSize" default(10) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary CDR Session List // @Description CDR Session List // @Router /neData/smf/cdr/list [get] @@ -80,7 +80,7 @@ func (s *SMFController) CDRList(c *gin.Context) { // @Produce json // @Param cdrIds path string true "list data id, multiple separated by a , sign" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary CDR Session Delete // @Description CDR Session Delete // @Router /neData/smf/cdr/{cdrIds} [delete] @@ -116,7 +116,7 @@ func (s *SMFController) CDRRemove(c *gin.Context) { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary CDR Session List Export // @Description CDR Session List Export // @Router /neData/smf/cdr/export [post] @@ -167,7 +167,7 @@ func (s *SMFController) CDRExport(c *gin.Context) { // @Produce json // @Param neId query string true "NE ID" default(001) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Number of online session users // @Description Number of online session users // @Router /neData/smf/sub/num [get] @@ -211,7 +211,7 @@ func (s *SMFController) SubUserNum(c *gin.Context) { // @Param upstate query string false "upstate" // @Param pageNum query string true "pageNum" default(50) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Online session user list information // @Description Online session user list information // @Router /neData/smf/session/list [get] diff --git a/src/modules/network_data/controller/smsc.go b/src/modules/network_data/controller/smsc.go index 421f1aff..8548620b 100644 --- a/src/modules/network_data/controller/smsc.go +++ b/src/modules/network_data/controller/smsc.go @@ -44,7 +44,7 @@ type SMSCController struct { // @Param pageNum query number true "pageNum" default(1) // @Param pageSize query number true "pageSize" default(10) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary CDR Session List // @Description CDR Session List // @Router /neData/smsc/cdr/list [get] @@ -78,7 +78,7 @@ func (s *SMSCController) CDRList(c *gin.Context) { // @Produce json // @Param cdrIds path string true "list data id, multiple separated by a , sign" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary CDR Session Delete // @Description CDR Session Delete // @Router /neData/smsc/cdr/{cdrIds} [delete] @@ -114,7 +114,7 @@ func (s *SMSCController) CDRRemove(c *gin.Context) { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary CDR Session List Export // @Description CDR Session List Export // @Router /neData/smsc/cdr/export [post] diff --git a/src/modules/network_data/controller/udm_auth.go b/src/modules/network_data/controller/udm_auth.go index 36a335ca..d2c6b1d4 100644 --- a/src/modules/network_data/controller/udm_auth.go +++ b/src/modules/network_data/controller/udm_auth.go @@ -44,7 +44,7 @@ type UDMAuthController struct { // @Produce json // @Param neId path string true "NE ID" default(001) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary UDM Authentication User Reload Data // @Description UDM Authentication User Reload Data // @Router /neData/udm/auth/resetData/{neId} [post] @@ -68,7 +68,7 @@ func (s *UDMAuthController) ResetData(c *gin.Context) { // @Accept json // @Produce json // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary UDM Authentication User List // @Description UDM Authentication User List // @Router /neData/udm/auth/list [get] @@ -88,7 +88,7 @@ func (s *UDMAuthController) List(c *gin.Context) { // @Param neId path string true "NE ID" default(001) // @Param value path string true "User data imsi" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary UDM Authentication User Information // @Description UDM Authentication User Information // @Router /neData/udm/auth/{neId}/{value} [get] @@ -144,7 +144,7 @@ func (s *UDMAuthController) Info(c *gin.Context) { // @Param neId path string true "NE ID" default(001) // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary UDM Authentication User Added // @Description UDM Authentication User Added // @Router /neData/udm/auth/{neId} [post] @@ -204,7 +204,7 @@ func (s *UDMAuthController) Add(c *gin.Context) { // @Param value path number true "Incremental number" // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary UDM Authentication User Batch Add // @Description UDM Authentication User Batch Add // @Router /neData/udm/auth/{neId}/{value} [post] @@ -264,7 +264,7 @@ func (s *UDMAuthController) Adds(c *gin.Context) { // @Param neId path string true "NE ID" default(001) // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary UDM Authenticated User Modification // @Description UDM Authenticated User Modification // @Router /neData/udm/auth/{neId} [put] @@ -323,7 +323,7 @@ func (s *UDMAuthController) Edit(c *gin.Context) { // @Param neId path string true "NE ID" default(001) // @Param value path string true "User data imsi, multiple separated by a , sign" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary UDM Authenticated User Deletion // @Description UDM Authenticated User Deletion // @Router /neData/udm/auth/{neId}/{value} [delete] @@ -388,7 +388,7 @@ func (s *UDMAuthController) Remove(c *gin.Context) { // @Param imsi path string true "User data imsi" // @Param num path number true "Incremental number" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary UDM Authentication User Batch Deletion // @Description UDM Authentication User Batch Deletion // @Router /neData/udm/auth/{neId}/{imsi}/{num} [delete] @@ -439,7 +439,7 @@ func (s *UDMAuthController) Removes(c *gin.Context) { // @Accept json // @Produce json // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary UDM Authenticated User Export // @Description UDM Authenticated User Export // @Router /neData/udm/auth/export [post] @@ -527,7 +527,7 @@ func (s *UDMAuthController) Export(c *gin.Context) { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary UDM Authenticated User Import // @Description UDM Authenticated User Import // @Router /neData/udm/auth/import [post] diff --git a/src/modules/network_data/controller/udm_sub.go b/src/modules/network_data/controller/udm_sub.go index 65ff00d6..77aaf695 100644 --- a/src/modules/network_data/controller/udm_sub.go +++ b/src/modules/network_data/controller/udm_sub.go @@ -43,7 +43,7 @@ type UDMSubController struct { // @Produce json // @Param neId path string true "NE ID" default(001) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary UDM Subscriber User Reload Data // @Description UDM Subscriber User Reload Data // @Router /neData/udm/sub/resetData/{neId} [post] @@ -67,7 +67,7 @@ func (s *UDMSubController) ResetData(c *gin.Context) { // @Accept json // @Produce json // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary UDM Subscriber User List // @Description UDM Subscriber User List // @Router /neData/udm/sub/list [get] @@ -87,7 +87,7 @@ func (s *UDMSubController) List(c *gin.Context) { // @Param neId path string true "NE ID" default(001) // @Param value path string true "User data imsi" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary UDM Subscriber User Information // @Description UDM Subscriber User Information // @Router /neData/udm/sub/{neId}/{value} [get] @@ -143,7 +143,7 @@ func (s *UDMSubController) Info(c *gin.Context) { // @Param neId path string true "NE ID" default(001) // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary UDM Subscriber User Added // @Description UDM Subscriber User Added // @Router /neData/udm/sub/{neId} [post] @@ -204,7 +204,7 @@ func (s *UDMSubController) Add(c *gin.Context) { // @Param value path number true "Incremental number" default(1) // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary UDM Subscriber User Batch Add // @Description UDM Subscriber User Batch Add // @Router /neData/udm/sub/{neId}/{value} [post] @@ -267,7 +267,7 @@ func (s *UDMSubController) Adds(c *gin.Context) { // @Param neId path string true "NE ID" default(001) // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary UDM Subscriber User Modification // @Description UDM Subscriber User Modification // @Router /neData/udm/sub/{neId} [put] @@ -327,7 +327,7 @@ func (s *UDMSubController) Edit(c *gin.Context) { // @Param neId path string true "NE ID" default(001) // @Param value path string true "User data imsi, multiple separated by a , sign" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary UDM Subscriber User Deletion // @Description UDM Subscriber User Deletion // @Router /neData/udm/sub/{neId}/{value} [delete] @@ -392,7 +392,7 @@ func (s *UDMSubController) Remove(c *gin.Context) { // @Param imsi path string true "User data imsi" // @Param num path number true "Incremental number" default(1) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary UDM Subscriber User Batch Deletion // @Description UDM Subscriber User Batch Deletion // @Router /neData/udm/sub/{neId}/{imsi}/{num} [delete] @@ -444,7 +444,7 @@ func (s *UDMSubController) Removes(c *gin.Context) { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary UDM Subscriber User Export // @Description UDM Subscriber User Export // @Router /neData/udm/sub/export [post] @@ -524,7 +524,7 @@ func (s *UDMSubController) Export(c *gin.Context) { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary UDM Subscriber User Import // @Description UDM Subscriber User Import // @Router /neData/udm/sub/import [post] diff --git a/src/modules/network_data/controller/upf.go b/src/modules/network_data/controller/upf.go index c76f050b..fcd48f3b 100644 --- a/src/modules/network_data/controller/upf.go +++ b/src/modules/network_data/controller/upf.go @@ -34,7 +34,7 @@ type UPFController struct { // @Param neId query string true "NE ID" default(001) // @Param day query number true "Statistical time a few days before" Enums(0, 7, 30) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Total number of flows N3 upstream N6 downstream // @Description Total number of flows N3 upstream N6 downstream // @Router /neData/upf/totalFlow [get] diff --git a/src/modules/network_element/controller/action.go b/src/modules/network_element/controller/action.go index 30a67119..295c799b 100644 --- a/src/modules/network_element/controller/action.go +++ b/src/modules/network_element/controller/action.go @@ -39,7 +39,7 @@ type NeActionController struct { // @Accept json // @Produce json // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Sending files from local to network elements // @Description Sending files from local to network elements // @Router /ne/action/pushFile [post] @@ -105,7 +105,7 @@ func (s *NeActionController) PushFile(c *gin.Context) { // @Accept json // @Produce json // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Getting files from the network element to the local // @Description Getting files from the network element to the local // @Router /ne/action/pullFile [get] @@ -173,7 +173,7 @@ func (s *NeActionController) PullFile(c *gin.Context) { // @Accept json // @Produce json // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Get directories compressed to ZIP from the network element to the local area // @Description Get directories compressed to ZIP from the network element to the local area // @Router /ne/action/pullDirZip [get] @@ -249,7 +249,7 @@ func (s *NeActionController) PullDirZip(c *gin.Context) { // @Accept json // @Produce json // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Viewing the contents of a file on the network element side // @Description Viewing the contents of a file on the network element side // @Router /ne/action/viewFile [get] @@ -301,7 +301,7 @@ func (s *NeActionController) ViewFile(c *gin.Context) { // @Accept json // @Produce json // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary List of files on the network element side // @Description List of files on the network element side // @Router /ne/action/files [get] @@ -374,7 +374,7 @@ func (s *NeActionController) Files(c *gin.Context) { // @Accept json // @Produce json // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Network element service operation // @Description Network element service operation // @Router /ne/action/service [put] diff --git a/src/modules/network_element/controller/ne_config.go b/src/modules/network_element/controller/ne_config.go index 41742676..1badb9f0 100644 --- a/src/modules/network_element/controller/ne_config.go +++ b/src/modules/network_element/controller/ne_config.go @@ -163,7 +163,7 @@ func (s *NeConfigController) Remove(c *gin.Context) { // @Produce json // @Param neType path string true "NE Type" Enums(IMS,AMF,AUSF,UDM,SMF,PCF,NSSF,NRF,UPF,MME,CBC,OMC,SGWC) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Network Element Parameter Configuration Available Attribute Values List Specify Network Element Type All Unpaged // @Description Network Element Parameter Configuration Available Attribute Values List Specify Network Element Type All Unpaged // @Router /ne/config/list/{neType} [get] @@ -189,7 +189,7 @@ func (s *NeConfigController) ListByNeType(c *gin.Context) { // @Param neId query string true "NE ID" default(001) // @Param paramName query string true "Available attributes, based on querying the list of attributes" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Network Element Parameter Configuration Data Information // @Description Network Element Parameter Configuration Data Information // @Router /ne/config/data [get] @@ -241,7 +241,7 @@ func (s *NeConfigController) DataInfo(c *gin.Context) { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Network element parameter configuration data modification // @Description Network element parameter configuration data modification // @Router /ne/config/data [put] @@ -293,7 +293,7 @@ func (s *NeConfigController) DataEdit(c *gin.Context) { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Network element parameter configuration data added (array) // @Description Network element parameter configuration data added (array) // @Router /ne/config/data [post] @@ -351,7 +351,7 @@ func (s *NeConfigController) DataAdd(c *gin.Context) { // @Param paramName query string true "Available attributes, based on querying the list of attributes" // @Param loc query string true "Array index" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Network element parameter configuration data deletion (array) // @Description Network element parameter configuration data deletion (array) // @Router /ne/config/data [delete] diff --git a/src/modules/network_element/controller/ne_host.go b/src/modules/network_element/controller/ne_host.go index 4777574c..64fd3069 100644 --- a/src/modules/network_element/controller/ne_host.go +++ b/src/modules/network_element/controller/ne_host.go @@ -177,7 +177,7 @@ func (s *NeHostController) Remove(c *gin.Context) { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Network element host test connection // @Description Network element host test connection // @Router /ne/host/test [post] @@ -255,7 +255,7 @@ func (s *NeHostController) Test(c *gin.Context) { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary The network element host sends the command // @Description The network element host sends the command // @Router /ne/host/cmd [post] @@ -337,7 +337,7 @@ func (s *NeHostController) Cmd(c *gin.Context) { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Checking the server environment by SSH method of Net Element Hosting // @Description Checking the server environment by SSH method of Net Element Hosting // @Router /ne/host/checkBySSH [post] @@ -438,7 +438,7 @@ func (s *NeHostController) CheckBySSH(c *gin.Context) { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Network element host SSH method of authorization for password-free sending // @Description Network element host SSH method of authorization for password-free sending // @Router /ne/host/authorizedBySSH [post] diff --git a/src/modules/network_element/controller/ne_info.go b/src/modules/network_element/controller/ne_info.go index 76900d89..2c1359df 100644 --- a/src/modules/network_element/controller/ne_info.go +++ b/src/modules/network_element/controller/ne_info.go @@ -46,7 +46,7 @@ var mutex sync.Mutex // @Param neType query string true "NE Type" Enums(IMS,AMF,AUSF,UDM,SMF,PCF,NSSF,NRF,UPF,MME,CBC,OMC,SGWC) // @Param neId query string true "NE ID" default(001) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Network element information state // @Description Network element information state // @Router /ne/info/state [get] @@ -109,7 +109,7 @@ func (s *NeInfoController) State(c *gin.Context) { // @Param neType query string true "NE Type" Enums(IMS,AMF,AUSF,UDM,SMF,PCF,NSSF,NRF,UPF,MME,CBC,OMC,SGWC) // @Param neId query string true "NE ID" default(001) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Network element neType and neID queries // @Description Network element neType and neID queries // @Router /ne/info/byTypeAndID [get] @@ -140,7 +140,7 @@ func (s *NeInfoController) NeTypeAndID(c *gin.Context) { // @Accept json // @Produce json // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary The list of network element information is all unpaginated // @Description The list of network element information is all unpaginated // @Router /ne/info/listAll [get] @@ -269,7 +269,7 @@ func (s *NeInfoController) OAMFileWrite(c *gin.Context) { // @Produce json // @Param bandStatus query boolean false "The result carries the state of the network element" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Network element information list // @Description Network element information list // @Router /ne/info/list [get] @@ -292,7 +292,7 @@ func (s *NeInfoController) List(c *gin.Context) { // @Produce json // @Param infoId path string true "list data id" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Network element information // @Description Network element information // @Router /ne/info/{infoId} [get] @@ -323,7 +323,7 @@ func (s *NeInfoController) Info(c *gin.Context) { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Network element information addition // @Description Network element information addition // @Router /ne/info [post] @@ -411,7 +411,7 @@ func (s *NeInfoController) Add(c *gin.Context) { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Network element information modification // @Description Network element information modification // @Router /ne/info [put] @@ -519,7 +519,7 @@ func (s *NeInfoController) Edit(c *gin.Context) { // @Produce json // @Param infoIds path string true "list data id, multiple separated by a , sign" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Network element information deletion // @Description Network element information deletion // @Router /ne/{infoIds} [delete] diff --git a/src/modules/network_element/controller/ne_license.go b/src/modules/network_element/controller/ne_license.go index 05635b5d..22900c0d 100644 --- a/src/modules/network_element/controller/ne_license.go +++ b/src/modules/network_element/controller/ne_license.go @@ -37,7 +37,7 @@ type NeLicenseController struct { // @Param neType query string true "NE Type" Enums(IMS,AMF,AUSF,UDM,SMF,PCF,NSSF,NRF,UPF,MME,CBC,OMC,SGWC) // @Param neId query string true "NE ID" default(001) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Net Element License Activation List // @Description Net Element License Activation List // @Router /ne/license/list [get] @@ -87,7 +87,7 @@ func (s *NeLicenseController) Info(c *gin.Context) { // @Param neType query string true "NE Type" Enums(IMS,AMF,AUSF,UDM,SMF,PCF,NSSF,NRF,UPF,MME,CBC,OMC,SGWC) // @Param neId query string true "NE ID" default(001) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Network element neType and neID queries // @Description Network element neType and neID queries // @Router /ne/license/byTypeAndID [get] @@ -122,7 +122,7 @@ func (s *NeLicenseController) NeTypeAndID(c *gin.Context) { // @Param neType query string true "NE Type" Enums(IMS,AMF,AUSF,UDM,SMF,PCF,NSSF,NRF,UPF,MME,CBC,OMC,SGWC) // @Param neId query string true "NE ID" default(001) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Network Element License Activation License Application Code // @Description Network Element License Activation License Application Code // @Router /ne/license/code [get] @@ -170,7 +170,7 @@ func (s *NeLicenseController) Code(c *gin.Context) { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Network element authorization activation status // @Description Network element authorization activation status // @Router /ne/license/change [post] @@ -222,7 +222,7 @@ func (s *NeLicenseController) Change(c *gin.Context) { // @Param neType query string true "NE Type" Enums(IMS,AMF,AUSF,UDM,SMF,PCF,NSSF,NRF,UPF,MME,CBC,OMC,SGWC) // @Param neId query string true "NE ID" default(001) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Network element authorization activation status // @Description Network element authorization activation status // @Router /ne/license/state [get] diff --git a/src/modules/network_element/controller/ne_software.go b/src/modules/network_element/controller/ne_software.go index cfbd3999..95ed5177 100644 --- a/src/modules/network_element/controller/ne_software.go +++ b/src/modules/network_element/controller/ne_software.go @@ -35,7 +35,7 @@ type NeSoftwareController struct { // @Param neType query string true "NE Type" Enums(IMS,AMF,AUSF,UDM,SMF,PCF,NSSF,NRF,UPF,MME,CBC,OMC,SGWC) // @Param neId query string true "NE ID" default(001) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary List of Network Element Software Packages // @Description List of Network Element Software Packages // @Router /ne/software/list [get] @@ -181,7 +181,7 @@ func (s *NeSoftwareController) Remove(c *gin.Context) { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Net Element package set to Net Element new version // @Description Net Element package set to Net Element new version // @Router /ne/software/newNeVersion [post] diff --git a/src/modules/network_element/controller/ne_version.go b/src/modules/network_element/controller/ne_version.go index 8f73ed69..4a8b5a0d 100644 --- a/src/modules/network_element/controller/ne_version.go +++ b/src/modules/network_element/controller/ne_version.go @@ -61,7 +61,7 @@ func (s *NeVersionController) Info(c *gin.Context) { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Network element version operation // @Description Network element version operation // @Router /ne/version/operate [post] diff --git a/src/modules/system/controller/sys_config.go b/src/modules/system/controller/sys_config.go index b1b8c0db..3b1ab116 100644 --- a/src/modules/system/controller/sys_config.go +++ b/src/modules/system/controller/sys_config.go @@ -42,7 +42,7 @@ type SysConfigController struct { // @Param pageNum query number true "pageNum" default(1) // @Param pageSize query number true "pageSize" default(10) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Config Information List // @Description Config Information List // @Router /system/config/list [get] diff --git a/src/modules/system/controller/sys_dept.go b/src/modules/system/controller/sys_dept.go index 97fc26b6..693a85af 100644 --- a/src/modules/system/controller/sys_dept.go +++ b/src/modules/system/controller/sys_dept.go @@ -40,7 +40,7 @@ type SysDeptController struct { // @Param deptName query string false "deptName" // @Param status query string false "status" Enums(0, 1) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Dept Information List // @Description Dept Information List // @Router /system/dept/list [get] diff --git a/src/modules/system/controller/sys_dict_data.go b/src/modules/system/controller/sys_dict_data.go index b454cecf..0a8cb6d4 100644 --- a/src/modules/system/controller/sys_dict_data.go +++ b/src/modules/system/controller/sys_dict_data.go @@ -43,7 +43,7 @@ type SysDictDataController struct { // @Param pageNum query number true "pageNum" default(1) // @Param pageSize query number true "pageSize" default(10) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Dictionary Data List // @Description Dictionary Data List // @Router /system/dict/data/list [get] diff --git a/src/modules/system/controller/sys_dict_type.go b/src/modules/system/controller/sys_dict_type.go index 7fbad7c1..5d0158a4 100644 --- a/src/modules/system/controller/sys_dict_type.go +++ b/src/modules/system/controller/sys_dict_type.go @@ -42,7 +42,7 @@ type SysDictTypeController struct { // @Param pageNum query number true "pageNum" default(1) // @Param pageSize query number true "pageSize" default(10) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Dictionary Type List // @Description Dictionary Type List // @Router /system/dict/type/list [get] diff --git a/src/modules/system/controller/sys_log_login.go b/src/modules/system/controller/sys_log_login.go index ea42d1eb..f7b5883d 100644 --- a/src/modules/system/controller/sys_log_login.go +++ b/src/modules/system/controller/sys_log_login.go @@ -45,7 +45,7 @@ type SysLogLoginController struct { // @Param pageNum query number true "pageNum" default(1) // @Param pageSize query number true "pageSize" default(10) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary System Login Log List // @Description System Login Log List // @Router /system/log/login/list [get] diff --git a/src/modules/system/controller/sys_log_operate.go b/src/modules/system/controller/sys_log_operate.go index 4755dbf9..962451e4 100644 --- a/src/modules/system/controller/sys_log_operate.go +++ b/src/modules/system/controller/sys_log_operate.go @@ -42,7 +42,7 @@ type SysLogOperateController struct { // @Param pageNum query number true "pageNum" default(1) // @Param pageSize query number true "pageSize" default(10) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary System Operation Log List // @Description System Operation Log List // @Router /system/log/operate/list [get] diff --git a/src/modules/system/controller/sys_menu.go b/src/modules/system/controller/sys_menu.go index 0644b8a2..314e84c8 100644 --- a/src/modules/system/controller/sys_menu.go +++ b/src/modules/system/controller/sys_menu.go @@ -39,7 +39,7 @@ type SysMenuController struct { // @Param menuName query string false "menuName" // @Param status query string false "status" Enums(0, 1) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Menu Information List // @Description Menu Information List // @Router /system/menu/list [get] diff --git a/src/modules/system/controller/sys_post.go b/src/modules/system/controller/sys_post.go index 8a75bfac..e767c315 100644 --- a/src/modules/system/controller/sys_post.go +++ b/src/modules/system/controller/sys_post.go @@ -43,7 +43,7 @@ type SysPostController struct { // @Param pageNum query number true "pageNum" default(1) // @Param pageSize query number true "pageSize" default(10) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Post Information List // @Description Post Information List // @Router /system/post/list [get] diff --git a/src/modules/system/controller/sys_profile.go b/src/modules/system/controller/sys_profile.go index 8465f050..5c414e52 100644 --- a/src/modules/system/controller/sys_profile.go +++ b/src/modules/system/controller/sys_profile.go @@ -49,7 +49,7 @@ type SysProfileController struct { // @Accept json // @Produce json // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Personal Information // @Description Personal Information // @Router /system/user/profile [get] @@ -101,7 +101,7 @@ func (s *SysProfileController) Info(c *gin.Context) { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Personal Information Modification // @Description Personal Information Modification // @Router /system/user/profile [put] @@ -208,7 +208,7 @@ func (s *SysProfileController) UpdateProfile(c *gin.Context) { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Personal Reset Password // @Description Personal Reset Password // @Router /system/user/profile/updatePwd [put] @@ -284,7 +284,7 @@ func (s *SysProfileController) UpdatePwd(c *gin.Context) { // @Produce json // @Param file formData file true "The file to upload." // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Personal avatar upload // @Description Personal avatar upload // @Router /system/user/profile/avatar [post] diff --git a/src/modules/system/controller/sys_role.go b/src/modules/system/controller/sys_role.go index 0c285c14..bceb943b 100644 --- a/src/modules/system/controller/sys_role.go +++ b/src/modules/system/controller/sys_role.go @@ -49,7 +49,7 @@ type SysRoleController struct { // @Param pageNum query number true "pageNum" default(1) // @Param pageSize query number true "pageSize" default(10) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Role Information List // @Description Role Information List // @Router /system/role/list [get] diff --git a/src/modules/system/controller/sys_user.go b/src/modules/system/controller/sys_user.go index 0a0aeee5..b546bb38 100644 --- a/src/modules/system/controller/sys_user.go +++ b/src/modules/system/controller/sys_user.go @@ -58,7 +58,7 @@ type SysUserController struct { // @Param pageNum query number true "pageNum" default(1) // @Param pageSize query number true "pageSize" default(10) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary User Information List // @Description User Information List // @Router /system/user/list [get] diff --git a/src/modules/tool/controller/iperf.go b/src/modules/tool/controller/iperf.go index f21f4912..6f226678 100644 --- a/src/modules/tool/controller/iperf.go +++ b/src/modules/tool/controller/iperf.go @@ -42,7 +42,7 @@ type IPerfController struct { // @Param neId query string true "NE ID" default(001) // @Param version query string true "Version" Enums(V2, V3) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary iperf version information // @Description iperf version information // @Router /tool/iperf/v [get] @@ -76,7 +76,7 @@ func (s *IPerfController) Version(c *gin.Context) { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary iperf software installation // @Description iperf software installation // @Router /tool/iperf/i [post] @@ -112,7 +112,7 @@ func (s *IPerfController) Install(c *gin.Context) { // @Param rows query number false "Terminal display lines" default(40) // @Param access_token query string true "Authorization" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary (ws://) iperf software running // @Description (ws://) iperf software running // @Router /tool/iperf/run [get] diff --git a/src/modules/tool/controller/ping.go b/src/modules/tool/controller/ping.go index 17bf57a2..c8806a53 100644 --- a/src/modules/tool/controller/ping.go +++ b/src/modules/tool/controller/ping.go @@ -40,7 +40,7 @@ type PingController struct { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Ping for Basic Information Running // @Description Ping for Basic Information Running // @Router /tool/ping [post] @@ -69,7 +69,7 @@ func (s *PingController) Statistics(c *gin.Context) { // @Produce json // @Param access_token query string true "Authorization" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary (ws://) Ping for Local UNIX running // @Description (ws://) Ping for Local UNIX running // @Router /tool/ping [get] @@ -111,7 +111,7 @@ func (s *PingController) StatisticsOn(c *gin.Context) { // @Param neType query string true "NE Type" Enums(IMS,AMF,AUSF,UDM,SMF,PCF,NSSF,NRF,UPF,MME,CBC,OMC,SGWC) // @Param neId query string true "NE ID" default(001) // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Ping for version information on the network element side // @Description Ping for version information on the network element side // @Router /tool/ping/v [get] @@ -147,7 +147,7 @@ func (s *PingController) Version(c *gin.Context) { // @Param rows query number false "Terminal display lines" default(40) // @Param access_token query string true "Authorization" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary (ws://) Ping for UNIX runs on the network element side // @Description (ws://) Ping for UNIX runs on the network element side // @Router /tool/ping/run [get] diff --git a/src/modules/trace/controller/tcpdump.go b/src/modules/trace/controller/tcpdump.go index 0700e249..dd1efbf2 100644 --- a/src/modules/trace/controller/tcpdump.go +++ b/src/modules/trace/controller/tcpdump.go @@ -30,7 +30,7 @@ type TCPdumpController struct { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Network Element Capture Packet PACP Start // @Description Network Element Capture Packet PACP Start // @Router /trace/tcpdump/start [post] @@ -64,7 +64,7 @@ func (s *TCPdumpController) DumpStart(c *gin.Context) { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary Network Element Capture Packet PACP Stop // @Description Network Element Capture Packet PACP Stop // @Router /trace/tcpdump/stop [post] @@ -98,7 +98,7 @@ func (s *TCPdumpController) DumpStop(c *gin.Context) { // @Produce json // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" -// @Security ApiKeyAuth +// @Security TokenAuth // @Summary UPF Standard Edition Internal Grab Bag // @Description UPF Standard Edition Internal Grab Bag // @Router /trace/tcpdump/upf [post] diff --git a/swagger2docs/docs.go b/swagger2docs/docs.go index dab55c16..0f34d9ca 100644 --- a/swagger2docs/docs.go +++ b/swagger2docs/docs.go @@ -42,7 +42,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Get CAPTCHA", @@ -70,7 +70,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Getting Relationship Map Data", @@ -119,7 +119,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Saving Relationship Diagram Data", @@ -158,7 +158,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Get relationship graph group name", @@ -186,7 +186,7 @@ const docTemplate = `{ "delete": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Deleting Relationship Diagram Data", @@ -223,7 +223,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Slice file checking", @@ -262,7 +262,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Slice file merge", @@ -301,7 +301,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Sliced file upload", @@ -352,7 +352,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Upload a file", @@ -400,7 +400,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Login User Information", @@ -428,7 +428,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Login User Routing Information", @@ -490,7 +490,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "System Logout", @@ -518,7 +518,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Cache Service Information", @@ -546,7 +546,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Resource monitoring information loading", @@ -574,7 +574,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "System Online User List", @@ -602,7 +602,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Server Information", @@ -630,7 +630,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "List of files on the network element side", @@ -658,7 +658,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Get directories compressed to ZIP from the network element to the local area", @@ -686,7 +686,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Getting files from the network element to the local", @@ -714,7 +714,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Sending files from local to network elements", @@ -742,7 +742,7 @@ const docTemplate = `{ "put": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element service operation", @@ -770,7 +770,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Viewing the contents of a file on the network element side", @@ -798,7 +798,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network Element Parameter Configuration Data Information", @@ -863,7 +863,7 @@ const docTemplate = `{ "put": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element parameter configuration data modification", @@ -900,7 +900,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element parameter configuration data added (array)", @@ -937,7 +937,7 @@ const docTemplate = `{ "delete": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element parameter configuration data deletion (array)", @@ -1011,7 +1011,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network Element Parameter Configuration Available Attribute Values List Specify Network Element Type All Unpaged", @@ -1063,7 +1063,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element host SSH method of authorization for password-free sending", @@ -1102,7 +1102,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Checking the server environment by SSH method of Net Element Hosting", @@ -1141,7 +1141,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "The network element host sends the command", @@ -1180,7 +1180,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element host test connection", @@ -1219,7 +1219,7 @@ const docTemplate = `{ "put": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element information modification", @@ -1256,7 +1256,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element information addition", @@ -1295,7 +1295,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element neType and neID queries", @@ -1355,7 +1355,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element information list", @@ -1391,7 +1391,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "The list of network element information is all unpaginated", @@ -1419,7 +1419,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element information state", @@ -1479,7 +1479,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element information", @@ -1516,7 +1516,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element neType and neID queries", @@ -1576,7 +1576,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element authorization activation status", @@ -1615,7 +1615,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network Element License Activation License Application Code", @@ -1675,7 +1675,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Net Element License Activation List", @@ -1735,7 +1735,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element authorization activation status", @@ -1795,7 +1795,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "List of Network Element Software Packages", @@ -1855,7 +1855,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Net Element package set to Net Element new version", @@ -1894,7 +1894,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element version operation", @@ -1933,7 +1933,7 @@ const docTemplate = `{ "delete": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element information deletion", @@ -1970,7 +1970,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Access Base Station Information List", @@ -2014,7 +2014,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Access to the base station status information list", @@ -2052,7 +2052,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UE Session List Export", @@ -2091,7 +2091,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UE Session List", @@ -2161,7 +2161,7 @@ const docTemplate = `{ "delete": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UE Session Deletion", @@ -2198,7 +2198,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "CDR Session List Export", @@ -2237,7 +2237,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "CDR Session List", @@ -2313,7 +2313,7 @@ const docTemplate = `{ "delete": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "CDR Session Delete", @@ -2350,7 +2350,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Online session user list information", @@ -2400,7 +2400,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Number of online session users", @@ -2438,7 +2438,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Access to statistical data", @@ -2533,7 +2533,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Get Statistical Headings", @@ -2585,7 +2585,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Access Base Station Information List", @@ -2629,7 +2629,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Access to the base station status information list", @@ -2667,7 +2667,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UE Session List Export", @@ -2706,7 +2706,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UE Session List", @@ -2776,7 +2776,7 @@ const docTemplate = `{ "delete": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UE Session Deletion", @@ -2813,7 +2813,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "CDR Session List Export", @@ -2852,7 +2852,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "CDR Session List", @@ -2928,7 +2928,7 @@ const docTemplate = `{ "delete": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "CDR Session Delete", @@ -2965,7 +2965,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "CDR Session List Export", @@ -3004,7 +3004,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "CDR Session List", @@ -3074,7 +3074,7 @@ const docTemplate = `{ "delete": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "CDR Session Delete", @@ -3111,7 +3111,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Online session user list information", @@ -3175,7 +3175,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Number of online session users", @@ -3213,7 +3213,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "CDR Session List Export", @@ -3252,7 +3252,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "CDR Session List", @@ -3328,7 +3328,7 @@ const docTemplate = `{ "delete": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "CDR Session Delete", @@ -3365,7 +3365,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Authenticated User Export", @@ -3393,7 +3393,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Authenticated User Import", @@ -3432,7 +3432,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Authentication User List", @@ -3457,10 +3457,10 @@ const docTemplate = `{ } }, "/neData/udm/auth/resetData/{neId}": { - "post": { + "put": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Authentication User Reload Data", @@ -3498,7 +3498,7 @@ const docTemplate = `{ "put": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Authenticated User Modification", @@ -3543,7 +3543,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Authentication User Added", @@ -3590,7 +3590,7 @@ const docTemplate = `{ "delete": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Authentication User Batch Deletion", @@ -3642,7 +3642,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Authentication User Information", @@ -3685,7 +3685,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Authentication User Batch Add", @@ -3737,7 +3737,7 @@ const docTemplate = `{ "delete": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Authenticated User Deletion", @@ -3782,7 +3782,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Subscriber User Export", @@ -3821,7 +3821,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Subscriber User Import", @@ -3860,7 +3860,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Subscriber User List", @@ -3885,10 +3885,10 @@ const docTemplate = `{ } }, "/neData/udm/sub/resetData/{neId}": { - "post": { + "put": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Subscriber User Reload Data", @@ -3926,7 +3926,7 @@ const docTemplate = `{ "put": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Subscriber User Modification", @@ -3971,7 +3971,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Subscriber User Added", @@ -4018,7 +4018,7 @@ const docTemplate = `{ "delete": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Subscriber User Batch Deletion", @@ -4071,7 +4071,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Subscriber User Information", @@ -4114,7 +4114,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Subscriber User Batch Add", @@ -4167,7 +4167,7 @@ const docTemplate = `{ "delete": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Subscriber User Deletion", @@ -4212,7 +4212,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Total number of flows N3 upstream N6 downstream", @@ -4285,7 +4285,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Config Information List", @@ -4337,7 +4337,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Dept Information List", @@ -4395,7 +4395,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Dictionary Data List", @@ -4447,7 +4447,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Dictionary Type List", @@ -4499,7 +4499,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "System Login Log List", @@ -4551,7 +4551,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "System Operation Log List", @@ -4603,7 +4603,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Menu Information List", @@ -4649,7 +4649,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Post Information List", @@ -4701,7 +4701,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Role Information List", @@ -4753,7 +4753,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "User Information List", @@ -4805,7 +4805,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Personal Information", @@ -4831,7 +4831,7 @@ const docTemplate = `{ "put": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Personal Information Modification", @@ -4870,7 +4870,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Personal avatar upload", @@ -4907,7 +4907,7 @@ const docTemplate = `{ "put": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Personal Reset Password", @@ -4946,7 +4946,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "iperf software installation", @@ -4985,7 +4985,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "(ws://) iperf software running", @@ -5066,7 +5066,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "iperf version information", @@ -5137,7 +5137,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "(ws://) Ping for Local UNIX running", @@ -5172,7 +5172,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Ping for Basic Information Running", @@ -5211,7 +5211,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "(ws://) Ping for UNIX runs on the network element side", @@ -5292,7 +5292,7 @@ const docTemplate = `{ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Ping for version information on the network element side", @@ -5352,7 +5352,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network Element Capture Packet PACP Start", @@ -5391,7 +5391,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network Element Capture Packet PACP Stop", @@ -5430,7 +5430,7 @@ const docTemplate = `{ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UPF Standard Edition Internal Grab Bag", @@ -5574,7 +5574,7 @@ const docTemplate = `{ } }, "securityDefinitions": { - "ApiKeyAuth": { + "TokenAuth": { "description": "Get the key through the common/authorization System Login, fill in content \"Bearer \u003caccess_token\u003e\"", "type": "apiKey", "name": "Authorization", diff --git a/swagger2docs/swagger.json b/swagger2docs/swagger.json index 3c220958..b5ac917b 100644 --- a/swagger2docs/swagger.json +++ b/swagger2docs/swagger.json @@ -40,7 +40,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Get CAPTCHA", @@ -68,7 +68,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Getting Relationship Map Data", @@ -117,7 +117,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Saving Relationship Diagram Data", @@ -156,7 +156,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Get relationship graph group name", @@ -184,7 +184,7 @@ "delete": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Deleting Relationship Diagram Data", @@ -221,7 +221,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Slice file checking", @@ -260,7 +260,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Slice file merge", @@ -299,7 +299,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Sliced file upload", @@ -350,7 +350,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Upload a file", @@ -398,7 +398,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Login User Information", @@ -426,7 +426,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Login User Routing Information", @@ -488,7 +488,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "System Logout", @@ -516,7 +516,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Cache Service Information", @@ -544,7 +544,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Resource monitoring information loading", @@ -572,7 +572,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "System Online User List", @@ -600,7 +600,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Server Information", @@ -628,7 +628,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "List of files on the network element side", @@ -656,7 +656,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Get directories compressed to ZIP from the network element to the local area", @@ -684,7 +684,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Getting files from the network element to the local", @@ -712,7 +712,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Sending files from local to network elements", @@ -740,7 +740,7 @@ "put": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element service operation", @@ -768,7 +768,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Viewing the contents of a file on the network element side", @@ -796,7 +796,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network Element Parameter Configuration Data Information", @@ -861,7 +861,7 @@ "put": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element parameter configuration data modification", @@ -898,7 +898,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element parameter configuration data added (array)", @@ -935,7 +935,7 @@ "delete": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element parameter configuration data deletion (array)", @@ -1009,7 +1009,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network Element Parameter Configuration Available Attribute Values List Specify Network Element Type All Unpaged", @@ -1061,7 +1061,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element host SSH method of authorization for password-free sending", @@ -1100,7 +1100,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Checking the server environment by SSH method of Net Element Hosting", @@ -1139,7 +1139,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "The network element host sends the command", @@ -1178,7 +1178,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element host test connection", @@ -1217,7 +1217,7 @@ "put": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element information modification", @@ -1254,7 +1254,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element information addition", @@ -1293,7 +1293,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element neType and neID queries", @@ -1353,7 +1353,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element information list", @@ -1389,7 +1389,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "The list of network element information is all unpaginated", @@ -1417,7 +1417,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element information state", @@ -1477,7 +1477,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element information", @@ -1514,7 +1514,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element neType and neID queries", @@ -1574,7 +1574,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element authorization activation status", @@ -1613,7 +1613,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network Element License Activation License Application Code", @@ -1673,7 +1673,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Net Element License Activation List", @@ -1733,7 +1733,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element authorization activation status", @@ -1793,7 +1793,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "List of Network Element Software Packages", @@ -1853,7 +1853,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Net Element package set to Net Element new version", @@ -1892,7 +1892,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element version operation", @@ -1931,7 +1931,7 @@ "delete": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network element information deletion", @@ -1968,7 +1968,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Access Base Station Information List", @@ -2012,7 +2012,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Access to the base station status information list", @@ -2050,7 +2050,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UE Session List Export", @@ -2089,7 +2089,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UE Session List", @@ -2159,7 +2159,7 @@ "delete": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UE Session Deletion", @@ -2196,7 +2196,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "CDR Session List Export", @@ -2235,7 +2235,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "CDR Session List", @@ -2311,7 +2311,7 @@ "delete": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "CDR Session Delete", @@ -2348,7 +2348,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Online session user list information", @@ -2398,7 +2398,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Number of online session users", @@ -2436,7 +2436,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Access to statistical data", @@ -2531,7 +2531,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Get Statistical Headings", @@ -2583,7 +2583,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Access Base Station Information List", @@ -2627,7 +2627,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Access to the base station status information list", @@ -2665,7 +2665,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UE Session List Export", @@ -2704,7 +2704,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UE Session List", @@ -2774,7 +2774,7 @@ "delete": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UE Session Deletion", @@ -2811,7 +2811,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "CDR Session List Export", @@ -2850,7 +2850,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "CDR Session List", @@ -2926,7 +2926,7 @@ "delete": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "CDR Session Delete", @@ -2963,7 +2963,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "CDR Session List Export", @@ -3002,7 +3002,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "CDR Session List", @@ -3072,7 +3072,7 @@ "delete": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "CDR Session Delete", @@ -3109,7 +3109,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Online session user list information", @@ -3173,7 +3173,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Number of online session users", @@ -3211,7 +3211,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "CDR Session List Export", @@ -3250,7 +3250,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "CDR Session List", @@ -3326,7 +3326,7 @@ "delete": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "CDR Session Delete", @@ -3363,7 +3363,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Authenticated User Export", @@ -3391,7 +3391,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Authenticated User Import", @@ -3430,7 +3430,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Authentication User List", @@ -3455,10 +3455,10 @@ } }, "/neData/udm/auth/resetData/{neId}": { - "post": { + "put": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Authentication User Reload Data", @@ -3496,7 +3496,7 @@ "put": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Authenticated User Modification", @@ -3541,7 +3541,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Authentication User Added", @@ -3588,7 +3588,7 @@ "delete": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Authentication User Batch Deletion", @@ -3640,7 +3640,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Authentication User Information", @@ -3683,7 +3683,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Authentication User Batch Add", @@ -3735,7 +3735,7 @@ "delete": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Authenticated User Deletion", @@ -3780,7 +3780,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Subscriber User Export", @@ -3819,7 +3819,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Subscriber User Import", @@ -3858,7 +3858,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Subscriber User List", @@ -3883,10 +3883,10 @@ } }, "/neData/udm/sub/resetData/{neId}": { - "post": { + "put": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Subscriber User Reload Data", @@ -3924,7 +3924,7 @@ "put": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Subscriber User Modification", @@ -3969,7 +3969,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Subscriber User Added", @@ -4016,7 +4016,7 @@ "delete": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Subscriber User Batch Deletion", @@ -4069,7 +4069,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Subscriber User Information", @@ -4112,7 +4112,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Subscriber User Batch Add", @@ -4165,7 +4165,7 @@ "delete": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UDM Subscriber User Deletion", @@ -4210,7 +4210,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Total number of flows N3 upstream N6 downstream", @@ -4283,7 +4283,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Config Information List", @@ -4335,7 +4335,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Dept Information List", @@ -4393,7 +4393,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Dictionary Data List", @@ -4445,7 +4445,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Dictionary Type List", @@ -4497,7 +4497,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "System Login Log List", @@ -4549,7 +4549,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "System Operation Log List", @@ -4601,7 +4601,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Menu Information List", @@ -4647,7 +4647,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Post Information List", @@ -4699,7 +4699,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Role Information List", @@ -4751,7 +4751,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "User Information List", @@ -4803,7 +4803,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Personal Information", @@ -4829,7 +4829,7 @@ "put": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Personal Information Modification", @@ -4868,7 +4868,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Personal avatar upload", @@ -4905,7 +4905,7 @@ "put": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Personal Reset Password", @@ -4944,7 +4944,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "iperf software installation", @@ -4983,7 +4983,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "(ws://) iperf software running", @@ -5064,7 +5064,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "iperf version information", @@ -5135,7 +5135,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "(ws://) Ping for Local UNIX running", @@ -5170,7 +5170,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Ping for Basic Information Running", @@ -5209,7 +5209,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "(ws://) Ping for UNIX runs on the network element side", @@ -5290,7 +5290,7 @@ "get": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Ping for version information on the network element side", @@ -5350,7 +5350,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network Element Capture Packet PACP Start", @@ -5389,7 +5389,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "Network Element Capture Packet PACP Stop", @@ -5428,7 +5428,7 @@ "post": { "security": [ { - "ApiKeyAuth": [] + "TokenAuth": [] } ], "description": "UPF Standard Edition Internal Grab Bag", @@ -5572,7 +5572,7 @@ } }, "securityDefinitions": { - "ApiKeyAuth": { + "TokenAuth": { "description": "Get the key through the common/authorization System Login, fill in content \"Bearer \u003caccess_token\u003e\"", "type": "apiKey", "name": "Authorization", diff --git a/swagger2docs/swagger.yaml b/swagger2docs/swagger.yaml index 130981c4..b271a0d0 100644 --- a/swagger2docs/swagger.yaml +++ b/swagger2docs/swagger.yaml @@ -34,7 +34,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Get CAPTCHA tags: - common @@ -66,7 +66,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Getting Relationship Map Data tags: - chart @@ -90,7 +90,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Saving Relationship Diagram Data tags: - chart @@ -113,7 +113,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Deleting Relationship Diagram Data tags: - chart @@ -130,7 +130,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Get relationship graph group name tags: - chart @@ -154,7 +154,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Slice file checking tags: - common/file @@ -178,7 +178,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Slice file merge tags: - common/file @@ -211,7 +211,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Sliced file upload tags: - common/file @@ -242,7 +242,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Upload a file tags: - common/file @@ -259,7 +259,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Login User Information tags: - common/authorization @@ -276,7 +276,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Login User Routing Information tags: - common/authorization @@ -315,7 +315,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: System Logout tags: - common/authorization @@ -332,7 +332,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Cache Service Information tags: - monitor/cache @@ -349,7 +349,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Resource monitoring information loading tags: - monitor @@ -366,7 +366,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: System Online User List tags: - monitor/online @@ -383,7 +383,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Server Information tags: - monitor @@ -406,7 +406,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Network element information deletion tags: - network_element/info @@ -423,7 +423,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: List of files on the network element side tags: - network_element/action @@ -441,7 +441,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Get directories compressed to ZIP from the network element to the local area tags: @@ -459,7 +459,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Getting files from the network element to the local tags: - network_element/action @@ -476,7 +476,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Sending files from local to network elements tags: - network_element/action @@ -493,7 +493,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Network element service operation tags: - network_element/action @@ -510,7 +510,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Viewing the contents of a file on the network element side tags: - network_element/action @@ -563,7 +563,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Network element parameter configuration data deletion (array) tags: - network_element/config @@ -610,7 +610,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Network Element Parameter Configuration Data Information tags: - network_element/config @@ -633,7 +633,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Network element parameter configuration data added (array) tags: - network_element/config @@ -656,7 +656,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Network element parameter configuration data modification tags: - network_element/config @@ -694,7 +694,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Network Element Parameter Configuration Available Attribute Values List Specify Network Element Type All Unpaged tags: @@ -720,7 +720,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Network element host SSH method of authorization for password-free sending tags: @@ -745,7 +745,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Checking the server environment by SSH method of Net Element Hosting tags: - network_element/host @@ -769,7 +769,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: The network element host sends the command tags: - network_element/host @@ -793,7 +793,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Network element host test connection tags: - network_element/host @@ -817,7 +817,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Network element information addition tags: - network_element/info @@ -840,7 +840,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Network element information modification tags: - network_element/info @@ -863,7 +863,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Network element information tags: - network_element/info @@ -906,7 +906,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Network element neType and neID queries tags: - network_element/info @@ -928,7 +928,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Network element information list tags: - network_element/info @@ -945,7 +945,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: The list of network element information is all unpaginated tags: - network_element/info @@ -988,7 +988,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Network element information state tags: - network_element/info @@ -1031,7 +1031,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Network element neType and neID queries tags: - network_element/license @@ -1055,7 +1055,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Network element authorization activation status tags: - network_element/license @@ -1098,7 +1098,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Network Element License Activation License Application Code tags: - network_element/license @@ -1141,7 +1141,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Net Element License Activation List tags: - network_element/license @@ -1184,7 +1184,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Network element authorization activation status tags: - network_element/license @@ -1227,7 +1227,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: List of Network Element Software Packages tags: - network_element/software @@ -1251,7 +1251,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Net Element package set to Net Element new version tags: - network_element/software @@ -1275,7 +1275,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Network element version operation tags: - network_element/version @@ -1303,7 +1303,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Access Base Station Information List tags: - network_data/amf @@ -1327,7 +1327,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Access to the base station status information list tags: - network_data/amf @@ -1350,7 +1350,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: UE Session Deletion tags: - network_data/amf @@ -1374,7 +1374,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: UE Session List Export tags: - network_data/amf @@ -1421,7 +1421,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: UE Session List tags: - network_data/amf @@ -1444,7 +1444,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: CDR Session Delete tags: - network_data/ims @@ -1468,7 +1468,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: CDR Session List Export tags: - network_data/ims @@ -1519,7 +1519,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: CDR Session List tags: - network_data/ims @@ -1551,7 +1551,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Online session user list information tags: - network_data/ims @@ -1575,7 +1575,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Number of online session users tags: - network_data/ims @@ -1646,7 +1646,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Access to statistical data tags: - network_data/kpi @@ -1683,7 +1683,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Get Statistical Headings tags: - network_data/kpi @@ -1711,7 +1711,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Access Base Station Information List tags: - network_data/mme @@ -1735,7 +1735,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Access to the base station status information list tags: - network_data/mme @@ -1758,7 +1758,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: UE Session Deletion tags: - network_data/mme @@ -1782,7 +1782,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: UE Session List Export tags: - network_data/mme @@ -1829,7 +1829,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: UE Session List tags: - network_data/mme @@ -1852,7 +1852,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: CDR Session Delete tags: - network_data/sgwc @@ -1876,7 +1876,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: CDR Session List Export tags: - network_data/sgwc @@ -1927,7 +1927,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: CDR Session List tags: - network_data/sgwc @@ -1950,7 +1950,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: CDR Session Delete tags: - network_data/smf @@ -1974,7 +1974,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: CDR Session List Export tags: - network_data/smf @@ -2021,7 +2021,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: CDR Session List tags: - network_data/smf @@ -2063,7 +2063,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Online session user list information tags: - network_data/smf @@ -2087,7 +2087,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Number of online session users tags: - network_data/smf @@ -2110,7 +2110,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: CDR Session Delete tags: - network_data/smsc @@ -2134,7 +2134,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: CDR Session List Export tags: - network_data/smsc @@ -2185,7 +2185,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: CDR Session List tags: - network_data/smsc @@ -2215,7 +2215,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: UDM Authentication User Added tags: - network_data/udm/auth @@ -2244,7 +2244,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: UDM Authenticated User Modification tags: - network_data/udm/auth @@ -2278,7 +2278,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: UDM Authentication User Batch Deletion tags: - network_data/udm/auth @@ -2307,7 +2307,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: UDM Authenticated User Deletion tags: - network_data/udm/auth @@ -2335,7 +2335,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: UDM Authentication User Information tags: - network_data/udm/auth @@ -2369,7 +2369,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: UDM Authentication User Batch Add tags: - network_data/udm/auth @@ -2386,7 +2386,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: UDM Authenticated User Export tags: - network_data/udm/auth @@ -2410,7 +2410,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: UDM Authenticated User Import tags: - network_data/udm/auth @@ -2427,12 +2427,12 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: UDM Authentication User List tags: - network_data/udm/auth /neData/udm/auth/resetData/{neId}: - post: + put: consumes: - application/json description: UDM Authentication User Reload Data @@ -2451,7 +2451,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: UDM Authentication User Reload Data tags: - network_data/udm/auth @@ -2481,7 +2481,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: UDM Subscriber User Added tags: - network_data/udm/sub @@ -2510,7 +2510,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: UDM Subscriber User Modification tags: - network_data/udm/sub @@ -2545,7 +2545,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: UDM Subscriber User Batch Deletion tags: - network_data/udm/sub @@ -2574,7 +2574,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: UDM Subscriber User Deletion tags: - network_data/udm/sub @@ -2602,7 +2602,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: UDM Subscriber User Information tags: - network_data/udm/sub @@ -2637,7 +2637,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: UDM Subscriber User Batch Add tags: - network_data/udm/sub @@ -2661,7 +2661,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: UDM Subscriber User Export tags: - network_data/udm/sub @@ -2685,7 +2685,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: UDM Subscriber User Import tags: - network_data/udm/sub @@ -2702,12 +2702,12 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: UDM Subscriber User List tags: - network_data/udm/sub /neData/udm/sub/resetData/{neId}: - post: + put: consumes: - application/json description: UDM Subscriber User Reload Data @@ -2726,7 +2726,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: UDM Subscriber User Reload Data tags: - network_data/udm/sub @@ -2759,7 +2759,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Total number of flows N3 upstream N6 downstream tags: - network_data/upf @@ -2808,7 +2808,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Config Information List tags: - system/config @@ -2845,7 +2845,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Dept Information List tags: - system/dept @@ -2879,7 +2879,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Dictionary Data List tags: - system/dict/data @@ -2913,7 +2913,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Dictionary Type List tags: - system/dict/type @@ -2947,7 +2947,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: System Login Log List tags: - system/log/login @@ -2981,7 +2981,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: System Operation Log List tags: - system/log/operate @@ -3010,7 +3010,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Menu Information List tags: - system/menu @@ -3044,7 +3044,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Post Information List tags: - system/post @@ -3078,7 +3078,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Role Information List tags: - system/role @@ -3112,7 +3112,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: User Information List tags: - system/user @@ -3129,7 +3129,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Personal Information tags: - system/user/profile @@ -3152,7 +3152,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Personal Information Modification tags: - system/user/profile @@ -3175,7 +3175,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Personal avatar upload tags: - system/user/profile @@ -3199,7 +3199,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Personal Reset Password tags: - system/user/profile @@ -3223,7 +3223,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: iperf software installation tags: - tool/iperf @@ -3281,7 +3281,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: (ws://) iperf software running tags: - tool/iperf @@ -3332,7 +3332,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: iperf version information tags: - tool/iperf @@ -3355,7 +3355,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: (ws://) Ping for Local UNIX running tags: - tool/ping @@ -3378,7 +3378,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Ping for Basic Information Running tags: - tool/ping @@ -3436,7 +3436,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: (ws://) Ping for UNIX runs on the network element side tags: - tool/ping @@ -3479,7 +3479,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Ping for version information on the network element side tags: - tool/ping @@ -3503,7 +3503,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Network Element Capture Packet PACP Start tags: - trace/tcpdump @@ -3527,7 +3527,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: Network Element Capture Packet PACP Stop tags: - trace/tcpdump @@ -3551,7 +3551,7 @@ paths: schema: type: object security: - - ApiKeyAuth: [] + - TokenAuth: [] summary: UPF Standard Edition Internal Grab Bag tags: - trace/tcpdump @@ -3635,7 +3635,7 @@ schemes: - http - https securityDefinitions: - ApiKeyAuth: + TokenAuth: description: Get the key through the common/authorization System Login, fill in content "Bearer " in: header From d25daaaf3d71cdc654989a4b2e524e4e03744a9c Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 24 Jan 2025 09:42:09 +0800 Subject: [PATCH 05/11] =?UTF-8?q?sql:=20=E6=9B=B4=E6=96=B0mme=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=B7=BB=E5=8A=A0enbList?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/param/mme_param_config.yaml | 33 ++++++++++++++++++++++++++++++ database/common/ne_config.sql | 3 ++- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/config/param/mme_param_config.yaml b/config/param/mme_param_config.yaml index f7bca83c..304babbd 100644 --- a/config/param/mme_param_config.yaml +++ b/config/param/mme_param_config.yaml @@ -455,3 +455,36 @@ mme: filter: "0~64" display: "IMEI" comment: "0~64" + enbList: + display: "Enb List Config" + sort: 19 + visible: "hide" + array: + - name: "index" + type: "int" + value: "0" + access: "read-only" + filter: "0~128" + display: "Index" + comment: "0~128" + - name: "name" + type: "string" + value: "" + access: "read-write" + filter: "0~64" + display: "ENB Name" + comment: "text content length 0~64" + - name: "address" + type: "string" + value: "" + access: "read-write" + filter: "0~64" + display: "ENB Address" + comment: "text content length 0~64" + - name: "position" + type: "string" + value: "" + access: "read-write" + filter: "0~64" + display: "Position" + comment: "location description. Prohibition of spaces, length of text content 0-64" diff --git a/database/common/ne_config.sql b/database/common/ne_config.sql index 5580ed54..af04deb8 100644 --- a/database/common/ne_config.sql +++ b/database/common/ne_config.sql @@ -41,7 +41,7 @@ INSERT INTO `ne_config` VALUES (41, 'IMS', 'plmn', 'PLMN List', 'array', '[{\"ac INSERT INTO `ne_config` VALUES (42, 'IMS', 'mmtel_dialplan', 'MMTEL Dialplan', 'array', '[{\"access\":\"read-only\",\"comment\":\"0~15\",\"display\":\"Index\",\"filter\":\"0~15\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"access\":\"read-only\",\"comment\":\"\",\"display\":\"NaName\",\"filter\":\"0~128\",\"name\":\"naName\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"Title\",\"filter\":\"0~128\",\"name\":\"title\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"Method\",\"filter\":\"0-2\",\"name\":\"method\",\"type\":\"string\",\"value\":\"0\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"Prefix\",\"filter\":\"0~128\",\"name\":\"prefix\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"Start\",\"filter\":\"0~128\",\"name\":\"start\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"End\",\"filter\":\"0~128\",\"name\":\"end\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"Attrib\",\"filter\":\"0~128\",\"name\":\"attrib\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"Number Len\",\"filter\":\"0~128\",\"name\":\"numberLen\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"Rsc\",\"filter\":\"0~128\",\"name\":\"rsc\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"E164 Nai\",\"filter\":\"0~128\",\"name\":\"e164Nai\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"E164 Delete\",\"filter\":\"0~128\",\"name\":\"e164Delete\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"E164 Insert\",\"filter\":\"0~128\",\"name\":\"e164Insert\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"read-write\",\"comment\":\"Enable: Close/Open\",\"display\":\"Admin State\",\"filter\":\"{\\\"0\\\":\\\"Close\\\", \\\"1\\\":\\\"Open\\\"}\",\"name\":\"adminState\",\"type\":\"enum\",\"value\":\"0\"}]', 5, '', 1723716862110, 'public'); INSERT INTO `ne_config` VALUES (43, 'IMS', 'ds_system', 'DS System', 'list', '[{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"Dispatch System Indicator\",\"filter\":\"{\\\"0\\\":\\\"false\\\", \\\"1\\\":\\\"true\\\"}\",\"name\":\"dispatchSystemInd\",\"type\":\"bool\",\"value\":\"false\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"Transcode Indicator\",\"filter\":\"{\\\"0\\\":\\\"false\\\", \\\"1\\\":\\\"true\\\"}\",\"name\":\"transcodeInd\",\"type\":\"bool\",\"value\":\"false\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"Dispatch System IPv4\",\"filter\":\"\",\"name\":\"dispatchSystemIP\",\"type\":\"ipv4\",\"value\":\"1.0.0.1\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"Dispatch System Port\",\"filter\":\"\",\"name\":\"dispatchSystemPort\",\"type\":\"int\",\"value\":\"5060\"}]', 7, '', 1723716862113, 'public'); --- 更新 MME 配置 20240106 +-- 更新 MME 配置 20250124 INSERT INTO `ne_config` VALUES (60, 'MME', 'system', 'System Config', 'list', '[{\"access\":\"read-write\",\"comment\":\"true|false\",\"display\":\"CSFB Enabled\",\"filter\":\"{\\\"0\\\":\\\"false\\\",\\\"1\\\":\\\"true\\\"}\",\"name\":\"csfbEnabled\",\"type\":\"bool\",\"value\":\"false\"},{\"access\":\"read-write\",\"comment\":\"true|false\",\"display\":\"VoLTE Enabled\",\"filter\":\"{\\\"0\\\":\\\"false\\\",\\\"1\\\":\\\"true\\\"}\",\"name\":\"volteEnabled\",\"type\":\"bool\",\"value\":\"false\"},{\"access\":\"read-write\",\"comment\":\"0~128\",\"display\":\"ME IDENTITY CHECK PATH\",\"filter\":\"0~128\",\"name\":\"meIdentityCheckPath\",\"type\":\"string\",\"value\":\"/usr/local/etc/mme/me_identity_check.csv\"},{\"access\":\"read-write\",\"comment\":\"0~128\",\"display\":\"IMEI WHITE LIST PATH\",\"filter\":\"0~128\",\"name\":\"imeiWhiteListPath\",\"type\":\"string\",\"value\":\"/usr/local/etc/mme/imei_whitelist.csv\"},{\"access\":\"read-write\",\"comment\":\"0~64\",\"display\":\"DNS SERVER IP\",\"filter\":\"0~64\",\"name\":\"dnsServerIp\",\"type\":\"string\",\"value\":\"127.0.0.53\"},{\"access\":\"read-write\",\"comment\":\"0~64\",\"display\":\"S1 MME IP\",\"filter\":\"0~64\",\"name\":\"s1MmeIp\",\"type\":\"string\",\"value\":\"192.168.1.179\"},{\"access\":\"read-only\",\"comment\":\"0~65535\",\"display\":\"S1 MME Port\",\"filter\":\"0~65535\",\"name\":\"s1MmePort\",\"type\":\"int\",\"value\":\"36412\"},{\"access\":\"read-write\",\"comment\":\"0~64\",\"display\":\"S11 MME IP\",\"filter\":\"0~64\",\"name\":\"s11MmeIp\",\"type\":\"string\",\"value\":\"192.168.1.179\"},{\"access\":\"read-write\",\"comment\":\"0~65535\",\"display\":\"S11 MME Port\",\"filter\":\"0~65535\",\"name\":\"s11MmePort\",\"type\":\"int\",\"value\":\"2123\"},{\"access\":\"read-write\",\"comment\":\"0~64\",\"display\":\"S10 MME IP\",\"filter\":\"0~64\",\"name\":\"s10MmeIp\",\"type\":\"string\",\"value\":\"192.168.1.178\"},{\"access\":\"read-write\",\"comment\":\"0~65535\",\"display\":\"S10 MME Port\",\"filter\":\"0~65535\",\"name\":\"s10MmePort\",\"type\":\"int\",\"value\":\"2123\"},{\"access\":\"read-write\",\"comment\":\"0~64\",\"display\":\"SGs MME IP\",\"filter\":\"0~64\",\"name\":\"sgsMmeIp\",\"type\":\"string\",\"value\":\"192.168.1.179\"},{\"access\":\"read-only\",\"comment\":\"0~65535\",\"display\":\"SGs MME Port\",\"filter\":\"0~65535\",\"name\":\"sgsMmePort\",\"type\":\"int\",\"value\":\"29118\"},{\"access\":\"read-write\",\"comment\":\"0~100\",\"display\":\"S6A MME Identity\",\"filter\":\"0~100\",\"name\":\"s6aIdentity\",\"type\":\"string\",\"value\":\"mme.epc.mnc001.mcc001.3gppnetwork.org\"},{\"access\":\"read-write\",\"comment\":\"0~20\",\"display\":\"S6A MME IP\",\"filter\":\"0~20\",\"name\":\"s6aLocalIp\",\"type\":\"string\",\"value\":\"172.16.5.220\"},{\"access\":\"read-write\",\"comment\":\"0~20\",\"display\":\"SLS MME IP\",\"filter\":\"0~20\",\"name\":\"slsLocalIp\",\"type\":\"string\",\"value\":\"172.16.5.220\"},{\"access\":\"read-write\",\"comment\":\"0~20\",\"display\":\"SLS REMOTE IP\",\"filter\":\"0~20\",\"name\":\"slsRemoteIp\",\"type\":\"string\",\"value\":\"172.16.5.220\"},{\"access\":\"read-write\",\"comment\":\"0~20\",\"display\":\"SLS REMOTE PORT\",\"filter\":\"0~20\",\"name\":\"slsRemotePort\",\"type\":\"string\",\"value\":\"9082\"},{\"access\":\"read-write\",\"comment\":\"0~100\",\"display\":\"SLG MME Identity\",\"filter\":\"0~100\",\"name\":\"slgIdentity\",\"type\":\"string\",\"value\":\"gmlc.epc.mnc001.mcc001.3gppnetwork.org\"},{\"access\":\"read-write\",\"comment\":\"0~100\",\"display\":\"SLG MME REALM\",\"filter\":\"0~100\",\"name\":\"slgRealm\",\"type\":\"string\",\"value\":\"epc.mnc001.mcc001.3gppnetwork.org\"},{\"access\":\"read-write\",\"comment\":\"0~20\",\"display\":\"SBC MME IP\",\"filter\":\"0~20\",\"name\":\"sbcLocalIp\",\"type\":\"string\",\"value\":\"192.168.8.220\"},{\"access\":\"read-write\",\"comment\":\"0~20\",\"display\":\"SV MME IP\",\"filter\":\"0~20\",\"name\":\"svLocalIp\",\"type\":\"string\",\"value\":\"172.16.5.220\"},{\"access\":\"read-write\",\"comment\":\"0~20\",\"display\":\"SV MME PORT\",\"filter\":\"0~20\",\"name\":\"svLocalPort\",\"type\":\"string\",\"value\":\"9082\"},{\"access\":\"read-write\",\"comment\":\"0~20\",\"display\":\"SV REMOTE IP\",\"filter\":\"0~20\",\"name\":\"svRemoteIp\",\"type\":\"string\",\"value\":\"172.16.5.220\"},{\"access\":\"read-write\",\"comment\":\"0~20\",\"display\":\"SV REMOTE PORT\",\"filter\":\"0~20\",\"name\":\"svRemotePort\",\"type\":\"string\",\"value\":\"9082\"},{\"access\":\"read-write\",\"comment\":\"0~20\",\"display\":\"S3 REMOTE IP\",\"filter\":\"0~20\",\"name\":\"s3RemoteIp\",\"type\":\"string\",\"value\":\"172.16.5.220\"},{\"access\":\"read-write\",\"comment\":\"0~20\",\"display\":\"S3 REMOTE PORT\",\"filter\":\"0~20\",\"name\":\"s3RemotePort\",\"type\":\"string\",\"value\":\"9082\"}]', 1, '', 1736155729512, 'public'); INSERT INTO `ne_config` VALUES (61, 'MME', 'gummei', 'Gummei List', 'array', '[{\"access\":\"read\",\"comment\":\"0~15\",\"display\":\"Index\",\"filter\":\"0~15\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"access\":\"read-write\",\"comment\":\"^[0-9]{5,6}$\",\"display\":\"PLMN ID\",\"filter\":\"^[0-9]{5,6}$\",\"name\":\"plmnId\",\"type\":\"regex\",\"value\":\"00101\"},{\"access\":\"read-write\",\"comment\":\"0~65535\",\"display\":\"Group ID\",\"filter\":\"0~65535\",\"name\":\"groupId\",\"type\":\"int\",\"value\":\"4\"},{\"access\":\"read-write\",\"comment\":\"0~255\",\"display\":\"Code\",\"filter\":\"0~255\",\"name\":\"code\",\"type\":\"int\",\"value\":\"1\"}]', 3, '', 1736155729554, 'public'); INSERT INTO `ne_config` VALUES (62, 'MME', 'tai', 'TAI List', 'array', '[{\"access\":\"read\",\"comment\":\"0~15\",\"display\":\"Index\",\"filter\":\"0~15\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"access\":\"read-write\",\"comment\":\"^[0-9]{5,6}$\",\"display\":\"PLMN ID\",\"filter\":\"^[0-9]{5,6}$\",\"name\":\"plmnId\",\"type\":\"regex\",\"value\":\"00101\"},{\"access\":\"read-write\",\"comment\":\"0~65535\",\"display\":\"TAC\",\"filter\":\"0~65535\",\"name\":\"tac\",\"type\":\"int\",\"value\":\"1\"}]', 5, '', 1736155729560, 'public'); @@ -51,6 +51,7 @@ INSERT INTO `ne_config` VALUES (65, 'MME', 'pgw', 'PGW List', 'array', '[{\"acce INSERT INTO `ne_config` VALUES (66, 'MME', 'amf', 'AMF List', 'array', '[{\"access\":\"read\",\"comment\":\"0~15\",\"display\":\"Index\",\"filter\":\"0~15\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"access\":\"read-write\",\"comment\":\"^[0-9]{5,6}$\",\"display\":\"PLMN ID\",\"filter\":\"^[0-9]{5,6}$\",\"name\":\"plmnId\",\"type\":\"regex\",\"value\":\"00101\"},{\"access\":\"read-write\",\"comment\":\"0~16777215\",\"display\":\"TAC\",\"filter\":\"0~16777215\",\"name\":\"tac\",\"type\":\"int\",\"value\":\"1\"},{\"access\":\"read-write\",\"comment\":\"0~255\",\"display\":\"Region ID\",\"filter\":\"0~255\",\"name\":\"regionId\",\"type\":\"int\",\"value\":\"1\"},{\"access\":\"read-write\",\"comment\":\"0~1023\",\"display\":\"Set ID\",\"filter\":\"0~1023\",\"name\":\"setId\",\"type\":\"int\",\"value\":\"1\"},{\"access\":\"read-write\",\"comment\":\"0~63\",\"display\":\"Pointer\",\"filter\":\"0~63\",\"name\":\"pointer\",\"type\":\"int\",\"value\":\"1\"},{\"access\":\"read-write\",\"comment\":\"0~64\",\"display\":\"AMF IP\",\"filter\":\"0~64\",\"name\":\"amfIp\",\"type\":\"string\",\"value\":\"172.16.5.120\"}]', 13, '', 1736155729597, 'public'); INSERT INTO `ne_config` VALUES (67, 'MME', 'white_list', 'IMEI White List', 'array', '[{\"access\":\"read\",\"comment\":\"0~15\",\"display\":\"Index\",\"filter\":\"0~15\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"access\":\"read-write\",\"comment\":\"0~64\",\"display\":\"IMEI\",\"filter\":\"0~64\",\"name\":\"imei\",\"type\":\"string\",\"value\":\"001\"}]', 17, '', 1736155729630, 'public'); INSERT INTO `ne_config` VALUES (68, 'MME', 'roam_plmn', 'Roam Plmn List', 'array', '[{\"access\":\"read\",\"comment\":\"0~15\",\"display\":\"Index\",\"filter\":\"0~15\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"access\":\"read-write\",\"comment\":\"0~64\",\"display\":\"MCC\",\"filter\":\"0~64\",\"name\":\"mcc\",\"type\":\"string\",\"value\":\"001\"},{\"access\":\"read-write\",\"comment\":\"0~64\",\"display\":\"MNC\",\"filter\":\"0~64\",\"name\":\"mnc\",\"type\":\"string\",\"value\":\"01\"}]', 15, '', 1736155729626, 'public'); +INSERT INTO `ne_config` VALUES (69, 'MME', 'enbList', 'Enb List Config', 'array', '[{\"access\":\"read-only\",\"comment\":\"0~128\",\"display\":\"Index\",\"filter\":\"0~128\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"access\":\"read-write\",\"comment\":\"text content length 0~64\",\"display\":\"ENB Name\",\"filter\":\"0~64\",\"name\":\"name\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"read-write\",\"comment\":\"text content length 0~64\",\"display\":\"ENB Address\",\"filter\":\"0~64\",\"name\":\"address\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"read-write\",\"comment\":\"location description. Prohibition of spaces, length of text content 0-64\",\"display\":\"Position\",\"filter\":\"0~64\",\"name\":\"position\",\"type\":\"string\",\"value\":\"\"}]', 19, '', 1737626779749, 'hide'); INSERT INTO `ne_config` VALUES (80, 'MOCNGW', 'system', 'System Config', 'list', '[{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"S1AP South Address\",\"filter\":\"0~64\",\"name\":\"s1apSouthAddr\",\"type\":\"string\",\"value\":\"192.168.7.163\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"S1AP North Address\",\"filter\":\"0~64\",\"name\":\"s1apNorthAddr\",\"type\":\"string\",\"value\":\"192.168.8.163\"},{\"access\":\"read-write\",\"comment\":\"0~65535\",\"display\":\"TAC\",\"filter\":\"0~65535\",\"name\":\"tac\",\"type\":\"int\",\"value\":\"1\"},{\"access\":\"read-write\",\"comment\":\"0~1048575\",\"display\":\"ENB ID\",\"filter\":\"0~1048575\",\"name\":\"enbId\",\"type\":\"int\",\"value\":\"24\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"User Plane Enabled\",\"filter\":\"{\\\"0\\\":\\\"false\\\",\\\"1\\\":\\\"true\\\"}\",\"name\":\"userPlaneEnabled\",\"type\":\"bool\",\"value\":\"0\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"PFCP Address\",\"filter\":\"0~64\",\"name\":\"pfcpAddr\",\"type\":\"string\",\"value\":\"192.168.7.163\"}]', 1, '', 1719831210071, 'public'); INSERT INTO `ne_config` VALUES (81, 'MOCNGW', 'mme', 'MME List', 'array', '[{\"access\":\"read-only\",\"comment\":\"0~15\",\"display\":\"Index\",\"filter\":\"0~15\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"S1AP Address\",\"filter\":\"0~64\",\"name\":\"s1apAddr\",\"type\":\"string\",\"value\":\"192.168.1.161\"},{\"access\":\"read-write\",\"comment\":\"0~65535\",\"display\":\"S1AP Port\",\"filter\":\"0~65535\",\"name\":\"s1apPort\",\"type\":\"int\",\"value\":\"36412\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"PLMN ID\",\"filter\":\"^[0-9]{5,6}$\",\"name\":\"plmnId\",\"type\":\"regex\",\"value\":\"00101\"}]', 3, '', 1719831210273, 'public'); From 2fd4f86dcd19dd846cf2e93a2e8c4c483a4ddee1 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 24 Jan 2025 09:43:01 +0800 Subject: [PATCH 06/11] =?UTF-8?q?feat:=20MME=E5=9F=BA=E7=AB=99=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/network_data/network_data.go | 4 ++ src/modules/network_element/fetch_link/amf.go | 23 ++++++-- src/modules/network_element/fetch_link/mme.go | 53 ++++++++++++++++++- 3 files changed, 74 insertions(+), 6 deletions(-) diff --git a/src/modules/network_data/network_data.go b/src/modules/network_data/network_data.go index ee2db3a7..95bb9cb6 100644 --- a/src/modules/network_data/network_data.go +++ b/src/modules/network_data/network_data.go @@ -280,6 +280,10 @@ func Setup(router *gin.Engine) { middleware.PreAuthorize(nil), controller.NewMME.NbInfoList, ) + mmeGroup.GET("/nb/list-cfg", + middleware.PreAuthorize(nil), + controller.NewMME.NbStateList, + ) } // 网元SGWC diff --git a/src/modules/network_element/fetch_link/amf.go b/src/modules/network_element/fetch_link/amf.go index 65cce3bf..f1b2dfec 100644 --- a/src/modules/network_element/fetch_link/amf.go +++ b/src/modules/network_element/fetch_link/amf.go @@ -63,16 +63,31 @@ func AMFGnbStateList(neInfo model.NeInfo) ([]map[string]any, error) { resBytes, err := fetch.Get(neUrl, nil, 60_000) if err != nil { errStr := err.Error() - logger.Warnf("AMFNbInfoList Get \"%s\"", neUrl) - logger.Errorf("AMFNbInfoList %s", errStr) + logger.Warnf("AMFGnbStateList Get \"%s\"", neUrl) + logger.Errorf("AMFGnbStateList %s", errStr) return nil, fmt.Errorf("NeService AMF API Error") } - // 序列化结果 {"data":[{"name": "Gnb","address": "192.168.8.1","state": "INACTIVE"}]} + // 序列化结果 + // { + // "data": [ + // { + // "index": 1, + // "name": "Gnb", + // "address": "192.168.8.1", + // "position": "Area-B", + // "offTime": "2024-12-30T16:31:57+08:00", + // "onTime": "2024-12-30T15:41:59+08:00", + // "state": "OFF", + // "nbName": "SA", + // "ueNum": 1 + // }, + // ] + // } var resData map[string]any err = json.Unmarshal(resBytes, &resData) if err != nil { - logger.Errorf("AMFNbInfoList Unmarshal %s", err.Error()) + logger.Errorf("AMFGnbStateList Unmarshal %s", err.Error()) return nil, err } diff --git a/src/modules/network_element/fetch_link/mme.go b/src/modules/network_element/fetch_link/mme.go index 741f48d3..39bd1140 100644 --- a/src/modules/network_element/fetch_link/mme.go +++ b/src/modules/network_element/fetch_link/mme.go @@ -10,7 +10,7 @@ import ( "be.ems/src/modules/network_element/model" ) -// MMENbInfoList AMF基站信息 +// MMENbInfoList MME基站信息 // // 查询参数 {"id":"7"} // @@ -32,7 +32,7 @@ func MMENbInfoList(neInfo model.NeInfo, data map[string]string) ([]map[string]an errStr := err.Error() logger.Warnf("MMENbInfoList Get \"%s\"", neUrl) logger.Errorf("MMENbInfoList %s", errStr) - return nil, fmt.Errorf("NeService AMF API Error") + return nil, fmt.Errorf("NeService MME API Error") } // 序列化结果 {"data":[{"id":"7","name":"NR-SA-GNB","address":"192.168.5.100:60110","ueNum":0}]} @@ -54,3 +54,52 @@ func MMENbInfoList(neInfo model.NeInfo, data map[string]string) ([]map[string]an } return []map[string]any{}, nil } + +// MMEEnbStateList MME基站状态信息,对比配置项enbList +// +// 返回结果 [] +func MMEEnbStateList(neInfo model.NeInfo) ([]map[string]any, error) { + neUrl := fmt.Sprintf("http://%s:%d/api/rest/ueManagement/v1/elementType/mme/objectType/nbState", neInfo.IP, neInfo.Port) + resBytes, err := fetch.Get(neUrl, nil, 60_000) + if err != nil { + errStr := err.Error() + logger.Warnf("MMEEnbStateList Get \"%s\"", neUrl) + logger.Errorf("MMEEnbStateList %s", errStr) + return nil, fmt.Errorf("NeService MME API Error") + } + + // 序列化结果 + // { + // "data": [ + // { + // "index": 1, + // "name": "Enb", + // "address": "192.168.8.1", + // "position": "Area-B", + // "offTime": "2024-12-30T16:31:57+08:00", + // "onTime": "2024-12-30T15:41:59+08:00", + // "state": "OFF", + // "nbName": "SA", + // "ueNum": 1 + // }, + // ] + // } + var resData map[string]any + err = json.Unmarshal(resBytes, &resData) + if err != nil { + logger.Errorf("MMEEnbStateList Unmarshal %s", err.Error()) + return nil, err + } + + // 固定返回字段,方便前端解析 + if v, ok := resData["data"]; ok && v != nil { + if arr := v.([]any); len(arr) > 0 { + result := make([]map[string]any, len(arr)) + for i, item := range arr { + result[i] = item.(map[string]any) + } + return result, nil + } + } + return []map[string]any{}, nil +} From 8b5a461c81dd69462d1299b694150532b5a90819 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 24 Jan 2025 09:43:50 +0800 Subject: [PATCH 07/11] =?UTF-8?q?feat:=20=E5=85=B3=E9=97=AD=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=8A=A0=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/config.default.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/config.default.yaml b/src/config/config.default.yaml index f099fdee..45a323f6 100644 --- a/src/config/config.default.yaml +++ b/src/config/config.default.yaml @@ -183,7 +183,7 @@ user: # 登录认证,默认打开 loginAuth: true # 接口加密,默认打开 - cryptoApi: true + cryptoApi: false # 密码 password: # 密码最大错误次数 From 3687451937fd0dcf0e996eb00a29f8e8d9095ef4 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 24 Jan 2025 09:44:23 +0800 Subject: [PATCH 08/11] =?UTF-8?q?style:=20swagger=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/network_data/controller/udm_auth.go | 4 ++-- src/modules/network_data/controller/udm_sub.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/network_data/controller/udm_auth.go b/src/modules/network_data/controller/udm_auth.go index d2c6b1d4..1c659cf5 100644 --- a/src/modules/network_data/controller/udm_auth.go +++ b/src/modules/network_data/controller/udm_auth.go @@ -37,7 +37,7 @@ type UDMAuthController struct { // UDM鉴权用户重载数据 // -// POST /resetData/:neId +// PUT /resetData/:neId // // @Tags network_data/udm/auth // @Accept json @@ -47,7 +47,7 @@ type UDMAuthController struct { // @Security TokenAuth // @Summary UDM Authentication User Reload Data // @Description UDM Authentication User Reload Data -// @Router /neData/udm/auth/resetData/{neId} [post] +// @Router /neData/udm/auth/resetData/{neId} [put] func (s *UDMAuthController) ResetData(c *gin.Context) { language := ctx.AcceptLanguage(c) neId := c.Param("neId") diff --git a/src/modules/network_data/controller/udm_sub.go b/src/modules/network_data/controller/udm_sub.go index 77aaf695..f2f42109 100644 --- a/src/modules/network_data/controller/udm_sub.go +++ b/src/modules/network_data/controller/udm_sub.go @@ -36,7 +36,7 @@ type UDMSubController struct { // UDM签约用户重载数据 // -// POST /resetData/:neId +// PUT /resetData/:neId // // @Tags network_data/udm/sub // @Accept json @@ -46,7 +46,7 @@ type UDMSubController struct { // @Security TokenAuth // @Summary UDM Subscriber User Reload Data // @Description UDM Subscriber User Reload Data -// @Router /neData/udm/sub/resetData/{neId} [post] +// @Router /neData/udm/sub/resetData/{neId} [put] func (s *UDMSubController) ResetData(c *gin.Context) { language := ctx.AcceptLanguage(c) neId := c.Param("neId") From accb7619511d4ae084bd51e512f0489012ccd8b6 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 24 Jan 2025 20:30:10 +0800 Subject: [PATCH 09/11] =?UTF-8?q?sql:=20=E8=8F=9C=E5=8D=95=E5=9F=BA?= =?UTF-8?q?=E7=AB=99=E5=9C=A8=E7=BA=BF=E9=A1=B5=E9=9D=A2=E9=9A=90=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- database/install/sys_menu.sql | 2 +- database/upgrade/upg_sys_menu.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/database/install/sys_menu.sql b/database/install/sys_menu.sql index 593629fe..63cb9e4a 100644 --- a/database/install/sys_menu.sql +++ b/database/install/sys_menu.sql @@ -134,7 +134,7 @@ INSERT INTO `sys_menu` VALUES (2010, 'menu.ueUser.subUDM', 5, 2, 'sub', 'neUser/ -- INSERT INTO `sys_menu` VALUES (2079, 'menu.config.softwareManage', 4, 4, 'softwareManage', 'configManage/softwareManage/index', '1', '0', 'M', '1', '0', 'configManage:softwareManage:index', 'icon-huidingbu', 'supervisor', 1700000000000, NULL, 0, 'menu.config.softwareManageRemark'); INSERT INTO `sys_menu` VALUES (2080, 'menu.ueUser.onlineIMS', 5, 4, 'ims', 'neUser/ims/index', '1', '0', 'M', '1', '1', 'neUser:ims:index', 'icon-xiangmuchengyuan', 'supervisor', 1700000000000, NULL, 0, 'menu.ueUser.onlineIMSRemark'); INSERT INTO `sys_menu` VALUES (2081, 'menu.ueUser.onlineUE', 5, 6, 'ue', 'neUser/ue/index', '1', '0', 'M', '1', '1', 'neUser:ue:index', 'icon-xiangmuchengyuan', 'supervisor', 1700000000000, NULL, 0, 'menu.ueUser.onlineUERemark'); -INSERT INTO `sys_menu` VALUES (2082, 'menu.ueUser.base5G', 5, 7, 'base5G', 'neUser/base5G/index', '1', '0', 'M', '1', '1', 'neUser:base5G:index', 'icon-paixu', 'supervisor', 1700000000000, NULL, 0, 'menu.ueUser.base5GRemark'); +INSERT INTO `sys_menu` VALUES (2082, 'menu.ueUser.base5G', 5, 7, 'base5G', 'neUser/base5G/index', '1', '0', 'M', '0', '1', 'neUser:base5G:index', 'icon-paixu', 'supervisor', 1700000000000, NULL, 0, 'menu.ueUser.base5GRemark'); INSERT INTO `sys_menu` VALUES (2083, 'menu.trace', 2087, 30, 'traceManage', NULL, '1', '0', 'D', '1', '1', NULL, 'icon-paixu', 'supervisor', 1700000000000, NULL, 0, 'menu.traceRemark'); INSERT INTO `sys_menu` VALUES (2084, 'menu.trace.task', 2083, 1, 'task', 'traceManage/task/index', '1', '0', 'M', '0', '1', 'traceManage:task:index', 'icon-chexiao', 'supervisor', 1700000000000, 'admin', 1713176976458, 'menu.trace.taskRemark'); INSERT INTO `sys_menu` VALUES (2085, 'menu.trace.analysis', 2083, 4, 'analysis', 'traceManage/analysis/index', '1', '0', 'M', '0', '1', 'traceManage:analysis:index', 'icon-gongnengjieshao', 'supervisor', 1700000000000, 'admin', 1713176987835, 'menu.trace.analysisRemark'); diff --git a/database/upgrade/upg_sys_menu.sql b/database/upgrade/upg_sys_menu.sql index acd3afbd..44eeceda 100644 --- a/database/upgrade/upg_sys_menu.sql +++ b/database/upgrade/upg_sys_menu.sql @@ -117,7 +117,7 @@ REPLACE INTO `sys_menu` VALUES (2010, 'menu.ueUser.subUDM', 5, 2, 'sub', 'neUser -- REPLACE INTO `sys_menu` VALUES (2079, 'menu.config.softwareManage', 4, 4, 'softwareManage', 'configManage/softwareManage/index', '1', '0', 'M', '1', '0', 'configManage:softwareManage:index', 'icon-huidingbu', 'supervisor', 1700000000000, NULL, 0, 'menu.config.softwareManageRemark'); REPLACE INTO `sys_menu` VALUES (2080, 'menu.ueUser.onlineIMS', 5, 4, 'ims', 'neUser/ims/index', '1', '0', 'M', '1', '1', 'neUser:ims:index', 'icon-xiangmuchengyuan', 'supervisor', 1700000000000, NULL, 0, 'menu.ueUser.onlineIMSRemark'); REPLACE INTO `sys_menu` VALUES (2081, 'menu.ueUser.onlineUE', 5, 6, 'ue', 'neUser/ue/index', '1', '0', 'M', '1', '1', 'neUser:ue:index', 'icon-xiangmuchengyuan', 'supervisor', 1700000000000, NULL, 0, 'menu.ueUser.onlineUERemark'); -REPLACE INTO `sys_menu` VALUES (2082, 'menu.ueUser.base5G', 5, 7, 'base5G', 'neUser/base5G/index', '1', '0', 'M', '1', '1', 'neUser:base5G:index', 'icon-paixu', 'supervisor', 1700000000000, NULL, 0, 'menu.ueUser.base5GRemark'); +REPLACE INTO `sys_menu` VALUES (2082, 'menu.ueUser.base5G', 5, 7, 'base5G', 'neUser/base5G/index', '1', '0', 'M', '0', '1', 'neUser:base5G:index', 'icon-paixu', 'supervisor', 1700000000000, NULL, 0, 'menu.ueUser.base5GRemark'); REPLACE INTO `sys_menu` VALUES (2083, 'menu.trace', 2087, 30, 'traceManage', NULL, '1', '0', 'D', '1', '1', NULL, 'icon-paixu', 'supervisor', 1700000000000, NULL, 0, 'menu.traceRemark'); REPLACE INTO `sys_menu` VALUES (2084, 'menu.trace.task', 2083, 1, 'task', 'traceManage/task/index', '1', '0', 'M', '0', '1', 'traceManage:task:index', 'icon-chexiao', 'supervisor', 1700000000000, 'admin', 1713176976458, 'menu.trace.taskRemark'); REPLACE INTO `sys_menu` VALUES (2085, 'menu.trace.analysis', 2083, 4, 'analysis', 'traceManage/analysis/index', '1', '0', 'M', '0', '1', 'traceManage:analysis:index', 'icon-gongnengjieshao', 'supervisor', 1700000000000, 'admin', 1713176987835, 'menu.trace.analysisRemark'); From 56fc427da3211e1e70b9080dc8cee5d25976743c Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 24 Jan 2025 20:31:11 +0800 Subject: [PATCH 10/11] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0swagger?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/common/controller/file.go | 2 +- .../network_data/controller/udm_auth.go | 27 +- .../network_data/controller/udm_sub.go | 19 +- .../network_element/controller/ne_info.go | 28 +- swagger2docs/docs.go | 241 ++++++++++++++---- swagger2docs/swagger.json | 241 ++++++++++++++---- swagger2docs/swagger.yaml | 173 ++++++++++--- 7 files changed, 560 insertions(+), 171 deletions(-) diff --git a/src/modules/common/controller/file.go b/src/modules/common/controller/file.go index 173b2d2b..c09ead28 100644 --- a/src/modules/common/controller/file.go +++ b/src/modules/common/controller/file.go @@ -80,7 +80,7 @@ func (s *FileController) Download(c *gin.Context) { // @Success 200 {object} object "Response Results" // @Security TokenAuth // @Summary Upload a file -// @Description Upload a file +// @Description Upload a file, interface param use // @Router /file/upload [post] func (s *FileController) Upload(c *gin.Context) { language := ctx.AcceptLanguage(c) diff --git a/src/modules/network_data/controller/udm_auth.go b/src/modules/network_data/controller/udm_auth.go index 1c659cf5..d2c784ea 100644 --- a/src/modules/network_data/controller/udm_auth.go +++ b/src/modules/network_data/controller/udm_auth.go @@ -67,7 +67,11 @@ func (s *UDMAuthController) ResetData(c *gin.Context) { // @Tags network_data/udm/auth // @Accept json // @Produce json -// @Success 200 {object} object "Response Results" +// @Param neId query string true "NE ID" default(001) +// @Param imsi query string false "IMSI" +// @Param pageNum query number true "pageNum" default(1) +// @Param pageSize query number true "pageSize" default(10) +// @Success 200 {object} object "Response Results" // @Security TokenAuth // @Summary UDM Authentication User List // @Description UDM Authentication User List @@ -86,7 +90,7 @@ func (s *UDMAuthController) List(c *gin.Context) { // @Accept json // @Produce json // @Param neId path string true "NE ID" default(001) -// @Param value path string true "User data imsi" +// @Param value path string true "IMSI" // @Success 200 {object} object "Response Results" // @Security TokenAuth // @Summary UDM Authentication User Information @@ -201,7 +205,7 @@ func (s *UDMAuthController) Add(c *gin.Context) { // @Accept json // @Produce json // @Param neId path string true "NE ID" default(001) -// @Param value path number true "Incremental number" +// @Param value path number true "Number includes starting imsi" // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" // @Security TokenAuth @@ -321,7 +325,7 @@ func (s *UDMAuthController) Edit(c *gin.Context) { // @Accept json // @Produce json // @Param neId path string true "NE ID" default(001) -// @Param value path string true "User data imsi, multiple separated by a , sign" +// @Param value path string true "IMSI, multiple separated by a , sign" // @Success 200 {object} object "Response Results" // @Security TokenAuth // @Summary UDM Authenticated User Deletion @@ -385,8 +389,8 @@ func (s *UDMAuthController) Remove(c *gin.Context) { // @Accept json // @Produce json // @Param neId path string true "NE ID" default(001) -// @Param imsi path string true "User data imsi" -// @Param num path number true "Incremental number" +// @Param imsi path string true "IMSI" +// @Param num path number true "Number includes starting imsi" // @Success 200 {object} object "Response Results" // @Security TokenAuth // @Summary UDM Authentication User Batch Deletion @@ -438,7 +442,8 @@ func (s *UDMAuthController) Removes(c *gin.Context) { // @Tags network_data/udm/auth // @Accept json // @Produce json -// @Success 200 {object} object "Response Results" +// @Param data body object true "Request Param" +// @Success 200 {object} object "Response Results" // @Security TokenAuth // @Summary UDM Authenticated User Export // @Description UDM Authenticated User Export @@ -534,10 +539,10 @@ func (s *UDMAuthController) Export(c *gin.Context) { func (s *UDMAuthController) Import(c *gin.Context) { language := ctx.AcceptLanguage(c) var body struct { - NeId string `json:"neId" binding:"required"` - UploadPath string `json:"uploadPath" binding:"required"` - TypeVal string `json:"typeVal" binding:"required,oneof=default k4"` - TypeData any `json:"typeData"` + NeId string `json:"neId" binding:"required"` // 网元ID + UploadPath string `json:"uploadPath" binding:"required"` // 上传文件路径 + TypeVal string `json:"typeVal" binding:"required,oneof=default k4"` // default: 默认导入方式, k4: k4类型导入方式 + TypeData any `json:"typeData"` // k4类型的数据密钥 } if err := c.ShouldBindBodyWith(&body, binding.JSON); err != nil { c.JSON(400, result.CodeMsg(400, i18n.TKey(language, "app.common.err400"))) diff --git a/src/modules/network_data/controller/udm_sub.go b/src/modules/network_data/controller/udm_sub.go index f2f42109..459c14e2 100644 --- a/src/modules/network_data/controller/udm_sub.go +++ b/src/modules/network_data/controller/udm_sub.go @@ -66,7 +66,12 @@ func (s *UDMSubController) ResetData(c *gin.Context) { // @Tags network_data/udm/sub // @Accept json // @Produce json -// @Success 200 {object} object "Response Results" +// @Param neId query string true "NE ID" default(001) +// @Param imsi query string false "IMSI" +// @Param msisdn query string false "Msisdn" +// @Param pageNum query number true "pageNum" default(1) +// @Param pageSize query number true "pageSize" default(10) +// @Success 200 {object} object "Response Results" // @Security TokenAuth // @Summary UDM Subscriber User List // @Description UDM Subscriber User List @@ -85,7 +90,7 @@ func (s *UDMSubController) List(c *gin.Context) { // @Accept json // @Produce json // @Param neId path string true "NE ID" default(001) -// @Param value path string true "User data imsi" +// @Param value path string true "IMSI" // @Success 200 {object} object "Response Results" // @Security TokenAuth // @Summary UDM Subscriber User Information @@ -200,8 +205,8 @@ func (s *UDMSubController) Add(c *gin.Context) { // @Tags network_data/udm/sub // @Accept json // @Produce json -// @Param neId path string true "NE ID" default(001) -// @Param value path number true "Incremental number" default(1) +// @Param neId path string true "NE ID" default(001) +// @Param value path number true "Number includes starting imsi" default(1) // @Param data body object true "Request Param" // @Success 200 {object} object "Response Results" // @Security TokenAuth @@ -325,7 +330,7 @@ func (s *UDMSubController) Edit(c *gin.Context) { // @Accept json // @Produce json // @Param neId path string true "NE ID" default(001) -// @Param value path string true "User data imsi, multiple separated by a , sign" +// @Param value path string true "IMSI, multiple separated by a , sign" // @Success 200 {object} object "Response Results" // @Security TokenAuth // @Summary UDM Subscriber User Deletion @@ -389,8 +394,8 @@ func (s *UDMSubController) Remove(c *gin.Context) { // @Accept json // @Produce json // @Param neId path string true "NE ID" default(001) -// @Param imsi path string true "User data imsi" -// @Param num path number true "Incremental number" default(1) +// @Param imsi path string true "IMSI" +// @Param num path number true "Number includes starting imsi" // @Success 200 {object} object "Response Results" // @Security TokenAuth // @Summary UDM Subscriber User Batch Deletion diff --git a/src/modules/network_element/controller/ne_info.go b/src/modules/network_element/controller/ne_info.go index 2c1359df..eda83f76 100644 --- a/src/modules/network_element/controller/ne_info.go +++ b/src/modules/network_element/controller/ne_info.go @@ -12,8 +12,8 @@ import ( neFetchlink "be.ems/src/modules/network_element/fetch_link" "be.ems/src/modules/network_element/model" neService "be.ems/src/modules/network_element/service" + "github.com/gin-gonic/gin" - "github.com/gin-gonic/gin/binding" ) // 实例化控制层 NeInfoController 结构体 @@ -139,7 +139,11 @@ func (s *NeInfoController) NeTypeAndID(c *gin.Context) { // @Tags network_element/info // @Accept json // @Produce json -// @Success 200 {object} object "Response Results" +// @Param neType query string true "NE Type" +// @Param neId query string true "NE ID" default(001) +// @Param bandStatus query boolean true "With status information" +// @Param bandHost query boolean true "With host information" +// @Success 200 {object} object "Response Results" // @Security TokenAuth // @Summary The list of network element information is all unpaginated // @Description The list of network element information is all unpaginated @@ -194,7 +198,7 @@ func (s *NeInfoController) Para5GFileWrite(c *gin.Context) { Content map[string]any `json:"content" binding:"required"` // 内容 SyncNE []string `json:"syncNe"` // 同步到网元 } - if err := c.ShouldBindBodyWith(&body, binding.JSON); err != nil { + if err := c.ShouldBindBodyWithJSON(&body); err != nil { c.JSON(400, result.CodeMsg(400, i18n.TKey(language, "app.common.err400"))) return } @@ -240,7 +244,7 @@ func (s *NeInfoController) OAMFileWrite(c *gin.Context) { Content map[string]any `json:"content" binding:"required"` // 内容 Sync bool `json:"sync"` // 同步到网元 } - if err := c.ShouldBindBodyWith(&body, binding.JSON); err != nil { + if err := c.ShouldBindBodyWithJSON(&body); err != nil { c.JSON(400, result.CodeMsg(400, i18n.TKey(language, "app.common.err400"))) return } @@ -268,6 +272,10 @@ func (s *NeInfoController) OAMFileWrite(c *gin.Context) { // @Accept json // @Produce json // @Param bandStatus query boolean false "The result carries the state of the network element" +// @Param neId query string false "NE ID" +// @Param neType query string false "Ne Type" +// @Param pageNum query number true "pageNum" default(1) +// @Param pageSize query number true "pageSize" default(10) // @Success 200 {object} object "Response Results" // @Security TokenAuth // @Summary Network element information list @@ -290,12 +298,12 @@ func (s *NeInfoController) List(c *gin.Context) { // @Tags network_element/info // @Accept json // @Produce json -// @Param infoId path string true "list data id" +// @Param value path string true "Row ID" // @Success 200 {object} object "Response Results" // @Security TokenAuth // @Summary Network element information // @Description Network element information -// @Router /ne/info/{infoId} [get] +// @Router /ne/info/{value} [get] func (s *NeInfoController) Info(c *gin.Context) { language := ctx.AcceptLanguage(c) infoId := c.Param("infoId") @@ -330,7 +338,7 @@ func (s *NeInfoController) Info(c *gin.Context) { func (s *NeInfoController) Add(c *gin.Context) { language := ctx.AcceptLanguage(c) var body model.NeInfo - err := c.ShouldBindBodyWith(&body, binding.JSON) + err := c.ShouldBindBodyWithJSON(&body) if err != nil || body.ID != "" { c.JSON(400, result.CodeMsg(400, i18n.TKey(language, "app.common.err400"))) return @@ -418,7 +426,7 @@ func (s *NeInfoController) Add(c *gin.Context) { func (s *NeInfoController) Edit(c *gin.Context) { language := ctx.AcceptLanguage(c) var body model.NeInfo - err := c.ShouldBindBodyWith(&body, binding.JSON) + err := c.ShouldBindBodyWithJSON(&body) if err != nil || body.ID == "" { c.JSON(400, result.CodeMsg(400, i18n.TKey(language, "app.common.err400"))) return @@ -517,12 +525,12 @@ func (s *NeInfoController) Edit(c *gin.Context) { // @Tags network_element/info // @Accept json // @Produce json -// @Param infoIds path string true "list data id, multiple separated by a , sign" +// @Param value path string true "Row ID, multiple separated by a , sign" // @Success 200 {object} object "Response Results" // @Security TokenAuth // @Summary Network element information deletion // @Description Network element information deletion -// @Router /ne/{infoIds} [delete] +// @Router /ne/info/{value} [delete] func (s *NeInfoController) Remove(c *gin.Context) { language := ctx.AcceptLanguage(c) infoIds := c.Param("infoIds") diff --git a/swagger2docs/docs.go b/swagger2docs/docs.go index 0f34d9ca..9e94c773 100644 --- a/swagger2docs/docs.go +++ b/swagger2docs/docs.go @@ -355,7 +355,7 @@ const docTemplate = `{ "TokenAuth": [] } ], - "description": "Upload a file", + "description": "Upload a file, interface param use \u003cfileName\u003e", "consumes": [ "multipart/form-data" ], @@ -1375,6 +1375,34 @@ const docTemplate = `{ "description": "The result carries the state of the network element", "name": "bandStatus", "in": "query" + }, + { + "type": "string", + "description": "NE ID", + "name": "neId", + "in": "query" + }, + { + "type": "string", + "description": "Ne Type", + "name": "neType", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true } ], "responses": { @@ -1405,6 +1433,37 @@ const docTemplate = `{ "network_element/info" ], "summary": "The list of network element information is all unpaginated", + "parameters": [ + { + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "boolean", + "description": "With status information", + "name": "bandStatus", + "in": "query", + "required": true + }, + { + "type": "boolean", + "description": "With host information", + "name": "bandHost", + "in": "query", + "required": true + } + ], "responses": { "200": { "description": "Response Results", @@ -1475,7 +1534,7 @@ const docTemplate = `{ } } }, - "/ne/info/{infoId}": { + "/ne/info/{value}": { "get": { "security": [ { @@ -1496,8 +1555,43 @@ const docTemplate = `{ "parameters": [ { "type": "string", - "description": "list data id", - "name": "infoId", + "description": "Row ID", + "name": "value", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + }, + "delete": { + "security": [ + { + "TokenAuth": [] + } + ], + "description": "Network element information deletion", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/info" + ], + "summary": "Network element information deletion", + "parameters": [ + { + "type": "string", + "description": "Row ID, multiple separated by a , sign", + "name": "value", "in": "path", "required": true } @@ -1929,43 +2023,6 @@ const docTemplate = `{ } } }, - "/ne/{infoIds}": { - "delete": { - "security": [ - { - "TokenAuth": [] - } - ], - "description": "Network element information deletion", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "network_element/info" - ], - "summary": "Network element information deletion", - "parameters": [ - { - "type": "string", - "description": "list data id, multiple separated by a , sign", - "name": "infoIds", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "Response Results", - "schema": { - "type": "object" - } - } - } - } - }, "/neData/amf/nb/list": { "get": { "security": [ @@ -3379,6 +3436,17 @@ const docTemplate = `{ "network_data/udm/auth" ], "summary": "UDM Authenticated User Export", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], "responses": { "200": { "description": "Response Results", @@ -3446,6 +3514,38 @@ const docTemplate = `{ "network_data/udm/auth" ], "summary": "UDM Authentication User List", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "IMSI", + "name": "imsi", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], "responses": { "200": { "description": "Response Results", @@ -3615,14 +3715,14 @@ const docTemplate = `{ }, { "type": "string", - "description": "User data imsi", + "description": "IMSI", "name": "imsi", "in": "path", "required": true }, { "type": "number", - "description": "Incremental number", + "description": "Number includes starting imsi", "name": "num", "in": "path", "required": true @@ -3667,7 +3767,7 @@ const docTemplate = `{ }, { "type": "string", - "description": "User data imsi", + "description": "IMSI", "name": "value", "in": "path", "required": true @@ -3710,7 +3810,7 @@ const docTemplate = `{ }, { "type": "number", - "description": "Incremental number", + "description": "Number includes starting imsi", "name": "value", "in": "path", "required": true @@ -3762,7 +3862,7 @@ const docTemplate = `{ }, { "type": "string", - "description": "User data imsi, multiple separated by a , sign", + "description": "IMSI, multiple separated by a , sign", "name": "value", "in": "path", "required": true @@ -3874,6 +3974,44 @@ const docTemplate = `{ "network_data/udm/sub" ], "summary": "UDM Subscriber User List", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "IMSI", + "name": "imsi", + "in": "query" + }, + { + "type": "string", + "description": "Msisdn", + "name": "msisdn", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], "responses": { "200": { "description": "Response Results", @@ -4043,15 +4181,14 @@ const docTemplate = `{ }, { "type": "string", - "description": "User data imsi", + "description": "IMSI", "name": "imsi", "in": "path", "required": true }, { "type": "number", - "default": 1, - "description": "Incremental number", + "description": "Number includes starting imsi", "name": "num", "in": "path", "required": true @@ -4096,7 +4233,7 @@ const docTemplate = `{ }, { "type": "string", - "description": "User data imsi", + "description": "IMSI", "name": "value", "in": "path", "required": true @@ -4140,7 +4277,7 @@ const docTemplate = `{ { "type": "number", "default": 1, - "description": "Incremental number", + "description": "Number includes starting imsi", "name": "value", "in": "path", "required": true @@ -4192,7 +4329,7 @@ const docTemplate = `{ }, { "type": "string", - "description": "User data imsi, multiple separated by a , sign", + "description": "IMSI, multiple separated by a , sign", "name": "value", "in": "path", "required": true diff --git a/swagger2docs/swagger.json b/swagger2docs/swagger.json index b5ac917b..463c588c 100644 --- a/swagger2docs/swagger.json +++ b/swagger2docs/swagger.json @@ -353,7 +353,7 @@ "TokenAuth": [] } ], - "description": "Upload a file", + "description": "Upload a file, interface param use \u003cfileName\u003e", "consumes": [ "multipart/form-data" ], @@ -1373,6 +1373,34 @@ "description": "The result carries the state of the network element", "name": "bandStatus", "in": "query" + }, + { + "type": "string", + "description": "NE ID", + "name": "neId", + "in": "query" + }, + { + "type": "string", + "description": "Ne Type", + "name": "neType", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true } ], "responses": { @@ -1403,6 +1431,37 @@ "network_element/info" ], "summary": "The list of network element information is all unpaginated", + "parameters": [ + { + "type": "string", + "description": "NE Type", + "name": "neType", + "in": "query", + "required": true + }, + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "boolean", + "description": "With status information", + "name": "bandStatus", + "in": "query", + "required": true + }, + { + "type": "boolean", + "description": "With host information", + "name": "bandHost", + "in": "query", + "required": true + } + ], "responses": { "200": { "description": "Response Results", @@ -1473,7 +1532,7 @@ } } }, - "/ne/info/{infoId}": { + "/ne/info/{value}": { "get": { "security": [ { @@ -1494,8 +1553,43 @@ "parameters": [ { "type": "string", - "description": "list data id", - "name": "infoId", + "description": "Row ID", + "name": "value", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Response Results", + "schema": { + "type": "object" + } + } + } + }, + "delete": { + "security": [ + { + "TokenAuth": [] + } + ], + "description": "Network element information deletion", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "network_element/info" + ], + "summary": "Network element information deletion", + "parameters": [ + { + "type": "string", + "description": "Row ID, multiple separated by a , sign", + "name": "value", "in": "path", "required": true } @@ -1927,43 +2021,6 @@ } } }, - "/ne/{infoIds}": { - "delete": { - "security": [ - { - "TokenAuth": [] - } - ], - "description": "Network element information deletion", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "network_element/info" - ], - "summary": "Network element information deletion", - "parameters": [ - { - "type": "string", - "description": "list data id, multiple separated by a , sign", - "name": "infoIds", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "Response Results", - "schema": { - "type": "object" - } - } - } - } - }, "/neData/amf/nb/list": { "get": { "security": [ @@ -3377,6 +3434,17 @@ "network_data/udm/auth" ], "summary": "UDM Authenticated User Export", + "parameters": [ + { + "description": "Request Param", + "name": "data", + "in": "body", + "required": true, + "schema": { + "type": "object" + } + } + ], "responses": { "200": { "description": "Response Results", @@ -3444,6 +3512,38 @@ "network_data/udm/auth" ], "summary": "UDM Authentication User List", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "IMSI", + "name": "imsi", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], "responses": { "200": { "description": "Response Results", @@ -3613,14 +3713,14 @@ }, { "type": "string", - "description": "User data imsi", + "description": "IMSI", "name": "imsi", "in": "path", "required": true }, { "type": "number", - "description": "Incremental number", + "description": "Number includes starting imsi", "name": "num", "in": "path", "required": true @@ -3665,7 +3765,7 @@ }, { "type": "string", - "description": "User data imsi", + "description": "IMSI", "name": "value", "in": "path", "required": true @@ -3708,7 +3808,7 @@ }, { "type": "number", - "description": "Incremental number", + "description": "Number includes starting imsi", "name": "value", "in": "path", "required": true @@ -3760,7 +3860,7 @@ }, { "type": "string", - "description": "User data imsi, multiple separated by a , sign", + "description": "IMSI, multiple separated by a , sign", "name": "value", "in": "path", "required": true @@ -3872,6 +3972,44 @@ "network_data/udm/sub" ], "summary": "UDM Subscriber User List", + "parameters": [ + { + "type": "string", + "default": "001", + "description": "NE ID", + "name": "neId", + "in": "query", + "required": true + }, + { + "type": "string", + "description": "IMSI", + "name": "imsi", + "in": "query" + }, + { + "type": "string", + "description": "Msisdn", + "name": "msisdn", + "in": "query" + }, + { + "type": "number", + "default": 1, + "description": "pageNum", + "name": "pageNum", + "in": "query", + "required": true + }, + { + "type": "number", + "default": 10, + "description": "pageSize", + "name": "pageSize", + "in": "query", + "required": true + } + ], "responses": { "200": { "description": "Response Results", @@ -4041,15 +4179,14 @@ }, { "type": "string", - "description": "User data imsi", + "description": "IMSI", "name": "imsi", "in": "path", "required": true }, { "type": "number", - "default": 1, - "description": "Incremental number", + "description": "Number includes starting imsi", "name": "num", "in": "path", "required": true @@ -4094,7 +4231,7 @@ }, { "type": "string", - "description": "User data imsi", + "description": "IMSI", "name": "value", "in": "path", "required": true @@ -4138,7 +4275,7 @@ { "type": "number", "default": 1, - "description": "Incremental number", + "description": "Number includes starting imsi", "name": "value", "in": "path", "required": true @@ -4190,7 +4327,7 @@ }, { "type": "string", - "description": "User data imsi, multiple separated by a , sign", + "description": "IMSI, multiple separated by a , sign", "name": "value", "in": "path", "required": true diff --git a/swagger2docs/swagger.yaml b/swagger2docs/swagger.yaml index b271a0d0..6a364dfb 100644 --- a/swagger2docs/swagger.yaml +++ b/swagger2docs/swagger.yaml @@ -219,7 +219,7 @@ paths: post: consumes: - multipart/form-data - description: Upload a file + description: Upload a file, interface param use parameters: - description: The file to upload. in: formData @@ -387,29 +387,6 @@ paths: summary: Server Information tags: - monitor - /ne/{infoIds}: - delete: - consumes: - - application/json - description: Network element information deletion - parameters: - - description: list data id, multiple separated by a , sign - in: path - name: infoIds - required: true - type: string - produces: - - application/json - responses: - "200": - description: Response Results - schema: - type: object - security: - - TokenAuth: [] - summary: Network element information deletion - tags: - - network_element/info /ne/action/files: get: consumes: @@ -844,15 +821,37 @@ paths: summary: Network element information modification tags: - network_element/info - /ne/info/{infoId}: + /ne/info/{value}: + delete: + consumes: + - application/json + description: Network element information deletion + parameters: + - description: Row ID, multiple separated by a , sign + in: path + name: value + required: true + type: string + produces: + - application/json + responses: + "200": + description: Response Results + schema: + type: object + security: + - TokenAuth: [] + summary: Network element information deletion + tags: + - network_element/info get: consumes: - application/json description: Network element information parameters: - - description: list data id + - description: Row ID in: path - name: infoId + name: value required: true type: string produces: @@ -920,6 +919,26 @@ paths: in: query name: bandStatus type: boolean + - description: NE ID + in: query + name: neId + type: string + - description: Ne Type + in: query + name: neType + type: string + - default: 1 + description: pageNum + in: query + name: pageNum + required: true + type: number + - default: 10 + description: pageSize + in: query + name: pageSize + required: true + type: number produces: - application/json responses: @@ -937,6 +956,28 @@ paths: consumes: - application/json description: The list of network element information is all unpaginated + parameters: + - description: NE Type + in: query + name: neType + required: true + type: string + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + - description: With status information + in: query + name: bandStatus + required: true + type: boolean + - description: With host information + in: query + name: bandHost + required: true + type: boolean produces: - application/json responses: @@ -2260,12 +2301,12 @@ paths: name: neId required: true type: string - - description: User data imsi + - description: IMSI in: path name: imsi required: true type: string - - description: Incremental number + - description: Number includes starting imsi in: path name: num required: true @@ -2294,7 +2335,7 @@ paths: name: neId required: true type: string - - description: User data imsi, multiple separated by a , sign + - description: IMSI, multiple separated by a , sign in: path name: value required: true @@ -2322,7 +2363,7 @@ paths: name: neId required: true type: string - - description: User data imsi + - description: IMSI in: path name: value required: true @@ -2350,7 +2391,7 @@ paths: name: neId required: true type: string - - description: Incremental number + - description: Number includes starting imsi in: path name: value required: true @@ -2378,6 +2419,13 @@ paths: consumes: - application/json description: UDM Authenticated User Export + parameters: + - description: Request Param + in: body + name: data + required: true + schema: + type: object produces: - application/json responses: @@ -2419,6 +2467,29 @@ paths: consumes: - application/json description: UDM Authentication User List + parameters: + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + - description: IMSI + in: query + name: imsi + type: string + - default: 1 + description: pageNum + in: query + name: pageNum + required: true + type: number + - default: 10 + description: pageSize + in: query + name: pageSize + required: true + type: number produces: - application/json responses: @@ -2526,13 +2597,12 @@ paths: name: neId required: true type: string - - description: User data imsi + - description: IMSI in: path name: imsi required: true type: string - - default: 1 - description: Incremental number + - description: Number includes starting imsi in: path name: num required: true @@ -2561,7 +2631,7 @@ paths: name: neId required: true type: string - - description: User data imsi, multiple separated by a , sign + - description: IMSI, multiple separated by a , sign in: path name: value required: true @@ -2589,7 +2659,7 @@ paths: name: neId required: true type: string - - description: User data imsi + - description: IMSI in: path name: value required: true @@ -2618,7 +2688,7 @@ paths: required: true type: string - default: 1 - description: Incremental number + description: Number includes starting imsi in: path name: value required: true @@ -2694,6 +2764,33 @@ paths: consumes: - application/json description: UDM Subscriber User List + parameters: + - default: "001" + description: NE ID + in: query + name: neId + required: true + type: string + - description: IMSI + in: query + name: imsi + type: string + - description: Msisdn + in: query + name: msisdn + type: string + - default: 1 + description: pageNum + in: query + name: pageNum + required: true + type: number + - default: 10 + description: pageSize + in: query + name: pageSize + required: true + type: number produces: - application/json responses: From db1d15aa3cb29cd4233d42a4b6cdd15446237687 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 24 Jan 2025 20:39:12 +0800 Subject: [PATCH 11/11] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8F=B7=202.2501.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 13 +++++++++++++ makefile | 2 +- mkpkg.sh | 2 +- restagent/makefile | 2 +- sshsvc/makefile | 2 +- 5 files changed, 17 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c9bd958c..9d2ca7a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # 版本发布日志 +## 2.2501.4-20250124 + +- 新增 日志备份文件同步FTP功能 +- 新增 调度任务-日志备份文件同步FTP功能 +- 新增 swagger接口文档版本1.0.8 +- 修复 网元主机title命名_随机4位 +- 修复 SSH工具远程复制文件夹创建 +- 修复 CDR网元数据查询结构体限定neType范围 +- 修复 网元直连SMF会话pageNum类型转换 +- 新增 MME参数配置项enbList,补充MME基站状态接口 +- 优化 自定义指标title公式,菜单基站在线页面隐藏 +- 优化 关闭接口加密功能 + ## 2.2501.3-20250117 - 优化 自定义指标数据查询值float64保留3为小数 diff --git a/makefile b/makefile index 51d2621a..bca2dcb8 100644 --- a/makefile +++ b/makefile @@ -3,7 +3,7 @@ ProjectL = omc ProjectU = OMC PROJECT = $(ProjectL) -VERSION = 2.2501.3 +VERSION = 2.2501.4 RelDate = `date +%Y%m%d` Release = $(RelDate) RelVer = $(VERSION)-$(RelDate) diff --git a/mkpkg.sh b/mkpkg.sh index bc9949a0..1e0ac7b6 100755 --- a/mkpkg.sh +++ b/mkpkg.sh @@ -2,7 +2,7 @@ ProcList="restagent sshsvc" ProjectL=omc -VERSION=2.2501.3 +VERSION=2.2501.4 RelDate=`date +%Y%m%d` Release=${RelDate} RelVer=${VERSION}-${RelDate} diff --git a/restagent/makefile b/restagent/makefile index 050c0c46..e89ae8fc 100644 --- a/restagent/makefile +++ b/restagent/makefile @@ -1,7 +1,7 @@ # Makefile for rest agent project PROJECT = OMC -VERSION = 2.2501.3 +VERSION = 2.2501.4 PLATFORM = amd64 ARMPLATFORM = aarch64 BUILDDIR = ../../build diff --git a/sshsvc/makefile b/sshsvc/makefile index b687eb72..7c979553 100644 --- a/sshsvc/makefile +++ b/sshsvc/makefile @@ -1,7 +1,7 @@ # Makefile for OMC-OMC-crontask project PROJECT = OMC -VERSION = 2.2501.3 +VERSION = 2.2501.4 LIBDIR = be.ems/lib BINNAME = sshsvc