Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewService)
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type DemoService ¶
type DemoService struct { v1.UnimplementedDemoServer // contains filtered or unexported fields }
DemoService Api的业务代码挂靠的结构体。 TODO 结构体名需要根据Api名进行修改,后缀统一为Service TODO 如果有多个Api,请拆分为多个文件,一个文件一个Api
func NewService ¶
func NewService(repo biz.EntityRepo, logger log.Logger) *DemoService
NewDemoService 是DemoService的构造函数。 TODO 函数名需要根据Api名进行修改,前缀统一为New TODO 如果有多个Api,请拆分为多个文件,一个文件一个Api TODO 重命名同时也需要修改service/service.go文件中ProviderSet指定的函数名
Click to show internal directories.
Click to hide internal directories.