Welcome to English Forums!
You can't have two tense markers in the same clause:
"Did you had your dinner?" is wrong, because both "do" and "have" appear in the past tense form with the "d" which marks that tense.
So, after the question forms "Did you", "Did he", "Did she", etc., you always need the base form of the verb (the dictionary form).