Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DAO ¶
type DAO interface { // GetProjectMember gets all members of the project. GetProjectMember(ctx context.Context, queryMember models.Member, query *q.Query) ([]*models.Member, error) // GetTotalOfProjectMembers returns total of project members GetTotalOfProjectMembers(ctx context.Context, projectID int64, query *q.Query, roles ...int) (int, error) // AddProjectMember inserts a record to table project_member AddProjectMember(ctx context.Context, member models.Member) (int, error) // UpdateProjectMemberRole updates the record in table project_member, only role can be changed UpdateProjectMemberRole(ctx context.Context, projectID int64, pmID int, role int) error // DeleteProjectMemberByID - Delete Project Member by ID DeleteProjectMemberByID(ctx context.Context, projectID int64, pmid int) error // DeleteProjectMemberByUserID -- Delete project member by user id DeleteProjectMemberByUserID(ctx context.Context, uid int) error // DeleteProjectMemberByProjectID -- Delete project member by project id DeleteProjectMemberByProjectID(ctx context.Context, projectID int64) error // SearchMemberByName search members of the project by entity_name SearchMemberByName(ctx context.Context, projectID int64, entityName string) ([]*models.Member, error) // ListRoles lists the roles of user for the specific project ListRoles(ctx context.Context, user *models.User, projectID int64) ([]int, error) }
DAO the dao for project member
Click to show internal directories.
Click to hide internal directories.