Uniform asymptotics for the finite-time and infinite-time ruin probabilities in a dependent risk model with constant interest rate and heavy-tailed claims