From a0dc58264a6a8d751d2789f25a08b2a2ac5b9673 Mon Sep 17 00:00:00 2001 From: link Date: Mon, 20 Mar 2023 15:24:45 +0800 Subject: [PATCH] Update interface result state (#964) --- route/v1/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route/v1/file.go b/route/v1/file.go index e9bec36..72707f7 100644 --- a/route/v1/file.go +++ b/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 {