You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
375 B
15 lines
375 B
package service
|
|
|
|
{{- if .NeedModel }}
|
|
import (
|
|
"ln/nft/plugin/{{ .Snake}}/model"
|
|
)
|
|
{{ end }}
|
|
|
|
type {{ .PlugName}}Service struct{}
|
|
|
|
func (e *{{ .PlugName}}Service) PlugService({{- if .HasRequest }}req model.Request {{ end -}}) ({{- if .HasResponse }}res model.Response,{{ end -}} err error) {
|
|
// 写你的业务逻辑
|
|
return nil{{- if .HasResponse }},res {{ end }}
|
|
}
|