qnc-server/deploy/template/api/context.tpl

18 lines
240 B
Smarty
Raw Permalink Normal View History

2024-11-03 15:28:10 +08:00
package svc
import (
{{.configImport}}
)
type ServiceContext struct {
Config {{.config}}
{{.middleware}}
}
func NewServiceContext(c {{.config}}) *ServiceContext {
return &ServiceContext{
Config: c,
{{.middlewareAssignment}}
}
}