Documentation ¶
Index ¶
- type UserSvc
- func (s *UserSvc) CreateUser(ctx context.Context, dto *protoapi.UserDto) (*protoapi.UserDto, error)
- func (s *UserSvc) DeleteUserByID(ctx context.Context, id *wrappers.StringValue) (*wrappers.BoolValue, error)
- func (s *UserSvc) GetUserByEmail(ctx context.Context, email *wrappers.StringValue) (*protoapi.UserDto, error)
- func (s *UserSvc) GetUserByID(ctx context.Context, id *wrappers.StringValue) (*protoapi.UserDto, error)
- func (s *UserSvc) ListUsers(ctx context.Context, e *empty.Empty) (*protoapi.UserDtoList, error)
- func (s *UserSvc) UpdateUser(ctx context.Context, dto *protoapi.UserDto) (*protoapi.UserDto, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserSvc ¶
type UserSvc struct {
// contains filtered or unexported fields
}
UserService
func (*UserSvc) CreateUser ¶
Create new user
func (*UserSvc) DeleteUserByID ¶
func (s *UserSvc) DeleteUserByID(ctx context.Context, id *wrappers.StringValue) (*wrappers.BoolValue, error)
Delete user by id
func (*UserSvc) GetUserByEmail ¶
func (s *UserSvc) GetUserByEmail(ctx context.Context, email *wrappers.StringValue) (*protoapi.UserDto, error)
Get user by email
func (*UserSvc) GetUserByID ¶
func (s *UserSvc) GetUserByID(ctx context.Context, id *wrappers.StringValue) (*protoapi.UserDto, error)
Get user by id
Click to show internal directories.
Click to hide internal directories.