“My friend” is like a pronoun, “I told my friend about my plans”, in that sentence you could use any other pronoun like “I told her about my plans”.
“Friend of mine” is like a direct object, “She is a friend of mine”, here “she” is the subject of the sentence, “of mine” is a prepositional phrase that specifies whose friend she is.
I hope it helps, :)