background/controller/webhook.go

19 lines
287 B
Go

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
}
}