Based on two-band Bogoliubov–de Gennes theory, we study the boundary effect of an interface between a two-gap superconductor FeSe and insulator (or vacuum). New boundary terms are introduced into two-band Ginzburg–Landau formalism, which modifies the boundary conditions for the corresponding order parameters of superconductor. The theory allows for a mean-field calculation of the critical temperature suppression with the decrease in FeSe film thickness. Our numerical results are in good agreement with the experimental data observed in this material.