Polyamide-based photoreactive polymer and preparation method thereofпатент