go-common/app/interface/main/creative/service/archive/netsafe.go
2019-04-22 18:49:16 +08:00

19 lines
366 B
Go

package archive
import (
"context"
)
// AddNetSafeMd5 fn
func (s *Service) AddNetSafeMd5(c context.Context, nid int64, md5 string) (err error) {
err = s.arc.AddNetSafeMd5(c, nid, md5)
go s.NotifyNetSafe(c, nid)
return
}
// NotifyNetSafe fn
func (s *Service) NotifyNetSafe(c context.Context, nid int64) (err error) {
_ = s.arc.NotifyNetSafe(c, nid)
return
}