feat: swagger接口文档更新1.0.8改TokenAuth

This commit is contained in:
TsMask
2025-01-24 09:40:28 +08:00
parent a431963e36
commit bfe898d15f
43 changed files with 490 additions and 490 deletions

View File

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