feat 添加NotCrawl字段

This commit is contained in:
timerzz 2025-03-27 10:12:08 +08:00
parent fe213d8ce6
commit 7303e49bd0

View File

@ -30,8 +30,6 @@ type Provider struct {
Status ProviderStatus `json:"status"`
// 错误信息
Msg string `json:"msg"`
// 要不要抓取
NotCrawl bool `json:"notCrawl"`
// 拉取时间
PullAt time.Time `json:"pullAt"`
// 供应商配置
@ -43,9 +41,10 @@ type Provider struct {
}
type ProviderOption struct {
Ticker string `yaml:"ticker" json:"ticker"` //每天几点抓取
NotCrawl bool `json:"notCrawl"` // 要不要抓取
ExchangeRate float64 `yaml:"exchangeRate" json:"exchangeRate"` //汇率
Freight float64 `yaml:"freight" json:"freight"` //运费
Ticker string `yaml:"ticker" json:"ticker"` //每天几点抓取
}
// ProviderArticle 供应商商品信息