The risk in using dog doo in vegetable gardens is that, some parasite might survive and incomplete
composting process and you could get worms, and not just in your intestines.
If you use it in your compost, don't use it in the vegetable garden and make sure it's completely composted and compost it with layered materials to make it a complete compost that breaks down in a reasonable time and doesn't stink really bad while you wait.
It will help if your dog(s) eat good food too. Some of the commercial brands are full of coloring and synthetic products that don't break down very well.
That's the straight poop!