impl

package
v0.0.0-...-8a8b3aa Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 6 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 {
	// contains filtered or unexported fields
}

他是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) error

删除用户

func (*UserServiceImpl) DescribeUserRequest

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

怎么查询一个用户

func (*UserServiceImpl) Init

func (i *UserServiceImpl) Init() error

db 怎么来? 通过配置 https://gorm.io/zh_CN/docs/index.html 定义对象的初始化

func (*UserServiceImpl) Name

func (i *UserServiceImpl) Name() string

定义托管到Ioc里面的名称

Jump to

Keyboard shortcuts

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