This commit is contained in:
2023-11-02 04:34:46 +08:00
commit c4548fe498
369 changed files with 40208 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
package service
type ServiceGroup struct {
{{ .PlugName}}Service
}
var ServiceGroupApp = new(ServiceGroup)

View File

@@ -0,0 +1,14 @@
package service
{{- if .NeedModel }}
import (
"miniapp/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 {{- if .HasResponse }} res,{{ end }} nil
}