controllers/car.go
@@ -118,4 +118,17 @@ func (c *CarController) BindCarSpace() { c.ServeJSON() } // @router /crossRecord [get] func (c *CarController) CrossRecord() { sv := service.NewCarService() records := sv.CrossRecords() resp := code.Code{ Success: true, Status: http.StatusOK, Data: records, } c.Data["json"] = resp c.ServeJSON() }