What does it mean when a guy friend slaps your bum?

What does it mean when a guy friend slaps your bum?

While it's not the same for every guy, slapping a girl's butt usually has sexual connotations. It's usually done between people in a romantic relationship, but since you're expressing that he's a “friend”, he's out of line, especially if you don't like that he's doing it.