feat: support ins pause and enable tips

This commit is contained in:
engigu
2024-01-14 19:48:45 +08:00
parent 766e4c8855
commit c6cd067451
2 changed files with 11 additions and 3 deletions
+8 -1
View File
@@ -208,5 +208,12 @@ func UpdateMsgTaskInsEnable(c *gin.Context) {
return
}
appG.CResponse(http.StatusOK, "更新实例成功!", nil)
msg := ""
if req.Enable == 1 {
msg = fmt.Sprintf("设置实例发送为开启成功!")
} else {
msg = fmt.Sprintf("设置实例发送为暂停成功!")
}
appG.CResponse(http.StatusOK, msg, nil)
}