We investigate the cosmological imprints of neutrino-DM-mediator interaction in a model-independent way, including the extra contribution of $N_{\rm eff}$ and the distortion of C$\nu$B. Lyman-$\alpha$ constraint is also discussed. To do this, we implemented a universal approach to solve the time evolution of dark matter in both freeze-in and freeze-out case.