浏览代码

Update interface result state (#964)

link 2 年之前
父节点
当前提交
a0dc58264a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      route/v1/file.go

+ 1 - 1
route/v1/file.go

@@ -816,7 +816,7 @@ func GetFileCount(c *gin.Context) {
 		c.JSON(common_err.SERVICE_ERROR, model.Result{Success: common_err.SERVICE_ERROR, Message: common_err.GetMsg(common_err.SERVICE_ERROR), Data: err.Error()})
 		return
 	}
-	c.JSON(common_err.SERVICE_ERROR, model.Result{Success: common_err.SERVICE_ERROR, Message: common_err.GetMsg(common_err.SERVICE_ERROR), Data: len(list)})
+	c.JSON(common_err.SUCCESS, model.Result{Success: common_err.SUCCESS, Message: common_err.GetMsg(common_err.SUCCESS), Data: len(list)})
 }
 
 type CenterHandler struct {