imp

package
v0.0.0-...-2383c70 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserServiceImpl

type UserServiceImpl struct {
	ioc.ObjectImpl
}

他是user service 服务的控制器

func (*UserServiceImpl) CreateUser

func (i *UserServiceImpl) CreateUser(
	ctx context.Context,
	req *user.CreateUserRequest) (
	*user.User, error)

创建用户

func (*UserServiceImpl) DeleteUser

func (i *UserServiceImpl) DeleteUser(
	ctx context.Context,
	req *user.DeleteUserRequest,
) (*user.User, error)

删除用户

func (*UserServiceImpl) DescribeUser

func (i *UserServiceImpl) DescribeUser(
	ctx context.Context,
	req *user.DescribeUserRequest) (
	*user.User, error)

查询用户详情

func (*UserServiceImpl) Init

func (i *UserServiceImpl) Init() error

func (*UserServiceImpl) Name

func (i *UserServiceImpl) Name() string

定义托管到Ioc里面的名称

func (*UserServiceImpl) QueryUser

func (i *UserServiceImpl) QueryUser(
	ctx context.Context,
	req *user.QueryUserRequest) (
	*types.Set[*user.User], error)

查询用户列表

Jump to

Keyboard shortcuts

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