Documentation ¶
Index ¶
- type PostRepository
- func (_m *PostRepository) Create(ctx context.Context, req dto.PostCreateReq) (*dto.PostRes, error)
- func (_m *PostRepository) DeleteByID(ctx context.Context, postID uint64) error
- func (_m *PostRepository) GetAll(ctx context.Context) ([]dto.PostRes, error)
- func (_m *PostRepository) GetDetail(ctx context.Context, req dto.PostGetReq) (*dto.PostRes, error)
- func (_m *PostRepository) GetDetailTag(ctx context.Context, req dto.TagGetReq) (*models.Tag, error)
- func (_m *PostRepository) UpdateByID(ctx context.Context, req dto.PostUpdateReq) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostRepository ¶
PostRepository is an autogenerated mock type for the PostRepository type
func NewPostRepository ¶
func NewPostRepository(t interface { mock.TestingT Cleanup(func()) }) *PostRepository
NewPostRepository creates a new instance of PostRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*PostRepository) Create ¶
func (_m *PostRepository) Create(ctx context.Context, req dto.PostCreateReq) (*dto.PostRes, error)
Create provides a mock function with given fields: ctx, req
func (*PostRepository) DeleteByID ¶
func (_m *PostRepository) DeleteByID(ctx context.Context, postID uint64) error
DeleteByID provides a mock function with given fields: ctx, postID
func (*PostRepository) GetDetail ¶
func (_m *PostRepository) GetDetail(ctx context.Context, req dto.PostGetReq) (*dto.PostRes, error)
GetDetail provides a mock function with given fields: ctx, req
func (*PostRepository) GetDetailTag ¶
GetDetailTag provides a mock function with given fields: ctx, req
func (*PostRepository) UpdateByID ¶
func (_m *PostRepository) UpdateByID(ctx context.Context, req dto.PostUpdateReq) error
UpdateByID provides a mock function with given fields: ctx, req
Click to show internal directories.
Click to hide internal directories.