liuxiaolong
2020-07-28 6d3673f0ee39c02aa49775693d64554c6af25e57
controllers/user.go
@@ -132,11 +132,8 @@
func (u *UserController) MyPlateNos() {
   userId := u.GetString("userId")
   fmt.Println("MyPlateNos userId", userId)
   //var uc models.UserCar
   //all, err := uc.GetByUserId(userId)
   sv :=  service.NewCarService()
   vehicleList := sv.GetVehicleListByPerson(userId)
   fmt.Println("vehicleList:", vehicleList)
   var nos = make([]string, 0)
   if vehicleList != nil {
      for _,p := range vehicleList {