liuxiaolong
2020-07-27 aa38814dac11fbd1c7c1c04cd57aaeaff1daa0f4
controllers/user.go
@@ -156,7 +156,9 @@
   plateNo := u.GetString("plateNo")
   resp := code.Code{}
   var uc models.UserCar
   if i,e := uc.Delete(userId, plateNo);e ==nil && i >0 {
   i,e := uc.Delete(userId, plateNo)
   fmt.Println("delPlateNo i:",i, "e:", e)
   if e ==nil && i >0 {
      resp.Success = true
      resp.Status = http.StatusOK
      resp.Data = "删除成功"