Переглянути джерело

修改信息发布提示框

dbcgit 5 роки тому
батько
коміт
1e469246b4

+ 3 - 3
backend/src/dashoo.cn/modi_webapi/app/api/information/information.go

@@ -1,9 +1,9 @@
 package information
 
 import (
-	"dashoo.cn/micro_libary/response"
 	"dashoo.cn/modi_webapi/app/model/information"
 	service "dashoo.cn/modi_webapi/app/service/information"
+	"dashoo.cn/modi_webapi/library/response"
 	"github.com/gogf/gf/net/ghttp"
 	"github.com/gogf/gf/os/glog"
 )
@@ -88,7 +88,7 @@ func (c *Controller) GetDetailById(r *ghttp.Request) {
 	if information, err := servcie.GetByID(id); err != nil {
 		response.Json(r, -1, err.Error())
 	} else {
-		response.Json(r, 0, "ok", information)
+		response.Json(r, 0, "", information)
 	}
 
 }
@@ -118,6 +118,6 @@ func (c *Controller) GetPageList(r *ghttp.Request) {
 			records.Total = total
 			records.Records = informationList
 		}
-		response.Json(r, 0, "ok", records)
+		response.Json(r, 0, "", records)
 	}
 }