The Lithium Abundances from the Large Sky Area Multi-object Fiber Spectroscopic Telescope Medium-resolution Survey. I. The Method