project

package
v1.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddProjectMember

func AddProjectMember(member models.Member) (int, error)

AddProjectMember inserts a record to table project_member

func DeleteProjectMemberByID

func DeleteProjectMemberByID(pmid int) error

DeleteProjectMemberByID - Delete Project Member by ID

func GetProjectMember

func GetProjectMember(queryMember models.Member) ([]*models.Member, error)

GetProjectMember gets all members of the project.

func GetRolesByGroup added in v1.6.0

func GetRolesByGroup(projectID int64, groupDNCondition string) []int

GetRolesByGroup -- Query group roles

func SearchMemberByName

func SearchMemberByName(projectID int64, entityName string) ([]*models.Member, error)

SearchMemberByName search members of the project by entity_name

func UpdateProjectMemberRole

func UpdateProjectMemberRole(pmID int, role int) error

UpdateProjectMemberRole updates the record in table project_member, only role can be changed

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL