You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
476 B
Smarty
27 lines
476 B
Smarty
package {{.pkgName}}
|
|
|
|
import (
|
|
{{.imports}}
|
|
"net/http"
|
|
)
|
|
|
|
type {{.logic}} struct {
|
|
ctx context.Context
|
|
svcCtx *svc.ServiceContext
|
|
r *http.Request
|
|
}
|
|
|
|
func New{{.logic}}(r *http.Request, ctx context.Context, svcCtx *svc.ServiceContext) *{{.logic}} {
|
|
return &{{.logic}}{
|
|
r: r,
|
|
ctx: ctx,
|
|
svcCtx: svcCtx,
|
|
}
|
|
}
|
|
|
|
func (l *{{.logic}}) {{.function}}({{.request}}) {{.responseType}} {
|
|
// todo: add your logic here and delete this line
|
|
|
|
{{.returnString}}
|
|
}
|