The present application discloses novel 5-aminopyrazole carboxamide compounds as shown in formula (I), and stereoisomers, pharmaceutically acceptable salts, solvates, or prodrugs thereof. In addition, the present application further discloses a method for the preparation of the compounds, a pharmaceutical composition comprising a compound of the invention and the use of the compounds.