From 83e8af0c5f4b0d3470a503d148553ee3427ff394 Mon Sep 17 00:00:00 2001
From: timerzz <zhhgzhhgzhhg@163.com>
Date: Thu, 27 Mar 2025 17:47:30 +0800
Subject: [PATCH] =?UTF-8?q?ADD=20provider=E6=B7=BB=E5=8A=A0online=E5=AD=97?=
 =?UTF-8?q?=E6=AE=B5=E7=94=A8=E4=BA=8E=E5=88=A4=E6=96=AD=E6=98=AF=E5=90=A6?=
 =?UTF-8?q?=E5=9C=A8=E7=BA=BF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 structs/v2/provider.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/structs/v2/provider.go b/structs/v2/provider.go
index 5358d17..09ebaa3 100644
--- a/structs/v2/provider.go
+++ b/structs/v2/provider.go
@@ -28,6 +28,8 @@ type Provider struct {
 	Name string `json:"name"`
 	// 供应商状态
 	Status ProviderStatus `json:"status"`
+	// 是否在线
+	Online bool `json:"online" gorm:"-"`
 	// 错误信息
 	Msg string `json:"msg"`
 	// 拉取时间
@@ -79,8 +81,6 @@ type ProviderArticle struct {
 	Watch *bool `json:"watch"`
 	// 状态
 	Status ProviderStatus `json:"status"`
-	// 是否在线
-	Online bool `json:"online" gorm:"-"`
 	// 是否排除,如果排除,就不用拉取价格
 	Exclude bool `json:"exclude"`
 	// 历史成本价格