go-common/app/job/main/growup/http/blacklist.go

25 lines
513 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package http
import (
"go-common/library/log"
bm "go-common/library/net/http/blademaster"
)
func initBlacklistMID(c *bm.Context) {
log.Info("begin init blacklist mid")
err := svr.InitBlacklistMID(c)
if err != nil {
log.Error("job growup svr.InitBlacklistMID err(%v)", err)
}
c.JSON(nil, err)
}
func updateBlacklist(c *bm.Context) {
log.Info("begin update blacklist")
err := svr.UpdateBlacklist(c)
if err != nil {
log.Error("(job growup svr.UpdateBlacklist error(%v)", err)
}
c.JSON(nil, err)
}