Legal analysis: You can negotiate with the person who hit you and ask the other party to compensate for medical expenses, transportation expenses, lost wages, hospitalization expenses, nutrition expenses and other related expenses. These are all legal. If the negotiation cannot be reached, then call the police. It is illegal for the other party to beat you. If the matter cannot be resolved by calling the police, then you can go to court to sue the person who beat you.
Legal basis: Article 1179 of the "People's Republic of China and Civil Code" Whoever infringes upon others and causes personal injury shall compensate for medical expenses, nursing expenses, transportation expenses, nutrition expenses, Hospital food subsidy and other reasonable expenses for treatment and recovery, as well as reduced income due to missed work. If disability is caused, the cost of assistive devices and disability compensation shall also be compensated; if death is caused, funeral expenses and death compensation shall also be compensated.