service

package
v0.0.0-...-cb92cc7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2023 License: MIT Imports: 4 Imported by: 0

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指定的函数名

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL