Skip to content

Commit 2c37a4c

Browse files
committed
feat: 增加主机工具箱
1 parent b642732 commit 2c37a4c

File tree

19 files changed

+1652
-234
lines changed

19 files changed

+1652
-234
lines changed

backend/app/api/v1/device.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func (b *BaseApi) LoadDeviceConf(c *gin.Context) {
7070
// @Description 通过文件修改配置
7171
// @Accept json
7272
// @Param request body dto.UpdateByNameAndFile true "request"
73-
// @Success 200 {object}
73+
// @Success 200
7474
// @Security ApiKeyAuth
7575
// @Router /toolbox/device/update/byconf [post]
7676
func (b *BaseApi) UpdateDevicByFile(c *gin.Context) {
@@ -112,9 +112,7 @@ func (b *BaseApi) UpdateDeviceConf(c *gin.Context) {
112112
// @Tags Device
113113
// @Summary Update device hosts
114114
// @Description 修改系统 hosts
115-
// @Accept json
116-
// @Param request body {Array} true "request"
117-
// @Success 200 {object} dto.PageResult
115+
// @Success 200
118116
// @Security ApiKeyAuth
119117
// @Router /toolbox/device/update/host [post]
120118
// @x-panel-log {"bodyKeys":["key","value"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"修改主机 Host [key] => [value]","formatEN":"update device host [key] => [value]"}
@@ -168,7 +166,7 @@ func (b *BaseApi) UpdateDevicPasswd(c *gin.Context) {
168166
// @Param request body dto.SettingUpdate true "request"
169167
// @Success 200
170168
// @Security ApiKeyAuth
171-
// @Router /toolbox/device/test/dns [post]
169+
// @Router /toolbox/device/check/dns [post]
172170
func (b *BaseApi) CheckDNS(c *gin.Context) {
173171
var req dto.SettingUpdate
174172
if err := helper.CheckBindAndValidate(&req, c); err != nil {

0 commit comments

Comments
 (0)