Documentation ¶
Index ¶
- type CRUD
- type CRUDService
- func (s *CRUDService) Create(reqDTO dto.CreateUserRequest) (*agg.User, error)
- func (s *CRUDService) Delete(reqDTO dto.DeleteUserRequest) (err error)
- func (s *CRUDService) Get(reqDTO dto.GetUserRequest) (user *agg.User, err error)
- func (s *CRUDService) Update(reqDTO dto.UpdateUserRequest) (*agg.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRUD ¶
type CRUD interface { Get(reqDTO dto.GetUserRequest) (*agg.User, error) Create(reqDTO dto.CreateUserRequest) (*agg.User, error) Update(reqDTO dto.UpdateUserRequest) (*agg.User, error) Delete(reqDTO dto.DeleteUserRequest) error }
type CRUDService ¶
type CRUDService struct {
// contains filtered or unexported fields
}
func NewCRUDService ¶
func (*CRUDService) Create ¶
func (s *CRUDService) Create(reqDTO dto.CreateUserRequest) (*agg.User, error)
func (*CRUDService) Delete ¶
func (s *CRUDService) Delete(reqDTO dto.DeleteUserRequest) (err error)
func (*CRUDService) Get ¶
func (s *CRUDService) Get(reqDTO dto.GetUserRequest) (user *agg.User, err error)
func (*CRUDService) Update ¶
func (s *CRUDService) Update(reqDTO dto.UpdateUserRequest) (*agg.User, error)
Click to show internal directories.
Click to hide internal directories.