blacklist.go 513 B

123456789101112131415161718192021222324
  1. package http
  2. import (
  3. "go-common/library/log"
  4. bm "go-common/library/net/http/blademaster"
  5. )
  6. func initBlacklistMID(c *bm.Context) {
  7. log.Info("begin init blacklist mid")
  8. err := svr.InitBlacklistMID(c)
  9. if err != nil {
  10. log.Error("job growup svr.InitBlacklistMID err(%v)", err)
  11. }
  12. c.JSON(nil, err)
  13. }
  14. func updateBlacklist(c *bm.Context) {
  15. log.Info("begin update blacklist")
  16. err := svr.UpdateBlacklist(c)
  17. if err != nil {
  18. log.Error("(job growup svr.UpdateBlacklist error(%v)", err)
  19. }
  20. c.JSON(nil, err)
  21. }