type GetById struct {
ID float64 json:"id" form:"id"
}
这里的Id 改成 ID,校验参数是否输入
同时修改调用的地方