go get github.com/hcj112/wordfilter
$ cd $GOPATH/github.com/hcj112/wordfilter/cmd
$ go run main.go -conf=example.toml
// ok
OK = 0
// request error
RequestErr = -400
// server error
ServerErr = -500
[GET] /filter/keyword/add
Name | Type | Remork |
---|---|---|
keyword | string | keyword for response |
response:
{
"code": 0,
"message": ""
}
[GET] /filter/keyword/remove
Name | Type | Remork |
---|---|---|
keyword | string | keyword for response |
response:
{
"code": 0,
"message": ""
}
[GET] /filter/keyword/replace
Name | Type | Remork |
---|---|---|
keyword | string | keyword for response |
response:
{
"code": 0,
"message":",
"data":"中华**共和国"
}