func ListItems(param ops.ListItemsParams) middleware.Responder {
	resp := models.ListResponse{}

	var respItems = make([]*models.ListResponseTodoItemsItems0, len(items))
	var i int64 = 0
	for _, item := range items {
		id := item.ID
		title := item.Title
		respItems[i] = &models.ListResponseTodoItemsItems0{ID: &id, Title: &title}
		i++
	}

	resp.TodoItems = respItems
	return ops.NewListItemsOK().WithPayload(&resp)
}
// ListItems lists all the todo items
ListItems lists all the todo items
// ListItems lists all the todo items
func ListItems(param ops.ListItemsParams) middleware.Responder {
	resp := models.ListResponse{}
	var respItems = make([]*models.ListResponseTodoItemsItems0, len(items))
	var i int64 = 0
	for _, item := range items {
		id := item.ID
		title := item.Title
		respItems[i] = &models.ListResponseTodoItemsItems0{ID: &id, Title: &title}
		i++
	}
	resp.TodoItems = respItems
	return ops.NewListItemsOK().WithPayload(&resp)
}
func ListItems ( param ops . ListItemsParams ) middleware . Responder { resp := models . ListResponse { } var respItems = make ( [ ] * models . ListResponseTodoItemsItems0 , len ( items ) ) var i int64 = 0 for _ , item := range items { id := item . ID title := item . Title respItems [ i ] = & models . ListResponseTodoItemsItems0 { ID : & id , Title : & title } i ++ } resp . TodoItems = respItems return ops . NewListItemsOK ( ) . WithPayload ( & resp ) }
ListItems lists all the todo items
ListItems lists all the todo items