增加 自定义事件支持

This commit is contained in:
dengsgo
2019-12-04 11:50:11 +08:00
parent a0af500678
commit aa929ae838
5 changed files with 54 additions and 17 deletions

View File

@@ -14,6 +14,7 @@ type postParams struct {
File string `json:"file"`
Changed int64 `json:"changed"`
Ext string `json:"ext"`
Event string `json:"event"`
}
type NetNotifier struct {
@@ -42,6 +43,7 @@ func (n *NetNotifier) Put(cf *changedFile) {
File: cf.Name,
Changed: cf.Changed,
Ext: cf.Ext,
Event: cf.Event,
})
}