ADD provider添加online字段用于判断是否在线

This commit is contained in:
timerzz 2025-03-27 17:47:30 +08:00
parent 0f2c2d5913
commit 83e8af0c5f

View File

@ -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"`
// 历史成本价格