projects

package
v0.0.0-...-69c30cd Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddProject

func AddProject(c *gin.Context)

func AddProjectMember

func AddProjectMember(c *gin.Context)

func ChangeProjectMemberCount

func ChangeProjectMemberCount(db *sql.DB, p_id uuid.UUID, option string) error

func DeleteProject

func DeleteProject(c *gin.Context)

func GetAllProjectMembers

func GetAllProjectMembers(c *gin.Context)

func GetProjectMembers

func GetProjectMembers(c *gin.Context)

func MakeProjectMemberAdmin

func MakeProjectMemberAdmin(c *gin.Context)

func RemoveProjectMember

func RemoveProjectMember(c *gin.Context)

func SingleProjectList

func SingleProjectList(c *gin.Context)

Types

type HomeProjects

type HomeProjects struct {
	P_id        uuid.UUID `json:"p_id"`
	W_id        uuid.UUID `json:"w_id"`
	Name        string    `json:"name"`
	TaskCount   int       `json:"task_count"`
	MemberCount int       `json:"member_count"`
}

type Project

type Project struct {
	P_id        uuid.UUID `json:"p_id"`
	W_id        uuid.UUID `json:"w_id"`
	User_id     uuid.UUID `json:"user_id"`
	Name        string    `json:"name"`
	Descp       string    `json:"descp"`
	TaskCount   int       `json:"task_count"`
	MemberCount int       `json:"member_count"`
	CreatedAt   string    `json:"created_at"`
	Deadline    string    `json:"deadline"`
	Tech        string    `json:"tech"`
	IsAdmin     bool      `json:"is_admin"`
}

type ProjectMember

type ProjectMember struct {
	UserName   string    `json:"user_name"`
	User_id    uuid.UUID `json:"user_id"`
	IsAdmin    bool      `json:"is_admin"`
	IsAssigned bool      `json:"is_assigned"`
}

type ProjectUser

type ProjectUser struct {
	P_id    uuid.UUID `json:"p_id"`
	User_id uuid.UUID `json:"user_id"`
	IsAdmin bool      `json:"is_admin"`
}

type SingleProject

type SingleProject struct {
	P_id        uuid.UUID `json:"p_id"`
	Name        string    `json:"name"`
	Descp       string    `json:"descp"`
	TaskCount   int       `json:"task_count"`
	MemberCount int       `json:"member_count"`
	IsAdmin     bool      `json:"is_admin"`
	CreatedAt   string    `json:"created_at"`
	Deadline    string    `json:"deadline"`
	Tech        string    `json:"tech"`
}

Jump to

Keyboard shortcuts

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