Documentation ¶
Index ¶
- type TeamMemberRepository
- func (_m *TeamMemberRepository) Create(ctx context.Context, req *models.TeamMember) (*models.TeamMember, error)
- func (_m *TeamMemberRepository) CreateCache(ctx context.Context, key string, data interface{}, ttl time.Duration)
- func (_m *TeamMemberRepository) Delete(ctx context.Context, req *models.TeamMember) error
- func (_m *TeamMemberRepository) DeleteCache(ctx context.Context, key string)
- func (_m *TeamMemberRepository) GetCache(ctx context.Context, key string, res interface{}) bool
- func (_m *TeamMemberRepository) GetDetail(ctx context.Context, req dto.TeamMemberDetailReq) (*models.TeamMember, error)
- func (_m *TeamMemberRepository) GetList(ctx context.Context, req dto.TeamMemberListReq) ([]models.TeamMember, error)
- func (_m *TeamMemberRepository) Update(ctx context.Context, req *models.TeamMember) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TeamMemberRepository ¶
TeamMemberRepository is an autogenerated mock type for the TeamMemberRepository type
func NewTeamMemberRepository ¶
func NewTeamMemberRepository(t interface { mock.TestingT Cleanup(func()) }) *TeamMemberRepository
NewTeamMemberRepository creates a new instance of TeamMemberRepository. 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 (*TeamMemberRepository) Create ¶
func (_m *TeamMemberRepository) Create(ctx context.Context, req *models.TeamMember) (*models.TeamMember, error)
Create provides a mock function with given fields: ctx, req
func (*TeamMemberRepository) CreateCache ¶
func (_m *TeamMemberRepository) CreateCache(ctx context.Context, key string, data interface{}, ttl time.Duration)
CreateCache provides a mock function with given fields: ctx, key, data, ttl
func (*TeamMemberRepository) Delete ¶
func (_m *TeamMemberRepository) Delete(ctx context.Context, req *models.TeamMember) error
Delete provides a mock function with given fields: ctx, req
func (*TeamMemberRepository) DeleteCache ¶
func (_m *TeamMemberRepository) DeleteCache(ctx context.Context, key string)
DeleteCache provides a mock function with given fields: ctx, key
func (*TeamMemberRepository) GetCache ¶
func (_m *TeamMemberRepository) GetCache(ctx context.Context, key string, res interface{}) bool
GetCache provides a mock function with given fields: ctx, key, res
func (*TeamMemberRepository) GetDetail ¶
func (_m *TeamMemberRepository) GetDetail(ctx context.Context, req dto.TeamMemberDetailReq) (*models.TeamMember, error)
GetDetail provides a mock function with given fields: ctx, req
func (*TeamMemberRepository) GetList ¶
func (_m *TeamMemberRepository) GetList(ctx context.Context, req dto.TeamMemberListReq) ([]models.TeamMember, error)
GetList provides a mock function with given fields: ctx, req
func (*TeamMemberRepository) Update ¶
func (_m *TeamMemberRepository) Update(ctx context.Context, req *models.TeamMember) error
Update provides a mock function with given fields: ctx, req