upload
This commit is contained in:
@@ -54,14 +54,7 @@ func (a *app) list(w http.ResponseWriter, r *http.Request) {
|
||||
a.render.JSONErr(w, err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
data := render.ResponseList{
|
||||
Code: 0,
|
||||
Message: "ok",
|
||||
Count: 0,
|
||||
Data: res,
|
||||
}
|
||||
a.render.JSON(w, data)
|
||||
a.render.JSON(w, render.NewResponseList(0, res))
|
||||
default:
|
||||
a.render.JSONErr(w, "method not allowed")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user