parent
68c6633742
commit
664e0a8454
@ -0,0 +1,16 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/taoshihan1991/imaptool/models"
|
||||
)
|
||||
|
||||
func PostIpblack(c *gin.Context) {
|
||||
ip := c.PostForm("ip")
|
||||
kefuId, _ := c.Get("kefu_name")
|
||||
models.CreateIpblack(ip,kefuId)
|
||||
c.JSON(200, gin.H{
|
||||
"code": 200,
|
||||
"msg": "添加黑名单成功!",
|
||||
})
|
||||
}
|
Loading…
Reference in new issue