group.go 497 B

12345678910111213141516171819
  1. package mhayaGin
  2. import "github.com/gin-gonic/gin"
  3. type Group struct {
  4. *gin.RouterGroup
  5. }
  6. func (p *Group) Any(relativePath string, handlers ...GinHandlerFunc) {
  7. p.RouterGroup.Any(relativePath, BindHandlers(handlers)...)
  8. }
  9. func (p *Group) GET(relativePath string, handlers ...GinHandlerFunc) {
  10. p.RouterGroup.GET(relativePath, BindHandlers(handlers)...)
  11. }
  12. func (p *Group) POST(relativePath string, handlers ...GinHandlerFunc) {
  13. p.RouterGroup.POST(relativePath, BindHandlers(handlers)...)
  14. }