Documentation
¶
Index ¶
- type IUserService
- type Service
- func (s *Service) CreateUser(ctx context.Context, req userContract.CreateUserRequest) (res *userContract.CreateUserResponse, err error)
- func (s *Service) DeleteUser(ctx context.Context, req userContract.DeleteUserRequest) (res *userContract.DeleteUserResponse, err error)
- func (s *Service) GetDetail(ctx context.Context, req userContract.GetDetailUserRequest) (res *userContract.GetDetailUserResponse, err error)
- func (s *Service) GetList(ctx context.Context, req userContract.GetListUserRequest) (res *userContract.GetListUserResponse, err error)
- func (s *Service) Health(ctx context.Context) (res *utilContract.GetHealthResponse, err error)
- func (s *Service) UpdateUser(ctx context.Context, req userContract.UpdateUserRequest) (res *userContract.UpdateUserResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IUserService ¶
type IUserService interface {
Health(ctx context.Context) (res *utilContract.GetHealthResponse, err error)
GetDetail(ctx context.Context, req userContract.GetDetailUserRequest) (res *userContract.GetDetailUserResponse, err error)
GetList(ctx context.Context, req userContract.GetListUserRequest) (res *userContract.GetListUserResponse, err error)
CreateUser(ctx context.Context, req userContract.CreateUserRequest) (res *userContract.CreateUserResponse, err error)
UpdateUser(ctx context.Context, req userContract.UpdateUserRequest) (res *userContract.UpdateUserResponse, err error)
DeleteUser(ctx context.Context, req userContract.DeleteUserRequest) (res *userContract.DeleteUserResponse, err error)
}
func NewService ¶
func NewService(tp transporter.IHttpTransporter) IUserService
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) CreateUser ¶
func (s *Service) CreateUser(ctx context.Context, req userContract.CreateUserRequest) (res *userContract.CreateUserResponse, err error)
func (*Service) DeleteUser ¶
func (s *Service) DeleteUser(ctx context.Context, req userContract.DeleteUserRequest) (res *userContract.DeleteUserResponse, err error)
func (*Service) GetDetail ¶
func (s *Service) GetDetail(ctx context.Context, req userContract.GetDetailUserRequest) (res *userContract.GetDetailUserResponse, err error)
func (*Service) GetList ¶
func (s *Service) GetList(ctx context.Context, req userContract.GetListUserRequest) (res *userContract.GetListUserResponse, err error)
func (*Service) Health ¶ added in v0.0.3
func (s *Service) Health(ctx context.Context) (res *utilContract.GetHealthResponse, err error)
func (*Service) UpdateUser ¶
func (s *Service) UpdateUser(ctx context.Context, req userContract.UpdateUserRequest) (res *userContract.UpdateUserResponse, err error)
Click to show internal directories.
Click to hide internal directories.