Documentation ¶
Index ¶
- type CRUD
- type CRUDService
- func (s *CRUDService) Create(reqDTO dto.CreateVideoRequest) (*agg.Video, error)
- func (s *CRUDService) Delete(reqDTO dto.DeleteVideoRequest) (err error)
- func (s *CRUDService) Get(reqDTO dto.GetVideoRequest) (*agg.Video, error)
- func (s *CRUDService) List(reqDTO dto.ListVideoRequest) (list []*agg.Video, total int64, err error)
- func (s *CRUDService) Update(reqDTO dto.UpdateVideoRequest) (*agg.Video, 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.GetVideoRequest) (*agg.Video, error) List(reqDTO dto.ListVideoRequest) (list []*agg.Video, total int64, err error) Create(reqDTO dto.CreateVideoRequest) (*agg.Video, error) Update(reqDTO dto.UpdateVideoRequest) (*agg.Video, error) Delete(reqDTO dto.DeleteVideoRequest) error }
type CRUDService ¶
type CRUDService struct {
// contains filtered or unexported fields
}
func NewCRUDService ¶
func (*CRUDService) Create ¶
func (s *CRUDService) Create(reqDTO dto.CreateVideoRequest) (*agg.Video, error)
func (*CRUDService) Delete ¶
func (s *CRUDService) Delete(reqDTO dto.DeleteVideoRequest) (err error)
func (*CRUDService) Get ¶
func (s *CRUDService) Get(reqDTO dto.GetVideoRequest) (*agg.Video, error)
func (*CRUDService) List ¶
func (s *CRUDService) List(reqDTO dto.ListVideoRequest) (list []*agg.Video, total int64, err error)
func (*CRUDService) Update ¶
func (s *CRUDService) Update(reqDTO dto.UpdateVideoRequest) (*agg.Video, error)
Click to show internal directories.
Click to hide internal directories.