Effective model and pairing tendency in bilayer Ni-based superconductor La$_3$Ni$_2$O$_7$