Principle of air-cooled and liquid-cooled energy storage system