Thanks for your query.Based on the facts that you have posted it appears that you have severe burning while passing urine and slight bleeding mostly due to injury to urethra
while masturbating roughly by your boy friend .
Please take broad spectrum antibiotics along with anti inflammatory medication like Diclofenac
twice daily for a week..
Use of topical soothing local anaesthetic
jelly like Nupercain will help to relieve pain.
Get the prescription of medicines from your family Physician.
Avoid sexual encounter till it gets cured completely.