mirror of
https://github.com/documize/community.git
synced 2025-07-25 08:09:43 +02:00
go fmt fixes
This commit is contained in:
parent
c5c988709d
commit
6cc78f76da
3 changed files with 8 additions and 18 deletions
|
@ -339,7 +339,7 @@ func (h *Handler) DeletePages(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
model := new([]page.PageLevelRequest)
|
||||
model := new([]page.LevelRequest)
|
||||
err = json.Unmarshal(body, &model)
|
||||
if err != nil {
|
||||
response.WriteBadRequestError(w, method, "JSON marshal")
|
||||
|
@ -591,7 +591,7 @@ func (h *Handler) ChangePageSequence(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
model := new([]page.PageSequenceRequest)
|
||||
model := new([]page.SequenceRequest)
|
||||
err = json.Unmarshal(body, &model)
|
||||
if err != nil {
|
||||
response.WriteBadRequestError(w, method, err.Error())
|
||||
|
@ -652,7 +652,7 @@ func (h *Handler) ChangePageLevel(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
model := new([]page.PageLevelRequest)
|
||||
model := new([]page.LevelRequest)
|
||||
err = json.Unmarshal(body, &model)
|
||||
if err != nil {
|
||||
response.WriteBadRequestError(w, method, err.Error())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue