Thanks for posting your query.
You may have gastritis
and in severe form, peptic ulcer disease
You should consult with physician and gastroenterologist and go for endoscopy for urgent diagnosis.
Treatment of ulcer is entirely different and includes 2 antibiotics.
You should take proton pump
inhibitors and H2 antagonist
on prelimimnary basis.
You should also follow dietary restriction, given by your treating physician.
Get well soon,