|
|
|
@ -15,6 +15,10 @@ const (
|
|
|
|
|
handlerTemplateFile = "handler.tpl"
|
|
|
|
|
logicTemplateFile = "logic.tpl"
|
|
|
|
|
mainTemplateFile = "main.tpl"
|
|
|
|
|
middlewareImplementCodeFile = "middleware.tpl"
|
|
|
|
|
routesTemplateFile = "routes.tpl"
|
|
|
|
|
routesAdditionTemplateFile = "route-addition.tpl"
|
|
|
|
|
typesTemplateFile = "types.tpl"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
var templates = map[string]string{
|
|
|
|
@ -24,6 +28,10 @@ var templates = map[string]string{
|
|
|
|
|
handlerTemplateFile: handlerTemplate,
|
|
|
|
|
logicTemplateFile: logicTemplate,
|
|
|
|
|
mainTemplateFile: mainTemplate,
|
|
|
|
|
middlewareImplementCodeFile: middlewareImplementCode,
|
|
|
|
|
routesTemplateFile: routesTemplate,
|
|
|
|
|
routesAdditionTemplateFile: routesAdditionTemplate,
|
|
|
|
|
typesTemplateFile: typesTemplate,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Category returns the category of the api files.
|
|
|
|
|