如何花时间将时间作为原始API主体

Problem is 2019/04/09 12:14:08.780 [C] [panic.go:522] Handler crashed with error interface conversion: interface {} is string, not time.Time

// SingleTenantUsage
// @Param   startTime   time    true "startTime"
// @Param   endTime     time    true "endTime"
// @router /singleTenantUsage [post]
func (h *HypervisorController) SingleTenantUsage() {
   var bodyBytes []byte
   raw := make(map[string]interface{})
   if h.Ctx.Request.Body != nil {
     bodyBytes, _ = ioutil.ReadAll(h.Ctx.Request.Body)
   }

   json.Unmarshal(bodyBytes, &raw)

   usageSingle, err := compute.UsageSingleTenant(raw["tenantID"].(time.Time),raw["startTime"].(time.Time), raw["endTime"].(time.Time))   <---- error here

}

enter image description here