diff --git a/structs/v2/seller.go b/structs/v2/seller.go index 3df3973..4bf7c8c 100644 --- a/structs/v2/seller.go +++ b/structs/v2/seller.go @@ -29,6 +29,8 @@ type Seller struct { Name string `json:"name"` // 供应商状态 Status SellerStatus `json:"status"` + // 是否在线 + Online bool `json:"online" gorm:"-"` // 错误信息 Msg string `json:"msg"` // 拉取时间 @@ -42,7 +44,8 @@ type Seller struct { } type SellerOption struct { - Ticker string `yaml:"ticker" json:"ticker"` //定时抓取 + Ticker string `yaml:"ticker" json:"ticker"` //定时抓取 + NotCrawl bool `yaml:"notCrawl" json:"notCrawl"` //要不要抓取 } // SellerArticle 销售商商品信息