In this paper, the method of regulating the energy supply of micro-energy networks by energy module operation and maintenance system is studied and analyzed with a DC microgrid as an example. A coordinated optimization model of the DC microgrid system power supply is proposed. Firstly, the objective function is constructed considering the maximization of the power supply and the priority of the power supply. After that, the structure of the DC microgrid system is studied, the distribution network's complex power supply partition constraints are simplified, and constraints such as power balance constraints and power supply network connectivity constraints are established. Finally, the model is solved as a mixed integer linear programming question and is verified through case studies that the lines and nodes in the network can be removed according to system faults to ensure maximum power supply and priority power supply demand.