${CMAKE_CURRENT_SOURCE_DIR}/nativeui/weather/src/GetWeatherDataErrorView.cpp
${CMAKE_CURRENT_SOURCE_DIR}/nativeui/weather/src/WeatherControlView.cpp
${CMAKE_CURRENT_SOURCE_DIR}/nativeui/weather/src/WeatherView.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/nativeui/weather/src/WeatherModel.cpp
#系统
${CMAKE_CURRENT_SOURCE_DIR}/nativeui/system/src/SystemPresenter.cpp
--- /dev/null
+/*
+ * @Author: luozheng 1732036298@qq.com
+ * @Date: 2024-04-08 18:40:20
+ * @LastEditors: luozheng 1732036298@qq.com
+ * @LastEditTime: 2024-04-08 18:43:28
+ * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/weather/include/WeatherModel.h
+ */
+#ifndef WEATHER_MODEL_H
+#define WEATHER_MODEL_H
+
+#include "wearable_log.h"
+namespace OHOS
+{
+ class WeatherModel
+ {
+ public:
+ static WeatherModel &GetInstance(void);
+
+ private:
+ WeatherModel();
+ WeatherModel(const WeatherModel &) = delete;
+ WeatherModel &operator=(const WeatherModel &) = delete;
+ virtual ~WeatherModel();
+ };
+
+}
+
+#endif
\ No newline at end of file
--- /dev/null
+/*
+ * @Author: luozheng 1732036298@qq.com
+ * @Date: 2024-04-08 18:40:09
+ * @LastEditors: luozheng 1732036298@qq.com
+ * @LastEditTime: 2024-04-08 18:44:06
+ * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/weather/src/WeatherModel.cpp
+ */
+#include "weather/include/WeatherModel.h"
+
+namespace OHOS
+{
+ WeatherModel::WeatherModel()
+ {
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "WeatherModel::WeatherModel");
+ }
+
+ WeatherModel::~WeatherModel()
+ {
+ WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "WeatherModel::~WeatherModel");
+ }
+
+ WeatherModel &WeatherModel::GetInstance()
+ {
+ static WeatherModel instance;
+ return instance;
+ }
+
+}
\ No newline at end of file