controllers/user.go
@@ -131,8 +131,10 @@ // @router /myPlateNos [get] func (u *UserController) MyPlateNos() { userId := u.GetString("userId") fmt.Println("MyPlateNos userId", userId) var uc models.UserCar all, err := uc.GetByUserId(userId) fmt.Println("all:", all, "err:", err) var nos = make([]string, 0) if err == nil && all != nil { for _,p := range all {