Documentation ¶
Index ¶
- type UserServiceImpl
- func (i *UserServiceImpl) CreateUser(ctx context.Context, req *user.CreateUserRequest) (*user.User, error)
- func (i *UserServiceImpl) DeleteUser(ctx context.Context, req *user.DeleteUserRequest) error
- func (i *UserServiceImpl) DescribeUserRequest(ctx context.Context, req *user.DescribeUserRequest) (*user.User, error)
- func (i *UserServiceImpl) Init() error
- func (i *UserServiceImpl) Name() string
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 定义对象的初始化
Click to show internal directories.
Click to hide internal directories.