Documentation ¶
Index ¶
- type UserService
- func (service *UserService) Create(request model.CreateUpdateUserRequest) *core.Error
- func (service *UserService) Destroy(id int) *core.Error
- func (service *UserService) Find(id int) (model.GeneralUserResponse, *core.Error)
- func (service *UserService) List() ([]model.GeneralUserResponse, *core.Error)
- func (service *UserService) Update(id int, request model.CreateUpdateUserRequest) *core.Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService(repository repository.UserRepository) *UserService
func (*UserService) Create ¶
func (service *UserService) Create(request model.CreateUpdateUserRequest) *core.Error
func (*UserService) Find ¶
func (service *UserService) Find(id int) (model.GeneralUserResponse, *core.Error)
func (*UserService) List ¶
func (service *UserService) List() ([]model.GeneralUserResponse, *core.Error)
func (*UserService) Update ¶
func (service *UserService) Update(id int, request model.CreateUpdateUserRequest) *core.Error
Click to show internal directories.
Click to hide internal directories.