|
|
@@ -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)
|
|
|
}
|
|
|
}
|