Commit 90b114d9 authored by honghuiliu's avatar honghuiliu 💬

bug修复

parent c8b3d3b9
package web package web
import ( import (
"fmt"
"gitee.com/zjlsliupei/ghelp" "gitee.com/zjlsliupei/ghelp"
"github.com/flipped-aurora/gin-vue-admin/server/model/common/response" "github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
"github.com/flipped-aurora/gin-vue-admin/server/request" "github.com/flipped-aurora/gin-vue-admin/server/request"
...@@ -29,7 +30,7 @@ func GetToiletList(c *gin.Context) { ...@@ -29,7 +30,7 @@ func GetToiletList(c *gin.Context) {
func GetToiletDetail(c *gin.Context) { func GetToiletDetail(c *gin.Context) {
var arg request.GetId var arg request.GetId
_ = c.ShouldBindJSON(&arg) _ = c.ShouldBindJSON(&arg)
fmt.Println(c.ShouldBindJSON(&arg))
if data, err := toiletService.GetToiletDetail(arg); err != nil { if data, err := toiletService.GetToiletDetail(arg); err != nil {
response.FailWithMessage(err.Error(), c) response.FailWithMessage(err.Error(), c)
} else { } else {
......
...@@ -7,5 +7,5 @@ type Toilet struct { ...@@ -7,5 +7,5 @@ type Toilet struct {
} }
type GetId struct { type GetId struct {
ID string `json:"id"` ID int `json:"id"`
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment