Skip to content

Commit

Permalink
fix event gin
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaomingqiang committed Apr 19, 2021
1 parent 0eafac9 commit d338c47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions sample/event/contact.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/larksuite/oapi-sdk-go/core"
"github.com/larksuite/oapi-sdk-go/core/constants"
"github.com/larksuite/oapi-sdk-go/core/tools"
eventginserver "github.com/larksuite/oapi-sdk-go/event/http/gin"
"github.com/larksuite/oapi-sdk-go/sample/configs"
contact "github.com/larksuite/oapi-sdk-go/service/contact/v3"
)
Expand Down Expand Up @@ -37,7 +36,7 @@ func main() {
})

g := gin.Default()
eventginserver.Register("/webhook/event", conf, g)
g.POST("/webhook/event", webhookEventHandle)
err := g.Run(":8089")
if err != nil {
fmt.Println(err)
Expand Down
3 changes: 1 addition & 2 deletions sample/event/im.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/larksuite/oapi-sdk-go/core"
"github.com/larksuite/oapi-sdk-go/core/constants"
"github.com/larksuite/oapi-sdk-go/core/tools"
eventginserver "github.com/larksuite/oapi-sdk-go/event/http/gin"
"github.com/larksuite/oapi-sdk-go/sample/configs"
im "github.com/larksuite/oapi-sdk-go/service/im/v1"
)
Expand All @@ -25,7 +24,7 @@ func main() {
})

g := gin.Default()
eventginserver.Register("/webhook/event", conf, g)
g.POST("/webhook/event", webhookEventHandle)
err := g.Run(":8089")
if err != nil {
fmt.Println(err)
Expand Down

0 comments on commit d338c47

Please sign in to comment.