projectsModels

package
v0.0.0-...-88dbfc4 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contributor

type Contributor struct {
	// Github username
	// Example: "robotevan"
	Username string `json:"username"`
	// Github ID
	// Example: 12312312
	GitID int `json:"git_id"`
}

type CreateRepoReq

type CreateRepoReq struct {
	// List of GitHub repository names
	// Example: ["chicken1", "chicken2"]
	RepoName    string   `json:"repo_name"`
	Skills      []string `json:"skills"`
	Description string   `json:"description"`
}

type CreateTaskReq

type CreateTaskReq struct {
	ProjectID       int      `json:"project_id"`
	ProjectName     string   `json:"project_name"`
	TaskTitle       string   `json:"task_title"`
	TaskDescription string   `json:"task_description"`
	Diffictly       int      `json:"diffictly"`
	Priority        int      `json:"priority"`
	Skills          []string `json:"skills"`
}

type DeleteTaskReq

type DeleteTaskReq struct {
	TaskID int `json:"task_id"`
}

type EditTaskReq

type EditTaskReq struct {
	TaskTitle       string   `json:"task_title"`
	TaskStatus      string   `json:"task_status"`
	TaskDescription string   `json:"task_description"`
	Diffictly       int      `json:"diffictly"`
	Priority        int      `json:"priority"`
	Skills          []string `json:"skills"`
}

type ProjectInfo

type ProjectInfo struct {
	ProjectName        string   `json:"project_name"`
	ProjectDescription string   `json:"project_description"`
	ProjectOwner       string   `json:"project_owner"`
	ProjectSkills      []string `json:"project_skills"`
}

type ProjectResp

type ProjectResp struct {
	ProjectID            int      `json:"project_id"`
	ProjectOwnerId       string   `json:"project_owner_id"`
	ProjectOwnerUsername string   `json:"project_owner_username"`
	ProjectName          string   `json:"project_name"`
	ProjectURL           string   `json:"project_url"`
	ProjectSkills        []string `json:"project_skills"`
	ProjectDescription   string   `json:"project_description"`
}

type RepoInfoReq

type RepoInfoReq struct {
	// Github repository name
	// Example: "sysc4995"
	// Required: true
	RepoName string `json:"repo_name" validate:"required"`
}

type RepoInfoResp

type RepoInfoResp struct {
	// Github repositories
	// Example: ["chicken1", "chicken2"]
	Languages []string `json:"languages"`
	// List of contributors
	// Example [{"username": "wagwan", "git_id": 1234567}]
	Contributors []Contributor `json:"contributors"`
}

type RepoIssue

type RepoIssue struct {
	Title string `json:"title"`
	Url   string `json:"url"`
	State string `json:"state"`
}

type RepoIssueResp

type RepoIssueResp struct {
	// Github repositories
	Issues []RepoIssue `json:"issues"`
}

type ReposGetResp

type ReposGetResp struct {
	// List of GitHub repository names
	// Example: ["chicken1", "chicken2"]
	Repos []string `json:"repos"`
}

type SearchProjectsResp

type SearchProjectsResp struct {
	// GitCollab projects
	Projects []ProjectInfo `json:"projects"`
}

type TaskResp

type TaskResp struct {
	TaskID          int       `json:"task_id"`
	ProjectID       int       `json:"project_id"`
	ProjectName     string    `json:"project_name"`
	TaskStatus      string    `json:"task_status"`
	CompletedByID   int       `json:"completed_by_id"`
	CreatedDate     time.Time `json:"date_created_date"`
	CompletedDate   time.Time `json:"completed_date"`
	TaskTitle       string    `json:"task_title"`
	TaskDescription string    `json:"task_description"`
	Diffictly       int       `json:"diffictly"`
	Priority        int       `json:"priority"`
	Skills          []string  `json:"skills"`
}

type UserProjectsReq

type UserProjectsReq struct {
	// Profile username
	// Example: wagwan
	Username string `json:"username" validate:"required"`
}

type UserProjectsResp

type UserProjectsResp struct {
	// GitCollab projects
	Projects []ProjectInfo `json:"projects"`
}

Jump to

Keyboard shortcuts

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