Usually the constant head or the constant flux were added in the literature, both cases neglected the inland groundwater level oscillation caused by precipitation and evaporation.
In many groundwater models you such as MODFLOW you can use the recharge package to incorporate the effect of precipitation and evaporation (positive rate for precipitation boundary conditions and negative rate for evapotranspiration boundary condition).