feat: swagger接口文档更新1.0.8

This commit is contained in:
TsMask
2025-01-23 15:07:22 +08:00
parent 788e406c32
commit ed9aa17bc3
47 changed files with 16033 additions and 119 deletions

View File

@@ -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 {