增加自动注册git hook路由的方法

This commit is contained in:
2021-11-11 18:49:09 +08:00
parent 9f07e2521e
commit fc605ce397
2 changed files with 54 additions and 0 deletions

17
git_hook/abstract.go Normal file
View File

@ -0,0 +1,17 @@
// Package git_hook...
//
// Description : git_hook...
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 2021-11-11 6:41 下午
package git_hook
import "github.com/gin-gonic/gin"
// IGitHookEventHandler 接口约束, pkg 内部会提供基础实现
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 6:42 下午 2021/11/11
type IGitHookEventHandler func(ctx *gin.Context, hookData *HookData)