kra/resource/package/server/service/enter.go.tpl

17 lines
508 B
Smarty
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{{- if .IsAdd }}
// 请在 {{.Package}} 包的 enter.go 文件中的 ProviderSet 添加以下内容:
// New{{.StructName}}Service,
{{- else }}
package {{ .Package }}
import "github.com/google/wire"
// ProviderSet is {{.Package}} service providers.
// 包含 {{.Description}} 相关的服务层实现
// Service 层负责:
// 1. 请求类型转换Request -> Model
// 2. 事务管理
// 3. 调用 Biz 层 Usecase 完成业务逻辑
var ProviderSet = wire.NewSet(New{{.StructName}}Service)
{{- end }}