service

package
v0.0.0-...-0231498 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogService

type LogService interface {
	// TestEvent(user *entity.UserInfo)
	TestEvent(user interface{})
}

type UserService

type UserService struct {
	DomainUserService *doservice.UserService
	UserRepository    repository.UserRepository
	Context           shared.RepositoryContext
	Event             event.Event
}

UserService 用户应用服务

func NewUserService

func NewUserService(params UserServiceParams) *UserService

func NewUserService(svc *doservice.UserService, ctx shared.RepositoryContext, repo repository.UserRepository, e event.Event) *UserService { return &UserService{DomainUserService: svc, Context: ctx, UserRepository: repo, Event: e} }

func (*UserService) FindUser

func (u *UserService) FindUser(q query.FindUserQuery) (*entity.UserInfo, error)

type UserServiceParams

type UserServiceParams struct {
	fx.In
	DomainUserService *doservice.UserService
	UserRepository    repository.UserRepository
	Context           shared.RepositoryContext
	Event             event.Event
}

Jump to

Keyboard shortcuts

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