@@ -14,7 +14,7 @@ import (
14
14
// @Success 200 {object} response.HostToolRes
15
15
// @Security ApiKeyAuth
16
16
// @Security Timestamp
17
- // @Router /host /tool [post]
17
+ // @Router /hosts /tool [post]
18
18
func (b * BaseApi ) GetToolStatus (c * gin.Context ) {
19
19
var req request.HostToolReq
20
20
if err := helper .CheckBindAndValidate (& req , c ); err != nil {
@@ -36,7 +36,7 @@ func (b *BaseApi) GetToolStatus(c *gin.Context) {
36
36
// @Success 200
37
37
// @Security ApiKeyAuth
38
38
// @Security Timestamp
39
- // @Router /host /tool/create [post]
39
+ // @Router /hosts /tool/create [post]
40
40
// @x-panel-log {"bodyKeys":["type"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"创建 [type] 配置","formatEN":"create [type] config"}
41
41
func (b * BaseApi ) InitToolConfig (c * gin.Context ) {
42
42
var req request.HostToolCreate
@@ -58,7 +58,7 @@ func (b *BaseApi) InitToolConfig(c *gin.Context) {
58
58
// @Success 200
59
59
// @Security ApiKeyAuth
60
60
// @Security Timestamp
61
- // @Router /host /tool/operate [post]
61
+ // @Router /hosts /tool/operate [post]
62
62
// @x-panel-log {"bodyKeys":["operate","type"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"[operate] [type] ","formatEN":"[operate] [type]"}
63
63
func (b * BaseApi ) OperateTool (c * gin.Context ) {
64
64
var req request.HostToolReq
@@ -80,7 +80,7 @@ func (b *BaseApi) OperateTool(c *gin.Context) {
80
80
// @Success 200 {object} response.HostToolConfig
81
81
// @Security ApiKeyAuth
82
82
// @Security Timestamp
83
- // @Router /host /tool/config [post]
83
+ // @Router /hosts /tool/config [post]
84
84
// @x-panel-log {"bodyKeys":["operate"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"[operate] 主机工具配置文件 ","formatEN":"[operate] tool config"}
85
85
func (b * BaseApi ) OperateToolConfig (c * gin.Context ) {
86
86
var req request.HostToolConfig
@@ -103,7 +103,7 @@ func (b *BaseApi) OperateToolConfig(c *gin.Context) {
103
103
// @Success 200 {string} logContent
104
104
// @Security ApiKeyAuth
105
105
// @Security Timestamp
106
- // @Router /host /tool/log [post]
106
+ // @Router /hosts /tool/log [post]
107
107
func (b * BaseApi ) GetToolLog (c * gin.Context ) {
108
108
var req request.HostToolLogReq
109
109
if err := helper .CheckBindAndValidate (& req , c ); err != nil {
@@ -125,7 +125,7 @@ func (b *BaseApi) GetToolLog(c *gin.Context) {
125
125
// @Success 200
126
126
// @Security ApiKeyAuth
127
127
// @Security Timestamp
128
- // @Router /host /tool/supervisor/process [post]
128
+ // @Router /hosts /tool/supervisor/process [post]
129
129
// @x-panel-log {"bodyKeys":["operate"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"[operate] 守护进程 ","formatEN":"[operate] process"}
130
130
func (b * BaseApi ) OperateProcess (c * gin.Context ) {
131
131
var req request.SupervisorProcessConfig
@@ -147,7 +147,7 @@ func (b *BaseApi) OperateProcess(c *gin.Context) {
147
147
// @Success 200 {object} response.SupervisorProcessConfig
148
148
// @Security ApiKeyAuth
149
149
// @Security Timestamp
150
- // @Router /host /tool/supervisor/process [get]
150
+ // @Router /hosts /tool/supervisor/process [get]
151
151
func (b * BaseApi ) GetProcess (c * gin.Context ) {
152
152
configs , err := hostToolService .GetSupervisorProcessConfig ()
153
153
if err != nil {
@@ -164,7 +164,7 @@ func (b *BaseApi) GetProcess(c *gin.Context) {
164
164
// @Success 200 {string} content
165
165
// @Security ApiKeyAuth
166
166
// @Security Timestamp
167
- // @Router /host /tool/supervisor/process/file [post]
167
+ // @Router /hosts /tool/supervisor/process/file [post]
168
168
// @x-panel-log {"bodyKeys":["operate"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"[operate] Supervisor 进程文件 ","formatEN":"[operate] Supervisor Process Config file"}
169
169
func (b * BaseApi ) GetProcessFile (c * gin.Context ) {
170
170
var req request.SupervisorProcessFileReq
0 commit comments