background/controller/webhook.go

19 lines
287 B
Go
Raw Normal View History

2020-06-20 15:15:23 +00:00
package controller
import "github.com/gin-gonic/gin"
type WebHookController struct {
}
func (this *WebHookController) PushHook(c *gin.Context) {
resp := RespBase{"unkown error",-231,nil}
defer func() {
c.JSON(200,resp)
}()
repo := c.Param("repo")
if "" == repo{
return
}
}