The invention provides a desktop
application framework, which comprises a UI interaction
service layer used for providing a UI interface, creating service data of a corresponding service according toan instruction received through the UI interface and packaging the service data to generate a binary
stream and / or receiving a binary
stream of the
callback service data, unpacking and taking out thecallback service data, and correspondingly displaying the
callback service data through a UI, a business
service layer realized by adopting a Golang language and used for receiving the binary
stream,unpacking and taking out
business data and executing corresponding business by using the
business data and / or when a certain service is executed, creating
callback service data and packaging the callback service data to generate a binary stream, and a Go binding layer used for providing an interface for the UI interaction business layer and the business
service layer and realizing the transmissionof the binary stream between the UI interaction business layer and the business service layer. Correspondingly, the invention further provides a method for constructing the desktop application basedon the framework, a running method of the constructed desktop application and a storage medium. The method is a solution suitable for development of a PLC or other similar desktop applications with UIinteraction and background services.