func (gintmpl GINTemplate) BaseHandlerTemplate() string {
	return `package handler
import (
	"github.com/gin-gonic/gin"
)
type BaseHandler struct{}
func (baseh *BaseHandler) responseOk(c *gin.Context, data interface{}) {
	result := make(map[string]interface{})
	result["code"] = 0
	result["msg"] = "ok"
	result["data"] = data
	c.JSON(200, result)
}
func (baseh *BaseHandler) recoverPanic(c *gin.Context) {
	if err := recover(); err != nil {
		baseh.responseError(c, err.(error))
	}
}
func (baseh *BaseHandler) responseError(c *gin.Context, err error) {
	result := make(map[string]interface{})
	result["code"] = -1
	result["msg"] = err.Error()
	c.JSON(200, result)
}`
}
BaseHandlerTemplate provides content for basehandler.go file
package template
type GINTemplate struct {
	baseTemplate
}
func (gintmpl GINTemplate) MainTemplate() string {
	return `package main
import (
	"github.com/danceyoung/goslayer/cmd/myapp/router"
	"github.com/gin-gonic/gin"
)
func main() {
	r := gin.Default()
	router.Register(r)
	r.Run(":8080")
}`
}
func (gintmpl GINTemplate) RouterTemplate() string {
	return `package router
import (
	"github.com/danceyoung/goslayer/cmd/myapp/router/handler"
	"github.com/gin-gonic/gin"
)
func Register(engine *gin.Engine) {
	engine.GET("/goslayer/events", (&handler.EventHandler{}).Events)
	engine.POST("goslayer/events/join", (&handler.EventHandler{}).JoinAEvent)
}`
}