If your Switch is refusing to boot due to corrosion, then I believe that the motherboard is broken (along with some other components within the Switch). Sure the fan may come on, but that doesn't mean that some other component of the motherboard is still broken. So I would suggest a motherboard replacement, a guide on which can be found here (unless you can clean it somehow, which I talk about below): Nintendo Switch Motherboard Replacement
Other components of the Nintendo Switch may have also been damaged, such as the display or some other daughterboards (e.g. the MicroSD card reader), so I would recommend checking them for any corrosion, which can be cleaned up using this guide: How to Correctly clean corrosion from a MacBook Pro logic board. (I know it is for a MacBook and not a switch, but the processes are basically the same for the Switch)
If you are unable to clean up the corrosion, you can simply purchase replacement parts here: Nintendo Game Console crwdns2943213:0crwdne2943213:0
Do note that this sort of repair may be rather costly and take a lot of time, so if you do wish to carry out this I do wish you the best of luck with it.
crwdns2934105:0crwdne2934105:0
crwdns2934113:0crwdne2934113:0
crwdns2915270:0crwdne2915270:0
crwdns2889612:0crwdne2889612:0
0