1234567891011121314151617 |
- package svc
- import (
- {{.configImport}}
- )
- type ServiceContext struct {
- Config {{.config}}
- {{.middleware}}
- }
- func NewServiceContext(c {{.config}}) *ServiceContext {
- return &ServiceContext{
- Config: c,
- {{.middlewareAssignment}}
- }
- }
|