add new command api
This commit is contained in:
1 parent
35379d5c8c
commit
e2f4766436
4 files changed
+47
-1
No files matched your search
@@ -15,7 +15,7 @@ type Context struct {
|
||||
type CustomMiddle func(*Context)
|
||||
|
||||
// PatchCtx - patch ctx to custom middle
|
||||
func PatchCtx(handler func(*Context)) gin.HandlerFunc {
|
||||
func PatchCtx(handler CustomMiddle) gin.HandlerFunc {
|
||||
return func(c *gin.Context) {
|
||||
ctx := &Context{
|
||||
Context: c,
|
||||
|
||||
Reference in new issue
Block a user