Documentation ¶
Index ¶
- type Manager
- func (_m *Manager) AddProjectMember(ctx context.Context, _a1 models.Member) (int, error)
- func (_m *Manager) Delete(ctx context.Context, projectID int64, memberID int) error
- func (_m *Manager) DeleteMemberByProjectID(ctx context.Context, projectID int64) error
- func (_m *Manager) DeleteMemberByUserID(ctx context.Context, uid int) error
- func (_m *Manager) Get(ctx context.Context, projectID int64, memberID int) (*models.Member, error)
- func (_m *Manager) GetTotalOfProjectMembers(ctx context.Context, projectID int64, query *q.Query, roles ...int) (int, error)
- func (_m *Manager) List(ctx context.Context, queryMember models.Member, query *q.Query) ([]*models.Member, error)
- func (_m *Manager) ListRoles(ctx context.Context, user *models.User, projectID int64) ([]int, error)
- func (_m *Manager) SearchMemberByName(ctx context.Context, projectID int64, entityName string) ([]*models.Member, error)
- func (_m *Manager) UpdateRole(ctx context.Context, projectID int64, pmID int, role int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
Manager is an autogenerated mock type for the Manager type
func NewManager ¶
NewManager creates a new instance of Manager. 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 (*Manager) AddProjectMember ¶
AddProjectMember provides a mock function with given fields: ctx, _a1
func (*Manager) Delete ¶
Delete provides a mock function with given fields: ctx, projectID, memberID
func (*Manager) DeleteMemberByProjectID ¶
DeleteMemberByProjectID provides a mock function with given fields: ctx, projectID
func (*Manager) DeleteMemberByUserID ¶
DeleteMemberByUserID provides a mock function with given fields: ctx, uid
func (*Manager) GetTotalOfProjectMembers ¶
func (_m *Manager) GetTotalOfProjectMembers(ctx context.Context, projectID int64, query *q.Query, roles ...int) (int, error)
GetTotalOfProjectMembers provides a mock function with given fields: ctx, projectID, query, roles
func (*Manager) List ¶
func (_m *Manager) List(ctx context.Context, queryMember models.Member, query *q.Query) ([]*models.Member, error)
List provides a mock function with given fields: ctx, queryMember, query
func (*Manager) ListRoles ¶
func (_m *Manager) ListRoles(ctx context.Context, user *models.User, projectID int64) ([]int, error)
ListRoles provides a mock function with given fields: ctx, user, projectID