An aminopyrimidine five-membered heterocyclic compound represented by formula I-1, a pharmaceutically acceptable salt, a tautomer, an enantiomer or a diastereomer thereof: wherein, " " represents for a single bond or a double bond; when " " is a single bond, Z is N or CR 5 ; R 5 is H, D or C 1 -C 20 alkyl; when " " is double bond, Z is C; X is O, CO or NR 3 ; Y is CO, CH 2 or NR 4 ; R 1 is selected from unsubstituted methyl, substituted or unsubstituted ethyl, substituted or unsubstituted n-propyl, substituted or unsubstituted isopropyl, substituted or unsubstituted n-butyl, substituted or unsubstituted isobutyl, substituted or unsubstituted tert-butyl, substituted or unsubstituted C 6 -C 30 aryl or substituted or unsubstituted C 2 -C 30 heteroaryl; R 2 is selected from substituted or unsubstituted C 1 -C 20 alkyl, substituted or unsubstituted C 6 -C 30 aryl or substituted or unsubstituted C 2 -C 30 heteroaryl; the C 2 -C 30 heteroaryl in the substituted or unsubstituted C 2 -C 30 heteroaryl refers to a C 2 -C 30 heteroaryl that comprising 1-4 heteroatoms which is selected from the group consisting of N, O or S; the substituent in the substituted ethyl, the substituted n-propyl, the substituted isopropyl, the substituted n-butyl, the substituted isobutyl, the substituted tert-butyl, the substituted C 1 -C 20 alkyl group, the substituted C 6 -C 30 aryl or the substituted C 2 -C 30 heteroaryl is selected from one or more of the group consisting of halogen, C 1 -C 20 alkyl, halogenated C 1 -C 20 alkyl, oxo, hydroxyl, amino, cyano, C 1 -C 20 alkoxyl, halogenated C 1 -C 20 alkoxyl and C 1 -C 20 alkylthio; when the number of the substituent is more than one, the substituents are the same or different; wherein, each of R a and R b is independently H or C 1 -C 20 alkyl; R c is C 1 -C 20 alkyl; R 3 is H, C 1 -C 20 alkyl or C 3 -C 30 cycloalkyl; R 4 is H, C 1 -C 20 alkyl or C 3 -C 30 cycloalkyl; m is 0, 1, 2 or 3; n is 0, 1, 2 or 3. wherein, " " represents for a single bond or a double bond; when " " is a single bond, Z is N or CR 5 ; R 5 is H, D or C 1 -C 20 alkyl; when " " is double bond, Z is C; X is O, CO or NR 3 ; Y is CO, CH 2 or NR 4 ; R 1 is selected from unsubstituted methyl, substituted or unsubstituted ethyl, substituted or unsubstituted n-propyl, substituted or unsubstituted isopropyl, substituted or unsubstituted n-butyl, substituted or unsubstituted isobutyl, substituted or unsubstituted tert-butyl, substituted or unsubstituted C 6 -C 30 aryl or substituted or unsubstituted C 2 -C 30 heteroaryl; R 2 is selected from substituted or unsubstituted C 1 -C 20 alkyl, substituted or unsubstituted C 6 -C 30 aryl or substituted or unsubstituted C 2 -C 30 heteroaryl; the C 2 -C 30 heteroaryl in the substituted or unsubstituted C 2 -C 30 heteroaryl refers to a C 2 -C 30 heteroaryl that comprising 1-4 heteroatoms which is selected from the group consisting of N, O or S; the substituent in the substituted ethyl, the substituted n-propyl, the substituted isopropyl, the substituted n-butyl, the substituted isobutyl, the substituted tert-butyl, the substituted C 1 -C 20 alkyl group, the substituted C 6 -C 30 aryl or the substituted C 2 -C 30 heteroaryl is selected from one or more of the group consisting of halogen, C 1 -C 20 alkyl, halogenated C 1 -C 20 alkyl, oxo, hydroxyl, amino, cyano, C 1 -C 20 alkoxyl, halogenated C 1 -C 20 alkoxyl and C 1 -C 20 alkylthio; when the number of the substituent is more than one, the substituents are the same or different; wherein, each of R a and R b is independently H or C 1 -C 20 alkyl; R c is C 1 -C 20 alkyl; R 3 is H, C 1 -C 20 alkyl or C 3 -C 30 cycloalkyl; R 4 is H, C 1 -C 20 alkyl or C 3 -C 30 cycloalkyl; m is 0, 1, 2 or 3; n is 0, 1, 2 or 3. <EOS>