feat: swagger接口文档更新1.0.8
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user