You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
513 B
24 lines
513 B
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) |
|
}
|
|
|