Documentation ¶
Index ¶
- type UserService
- func (u *UserService) CreateUser(user *models.User) (*models.User, error)
- func (u *UserService) GetAllUser() ([]*models.User, error)
- func (u *UserService) GetShopByOwnerId(ctx context.Context, in *proto.ShopByOwnerId) (*proto.AllShop, error)
- func (u *UserService) GetUser(ctx context.Context, in *proto.ReqUser) (*proto.ResUser, error)
- func (u *UserService) GetUserById(userId int32) (*models.User, error)
- func (u *UserService) GetUserShopDetails(userId int) ([]*models.Shop, error)
- func (u *UserService) StartGrpcUserService()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserService ¶
type UserService struct { proto.UnimplementedUserServiceServer // contains filtered or unexported fields }
func NewUserService ¶
func NewUserService(userRepository *repositories.UserRepository) *UserService
func (*UserService) CreateUser ¶
func (*UserService) GetAllUser ¶
func (u *UserService) GetAllUser() ([]*models.User, error)
func (*UserService) GetShopByOwnerId ¶
func (u *UserService) GetShopByOwnerId(ctx context.Context, in *proto.ShopByOwnerId) (*proto.AllShop, error)
func (*UserService) GetUserById ¶
func (u *UserService) GetUserById(userId int32) (*models.User, error)
func (*UserService) GetUserShopDetails ¶
func (u *UserService) GetUserShopDetails(userId int) ([]*models.Shop, error)
func (*UserService) StartGrpcUserService ¶
func (u *UserService) StartGrpcUserService()
Click to show internal directories.
Click to hide internal directories.