In this paper, we propose a one-dimensional model that combines photoelectricity, piezoelectricity, and photothermal effects. The influence of ultraviolet light on the electromechanical coupling properties of GaN nanowires is investigated. It is shown that, since the ultraviolet photon energy is larger than the forbidden gap of GaN, the physical fields in a GaN nanowire are sensitive to ultraviolet. The light-induced polarization can change the magnitude and direction of a piezoelectric polarization field caused by a mechanical load. Moreover, a large number of photogenerated carriers under photoexcitation enhance the current density, whilst they shield the Schottky barrier and reduce rectifying characteristics. This provides a new theoretical nanoarchitectonics approach for the contactless performance regulation of nano-GaN devices such as photoelectric sensors and ultraviolet detectors, which can further release their great application potential.