An air pump for an inflatable body, comprising: a controller having a panel located outside of the inflatable body, said panel defining an air inlet in communication with an outer environment of the inflatable body; a central processing unit coupled to said panel; a pump coupled to said controller, said pump configured to inflate or discharge air from the inflatable body, said pump including a housing defining an inflating port and a discharging port; a driving switch including a driving unit and an air-passage switch device located in said housing and coupled to said controller to switch between two or more air passage configurations; and a pressure sensor, coupled to said central processing unit, in communication with the inflatable body to detect an internal pressure value of the inflatable body; wherein said controller includes a wireless communication module, said wireless communication module in communication with said central processing unit and a mobile terminal to remotely control said pump and said driving switch; and wherein said mobile terminal includes a terminal wireless communication module and a terminal input unit, said terminal wireless communication module being in communication with said wireless communication module, and said terminal input unit is configured to provide at least an inflation signal input, a deflation signal input, or a stop signal input; wherein said driving unit comprises a steering motor and is coupled to said central processing unit for moving said air-passage switch device to switch between said two or more air passage configurations with said two or more air passage configurations including an inflation air passage configuration, a deflation air passage configuration, or a closed air passage configuration; characterized in that said air-passage switch device comprises a gear system coupled to said steering motor, a rack unit (231, 233) matched with said gear system, and a switch unit driven by said rack unit (231, 233), wherein said rack unit (231, 233) is rectilinearly movable between an inflation position, an deflation position, and a stop position to enable said switch unit to switch between said inflation air passage configuration, said deflation air passage configuration, and said closed air passage configuration. a controller having a panel located outside of the inflatable body, said panel defining an air inlet in communication with an outer environment of the inflatable body; a central processing unit coupled to said panel; a pump coupled to said controller, said pump configured to inflate or discharge air from the inflatable body, said pump including a housing defining an inflating port and a discharging port; a driving switch including a driving unit and an air-passage switch device located in said housing and coupled to said controller to switch between two or more air passage configurations; and a pressure sensor, coupled to said central processing unit, in communication with the inflatable body to detect an internal pressure value of the inflatable body; wherein said controller includes a wireless communication module, said wireless communication module in communication with said central processing unit and a mobile terminal to remotely control said pump and said driving switch; and wherein said mobile terminal includes a terminal wireless communication module and a terminal input unit, said terminal wireless communication module being in communication with said wireless communication module, and said terminal input unit is configured to provide at least an inflation signal input, a deflation signal input, or a stop signal input; wherein said driving unit comprises a steering motor and is coupled to said central processing unit for moving said air-passage switch device to switch between said two or more air passage configurations with said two or more air passage configurations including an inflation air passage configuration, a deflation air passage configuration, or a closed air passage configuration; characterized in that said air-passage switch device comprises a gear system coupled to said steering motor, a rack unit (231, 233) matched with said gear system, and a switch unit driven by said rack unit (231, 233), wherein said rack unit (231, 233) is rectilinearly movable between an inflation position, an deflation position, and a stop position to enable said switch unit to switch between said inflation air passage configuration, said deflation air passage configuration, and said closed air passage configuration.