|
@@ -131,10 +131,10 @@ type config struct {
|
|
WeChatUrl string `json:"weChatUrl"`
|
|
WeChatUrl string `json:"weChatUrl"`
|
|
} `json:"siteMsg"` // 站内信内容配置
|
|
} `json:"siteMsg"` // 站内信内容配置
|
|
MailAlarm struct {
|
|
MailAlarm struct {
|
|
- To []string `json:"to"`
|
|
|
|
- Title string `json:"title"`
|
|
|
|
- ReTry int `json:"reTry"`
|
|
|
|
- Threshold int `json:"threshold"` // 库存剩余阈值
|
|
|
|
|
|
+ To []string `json:"to"`
|
|
|
|
+ Title string `json:"title"`
|
|
|
|
+ ReTry int `json:"reTry"`
|
|
|
|
+ Threshold map[string]int `json:"threshold"` // 库存剩余阈值
|
|
} `json:"mailAlarm"` // 库存告警
|
|
} `json:"mailAlarm"` // 库存告警
|
|
Sms struct {
|
|
Sms struct {
|
|
Args []string `json:"args"` // 短信部分可配置参数
|
|
Args []string `json:"args"` // 短信部分可配置参数
|